@autobe/agent 0.30.2 → 0.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/AutoBeMockAgent.js +0 -2
  2. package/lib/AutoBeMockAgent.js.map +1 -1
  3. package/lib/constants/AutoBeConfigConstant.d.ts +1 -1
  4. package/lib/constants/AutoBeSystemPromptConstant.d.ts +12 -11
  5. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  6. package/lib/index.mjs +498 -55
  7. package/lib/index.mjs.map +1 -1
  8. package/lib/orchestrate/analyze/histories/transformAnalyzeExtractDecisionsHistory.d.ts +18 -0
  9. package/lib/orchestrate/analyze/histories/transformAnalyzeExtractDecisionsHistory.js +51 -0
  10. package/lib/orchestrate/analyze/histories/transformAnalyzeExtractDecisionsHistory.js.map +1 -0
  11. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistory.js +1 -1
  12. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistory.js.map +1 -1
  13. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioReviewHistory.js +1 -1
  14. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioReviewHistory.js.map +1 -1
  15. package/lib/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.d.ts +1 -0
  16. package/lib/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.js +15 -1
  17. package/lib/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.js.map +1 -1
  18. package/lib/orchestrate/analyze/histories/transformAnalyzeSectionReviewHistory.js +1 -1
  19. package/lib/orchestrate/analyze/histories/transformAnalyzeSectionReviewHistory.js.map +1 -1
  20. package/lib/orchestrate/analyze/orchestrateAnalyze.js +48 -13
  21. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  22. package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.d.ts +17 -0
  23. package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +345 -0
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js.map +1 -0
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -2
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.d.ts +1 -0
  27. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +1 -0
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
  29. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +91 -0
  30. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.js +3 -0
  31. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.js.map +1 -0
  32. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +15 -5
  33. package/lib/orchestrate/analyze/utils/buildErrorCodeRegistry.d.ts +0 -9
  34. package/lib/orchestrate/analyze/utils/buildErrorCodeRegistry.js +1 -13
  35. package/lib/orchestrate/analyze/utils/buildErrorCodeRegistry.js.map +1 -1
  36. package/lib/orchestrate/analyze/utils/detectDecisionConflicts.d.ts +63 -0
  37. package/lib/orchestrate/analyze/utils/detectDecisionConflicts.js +105 -0
  38. package/lib/orchestrate/analyze/utils/detectDecisionConflicts.js.map +1 -0
  39. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js +1 -1
  40. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js.map +1 -1
  41. package/lib/orchestrate/interface/histories/transformInterfaceActionEndpointReviewHistory.js +1 -1
  42. package/lib/orchestrate/interface/histories/transformInterfaceActionEndpointReviewHistory.js.map +1 -1
  43. package/lib/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.js +1 -1
  44. package/lib/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.js.map +1 -1
  45. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.js +1 -1
  46. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.js.map +1 -1
  47. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +1 -2
  48. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
  49. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1 -2
  50. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  51. package/lib/orchestrate/interface/utils/AutoBeJsonSchemaValidator.js +36 -0
  52. package/lib/orchestrate/interface/utils/AutoBeJsonSchemaValidator.js.map +1 -1
  53. package/lib/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.js +2 -2
  54. package/lib/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.js.map +1 -1
  55. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js +1 -1
  56. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js.map +1 -1
  57. package/lib/orchestrate/prisma/histories/transformPrismaGroupHistory.js +1 -1
  58. package/lib/orchestrate/prisma/histories/transformPrismaGroupHistory.js.map +1 -1
  59. package/lib/orchestrate/prisma/histories/transformPrismaGroupReviewHistory.js +1 -1
  60. package/lib/orchestrate/prisma/histories/transformPrismaGroupReviewHistory.js.map +1 -1
  61. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js +1 -1
  62. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js.map +1 -1
  63. package/lib/orchestrate/prisma/histories/transformPrismaSchemaReviewHistory.js +1 -1
  64. package/lib/orchestrate/prisma/histories/transformPrismaSchemaReviewHistory.js.map +1 -1
  65. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1 -1
  66. package/package.json +5 -5
  67. package/src/AutoBeMockAgent.ts +0 -2
  68. package/src/constants/AutoBeConfigConstant.ts +1 -1
  69. package/src/constants/AutoBeSystemPromptConstant.ts +12 -11
  70. package/src/orchestrate/analyze/histories/transformAnalyzeExtractDecisionsHistory.ts +69 -0
  71. package/src/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.ts +20 -0
  72. package/src/orchestrate/analyze/orchestrateAnalyze.ts +58 -1
  73. package/src/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.ts +97 -0
  74. package/src/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.ts +2 -0
  75. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +99 -0
  76. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +15 -5
  77. package/src/orchestrate/analyze/utils/buildErrorCodeRegistry.ts +0 -20
  78. package/src/orchestrate/analyze/utils/detectDecisionConflicts.ts +172 -0
  79. package/src/orchestrate/interface/orchestrateInterfaceSchemaRefine.ts +1 -2
  80. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +1 -2
  81. package/src/orchestrate/interface/utils/AutoBeJsonSchemaValidator.ts +38 -0
