feat(standards): codify codegen, ship generic Tier-B infra, add get_app_template + prompts; fix docs:// regressions
P0: fix doc:// -> docs:// across standards src/server/registry and regenerate stale mongo-ops bundle. P1: build recipe + spec-first routing now document the openapi-first codegen fast path (models/routes with --inject-request/--package). P4: CRUD template documents the model-vs-document id rule (BaseDocument owns id). P5: authless guidance (omit security keys). P6: template gains generic infra (http_cache, keyed SSE bus, KV port+in-memory+Redis), interfaces/openapi.py + .dockerignore + generic build test registered as components, and a get_app_template tool; genericity matrix marks LLM pool + human-in-loop as reference-app patterns. P7: intake/build/start_app/trial prompts. P8: template ships tests/integration/test_openapi_app_builds.py. Rebuilt standards + openapi-first bundles and re-collected.
This commit is contained in:
@@ -2,77 +2,21 @@
|
||||
"module": "mongo_ops.models",
|
||||
"content": {
|
||||
"path": "mongo_ops.models",
|
||||
"docstring": "Base document models for MongoDB.",
|
||||
"docstring": "# Summary\n\nBase document models for MongoDB.",
|
||||
"objects": {
|
||||
"datetime": {
|
||||
"name": "datetime",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.datetime",
|
||||
"signature": "<bound method Alias.signature of Alias('datetime', 'datetime.datetime')>",
|
||||
"docstring": null
|
||||
},
|
||||
"Any": {
|
||||
"name": "Any",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.Any",
|
||||
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||
"docstring": null
|
||||
},
|
||||
"Optional": {
|
||||
"name": "Optional",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.Optional",
|
||||
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||
"docstring": null
|
||||
},
|
||||
"ObjectId": {
|
||||
"name": "ObjectId",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.ObjectId",
|
||||
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||
"docstring": null
|
||||
},
|
||||
"BaseModel": {
|
||||
"name": "BaseModel",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.BaseModel",
|
||||
"signature": "<bound method Alias.signature of Alias('BaseModel', 'pydantic.BaseModel')>",
|
||||
"docstring": null
|
||||
},
|
||||
"Field": {
|
||||
"name": "Field",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.Field",
|
||||
"signature": "<bound method Alias.signature of Alias('Field', 'pydantic.Field')>",
|
||||
"docstring": null
|
||||
},
|
||||
"GetCoreSchemaHandler": {
|
||||
"name": "GetCoreSchemaHandler",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.GetCoreSchemaHandler",
|
||||
"signature": "<bound method Alias.signature of Alias('GetCoreSchemaHandler', 'pydantic.GetCoreSchemaHandler')>",
|
||||
"docstring": null
|
||||
},
|
||||
"core_schema": {
|
||||
"name": "core_schema",
|
||||
"kind": "alias",
|
||||
"path": "mongo_ops.models.core_schema",
|
||||
"signature": "<bound method Alias.signature of Alias('core_schema', 'pydantic_core.core_schema')>",
|
||||
"docstring": null
|
||||
},
|
||||
"PyObjectId": {
|
||||
"name": "PyObjectId",
|
||||
"kind": "class",
|
||||
"path": "mongo_ops.models.PyObjectId",
|
||||
"signature": "<bound method Class.signature of Class('PyObjectId', 10, 65)>",
|
||||
"docstring": "Custom ObjectId type compatible with Pydantic v2.\n\nThis class extends the standard BSON ObjectId to provide validation and \nserialization support within Pydantic models.",
|
||||
"signature": null,
|
||||
"docstring": "Custom ObjectId type compatible with Pydantic v2.\n\nThis class extends the standard BSON ObjectId to provide validation and\nserialization support within Pydantic models.",
|
||||
"members": {
|
||||
"validate": {
|
||||
"name": "validate",
|
||||
"kind": "function",
|
||||
"path": "mongo_ops.models.PyObjectId.validate",
|
||||
"signature": "<bound method Function.signature of Function('validate', 35, 53)>",
|
||||
"docstring": "Validate the input value and convert it to an ObjectId if possible.\n\nArgs:\n v: The value to validate (can be str or ObjectId).\n\nReturns:\n ObjectId: The validated ObjectId instance.\n\nRaises:\n ValueError: If the value is not a valid ObjectId."
|
||||
"signature": "validate(v: Any) -> ObjectId",
|
||||
"docstring": "Validate the input value and convert it to an ObjectId if possible.\n\nArgs:\n v (Any): The value to validate (can be str or ObjectId).\n\nReturns:\n ObjectId: The validated ObjectId instance.\n\nRaises:\n ValueError: If the value is not a valid ObjectId."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -80,8 +24,8 @@
|
||||
"name": "BaseDocument",
|
||||
"kind": "class",
|
||||
"path": "mongo_ops.models.BaseDocument",
|
||||
"signature": "<bound method Class.signature of Class('BaseDocument', 68, 95)>",
|
||||
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||
"signature": null,
|
||||
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent\nMongoDB documents. It includes automatic handling of the `_id` field\nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||
"members": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
@@ -108,7 +52,7 @@
|
||||
"name": "Config",
|
||||
"kind": "class",
|
||||
"path": "mongo_ops.models.BaseDocument.Config",
|
||||
"signature": "<bound method Class.signature of Class('Config', 86, 95)>",
|
||||
"signature": null,
|
||||
"docstring": null,
|
||||
"members": {
|
||||
"populate_by_name": {
|
||||
|
||||
Reference in New Issue
Block a user