@compilr-dev/sdk 0.1.22 → 0.1.23

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.
@@ -7,6 +7,15 @@
7
7
  * Ported from CLI's src/tools/document-db.ts.
8
8
  */
9
9
  import { defineTool, createSuccessResult, createErrorResult } from '@compilr-dev/agents';
10
+ /** All valid document types — keep in sync with DocumentType. */
11
+ const DOC_TYPE_ENUM = [
12
+ 'prd',
13
+ 'architecture',
14
+ 'design',
15
+ 'notes',
16
+ 'plan',
17
+ 'app-model',
18
+ ];
10
19
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
11
20
  export function createDocumentTools(config) {
12
21
  const { context: ctx } = config;
@@ -21,7 +30,7 @@ export function createDocumentTools(config) {
21
30
  properties: {
22
31
  doc_type: {
23
32
  type: 'string',
24
- enum: ['prd', 'architecture', 'design', 'notes'],
33
+ enum: DOC_TYPE_ENUM,
25
34
  description: 'Document type',
26
35
  },
27
36
  title: {
@@ -80,7 +89,7 @@ export function createDocumentTools(config) {
80
89
  properties: {
81
90
  doc_type: {
82
91
  type: 'string',
83
- enum: ['prd', 'architecture', 'design', 'notes'],
92
+ enum: DOC_TYPE_ENUM,
84
93
  description: 'Document type to retrieve',
85
94
  },
86
95
  project_id: {
@@ -174,7 +183,7 @@ export function createDocumentTools(config) {
174
183
  properties: {
175
184
  doc_type: {
176
185
  type: 'string',
177
- enum: ['prd', 'architecture', 'design', 'notes'],
186
+ enum: DOC_TYPE_ENUM,
178
187
  description: 'Document type to delete',
179
188
  },
180
189
  project_id: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",