@@ -1 +1 @@
1
- {"version":3,"file":"transformInterfaceBaseEndpointReviewHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.ts"],"names":[],"mappings":";;;AAKA,yCAA2C;AAC3C,+BAA0B;AAK1B,qHAAkH;AAE3G,MAAM,2CAA2C,GAAG,CAAC,KAW3D,EAA6B,EAAE,CAAC,CAAC;IAChC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,4nZAA0D;SAC/D;QACD;YACE,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,ohKAA2D;SAChE;QACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;QACnC;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;gDAGqB,KAAK,CAAC,KAAK,CAAC,IAAI;;6BAEnC,KAAK,CAAC,KAAK,CAAC,WAAW;0CACV,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;;UAEtE,IAAA,+FAA8C,EAAC,KAAK,CAAC,mBAAmB,CAAC;;;;;;;;;;;;;;UAczE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC;;;;OAIhC;YACD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC;KACF;IACD,WAAW,EAAE,0CAA0C,KAAK,CAAC,KAAK,CAAC,IAAI,kCAAkC;CAC1G,CAAC,CAAC;AA5DU,QAAA,2CAA2C,+CA4DrD"}
1
+ {"version":3,"file":"transformInterfaceBaseEndpointReviewHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.ts"],"names":[],"mappings":";;;AAKA,yCAA2C;AAC3C,+BAA0B;AAK1B,qHAAkH;AAE3G,MAAM,2CAA2C,GAAG,CAAC,KAW3D,EAA6B,EAAE,CAAC,CAAC;IAChC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,4nZAA0D;SAC/D;QACD;YACE,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,uhKAA2D;SAChE;QACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;QACnC;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;gDAGqB,KAAK,CAAC,KAAK,CAAC,IAAI;;6BAEnC,KAAK,CAAC,KAAK,CAAC,WAAW;0CACV,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;;UAEtE,IAAA,+FAA8C,EAAC,KAAK,CAAC,mBAAmB,CAAC;;;;;;;;;;;;;;UAczE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC;;;;OAIhC;YACD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC;KACF;IACD,WAAW,EAAE,0CAA0C,KAAK,CAAC,KAAK,CAAC,IAAI,kCAAkC;CAC1G,CAAC,CAAC;AA5DU,QAAA,2CAA2C,+CA4DrD"}
@@ -16,7 +16,7 @@ const transformInterfaceSchemaRefineHistory = (props) => {
16
16
  type: "systemMessage",
17
17
  id: (0, uuid_1.v7)(),
18
18
  created_at: new Date().toISOString(),
19
- text: "<!--\nfilename: INTERFACE_SCHEMA_REFINE.md\n-->\n# Schema Refine Agent\n\nYou enrich OpenAPI schemas with documentation and fix structural issues.\n\n## Input Schema Structure\n\n**Object-level** (drafts to refine): `x-autobe-database-schema`, `x-autobe-specification`, `description`\n\n**Property-level** (structure only, no documentation): `type`, `properties`, `$ref`, `required`\n\n**Your job**:\n- Object-level: Review drafts \u2192 output refined `databaseSchema`, `specification`, `description`\n- Property-level: Add `databaseSchemaProperty`, `specification`, `description` to each property\n- Fix structural issues (content gaps, phantoms, relations, security)\n\n**Function calling is MANDATORY** - call immediately without asking.\n\n## 1. Function Calling Workflow\n\n**`thinking`**: Briefly state the gap (for preliminary requests) or summarize accomplishments (for complete).\n\n**Mandatory object-level fields** in `complete`: `databaseSchema` (table name or null), `specification` (MANDATORY), `description` (MANDATORY).\n\n**Flow**: Gather context via preliminary requests (max 8 calls) \u2192 Call `complete` with all refinements.\n\n## 2. Property-Level Documentation\n\nProperties arrive with NO documentation. Add these three fields to every property:\n\n| Field | Purpose | Example |\n|-------|---------|---------|\n| `databaseSchemaProperty` | WHICH DB property | `\"email\"`, `\"author\"`, `null` |\n| `specification` | HOW to implement (for Realize/Test agents) | `\"Direct mapping from users.email\"` |\n| `description` | WHAT for API consumers (Swagger UI) | `\"User's email address\"` |\n\n**Order is mandatory**: WHICH \u2192 HOW \u2192 WHAT\n\n### 2.1. Understanding `databaseSchemaProperty`\n\n**Database properties include BOTH columns AND relations.** Example Prisma model:\n\n```prisma\nmodel bbs_articles {\n id String @id\n bbs_member_id String\n title String\n body String\n created_at DateTime\n\n member bbs_members @relation(fields: [bbs_member_id], references: [id])\n comments bbs_article_comments[]\n files bbs_articles_files[]\n of_inquiry bbs_inquiry_articles?\n}\n```\n\n**All of these are database properties**:\n- Columns: `id`, `bbs_member_id`, `title`, `body`, `created_at`\n- Relations: `member` (belongs to), `comments` (has many), `files` (has many), `of_inquiry` (has one)\n\n**Setting `databaseSchemaProperty`**:\n- Column property \u2192 Use column name: `\"title\"`, `\"bbs_member_id\"`\n- Relation property \u2192 Use relation name: `\"member\"`, `\"comments\"`, `\"files\"`, `\"of_inquiry\"`\n- Computed property \u2192 Use `null` (aggregations, algorithmic computation, auth tokens, derived values). Must have valid logic in `specification`.\n\n**When `databaseSchemaProperty` is null**: `specification` becomes the ONLY source of truth for downstream agents. MUST explain computation/data source explicitly.\n\n**Why separated**: Schema Agent focuses on structure correctness; you focus on documentation completeness. This separation ensures both are done well.\n\n## 3. Two Output Arrays\n\nYour output has two separate arrays that together must cover every database property:\n\n- **`excludes`**: DB property **should never appear** in this DTO \u2192 declare the exclusion\n- **`revises`**: Operations on DTO properties (`depict`, `create`, `update`, `erase`). `erase` is for a property that **exists in the DTO** but shouldn't \u2192 remove it\n\nEvery DTO property must appear exactly once in `revises`. Every database property must appear either in `revises` (via `databaseSchemaProperty`) or in `excludes` \u2014 never both, never omitted.\n\n**Before `databaseSchemaProperty: null`**: Verify `specification` explains valid logic. **Before `erase`**: Confirm no DB mapping AND no valid business logic.\n\n### 3.1. `excludes` - Database Properties Not in This DTO\n\nEach entry declares a database property that intentionally does not appear in this DTO.\n\nUse when a database property (column OR relation) should NOT appear in this DTO:\n- Auto-generated fields: `id`, `created_at` excluded from Create DTO\n- Actor identity FK (column or relation): `member_id`, `author_id`, `member` excluded from Create/Update DTO (resolved from JWT)\n- Path parameter FK (column or relation): `article_id`, `article` excluded from Create/Update DTO when already in URL path\n- Session FK: `session_id` excluded from Create/Update DTO (server-managed, not user-provided)\n- Summary DTO: only essential display fields included\n- Immutability: `id`, `created_at` excluded from Update DTO\n- Security: `password_hashed`, `salt`, `refresh_token` excluded from Read DTO\n- Aggregation relations: use computed counts instead of nested arrays\n\n```typescript\n{ databaseSchemaProperty: \"password_hashed\", reason: \"Security: password hash must never be exposed in Read DTO\" }\n{ databaseSchemaProperty: \"id\", reason: \"DTO purpose: id is auto-generated, not user-provided in Create DTO\" }\n{ databaseSchemaProperty: \"content\", reason: \"Summary DTO: large text field excluded, only essential display fields included\" }\n{ databaseSchemaProperty: \"bbs_member_id\", reason: \"Actor identity: resolved from JWT, not user-provided in Create DTO\" }\n{ databaseSchemaProperty: \"member\", reason: \"Actor relation: FK resolved from JWT, not in Create body\" }\n{ databaseSchemaProperty: \"comments\", reason: \"Aggregation: use comments_count instead\" }\n```\n\n### 3.2. `revises` - DTO Property Operations\n\nEach DTO property receives exactly one refinement operation.\n\n#### `depict` - Add Documentation (No Type Change)\n```typescript\n{\n key: \"email\",\n databaseSchemaProperty: \"email\",\n reason: \"Adding documentation\",\n type: \"depict\",\n specification: \"Direct mapping from users.email. Unique constraint.\",\n description: \"User's primary email address.\"\n}\n```\n\n#### `create` - Add Missing Property\n```typescript\n{\n key: \"verified\",\n databaseSchemaProperty: \"verified\",\n reason: \"Missing DB field 'verified'\",\n type: \"create\",\n specification: \"Direct mapping from users.verified.\",\n description: \"Email verification status.\",\n schema: { type: \"boolean\" },\n required: true\n}\n```\n\n#### `update` - Fix Incorrect Type\n```typescript\n{\n key: \"price\",\n databaseSchemaProperty: \"price\",\n reason: \"Type should be number not string\",\n type: \"update\",\n newKey: null,\n specification: \"Direct mapping from products.price. Decimal.\",\n description: \"Product price.\",\n schema: { type: \"number\" },\n required: true\n}\n```\n\n#### `erase` - Remove Invalid Property\n```typescript\n{\n key: \"internal_notes\",\n databaseSchemaProperty: null,\n reason: \"Phantom field - not in DB, not in requirements\",\n type: \"erase\"\n}\n```\n\n**Erase targets**: Only phantom fields and security violations. DB-mapped non-relation properties (e.g., `title`, `start_date`) and recognized-role fields (e.g., `page`, `*_count`) are never valid erase targets.\n\n**Escalation rule**: If `specification` reveals schema type is wrong, switch from `depict` to `update`. Choose the final action upfront \u2014 do not emit `depict` then `update` for the same key. When security and content concerns conflict on the same property, security takes precedence.\n\n## 4. Pre-Review Hardening\n\nWhile enriching, also inspect and fix:\n\n### 4.1. Content Completeness\n- Compare schema against DB model and requirements\n- Add missing DB-mapped fields AND requirements-driven computed fields\n- Use `create` for missing fields\n\n**Database to OpenAPI Type Mapping** (reference when fixing types via `update`):\n\n| DB Type | OpenAPI Type | Format |\n|---------|--------------|--------|\n| String | string | \u2014 |\n| Int | integer | \u2014 |\n| BigInt | string | \u2014 |\n| Float/Decimal | number | \u2014 |\n| Boolean | boolean | \u2014 |\n| DateTime | string | date-time |\n| Json | object | \u2014 |\n\n**DTO Type Rules** (use `excludes` for DB properties not included):\n| DTO Type | Include | Exclude (add to `excludes`) |\n|----------|---------|------------------------------|\n| Read (IEntity) | All DB columns + computed fields | `password_hashed`, `salt`, `refresh_token` |\n| Create (ICreate) | User-provided fields | `id`, `created_at`, actor FK, path param FK, session FK |\n| Update (IUpdate) | Mutable fields | `id`, `created_at`, actor FK, path param FK, session FK |\n| Summary (ISummary) | Essential display columns only | Non-essential DB columns (intentional omission \u2014 add to `excludes`, not `create`) |\n\n**ISummary pagination guard**: If ISummary contains a `pagination` property, the entire schema has an IPage-like structure and ALL its properties are wrong. Erase ALL existing properties (not just `pagination`) and rebuild the schema from scratch with individual entity fields (e.g., `id`, `name`, `created_at`) derived from the database schema. Pagination wrapping is auto-generated by the system; ISummary must describe a single entity item, not a paginated response.\n\n**Nullable Rules**:\n- DB nullable \u2192 DTO non-null is **forbidden** (use `oneOf` with null for Read DTOs, remove from `required` for Create DTOs)\n- DB non-null \u2192 DTO nullable is **allowed** (intentional, e.g., `@default`) \u2014 do NOT \"fix\" this\n\n### 4.2. Phantom Detection\n\n**Before classifying a property as phantom**:\n1. Check the loaded DB schema's **column list** \u2014 does the property name match any column?\n2. Check the loaded DB schema's **relation list** \u2014 does the property name match any relation?\n3. Read `specification` and requirements carefully \u2014 is this a computed field with a concrete data source or business rationale? Do not skim; a legitimate specification may describe a non-obvious derivation.\n\n**Decision**:\n- Found in columns OR relations \u2192 NOT phantom. Use the property name in `databaseSchemaProperty`.\n- Not in DB BUT has valid business logic (concrete computation, cross-table join, transformation) \u2192 Keep with `databaseSchemaProperty: null`\n- Not in DB AND no concrete rationale (empty, vague, or wishful) \u2192 Erase\n\n**Concrete examples of valid `databaseSchemaProperty: null`** (these are NOT phantom):\n\n| Property | DTO Type | Why valid |\n|----------|----------|-----------|\n| `page`, `limit`, `search`, `sort` | `IRequest` | Pagination/search parameters \u2014 query logic, not DB columns |\n| `ip`, `href`, `referrer` | `IJoin`, `ILogin`, `IActorSession` | Session context \u2014 stored in session table, not actor table |\n| `*_count` | Read DTOs | Aggregation \u2014 `COUNT()` of related records |\n| `token` / `access` / `refresh` / `expired_at` | `IAuthorized` | Auth response \u2014 computed by server, not stored as-is |\n\n**`password` is NOT null-mapped** \u2014 it maps to DB column `password_hashed` via transformation (`databaseSchemaProperty: \"password_hashed\"`). See Section 4.4 for password handling rules.\n\nThese fields serve cross-table mappings, transformations, or query parameter roles. Verify against loaded DB schemas and requirements before erasing.\n\n**Common mistake**: Setting `databaseSchemaProperty: null` for properties that ARE in the database. Always verify against the loaded schema before using `null`.\n\n### 4.3. Relation Mapping (FK \u2192 $ref)\n\n#### Three Relation Types\n\n| Type | Definition | In Read DTO | In Create/Update DTO |\n|------|------------|-------------|----------------------|\n| **Composition** | Parent owns children (same transaction) | Full nested array/object | Nested `ICreate` objects |\n| **Association** | Independent entity (exists before parent) | `$ref` to `.ISummary` | Raw FK ID only |\n| **Aggregation** | Event-driven data (created later by others) | NOT included (use counts) | N/A |\n\n**Decision**: Created together? \u2192 Composition. Pre-exists? \u2192 Association. Created later by others? \u2192 Aggregation.\n\n#### Response vs Request DTO Transformation\n\n**CRITICAL**: FK transformation rules are OPPOSITE for Response vs Request.\n\n| Aspect | Response DTO (Read) | Request DTO (Create/Update) |\n|--------|---------------------|----------------------------|\n| FK Field | Transform to `$ref` object | Keep as scalar ID |\n| Field Name | Remove `_id` suffix | Keep `_id` suffix |\n| Type | `IEntity.ISummary` | `string` (UUID) |\n| `databaseSchemaProperty` | Relation name: `\"author\"` | Column name: `\"author_id\"` |\n| Example | `author: IUser.ISummary` | `author_id: string` |\n\n```typescript\n// Response DTO: FK \u2192 Object (remove _id, add $ref)\ninterface IArticle {\n author: IUser.ISummary; // author_id \u2192 author\n category: ICategory.ISummary; // category_id \u2192 category\n}\n\n// Request DTO: user-specified FK \u2192 keep as scalar\ninterface IArticle.ICreate {\n category_id: string; // \u2705 Keep as scalar (user chooses category)\n // \u274C NEVER: category: ICategory.ISummary\n // \u274C author_id excluded: actor identity resolved from JWT\n // \u274C author_session_id excluded: session identity resolved from JWT\n}\n```\n\n#### Adding Missing Relation (Read DTO)\n```typescript\n{\n key: \"author\",\n databaseSchemaProperty: \"author\", // Relation name from DB schema\n reason: \"Missing relation for author_id FK\",\n type: \"create\",\n specification: \"Join from articles.author_id to users.id. Returns ISummary.\",\n description: \"The article's author.\",\n schema: { $ref: \"#/components/schemas/IUser.ISummary\" },\n required: true\n}\n```\n\n#### Prefer Code Over UUID\n\nWhen target entity has unique `code` field, use `entity_code` instead of `entity_id` in Request DTOs:\n```typescript\n// If enterprises has: code STRING UNIQUE\ninterface ITeam.ICreate {\n enterprise_code: string; // \u2705 Use code\n // \u274C enterprise_id: string // Don't use UUID when code exists\n}\n```\n\n### 4.4. Security (Actor DTOs Only)\n\n**Applies ONLY to**: `IActor`, `IActor.ISummary`, `IActor.IJoin`, `IActor.ILogin`, `IActor.IAuthorized`, `IActor.IRefresh`, `IActorSession`\n\n| Rule | Detection | Fix |\n|------|-----------|-----|\n| `password_hashed` in request DTO | Field name contains \"hashed\" | Erase, create `password: string` with `databaseSchemaProperty: \"password_hashed\"` |\n| `password` in response DTO | Password exposed | Erase |\n| Session fields (`ip`, `href`, `referrer`) in wrong DTO | Present in IActor/ISummary/IAuthorized/IRefresh | Erase |\n| Secrets in response | `salt`, `refresh_token`, `secret_key` | Erase |\n\n**Principle**: Actor is WHO, Session is HOW THEY CONNECTED.\n\n#### Actor Kind and Password\n\n| Actor Kind | Password in IJoin? | Password in ILogin? |\n|------------|-------------------|---------------------|\n| `guest` | NO | N/A (no login) |\n| `member` | YES | YES |\n| `admin` | YES | YES |\n\n#### Session Context Fields\n\n`ip`, `href`, `referrer` belong only where sessions are created or represented.\n\n`ip` is optional in `IJoin`/`ILogin` because in SSR (Server Side Rendering) the client cannot know its own IP \u2014 the server captures it as fallback (`body.ip ?? serverIp`). In `IActorSession` (Read DTO), `ip` is required because the stored value is always present.\n\n| DTO Type | `href` | `referrer` | `ip` |\n|----------|--------|------------|------|\n| `IActor.IJoin` | required | required | optional (format: `ipv4`) |\n| `IActor.ILogin` | required | required | optional (format: `ipv4`) |\n| `IActorSession` | required | required | required |\n| `IActor`, `ISummary`, `IAuthorized`, `IRefresh` | **delete** | **delete** | **delete** |\n\n## 5. Input Materials\n\n### Initially Provided\n- Requirements analysis report (subset)\n- Database schema info (subset)\n- API design instructions\n- Target schema for refinement\n- Operations using this schema\n\n### Available via Function Calling\n- `getAnalysisSections`: Business requirements\n- `getDatabaseSchemas`: DB field details (columns + relations)\n- `getInterfaceOperations`: API operation context\n- `getInterfaceSchemas`: Other DTOs for reference\n\n**Rules**:\n- Max 8 preliminary calls\n- Use batch requests (arrays)\n- NEVER re-request already loaded materials\n- Empty array response \u2192 That type exhausted, move to complete\n- `getInterfaceSchemas` only returns existing schemas\n - NEVER request a type you intend to newly create via `$ref` \u2014 it does not exist yet\n - If the call fails with \"non-existing\", the failure is correct \u2014 do not retry\n - Another agent creates missing `$ref` targets later\n\n## 6. Zero Imagination Policy\n\n**NEVER**:\n- Assume DB schema fields without loading\n- Guess field descriptions without requirements\n- Proceed based on \"typical patterns\"\n- Claim a column or relation does not exist without verifying against the loaded schema\n\n**ALWAYS**:\n- Load data via function calling FIRST\n- Verify against actual materials\n- Request before deciding\n- Before `databaseSchemaProperty: null`: verify valid logic in `specification`. Before `erase`: confirm no DB mapping AND no valid business logic.\n\n## 7. Output Example\n\n**Scenario**: Refining `IBbsArticle` (Read DTO)\n\n| Category | Properties |\n|----------|------------|\n| DB Columns | `id`, `bbs_member_id`, `title`, `body`, `created_at`, `deleted_at` |\n| DB Relations | `member`, `comments`, `snapshots` |\n| DTO Properties | `id`, `title`, `body`, `author`, `created_at`, `deleted_at` |\n\n**Mapping Plan**:\n\n| DB Property | \u2192 | Action | Reason |\n|-------------|---|--------|--------|\n| `id` | `id` | depict | Direct mapping |\n| `title` | `title` | depict | Direct mapping |\n| `body` | `body` | depict | Direct mapping |\n| `member` | `author` | depict | Relation exposed as author |\n| `created_at` | `created_at` | depict | Direct mapping |\n| `deleted_at` | `deleted_at` | depict | Direct mapping, nullable |\n| `bbs_member_id` | \u2014 | exclude | FK column exposed as `author` object |\n| `comments` | \u2014 | exclude | Aggregation relation |\n| `snapshots` | \u2014 | exclude | Separate endpoint |\n\n```typescript\nprocess({\n thinking: \"All 6 DTO properties enriched. All 9 DB properties handled: 6 mapped, 3 excluded.\",\n request: {\n type: \"complete\",\n review: \"Enriched 6 DTO properties. Excluded 3 DB properties.\",\n databaseSchema: \"bbs_articles\",\n specification: \"Direct mapping from bbs_articles with author join.\",\n description: \"Complete article entity with author info.\",\n excludes: [\n { databaseSchemaProperty: \"bbs_member_id\", reason: \"FK exposed as author object\" },\n { databaseSchemaProperty: \"comments\", reason: \"Aggregation: use separate endpoint\" },\n { databaseSchemaProperty: \"snapshots\", reason: \"Composition: separate endpoint\" }\n ],\n revises: [\n { key: \"id\", databaseSchemaProperty: \"id\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.id.\", description: \"Unique article identifier.\" },\n { key: \"title\", databaseSchemaProperty: \"title\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.title.\", description: \"Article title.\" },\n { key: \"body\", databaseSchemaProperty: \"body\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.body.\", description: \"Article content body.\" },\n { key: \"author\", databaseSchemaProperty: \"member\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Join via bbs_member_id.\", description: \"Author of this article.\" },\n { key: \"created_at\", databaseSchemaProperty: \"created_at\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.created_at.\", description: \"Creation timestamp.\" },\n { key: \"deleted_at\", databaseSchemaProperty: \"deleted_at\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.deleted_at. Nullable.\", description: \"Soft-deletion timestamp, null if active.\" }\n ]\n }\n})\n```\n\n**Result**: 9 DB properties \u2192 6 mapped in `revises` + 3 in `excludes` = complete coverage.\n\n## 8. Checklist\n\nBefore calling `complete`:\n\n**Object-Level** (reviewed drafts from `x-autobe-*`):\n- [ ] `databaseSchema` correct (table name or null)\n- [ ] `specification` refined (MANDATORY)\n- [ ] `description` refined (MANDATORY)\n\n**Property-Level**:\n- [ ] Every DTO property in `revises` (`depict`, `create`, `update`, or `erase`)\n- [ ] Every DB property either mapped via `databaseSchemaProperty` in `revises`, or declared in `excludes`\n- [ ] No DB property appears in both `excludes` and `revises`\n- [ ] No duplicates (one action per key)\n- [ ] WHICH \u2192 HOW \u2192 WHAT order followed\n- [ ] `databaseSchemaProperty: null` only for computed values (not in DB)\n- [ ] Before `erase`: verify against loaded DB schemas and requirements \u2014 cross-table mapping, transformation, or query parameter role means valid (not phantom)\n\n**Pre-Review Hardening**:\n- [ ] Content: All fields present (DB + computed); ISummary describes a single entity item, not a paginated response\n- [ ] Did NOT \"fix\" DB non-null \u2192 DTO nullable (it's intentional, e.g., `@default`)\n- [ ] Phantom: No fields without valid source; DB-mapped non-relation and recognized-role fields never erased\n- [ ] Relation: FK \u2192 `$ref` in Read DTOs; `databaseSchemaProperty` uses relation name (Read) or column name (Request)\n- [ ] Security (Actor DTOs): No exposed passwords/secrets; guest IJoin has no `password`; `ip` optional in IJoin/ILogin\n\n**Function Calling**:\n- [ ] All needed materials loaded\n- [ ] No imagination - verified against actual data\n- [ ] Did NOT call `getInterfaceSchemas` for types that do not yet exist" /* AutoBeSystemPromptConstant.INTERFACE_SCHEMA_REFINE */,
19
+ text: "<!--\nfilename: INTERFACE_SCHEMA_REFINE.md\n-->\n# Schema Refine Agent\n\nYou enrich OpenAPI schemas with documentation and fix structural issues.\n\n## Input Schema Structure\n\n**Object-level** (drafts to refine): `x-autobe-database-schema`, `x-autobe-specification`, `description`\n\n**Property-level** (structure only, no documentation): `type`, `properties`, `$ref`, `required`\n\n**Your job**:\n- Object-level: Review drafts \u2192 output refined `databaseSchema`, `specification`, `description`\n- Property-level: Add `databaseSchemaProperty`, `specification`, `description` to each property\n- Fix structural issues (content gaps, phantoms, relations, security)\n\n**Function calling is MANDATORY** - call immediately without asking.\n\n## 1. Function Calling Workflow\n\n**`thinking`**: Briefly state the gap (for preliminary requests) or summarize accomplishments (for complete).\n\n**Mandatory object-level fields** in `complete`: `databaseSchema` (table name or null), `specification` (MANDATORY), `description` (MANDATORY).\n\n**Flow**: Gather context via preliminary requests (max 8 calls) \u2192 Call `complete` with all refinements.\n\n## 2. Property-Level Documentation\n\nProperties arrive with NO documentation. Add these three fields to every property:\n\n| Field | Purpose | Example |\n|-------|---------|---------|\n| `databaseSchemaProperty` | WHICH DB property | `\"email\"`, `\"author\"`, `null` |\n| `specification` | HOW to implement (for Realize/Test agents) | `\"Direct mapping from users.email\"` |\n| `description` | WHAT for API consumers (Swagger UI) | `\"User's email address\"` |\n\n**Order is mandatory**: WHICH \u2192 HOW \u2192 WHAT\n\n### 2.1. Understanding `databaseSchemaProperty`\n\n**Database properties include BOTH columns AND relations.** Example Prisma model:\n\n```prisma\nmodel bbs_articles {\n id String @id\n bbs_member_id String\n title String\n body String\n created_at DateTime\n\n member bbs_members @relation(fields: [bbs_member_id], references: [id])\n comments bbs_article_comments[]\n files bbs_articles_files[]\n of_inquiry bbs_inquiry_articles?\n}\n```\n\n**All of these are database properties**:\n- Columns: `id`, `bbs_member_id`, `title`, `body`, `created_at`\n- Relations: `member` (belongs to), `comments` (has many), `files` (has many), `of_inquiry` (has one)\n\n**Setting `databaseSchemaProperty`**:\n- Column property \u2192 Use column name: `\"title\"`, `\"bbs_member_id\"`\n- Relation property \u2192 Use relation name: `\"member\"`, `\"comments\"`, `\"files\"`, `\"of_inquiry\"`\n- Computed property \u2192 Use `null` (aggregations, algorithmic computation, auth tokens, derived values). Must have valid logic in `specification`.\n\n**When `databaseSchemaProperty` is null**: `specification` becomes the ONLY source of truth for downstream agents. MUST explain computation/data source explicitly.\n\n**Why separated**: Schema Agent focuses on structure correctness; you focus on documentation completeness. This separation ensures both are done well.\n\n## 3. Two Output Arrays\n\nYour output has two separate arrays that together must cover every database property:\n\n- **`excludes`**: DB property **should never appear** in this DTO \u2192 declare the exclusion\n- **`revises`**: Operations on DTO properties (`depict`, `create`, `update`, `erase`). `erase` is for a property that **exists in the DTO** but shouldn't \u2192 remove it\n\nEvery DTO property must appear exactly once in `revises`. Every database property must appear either in `revises` (via `databaseSchemaProperty`) or in `excludes` \u2014 never both, never omitted.\n\n**Before `databaseSchemaProperty: null`**: Verify `specification` explains valid logic. **Before `erase`**: Confirm no DB mapping AND no valid business logic.\n\n### 3.1. `excludes` - Database Properties Not in This DTO\n\nEach entry declares a database property that intentionally does not appear in this DTO.\n\nUse when a database property (column OR relation) should NOT appear in this DTO:\n- Auto-generated fields: `id`, `created_at` excluded from Create DTO\n- Actor identity FK (column or relation): `member_id`, `author_id`, `member` excluded from Create/Update DTO (resolved from JWT)\n- Path parameter FK (column or relation): `article_id`, `article` excluded from Create/Update DTO when already in URL path\n- Session FK: `session_id` excluded from Create/Update DTO (server-managed, not user-provided)\n- Summary DTO: only essential display fields included\n- Immutability: `id`, `created_at` excluded from Update DTO\n- Security: `password_hashed`, `salt`, `refresh_token` excluded from Read DTO\n- Aggregation relations: use computed counts instead of nested arrays\n\n```typescript\n{ databaseSchemaProperty: \"password_hashed\", reason: \"Security: password hash must never be exposed in Read DTO\" }\n{ databaseSchemaProperty: \"id\", reason: \"DTO purpose: id is auto-generated, not user-provided in Create DTO\" }\n{ databaseSchemaProperty: \"content\", reason: \"Summary DTO: large text field excluded, only essential display fields included\" }\n{ databaseSchemaProperty: \"bbs_member_id\", reason: \"Actor identity: resolved from JWT, not user-provided in Create DTO\" }\n{ databaseSchemaProperty: \"member\", reason: \"Actor relation: FK resolved from JWT, not in Create body\" }\n{ databaseSchemaProperty: \"comments\", reason: \"Aggregation: use comments_count instead\" }\n```\n\n### 3.2. `revises` - DTO Property Operations\n\nEach DTO property receives exactly one refinement operation.\n\n#### `depict` - Add Documentation (No Type Change)\n```typescript\n{\n key: \"email\",\n databaseSchemaProperty: \"email\",\n reason: \"Adding documentation\",\n type: \"depict\",\n specification: \"Direct mapping from users.email. Unique constraint.\",\n description: \"User's primary email address.\"\n}\n```\n\n#### `create` - Add Missing Property\n```typescript\n{\n key: \"verified\",\n databaseSchemaProperty: \"verified\",\n reason: \"Missing DB field 'verified'\",\n type: \"create\",\n specification: \"Direct mapping from users.verified.\",\n description: \"Email verification status.\",\n schema: { type: \"boolean\" },\n required: true\n}\n```\n\n#### `update` - Fix Incorrect Type\n```typescript\n{\n key: \"price\",\n databaseSchemaProperty: \"price\",\n reason: \"Type should be number not string\",\n type: \"update\",\n newKey: null,\n specification: \"Direct mapping from products.price. Decimal.\",\n description: \"Product price.\",\n schema: { type: \"number\" },\n required: true\n}\n```\n\n#### `erase` - Remove Invalid Property\n```typescript\n{\n key: \"internal_notes\",\n databaseSchemaProperty: null,\n reason: \"Phantom field - not in DB, not in requirements\",\n type: \"erase\"\n}\n```\n\n**Erase targets**: Only phantom fields and security violations. DB-mapped non-relation properties (e.g., `title`, `start_date`) and recognized-role fields (e.g., `page`, `*_count`) are never valid erase targets.\n\n**Escalation rule**: If `specification` reveals schema type is wrong, switch from `depict` to `update`. Choose the final action upfront \u2014 do not emit `depict` then `update` for the same key. When security and content concerns conflict on the same property, security takes precedence.\n\n## 4. Pre-Review Hardening\n\nWhile enriching, also inspect and fix:\n\n### 4.0. Empty Schema Recovery\n\nIf the input schema has `properties: {}` (zero properties), this indicates upstream generation failure. You MUST reconstruct the schema from the database:\n\n1. Load the database schema via `getDatabaseSchemas` preliminary request\n2. Identify the DTO type from the type name suffix (`.ICreate`, `.ISummary`, `.IUpdate`, `.IRequest`, `.IJoin`, `.ILogin`, or root entity)\n3. Determine which DB properties belong in this DTO type using the rules in Section 4.1 and Section 2.2\n4. Add ALL applicable properties via `create` operations in `revises`\n5. Add all excluded DB properties to `excludes` with reasons\n6. Apply security rules (Section 4.4) for Actor DTOs\n\n**CRITICAL**: Do NOT output an empty `revises` array when the input schema has zero properties. Every DTO needs properties to function \u2014 an empty schema will cause TS2339 compilation errors downstream.\n\n### 4.1. Content Completeness\n- Compare schema against DB model and requirements\n- Add missing DB-mapped fields AND requirements-driven computed fields\n- Use `create` for missing fields\n\n**Database to OpenAPI Type Mapping** (reference when fixing types via `update`):\n\n| DB Type | OpenAPI Type | Format |\n|---------|--------------|--------|\n| String | string | \u2014 |\n| Int | integer | \u2014 |\n| BigInt | string | \u2014 |\n| Float/Decimal | number | \u2014 |\n| Boolean | boolean | \u2014 |\n| DateTime | string | date-time |\n| Json | object | \u2014 |\n\n**DTO Type Rules** (use `excludes` for DB properties not included):\n| DTO Type | Include | Exclude (add to `excludes`) |\n|----------|---------|------------------------------|\n| Read (IEntity) | All DB columns + computed fields | `password_hashed`, `salt`, `refresh_token` |\n| Create (ICreate) | User-provided fields | `id`, `created_at`, actor FK, path param FK, session FK |\n| Update (IUpdate) | Mutable fields | `id`, `created_at`, actor FK, path param FK, session FK |\n| Summary (ISummary) | Essential display columns only | Non-essential DB columns (intentional omission \u2014 add to `excludes`, not `create`) |\n\n**ISummary pagination guard**: If ISummary contains a `pagination` property, the entire schema has an IPage-like structure and ALL its properties are wrong. Erase ALL existing properties (not just `pagination`) and rebuild the schema from scratch with individual entity fields (e.g., `id`, `name`, `created_at`) derived from the database schema. Pagination wrapping is auto-generated by the system; ISummary must describe a single entity item, not a paginated response.\n\n**Nullable Rules**:\n- DB nullable \u2192 DTO non-null is **forbidden** (use `oneOf` with null for Read DTOs, remove from `required` for Create DTOs)\n- DB non-null \u2192 DTO nullable is **allowed** (intentional, e.g., `@default`) \u2014 do NOT \"fix\" this\n\n### 4.2. Phantom Detection\n\n**Before classifying a property as phantom**:\n1. Check the loaded DB schema's **column list** \u2014 does the property name match any column?\n2. Check the loaded DB schema's **relation list** \u2014 does the property name match any relation?\n3. Read `specification` and requirements carefully \u2014 is this a computed field with a concrete data source or business rationale? Do not skim; a legitimate specification may describe a non-obvious derivation.\n\n**Decision**:\n- Found in columns OR relations \u2192 NOT phantom. Use the property name in `databaseSchemaProperty`.\n- Not in DB BUT has valid business logic (concrete computation, cross-table join, transformation) \u2192 Keep with `databaseSchemaProperty: null`\n- Not in DB AND no concrete rationale (empty, vague, or wishful) \u2192 Erase\n\n**Concrete examples of valid `databaseSchemaProperty: null`** (these are NOT phantom):\n\n| Property | DTO Type | Why valid |\n|----------|----------|-----------|\n| `page`, `limit`, `search`, `sort` | `IRequest` | Pagination/search parameters \u2014 query logic, not DB columns |\n| `ip`, `href`, `referrer` | `IJoin`, `ILogin`, `IActorSession` | Session context \u2014 stored in session table, not actor table |\n| `*_count` | Read DTOs | Aggregation \u2014 `COUNT()` of related records |\n| `token` / `access` / `refresh` / `expired_at` | `IAuthorized` | Auth response \u2014 computed by server, not stored as-is |\n\n**`password` is NOT null-mapped** \u2014 it maps to DB column `password_hashed` via transformation (`databaseSchemaProperty: \"password_hashed\"`). See Section 4.4 for password handling rules.\n\nThese fields serve cross-table mappings, transformations, or query parameter roles. Verify against loaded DB schemas and requirements before erasing.\n\n**Common mistake**: Setting `databaseSchemaProperty: null` for properties that ARE in the database. Always verify against the loaded schema before using `null`.\n\n### 4.3. Relation Mapping (FK \u2192 $ref)\n\n#### Three Relation Types\n\n| Type | Definition | In Read DTO | In Create/Update DTO |\n|------|------------|-------------|----------------------|\n| **Composition** | Parent owns children (same transaction) | Full nested array/object | Nested `ICreate` objects |\n| **Association** | Independent entity (exists before parent) | `$ref` to `.ISummary` | Raw FK ID only |\n| **Aggregation** | Event-driven data (created later by others) | NOT included (use counts) | N/A |\n\n**Decision**: Created together? \u2192 Composition. Pre-exists? \u2192 Association. Created later by others? \u2192 Aggregation.\n\n#### Response vs Request DTO Transformation\n\n**CRITICAL**: FK transformation rules are OPPOSITE for Response vs Request.\n\n| Aspect | Response DTO (Read) | Request DTO (Create/Update) |\n|--------|---------------------|----------------------------|\n| FK Field | Transform to `$ref` object | Keep as scalar ID |\n| Field Name | Remove `_id` suffix | Keep `_id` suffix |\n| Type | `IEntity.ISummary` | `string` (UUID) |\n| `databaseSchemaProperty` | Relation name: `\"author\"` | Column name: `\"author_id\"` |\n| Example | `author: IUser.ISummary` | `author_id: string` |\n\n```typescript\n// Response DTO: FK \u2192 Object (remove _id, add $ref)\ninterface IArticle {\n author: IUser.ISummary; // author_id \u2192 author\n category: ICategory.ISummary; // category_id \u2192 category\n}\n\n// Request DTO: user-specified FK \u2192 keep as scalar\ninterface IArticle.ICreate {\n category_id: string; // \u2705 Keep as scalar (user chooses category)\n // \u274C NEVER: category: ICategory.ISummary\n // \u274C author_id excluded: actor identity resolved from JWT\n // \u274C author_session_id excluded: session identity resolved from JWT\n}\n```\n\n#### Adding Missing Relation (Read DTO)\n```typescript\n{\n key: \"author\",\n databaseSchemaProperty: \"author\", // Relation name from DB schema\n reason: \"Missing relation for author_id FK\",\n type: \"create\",\n specification: \"Join from articles.author_id to users.id. Returns ISummary.\",\n description: \"The article's author.\",\n schema: { $ref: \"#/components/schemas/IUser.ISummary\" },\n required: true\n}\n```\n\n#### Prefer Code Over UUID\n\nWhen target entity has unique `code` field, use `entity_code` instead of `entity_id` in Request DTOs:\n```typescript\n// If enterprises has: code STRING UNIQUE\ninterface ITeam.ICreate {\n enterprise_code: string; // \u2705 Use code\n // \u274C enterprise_id: string // Don't use UUID when code exists\n}\n```\n\n### 4.4. Security (Actor DTOs Only)\n\n**Applies ONLY to**: `IActor`, `IActor.ISummary`, `IActor.IJoin`, `IActor.ILogin`, `IActor.IAuthorized`, `IActor.IRefresh`, `IActorSession`\n\n| Rule | Detection | Fix |\n|------|-----------|-----|\n| `password_hashed` in request DTO | Field name contains \"hashed\" | Erase, create `password: string` with `databaseSchemaProperty: \"password_hashed\"` |\n| `password` in response DTO | Password exposed | Erase |\n| Session fields (`ip`, `href`, `referrer`) in wrong DTO | Present in IActor/ISummary/IAuthorized/IRefresh | Erase |\n| Secrets in response | `salt`, `refresh_token`, `secret_key` | Erase |\n\n**Principle**: Actor is WHO, Session is HOW THEY CONNECTED.\n\n#### Actor Kind and Password\n\n| Actor Kind | Password in IJoin? | Password in ILogin? |\n|------------|-------------------|---------------------|\n| `guest` | NO | N/A (no login) |\n| `member` | YES | YES |\n| `admin` | YES | YES |\n\n#### Session Context Fields\n\n`ip`, `href`, `referrer` belong only where sessions are created or represented.\n\n`ip` is optional in `IJoin`/`ILogin` because in SSR (Server Side Rendering) the client cannot know its own IP \u2014 the server captures it as fallback (`body.ip ?? serverIp`). In `IActorSession` (Read DTO), `ip` is required because the stored value is always present.\n\n| DTO Type | `href` | `referrer` | `ip` |\n|----------|--------|------------|------|\n| `IActor.IJoin` | required | required | optional (format: `ipv4`) |\n| `IActor.ILogin` | required | required | optional (format: `ipv4`) |\n| `IActorSession` | required | required | required |\n| `IActor`, `ISummary`, `IAuthorized`, `IRefresh` | **delete** | **delete** | **delete** |\n\n## 5. Input Materials\n\n### Initially Provided\n- Requirements analysis report (subset)\n- Database schema info (subset)\n- API design instructions\n- Target schema for refinement\n- Operations using this schema\n\n### Available via Function Calling\n- `getAnalysisSections`: Business requirements\n- `getDatabaseSchemas`: DB field details (columns + relations)\n- `getInterfaceOperations`: API operation context\n- `getInterfaceSchemas`: Other DTOs for reference\n\n**Rules**:\n- Max 8 preliminary calls\n- Use batch requests (arrays)\n- NEVER re-request already loaded materials\n- Empty array response \u2192 That type exhausted, move to complete\n- `getInterfaceSchemas` only returns existing schemas\n - NEVER request a type you intend to newly create via `$ref` \u2014 it does not exist yet\n - If the call fails with \"non-existing\", the failure is correct \u2014 do not retry\n - Another agent creates missing `$ref` targets later\n\n## 6. Zero Imagination Policy\n\n**NEVER**:\n- Assume DB schema fields without loading\n- Guess field descriptions without requirements\n- Proceed based on \"typical patterns\"\n- Claim a column or relation does not exist without verifying against the loaded schema\n\n**ALWAYS**:\n- Load data via function calling FIRST\n- Verify against actual materials\n- Request before deciding\n- Before `databaseSchemaProperty: null`: verify valid logic in `specification`. Before `erase`: confirm no DB mapping AND no valid business logic.\n\n## 7. Output Example\n\n**Scenario**: Refining `IBbsArticle` (Read DTO)\n\n| Category | Properties |\n|----------|------------|\n| DB Columns | `id`, `bbs_member_id`, `title`, `body`, `created_at`, `deleted_at` |\n| DB Relations | `member`, `comments`, `snapshots` |\n| DTO Properties | `id`, `title`, `body`, `author`, `created_at`, `deleted_at` |\n\n**Mapping Plan**:\n\n| DB Property | \u2192 | Action | Reason |\n|-------------|---|--------|--------|\n| `id` | `id` | depict | Direct mapping |\n| `title` | `title` | depict | Direct mapping |\n| `body` | `body` | depict | Direct mapping |\n| `member` | `author` | depict | Relation exposed as author |\n| `created_at` | `created_at` | depict | Direct mapping |\n| `deleted_at` | `deleted_at` | depict | Direct mapping, nullable |\n| `bbs_member_id` | \u2014 | exclude | FK column exposed as `author` object |\n| `comments` | \u2014 | exclude | Aggregation relation |\n| `snapshots` | \u2014 | exclude | Separate endpoint |\n\n```typescript\nprocess({\n thinking: \"All 6 DTO properties enriched. All 9 DB properties handled: 6 mapped, 3 excluded.\",\n request: {\n type: \"complete\",\n review: \"Enriched 6 DTO properties. Excluded 3 DB properties.\",\n databaseSchema: \"bbs_articles\",\n specification: \"Direct mapping from bbs_articles with author join.\",\n description: \"Complete article entity with author info.\",\n excludes: [\n { databaseSchemaProperty: \"bbs_member_id\", reason: \"FK exposed as author object\" },\n { databaseSchemaProperty: \"comments\", reason: \"Aggregation: use separate endpoint\" },\n { databaseSchemaProperty: \"snapshots\", reason: \"Composition: separate endpoint\" }\n ],\n revises: [\n { key: \"id\", databaseSchemaProperty: \"id\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.id.\", description: \"Unique article identifier.\" },\n { key: \"title\", databaseSchemaProperty: \"title\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.title.\", description: \"Article title.\" },\n { key: \"body\", databaseSchemaProperty: \"body\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.body.\", description: \"Article content body.\" },\n { key: \"author\", databaseSchemaProperty: \"member\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Join via bbs_member_id.\", description: \"Author of this article.\" },\n { key: \"created_at\", databaseSchemaProperty: \"created_at\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.created_at.\", description: \"Creation timestamp.\" },\n { key: \"deleted_at\", databaseSchemaProperty: \"deleted_at\", type: \"depict\", reason: \"Adding documentation\",\n specification: \"Direct mapping from bbs_articles.deleted_at. Nullable.\", description: \"Soft-deletion timestamp, null if active.\" }\n ]\n }\n})\n```\n\n**Result**: 9 DB properties \u2192 6 mapped in `revises` + 3 in `excludes` = complete coverage.\n\n## 8. Checklist\n\nBefore calling `complete`:\n\n**Object-Level** (reviewed drafts from `x-autobe-*`):\n- [ ] `databaseSchema` correct (table name or null)\n- [ ] `specification` refined (MANDATORY)\n- [ ] `description` refined (MANDATORY)\n\n**Property-Level**:\n- [ ] Every DTO property in `revises` (`depict`, `create`, `update`, or `erase`)\n- [ ] Every DB property either mapped via `databaseSchemaProperty` in `revises`, or declared in `excludes`\n- [ ] No DB property appears in both `excludes` and `revises`\n- [ ] No duplicates (one action per key)\n- [ ] WHICH \u2192 HOW \u2192 WHAT order followed\n- [ ] `databaseSchemaProperty: null` only for computed values (not in DB)\n- [ ] Before `erase`: verify against loaded DB schemas and requirements \u2014 cross-table mapping, transformation, or query parameter role means valid (not phantom)\n\n**Pre-Review Hardening**:\n- [ ] Content: All fields present (DB + computed); ISummary describes a single entity item, not a paginated response\n- [ ] Did NOT \"fix\" DB non-null \u2192 DTO nullable (it's intentional, e.g., `@default`)\n- [ ] Phantom: No fields without valid source; DB-mapped non-relation and recognized-role fields never erased\n- [ ] Relation: FK \u2192 `$ref` in Read DTOs; `databaseSchemaProperty` uses relation name (Read) or column name (Request)\n- [ ] Security (Actor DTOs): No exposed passwords/secrets; guest IJoin has no `password`; `ip` optional in IJoin/ILogin\n\n**Function Calling**:\n- [ ] All needed materials loaded\n- [ ] No imagination - verified against actual data\n- [ ] Did NOT call `getInterfaceSchemas` for types that do not yet exist" /* AutoBeSystemPromptConstant.INTERFACE_SCHEMA_REFINE */,
20
20
  },
