Skip to content

Commit 67c2ec2

Browse files
authored
Merge pull request #65 from constructive-io/devin/1774052095-clean-blueprint-params
fix: update blueprint procedure parameter names (remove p_ prefix)
2 parents 62587da + 28a06d9 commit 67c2ec2

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

skills/constructive/references/blueprint-definition-format.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,17 @@ const template = await db.blueprintTemplate.create({
311311
// Copy template to blueprint
312312
const { blueprintId } = await db.mutation.copyTemplateToBlueprint({
313313
input: {
314-
pTemplateId: template.id,
315-
pDatabaseId: dbId,
316-
pOwnerId: userId,
314+
templateId: template.id,
315+
databaseId: dbId,
316+
ownerId: userId,
317317
},
318318
}).execute();
319319

320320
// Execute the blueprint
321321
const refMap = await db.mutation.constructBlueprint({
322322
input: {
323-
pBlueprintId: blueprintId,
324-
pSchemaId: schemaId,
323+
blueprintId: blueprintId,
324+
schemaId: schemaId,
325325
},
326326
}).execute();
327327
// refMap = { "categories": "uuid", "products": "uuid", "orders": "uuid" }
@@ -339,14 +339,14 @@ constructive public:blueprint-template create \
339339

340340
# Copy to blueprint
341341
constructive public:copy-template-to-blueprint \
342-
--input.pTemplateId <UUID> \
343-
--input.pDatabaseId <UUID> \
344-
--input.pOwnerId <UUID>
342+
--input.templateId <UUID> \
343+
--input.databaseId <UUID> \
344+
--input.ownerId <UUID>
345345

346346
# Execute
347347
constructive public:construct-blueprint \
348-
--input.pBlueprintId <UUID> \
349-
--input.pSchemaId <UUID>
348+
--input.blueprintId <UUID> \
349+
--input.schemaId <UUID>
350350
```
351351

352352
### Querying hashes for comparison

skills/constructive/references/blueprints.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ An owned, executable blueprint scoped to a specific database.
8989

9090
## Functions
9191

92-
### construct_blueprint(p_blueprint_id, p_schema_id)
92+
### construct_blueprint(blueprint_id, schema_id)
9393

9494
Executes a draft blueprint, provisioning real database tables and relations.
9595

9696
```typescript
9797
// ORM
9898
const result = await db.mutation.constructBlueprint({
99-
input: { pBlueprintId: '<UUID>', pSchemaId: '<UUID>' }
99+
input: { blueprintId: '<UUID>', schemaId: '<UUID>' }
100100
}).execute();
101101

102102
// CLI
103-
constructive public:construct-blueprint --input.pBlueprintId <UUID> --input.pSchemaId <UUID>
103+
constructive public:construct-blueprint --input.blueprintId <UUID> --input.schemaId <UUID>
104104
```
105105

106106
**Behavior:**
@@ -117,27 +117,27 @@ constructive public:construct-blueprint --input.pBlueprintId <UUID> --input.pSch
117117

118118
**Returns:** `jsonb` ref_map (e.g. `{"products": "uuid", "categories": "uuid"}`) or NULL on failure.
119119

120-
### copy_template_to_blueprint(p_template_id, p_database_id, p_owner_id, p_name_override, p_display_name_override)
120+
### copy_template_to_blueprint(template_id, database_id, owner_id, name_override, display_name_override)
121121

122122
Creates a new blueprint by copying a template's definition.
123123

124124
```typescript
125125
// ORM
126126
const result = await db.mutation.copyTemplateToBlueprint({
127127
input: {
128-
pTemplateId: '<UUID>',
129-
pDatabaseId: '<UUID>',
130-
pOwnerId: '<UUID>',
131-
pNameOverride: 'my_store', // optional
132-
pDisplayNameOverride: 'My Store' // optional
128+
templateId: '<UUID>',
129+
databaseId: '<UUID>',
130+
ownerId: '<UUID>',
131+
nameOverride: 'my_store', // optional
132+
displayNameOverride: 'My Store' // optional
133133
}
134134
}).execute();
135135

136136
// CLI
137137
constructive public:copy-template-to-blueprint \
138-
--input.pTemplateId <UUID> \
139-
--input.pDatabaseId <UUID> \
140-
--input.pOwnerId <UUID>
138+
--input.templateId <UUID> \
139+
--input.databaseId <UUID> \
140+
--input.ownerId <UUID>
141141
```
142142

143143
**Behavior:**

0 commit comments

Comments
 (0)