@compilr-dev/sdk 0.1.21 → 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.
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export const MODEL_REGISTRY = [
|
|
19
19
|
// ---------------------------------------------------------------------------
|
|
20
|
-
// Claude Models (Anthropic)
|
|
20
|
+
// Claude Models (Anthropic) — Current generation (4.6 + Haiku 4.5)
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
22
|
{
|
|
23
23
|
id: 'claude-haiku-4-5-20251001',
|
|
@@ -30,8 +30,8 @@ export const MODEL_REGISTRY = [
|
|
|
30
30
|
contextWindow: 200000,
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
id: 'claude-sonnet-4-
|
|
34
|
-
displayName: 'Sonnet 4.
|
|
33
|
+
id: 'claude-sonnet-4-6',
|
|
34
|
+
displayName: 'Sonnet 4.6',
|
|
35
35
|
description: 'Balanced (recommended)',
|
|
36
36
|
provider: 'claude',
|
|
37
37
|
defaultTier: 'balanced',
|
|
@@ -40,8 +40,8 @@ export const MODEL_REGISTRY = [
|
|
|
40
40
|
contextWindow: 200000,
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
id: 'claude-opus-4-
|
|
44
|
-
displayName: 'Opus 4.
|
|
43
|
+
id: 'claude-opus-4-6',
|
|
44
|
+
displayName: 'Opus 4.6',
|
|
45
45
|
description: 'Most capable',
|
|
46
46
|
provider: 'claude',
|
|
47
47
|
defaultTier: 'powerful',
|
|
@@ -49,26 +49,36 @@ export const MODEL_REGISTRY = [
|
|
|
49
49
|
status: 'supported',
|
|
50
50
|
contextWindow: 200000,
|
|
51
51
|
},
|
|
52
|
-
//
|
|
52
|
+
// Legacy Claude models (still supported)
|
|
53
53
|
{
|
|
54
|
-
id: 'claude-
|
|
55
|
-
displayName: 'Sonnet
|
|
54
|
+
id: 'claude-sonnet-4-5-20250929',
|
|
55
|
+
displayName: 'Sonnet 4.5',
|
|
56
|
+
description: 'Previous generation',
|
|
57
|
+
provider: 'claude',
|
|
58
|
+
thinkingFormat: 'claude',
|
|
59
|
+
status: 'supported',
|
|
60
|
+
contextWindow: 200000,
|
|
61
|
+
notes: 'Legacy — consider upgrading to Sonnet 4.6',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'claude-opus-4-5-20251101',
|
|
65
|
+
displayName: 'Opus 4.5',
|
|
56
66
|
description: 'Previous generation',
|
|
57
67
|
provider: 'claude',
|
|
58
68
|
thinkingFormat: 'claude',
|
|
59
69
|
status: 'supported',
|
|
60
70
|
contextWindow: 200000,
|
|
61
|
-
notes: '
|
|
71
|
+
notes: 'Legacy — consider upgrading to Opus 4.6',
|
|
62
72
|
},
|
|
63
73
|
{
|
|
64
|
-
id: 'claude-
|
|
65
|
-
displayName: '
|
|
74
|
+
id: 'claude-sonnet-4-20250514',
|
|
75
|
+
displayName: 'Sonnet 4',
|
|
66
76
|
description: 'Previous generation',
|
|
67
77
|
provider: 'claude',
|
|
68
78
|
thinkingFormat: 'claude',
|
|
69
79
|
status: 'supported',
|
|
70
80
|
contextWindow: 200000,
|
|
71
|
-
notes: '
|
|
81
|
+
notes: 'Legacy',
|
|
72
82
|
},
|
|
73
83
|
// ---------------------------------------------------------------------------
|
|
74
84
|
// Gemini Models (Google)
|
|
@@ -413,8 +423,8 @@ export const MODEL_REGISTRY = [
|
|
|
413
423
|
status: 'supported',
|
|
414
424
|
},
|
|
415
425
|
{
|
|
416
|
-
id: 'anthropic/claude-
|
|
417
|
-
displayName: 'Claude
|
|
426
|
+
id: 'anthropic/claude-sonnet-4-6',
|
|
427
|
+
displayName: 'Claude Sonnet 4.6',
|
|
418
428
|
description: 'Balanced (via OpenRouter)',
|
|
419
429
|
provider: 'openrouter',
|
|
420
430
|
defaultTier: 'balanced',
|
|
@@ -422,8 +432,8 @@ export const MODEL_REGISTRY = [
|
|
|
422
432
|
status: 'supported',
|
|
423
433
|
},
|
|
424
434
|
{
|
|
425
|
-
id: 'anthropic/claude-
|
|
426
|
-
displayName: 'Claude
|
|
435
|
+
id: 'anthropic/claude-opus-4-6',
|
|
436
|
+
displayName: 'Claude Opus 4.6',
|
|
427
437
|
description: 'Most capable (via OpenRouter)',
|
|
428
438
|
provider: 'openrouter',
|
|
429
439
|
defaultTier: 'powerful',
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
186
|
+
enum: DOC_TYPE_ENUM,
|
|
178
187
|
description: 'Document type to delete',
|
|
179
188
|
},
|
|
180
189
|
project_id: {
|