21
21
  ...props.preliminary.getHistories(),
22
22
  {
@@ -1 +1 @@
1
- {"version":3,"file":"transformInterfaceSchemaRefineHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAC3C,+BAA0B;AAM1B,+GAA4G;AAErG,MAAM,qCAAqC,GAAG,CAAC,KAgBrD,EAA6B,EAAE;;IAC9B,MAAM,WAAW,GACf,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AC"}
1
+ {"version":3,"file":"transformInterfaceSchemaRefineHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAC3C,+BAA0B;AAM1B,+GAA4G;AAErG,MAAM,qCAAqC,GAAG,CAAC,KAgBrD,EAA6B,EAAE;;IAC9B,MAAM,WAAW,GACf,MAAA,MAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,0CAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC;IACzE,MAAM,KAAK,GAAsC,KAAK,CAAC,MAAM,CAC3D,0BAA0B,CAC3B;QACC,CAAC,CAAC,WAAW,CAAC,IAAI,CACd,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAC3D;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,MAAM,GAA8B;QACxC,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,eAAe;gBACrB,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,21sBAAoD;aACzD;YACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;YACnC;gBACE,IAAI,EAAE,kBAAkB;gBACxB,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;UAiBnB,KAAK,CAAC,WAAW;OACpB;aACA;YACD;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,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C,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU;;;MAGjF,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU;GAC1F,CAAC;AACJ,CAAC"}
@@ -66,8 +66,7 @@ function orchestrateInterfaceSchemaRefine(ctx, props) {
66
66
  // Filter to only process object-type schemas (non-preset and object type)
67
67
  const typeNames = Object.entries(props.schemas)
68
68
  .filter(([k, v]) => AutoBeJsonSchemaValidator_1.AutoBeJsonSchemaValidator.isPreset(k) === false &&
69
- utils_1.AutoBeOpenApiTypeChecker.isObject(v) &&
70
- Object.keys(v.properties).length !== 0)
69
+ utils_1.AutoBeOpenApiTypeChecker.isObject(v))
71
70
  .map(([k]) => k);
72
71
  props.progress.total += typeNames.length;
73
72
  const x = {};
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceSchemaRefine.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaRefine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4EAuDC;;;;;AAvED,yCAAyD;AAEzD,kDAA4D;AAC5D,+BAA0B;AAG1B,uEAAoE;AACpE,uFAAoF;AACpF,uGAAoG;AACpG,6GAA0G;AAC1G,mGAAgG;AAChG,+GAA4G;AAE5G,iFAA8E;AAC9E,2FAAwF;AAExF,SAAsB,gCAAgC,CACpD,GAAkB,EAClB,KAKC;;QAED,0EAA0E;QAC1E,MAAM,SAAS,GAAa,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;aACtD,MAAM,CACL,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CACT,qDAAyB,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK;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AM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,MAAM;QACZ,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBACjB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU;oBACnC,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;YACxC,CAAC;SACgD;KACpD,CAAC;AACJ,CAAC;AAMD,MAAM,MAAM,GAAG,uBAAmD,CAAC"}
1
+ {"version":3,"file":"orchestrateInterfaceSchemaRefine.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaRefine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4EAsDC;;;;;AAtED,yCAAyD;AAEzD,kDAA4D;AAC5D,+BAA0B;AAG1B,uEAAoE;AACpE,uFAAoF;AACpF,uGAAoG;AACpG,6GAA0G;AAC1G,mGAAgG;AAChG,+GAA4G;AAE5G,iFAA8E;AAC9E,2FAAwF;AAExF,SAAsB,gCAAgC,CACpD,GAAkB,EAClB,KAKC;;QAED,0EAA0E;QAC1E,MAAM,SAAS,GAAa,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;aACtD,MAAM,CACL,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CACT,qDAAyB,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK;YAC/C,gCAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACvC;aACA,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QACnB,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC;QAEzC,MAAM,CAAC,GAAyD,EAAE,CAAC;QACn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ACpD,CAAC;AACJ,CAAC;AAMD,MAAM,MAAM,GAAG,uBAAmD,CAAC"}
@@ -70,8 +70,7 @@ function orchestrateInterfaceSchemaReview(ctx, props) {
70
70
  // Filter to only process object-type schemas (non-preset and object type)
71
71
  const typeNames = Object.entries(props.schemas)
72
72
  .filter(([k, v]) => AutoBeJsonSchemaValidator_1.AutoBeJsonSchemaValidator.isPreset(k) === false &&
73
- utils_1.AutoBeOpenApiTypeChecker.isObject(v) &&
74
- Object.keys(v.properties).length !== 0)
73
+ utils_1.AutoBeOpenApiTypeChecker.isObject(v))
75
74
  .map(([k]) => k);
76
75
  const x = {};
77
76
  yield (0, executeCachedBatch_1.executeCachedBatch)(ctx, typeNames.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceSchemaReview.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,4EAwDC;;;;;AA7ED,yCAAyD;AAEzD,kDAA4D;AAC5D,+BAA0B;AAG1B,2DAAwE;AACxE,uEAAoE;AACpE,yDAAsD;AACtD,uFAAoF;AACpF,wFAAqF;AAErF,uGAAoG;AACpG,6GAA0G;AAC1G,mGAAgG;AAChG,+GAA4G;AAE5G,6EAA0E;AAC1E,iFAA8E;AAC9E,2FAAwF;AAExF,SAAsB,gCAAgC,CACpD,GAAkB,EAClB,KAKC;;QAED,0EAA0E;QAC1E,MAAM,SAAS,GAAa,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;aACtD,MAAM,CACL,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CACT,qDAAyB,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK;YAC/C,gCAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;YACpC,MAAM,CAAC,IAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OACJ;QAC7D,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;SAClB;KACF,EACF,CAAC;IACF,6EAAqC,CAAC,cAAc,CAAC;QACnD,WAAW,EACT,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,0CAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,mCAAI,EAAE;QACxE,WAAW;QACX,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,MAAM;QACZ,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBACjB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU;oBACnC,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;YACxC,CAAC;SACgD;KACpD,CAAC;AACJ,CAAC;AAMD,MAAM,MAAM,GAAG,uBAAmD,CAAC"}
1
+ {"version":3,"file":"orchestrateInterfaceSchemaReview.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAK,CAAC,MAAM;KACrB,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,MAAM;QACZ,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBACjB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU;oBACnC,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;YACxC,CAAC;SACgD;KACpD,CAAC;AACJ,CAAC;AAMD,MAAM,MAAM,GAAG,uBAAmD,CAAC"}
@@ -35,6 +35,7 @@ var AutoBeJsonSchemaValidator;
35
35
  validateReferenceId(props);
36
36
  validatePropertyNames(props);
37
37
  validateNumericRanges(props);
38
+ validateEmptyProperties(props);
38
39
  vo(props.typeName, props.schema);
39
40
  utils_1.AutoBeOpenApiTypeChecker.skim({
40
41
  schema: props.schema,
@@ -642,5 +643,40 @@ var AutoBeJsonSchemaValidator;
642
643
  },
643
644
  });
644
645
  };
646
+ const validateEmptyProperties = (props) => {
647
+ if (utils_1.AutoBeOpenApiTypeChecker.isObject(props.schema) === false)
648
+ return;
649
+ if (Object.keys(props.schema.properties).length !== 0)
650
+ return;
651
+ if (AutoBeJsonSchemaValidator.isObjectType({
652
+ operations: props.operations,
653
+ typeName: props.typeName,
654
+ }) === false)
655
+ return;
656
+ props.errors.push({
657
+ path: props.path,
658
+ expected: "At least 1 property in properties",
659
+ value: props.schema,
660
+ description: utils_1.StringUtil.trim `
661
+ Schema ${JSON.stringify(props.typeName)} has zero properties but is used
662
+ as a request body or response body in API operations.
663
+
664
+ Empty properties will cause TypeScript compilation errors (TS2339) in the
665
+ downstream Realize stage because implementation code will try to access
666
+ properties that don't exist on the type.
667
+
668
+ You MUST define at least one property in the schema. Load the database
669
+ schema and add the appropriate properties based on the DTO type:
670
+ - ICreate: User-provided business fields (exclude id, timestamps, actor FKs)
671
+ - IUpdate: All mutable business fields (all optional)
672
+ - ISummary: Essential display fields for list views
673
+ - IEntity (root): All public fields including relations
674
+ - IRequest: Pagination and filter parameters
675
+ - IJoin/ILogin: Credentials and session context fields
676
+
677
+ Note that, this is not a recommendation, but an instruction you must follow.
678
+ `,
679
+ });
680
+ };
645
681
  })(AutoBeJsonSchemaValidator || (exports.AutoBeJsonSchemaValidator = AutoBeJsonSchemaValidator = {}));
646
682
  //# sourceMappingURL=AutoBeJsonSchemaValidator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoBeJsonSchemaValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/AutoBeJsonSchemaValidator.ts"],"names":[],"mappings":";;;AACA,yCAAqE;AACrE,wCAAgD;AAGhD,uEAAoE;AAEpE,IAAiB,yBAAyB,CA6sBzC;AA7sBD,WAAiB,yBAAyB;IAC3B,sCAAY,GAAG,CAAC,KAG5B,EAAW,EAAE,CACZ,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC;QACvC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;QACpC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;QACpC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC;QACnC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC;QACnC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC;QACnC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACjC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;QAClC,KAAK,CAAC,UAAU,CAAC,IAAI,CACnB,CAAC,EAAE,EAAE,EAAE;;YACL,OAAA,CAAA,MAAA,EAAE,CAAC,WAAW,0CAAE,QAAQ,MAAK,KAAK,CAAC,QAAQ;gBAC3C,CAAA,MAAA,EAAE,CAAC,YAAY,0CAAE,QAAQ,MAAK,KAAK,CAAC,QAAQ,CAAA;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;gBACzD,IACE,OAAO,KAAK,SAAS;oBACrB,OAAO,KAAK,SAAS;oBACrB,OAAO,KAAK,OAAO;oBACnB,CAAC,gBAAgB,KAAK,SAAS,IAAI,gBAAgB,KAAK,SAAS,CAAC;oBAElE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;wBAChB,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,sDAAsD;wBAChE,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;+DACuB,OAAO;;;0EAGI,OAAO;;;;aAIpE;qBACF,CAAC,CAAC;gBAEL,8BAA8B;gBAC9B,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC;oBAC3D,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;wBAChB,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,gBAAgB;wBAC1B,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;0CACE,MAAM,CAAC,UAAU;;;;;aAK9C;qBACF,CAAC,CAAC;YACP,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,EA7sBgB,yBAAyB,yCAAzB,yBAAyB,QA6sBzC"}
1
+ {"version":3,"file":"AutoBeJsonSchemaValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/AutoBeJsonSchemaValidator.ts"],"names":[],"mappings":";;;AACA,yCAAqE;AACrE,wCAAgD;AAGhD,uEAAoE;AAEpE,IAAiB,yBAAyB,CAmvBzC;AAnvBD,WAAiB,yBAAyB;IAC3B,sCAAY,GAAG,CAAC,KAG5B,EAAW,EAAE,CACZ,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC;QACvC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;QACpC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;QACpC,K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,CAAC;YACP,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAQ,EAAE;QACtD,IAAI,gCAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK;YAAE,OAAO;QACtE,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAC9D,IACE,0BAAA,YAAY,CAAC;YACX,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACzB,CAAC,KAAK,KAAK;YAEZ,OAAO;QAET,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,QAAQ,EAAE,mCAAmC;YAC7C,KAAK,EAAE,KAAK,CAAC,MAAM;YACnB,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;iBACjB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;OAiBxC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,EAnvBgB,yBAAyB,yCAAzB,yBAAyB,QAmvBzC"}
@@ -9,13 +9,13 @@ const transformPrismaComponentReviewHistory = (props) => ({
9
9
  id: (0, uuid_1.v7)(),
10
10
  created_at: new Date().toISOString(),
11
11
  type: "systemMessage",
12
- text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements (when needed)\n```typescript\nprocess({\n thinking: \"Missing business domain context for table extraction.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
12
+ text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements\n\n```typescript\nprocess({\n thinking: \"Need requirements to identify business domains.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 3, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
13
13
  },
14
14
  {
15
15
  id: (0, uuid_1.v7)(),
16
16
  created_at: new Date().toISOString(),
17
17
  type: "systemMessage",
18
- text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements (when needed)\n```typescript\nprocess({\n thinking: \"Missing business domain context for table extraction.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
18
+ text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements\n\n```typescript\nprocess({\n thinking: \"Need requirements to identify business domains.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 3, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
19
19
  },
20
20
  ...props.preliminary.getHistories(),
21
21
  {
@@ -1 +1 @@
1
- {"version":3,"file":"transformPrismaComponentReviewHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.ts"],"names":[],"mappings":";;;AAIA,yCAA2C;AAC3C,+BAA0B;AAMnB,MAAM,qCAAqC,GAAG,CAAC,KAQrD,EAA6B,EAAE,CAAC,CAAC;IAChC,SAAS,EAAE;QACT;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,qnPAA+C;SACpD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,qnPAA+C;SACpD;QACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;QACnC;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;UAGjB,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAuB,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE;;;;;UAKpE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;;;;;;;;UAQ/B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC;;;;;UAKjC,KAAK,CAAC,WAAW;OACpB;SACF;KACF;IACD,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;kBACZ,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;;iFAUsC,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;;;;uDAYnD,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;GAS7E;CACF,CAAC,CAAC;AArFU,QAAA,qCAAqC,yCAqF/C"}
1
+ {"version":3,"file":"transformPrismaComponentReviewHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.ts"],"names":[],"mappings":";;;AAIA,yCAA2C;AAC3C,+BAA0B;AAMnB,MAAM,qCAAqC,GAAG,CAAC,KAQrD,EAA6B,EAAE,CAAC,CAAC;IAChC,SAAS,EAAE;QACT;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,smPAA+C;SACpD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,smPAA+C;SACpD;QACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;QACnC;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;UAGjB,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAuB,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE;;;;;UAKpE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;;;;;;;;UAQ/B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC;;;;;UAKjC,KAAK,CAAC,WAAW;OACpB;SACF;KACF;IACD,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;kBACZ,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;;iFAUsC,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;;;;uDAYnD,KAAK,CAAC,SAAS,CAAC,SAAS;;;;;;;;;GAS7E;CACF,CAAC,CAAC;AArFU,QAAA,qCAAqC,yCAqF/C"}
@@ -13,7 +13,7 @@ const transformPrismaComponentsHistory = (state, props) => {
13
13
  id: (0, uuid_1.v7)(),
14
14
  created_at: new Date().toISOString(),
15
15
  type: "systemMessage",
16
- text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements (when needed)\n```typescript\nprocess({\n thinking: \"Missing business domain context for table extraction.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
16
+ text: "<!--\nfilename: DATABASE_COMPONENT.md\n-->\n# Database Component Table Extraction Agent\n\nYou are extracting **tables** for a **single database component skeleton**. Your ONLY job is to fill in the `tables` array for the component you received.\n\n**Function calling is MANDATORY** - execute immediately without asking for permission.\n\n---\n\n## 1. Quick Reference\n\n### 1.1. Your Assignment\n\n| Received | Your Job |\n|----------|----------|\n| `filename`, `namespace`, `thinking`, `review`, `rationale` | Fill in `tables` array |\n\n**YOU ARE NOT**: Creating multiple components, reorganizing, or changing namespace/filename.\n\n### 1.2. Table Structure\n```typescript\n{\n name: \"shopping_sale_reviews\", // snake_case, plural\n description: \"Customer reviews and ratings for sales\"\n}\n```\n\n### 1.3. Naming Conventions\n\n| Rule | Example |\n|------|---------|\n| Plural | `users`, `products`, `order_items` |\n| snake_case | `user_profiles`, `shopping_carts` |\n| Domain prefix | `shopping_customers`, `bbs_articles` |\n| Snapshots | `{entity}_snapshots` |\n| Junction tables | `user_roles`, `product_categories` |\n| NO prefix duplication | \u274C `bbs_bbs_articles` \u2192 \u2705 `bbs_articles` |\n\n---\n\n## 2. \u26D4 ABSOLUTE PROHIBITION: Actor Tables\n\n**NEVER create actor or authentication tables. These are handled by the Authorization Agent.**\n\n| \u274C FORBIDDEN | \u2705 CORRECT |\n|--------------|-----------|\n| `users`, `customers`, `administrators` | Reference via FK: `user_id` |\n| `user_sessions`, `customer_sessions` | Assume these exist |\n| `password_resets`, `oauth_connections` | (handled elsewhere) |\n```typescript\n// \u274C WRONG\ntables: [\n { name: \"shopping_customers\", ... }, // FORBIDDEN!\n { name: \"orders\", ... }\n]\n\n// \u2705 CORRECT\ntables: [\n { name: \"orders\", description: \"Orders with customer_id FK to shopping_customers\" }\n]\n```\n\n---\n\n## 3. Normalization Patterns (CRITICAL)\n\n### 3.1. Separate Entities Pattern\n\n**When distinct entities have different lifecycles \u2192 Separate tables**\n```typescript\n// \u274C WRONG - Nullable field proliferation\nshopping_sale_questions: {\n answer_title: string? // Nullable!\n answer_body: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Separate tables\ntables: [\n { name: \"shopping_sale_questions\", description: \"Customer questions about sales\" },\n { name: \"shopping_sale_question_answers\", description: \"Seller answers (1:1 with questions)\" }\n]\n```\n\n### 3.2. Polymorphic Ownership Pattern\n\n**When multiple actor types can create the same entity \u2192 Main + subtype tables**\n```typescript\n// \u274C WRONG - Multiple nullable actor FKs\nshopping_order_issues: {\n customer_id: string? // Nullable!\n seller_id: string? // Nullable!\n}\n\n// \u2705 CORRECT - Main entity + subtype tables\ntables: [\n { name: \"shopping_order_good_issues\", description: \"Main issue entity with actor_type\" },\n { name: \"shopping_order_good_issue_of_customers\", description: \"Customer-created issues (1:1)\" },\n { name: \"shopping_order_good_issue_of_sellers\", description: \"Seller-created issues (1:1)\" }\n]\n```\n\n---\n\n## 4. Complete Table Extraction\n\n### 4.1. Verification Steps\n\n**Step 1**: Re-read component rationale \u2192 Every concept needs tables\n\n**Step 2**: Cross-reference requirements \u2192 Every \"SHALL\" needs table support\n\n**Step 3**: Check common patterns:\n\n| Pattern | Tables Needed |\n|---------|---------------|\n| Audit/History | `{entity}_snapshots` |\n| Many-to-many | Junction table `{entity1}_{entity2}` |\n| File uploads | `{entity}_files`, `{entity}_images` |\n| User feedback | `{entity}_reviews`, `{entity}_comments` |\n| State tracking | `{entity}_logs`, `{entity}_activities` |\n\n**Step 4**: Validate workflows \u2192 Every data-storing step needs a table\n\n### 4.2. Example: Insufficient vs Sufficient\n\n**Component**: Sales \n**Rationale**: \"Groups product catalog, pricing, and sales transaction entities\"\n```typescript\n// \u274C INSUFFICIENT - Only 3 tables\ntables: [\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Audit trail\" },\n { name: \"sale_units\", description: \"Units within a sale\" }\n]\n// Missing: images, reviews, questions, promotions, favorites, view_stats\n\n// \u2705 SUFFICIENT - 12 tables\ntables: [\n // Core\n { name: \"sales\", description: \"Main sale listings\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots\" },\n { name: \"sale_units\", description: \"Individual stock units\" },\n // Content\n { name: \"sale_images\", description: \"Multiple images per sale\" },\n { name: \"sale_specifications\", description: \"Technical details\" },\n // Customer interaction\n { name: \"sale_reviews\", description: \"Customer reviews\" },\n { name: \"sale_review_votes\", description: \"Helpful votes on reviews\" },\n { name: \"sale_questions\", description: \"Customer questions\" },\n { name: \"sale_question_answers\", description: \"Seller answers\" },\n // Management\n { name: \"sale_promotions\", description: \"Promotions and discounts\" },\n { name: \"sale_favorites\", description: \"User wishlists\" },\n { name: \"sale_view_stats\", description: \"View analytics\" }\n]\n```\n\n---\n\n## 5. Function Calling\n\n### 5.1. Load Requirements\n\n```typescript\nprocess({\n thinking: \"Need requirements to identify business domains.\",\n request: {\n type: \"getAnalysisSections\",\n sectionIds: [1, 2, 3, 5]\n }\n})\n```\n\n### 5.2. Complete\n```typescript\nprocess({\n thinking: \"Designed 12 tables for Sales component covering all requirements.\",\n request: {\n type: \"complete\",\n analysis: \"Identified core entities, customer interactions, and management tables...\",\n rationale: \"Applied 3NF normalization, separated Q&A into distinct tables...\",\n tables: [\n { name: \"sales\", description: \"Main sale listings with product, pricing, seller\" },\n { name: \"sale_snapshots\", description: \"Point-in-time snapshots for audit\" },\n // ... more tables\n ]\n }\n})\n```\n\n---\n\n## 6. Input Materials Management\n\n| Instruction | Action |\n|-------------|--------|\n| Materials already loaded | DO NOT re-request |\n| Materials available | May request if needed |\n| Preliminary returns `[]` | Move to complete |\n\n---\n\n## 7. Final Checklist\n\n**Component Rationale Coverage:**\n- [ ] Every concept in rationale has tables\n- [ ] Every business capability has supporting tables\n\n**Requirements Coverage:**\n- [ ] Every \"SHALL\" statement has table support\n- [ ] Every user workflow can be executed\n\n**Normalization:**\n- [ ] Separate entities pattern applied (no nullable field proliferation)\n- [ ] Polymorphic pattern applied where needed (main + subtypes)\n- [ ] Junction tables for many-to-many relationships\n- [ ] Snapshot tables for audit trails\n\n**Table Quality:**\n- [ ] Table count: 3-15 (typical)\n- [ ] All names: snake_case, plural\n- [ ] No prefix duplication\n- [ ] Each table has clear description\n- [ ] All descriptions in English\n\n**Prohibitions:**\n- [ ] NO actor tables (`users`, `customers`, etc.)\n- [ ] NO session tables\n- [ ] NO authentication tables\n- [ ] NOT mixing domains from other components\n\n**Output:**\n- [ ] `thinking` summarizes tables designed\n- [ ] `analysis` documents component scope\n- [ ] `rationale` explains design decisions\n- [ ] Ready to call `process()` with `type: \"complete\"`\n\n**When in Doubt:**\n- [ ] Create MORE tables rather than FEWER\n- [ ] Better 12 complete tables than 6 incomplete" /* AutoBeSystemPromptConstant.DATABASE_COMPONENT */,
17
17
  },
18
18
  ...props.preliminary.getHistories(),
19
19
  {
@@ -1 +1 @@
1
- {"version":3,"file":"transformPrismaComponentsHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAC3C,+BAA0B;AAOnB,MAAM,gCAAgC,GAAG,CAC9C,KAAkB,EAClB,KASC,EAC0B,EAAE;IAC7B,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,cAAc;QACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,OAAO;QACL,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,qnPAA+C;aACpD;YACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;YACnC;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;;;;;4BAKD,KAAK,CAAC,KAAK,CAAC,QAAQ;6BACnB,KAAK,CAAC,KAAK,CAAC,SAAS;;;4BAGtB,KAAK,CAAC,KAAK,CAAC,QAAQ;0BACtB,KAAK,CAAC,KAAK,CAAC,MAAM;6BACf,KAAK,CAAC,KAAK,CAAC,SAAS;;;;;;;;;2CASP,KAAK,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;YAqB3C,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;oBAC7B,CAAC,CAAC,kBAAU,CAAC,IAAI,CAAA;;;mEAGoC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;oBAOjG,KAAK,CAAC,OAAO,CAAC,MAAM;yBACnB,GAAG,CACF,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE;IAC1F,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,wDAAwD,CACxG;yBACA,IAAI,CAAC,IAAI,CAAC;;;;;;;;;iBASd;oBACH,CAAC,CAAC,EACN;;;;;;;;;;;;;;;;YAgBE,KAAK,CAAC,WAAW;SACpB;aACF;SACF;QACD,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;;;;;;KAM3B;KACF,CAAC;AACJ,CAAC,CAAC;AA9HW,QAAA,gCAAgC,oCA8H3C"}
1
+ {"version":3,"file":"transformPrismaComponentsHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAC3C,+BAA0B;AAOnB,MAAM,gCAAgC,GAAG,CAC9C,KAAkB,EAClB,KASC,EAC0B,EAAE;IAC7B,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,cAAc;QACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,OAAO;QACL,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,smPAA+C;aACpD;YACD,GAAG,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE;YACnC;gBACE,EAAE,EAAE,IAAA,SAAE,G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