@cydm/pie 1.0.24 → 1.0.26
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.
- package/README.md +23 -5
- package/dist/builtin/extensions/ask-user/index.js +3 -4
- package/dist/builtin/extensions/ask-user/package.json +16 -0
- package/dist/builtin/extensions/changelog/index.js +65 -65
- package/dist/builtin/extensions/changelog/package.json +11 -0
- package/dist/builtin/extensions/deploy/package.json +11 -0
- package/dist/builtin/extensions/document-attachments/package.json +11 -0
- package/dist/builtin/extensions/files/package.json +14 -0
- package/dist/builtin/extensions/init/index.js +33 -33
- package/dist/builtin/extensions/init/package.json +11 -0
- package/dist/builtin/extensions/kimi-attachments/index.js +1 -1
- package/dist/builtin/extensions/kimi-attachments/package.json +11 -0
- package/dist/builtin/extensions/plan-mode/index.js +5 -34
- package/dist/builtin/extensions/plan-mode/package.json +11 -0
- package/dist/builtin/extensions/subagent/index.js +4 -5
- package/dist/builtin/extensions/subagent/package.json +14 -0
- package/dist/builtin/extensions/todo/index.js +3 -4
- package/dist/builtin/extensions/todo/package.json +11 -0
- package/dist/chunks/{chunk-X44YTB6R.js → chunk-4B42ZU4B.js} +1 -1
- package/dist/chunks/{chunk-HAAYC2N5.js → chunk-64XJIKVK.js} +334 -99
- package/dist/chunks/{chunk-QYYRJ7JW.js → chunk-GARJAWH6.js} +375 -252
- package/dist/chunks/{chunk-XWNIIJ3X.js → chunk-L63BJMTT.js} +7537 -6629
- package/dist/chunks/{src-PENSDHBM.js → src-27UD2ZBZ.js} +2 -2
- package/dist/chunks/{test-stream-PRUYMLXQ.js → test-stream-ZNGAUUVH.js} +6 -2
- package/dist/cli.js +2229 -1686
- package/dist/{chunks/typescript-GSKWJIO4.js → code-intel-worker.cjs} +2507 -2031
- package/models.schema.json +38 -13
- package/package.json +10 -6
- package/dist/chunks/chunk-J4P2LP7K.js +0 -3846
- package/dist/chunks/chunk-QMIIW75M.js +0 -95
- package/dist/session-preview-worker.js +0 -159
package/models.schema.json
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"description": "Optional editor schema reference."
|
|
12
|
+
},
|
|
8
13
|
"profiles": {
|
|
9
14
|
"type": "object",
|
|
10
15
|
"description": "User-defined endpoint profiles. Runtime only loads models from this map.",
|
|
@@ -13,6 +18,21 @@
|
|
|
13
18
|
"$ref": "#/$defs/profile"
|
|
14
19
|
}
|
|
15
20
|
},
|
|
21
|
+
"remoteCatalogs": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"minItems": 1,
|
|
24
|
+
"description": "Authenticated model catalogs fetched at startup and merged without replacing local profiles.",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": { "type": "string", "minLength": 1, "pattern": "^\\S+$" },
|
|
30
|
+
"url": { "type": "string", "format": "uri", "pattern": "^(?:https://(?![^/?#]*@)[^/?#]+(?::[0-9]+)?(?:/[^?#]*)?|http://(?:127\\.0\\.0\\.1|localhost)(?::[0-9]+)?(?:/[^?#]*)?)$" },
|
|
31
|
+
"apiKeyEnv": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" }
|
|
32
|
+
},
|
|
33
|
+
"required": ["id", "url", "apiKeyEnv"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
16
36
|
"defaults": {
|
|
17
37
|
"type": "object",
|
|
18
38
|
"additionalProperties": false,
|
|
@@ -50,16 +70,19 @@
|
|
|
50
70
|
}
|
|
51
71
|
}
|
|
52
72
|
},
|
|
53
|
-
"
|
|
73
|
+
"anyOf": [
|
|
74
|
+
{ "required": ["profiles"] },
|
|
75
|
+
{ "required": ["remoteCatalogs"] }
|
|
76
|
+
],
|
|
54
77
|
"$defs": {
|
|
55
78
|
"cost": {
|
|
56
79
|
"type": "object",
|
|
57
80
|
"additionalProperties": false,
|
|
58
81
|
"properties": {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
82
|
+
"input": { "type": "number", "minimum": 0 },
|
|
83
|
+
"output": { "type": "number", "minimum": 0 },
|
|
84
|
+
"cacheRead": { "type": "number", "minimum": 0 },
|
|
85
|
+
"cacheWrite": { "type": "number", "minimum": 0 }
|
|
63
86
|
},
|
|
64
87
|
"required": ["input", "output", "cacheRead", "cacheWrite"]
|
|
65
88
|
},
|
|
@@ -156,17 +179,19 @@
|
|
|
156
179
|
"type": "object",
|
|
157
180
|
"propertyNames": {
|
|
158
181
|
"type": "string",
|
|
159
|
-
|
|
182
|
+
"minLength": 1,
|
|
183
|
+
"pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
|
|
160
184
|
},
|
|
161
185
|
"additionalProperties": {
|
|
162
|
-
|
|
186
|
+
"type": "string",
|
|
187
|
+
"pattern": "^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$"
|
|
163
188
|
}
|
|
164
189
|
},
|
|
165
190
|
"model": {
|
|
166
191
|
"type": "object",
|
|
167
192
|
"additionalProperties": false,
|
|
168
193
|
"properties": {
|
|
169
|
-
"id": { "type": "string", "minLength": 1 },
|
|
194
|
+
"id": { "type": "string", "minLength": 1, "pattern": "^\\S+$" },
|
|
170
195
|
"name": { "type": "string", "minLength": 1 },
|
|
171
196
|
"reasoning": { "type": "boolean" },
|
|
172
197
|
"input": {
|
|
@@ -179,14 +204,14 @@
|
|
|
179
204
|
}
|
|
180
205
|
},
|
|
181
206
|
"cost": { "$ref": "#/$defs/cost" },
|
|
182
|
-
|
|
183
|
-
|
|
207
|
+
"contextWindow": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
208
|
+
"maxTokens": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
184
209
|
"compat": { "$ref": "#/$defs/compat" },
|
|
185
210
|
"cacheCapability": { "$ref": "#/$defs/cacheCapability" },
|
|
186
211
|
"webSearch": { "$ref": "#/$defs/webSearch" },
|
|
187
212
|
"fileCapabilities": { "$ref": "#/$defs/fileCapabilities" },
|
|
188
213
|
"headers": { "$ref": "#/$defs/headers" },
|
|
189
|
-
|
|
214
|
+
"apiKeyEnv": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
190
215
|
"displayName": { "type": "string", "minLength": 1 },
|
|
191
216
|
"filePlatform": { "type": "string", "minLength": 1 },
|
|
192
217
|
"attachmentPlatform": { "type": "string", "minLength": 1 }
|
|
@@ -197,13 +222,13 @@
|
|
|
197
222
|
"type": "object",
|
|
198
223
|
"additionalProperties": false,
|
|
199
224
|
"properties": {
|
|
200
|
-
|
|
225
|
+
"baseUrl": { "type": "string", "format": "uri", "pattern": "^https?://" },
|
|
201
226
|
"api": {
|
|
202
227
|
"type": "string",
|
|
203
228
|
"enum": ["openai-completions", "anthropic-messages"]
|
|
204
229
|
},
|
|
205
230
|
"apiKey": { "type": "string", "minLength": 1 },
|
|
206
|
-
|
|
231
|
+
"apiKeyEnv": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
207
232
|
"headers": { "$ref": "#/$defs/headers" },
|
|
208
233
|
"displayName": { "type": "string", "minLength": 1 },
|
|
209
234
|
"filePlatform": { "type": "string", "minLength": 1 },
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cydm/pie",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Pie AI Agent CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pie": "dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"clean": "
|
|
10
|
+
"clean": "node ../../scripts/clean-package-output.mjs dist .test-dist",
|
|
11
|
+
"prebuild": "node ../../scripts/clean-package-output.mjs dist",
|
|
11
12
|
"build": "node scripts/build-release.mjs",
|
|
12
|
-
"check:types:strict": "tsc -p tsconfig.strict.json",
|
|
13
|
+
"check:types:strict": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.strict.json",
|
|
13
14
|
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
|
|
14
15
|
"start": "node dist/cli.js",
|
|
15
16
|
"init:models": "tsx scripts/init-models-config.ts",
|
|
16
17
|
"validate:models": "tsx scripts/validate-models-config.ts",
|
|
17
18
|
"test": "npm run test:offline",
|
|
18
19
|
"pretest:offline": "npm run build --workspace @pie/agent-framework && npm run build --workspace @pie/shared-headless-capabilities && npm run build",
|
|
19
|
-
"
|
|
20
|
+
"posttest:offline": "node --test --import tsx test/remote-model-catalog.test.ts",
|
|
21
|
+
"test:offline": "node --test --import tsx test/core-services.test.ts test/cli.test.ts test/cli-auto-compaction.test.ts test/execution-state-manager.test.ts test/queued-steer-execution-state.test.ts test/architecture-boundaries.test.ts test/attachment-resolver.test.ts test/kimi-attachment-extension.test.ts test/document-attachment-extension.test.ts test/auto-compact-overflow.test.ts test/hierarchical-command-system.test.ts test/extensions-enablement.test.ts test/message-queue-unit.test.ts test/evals-harness.test.ts test/session-trace.test.ts test/runtime-mode-context.test.ts test/tool-policy.test.ts test/retry-policy.test.ts test/yolo-command.test.ts test/footer-lifecycle.test.ts test/files-utils.test.ts test/source-size-guard.test.ts test/runtime-logger.test.ts test/release-readiness.test.ts test/package-artifacts.test.ts test/code-intel-typescript-provider.test.ts test/init-extension-contract.test.ts test/skills-runtime.test.ts test/cross-host-parity.test.ts test/tool-name-rendering.test.ts test/session-selector.test.ts test/terminal-title.test.ts test/tools-registry.test.ts test/system-prompt-contract.test.ts test/daily-agent-smoke.terminal.test.ts",
|
|
20
22
|
"test:all": "npm run test:offline && npm run test:terminal:vitest",
|
|
21
23
|
"test:terminal:vitest": "vitest run test/mention-file-select.terminal.test.ts test/tool-partial-display.terminal.test.ts test/viewport-position-final.test.ts",
|
|
22
24
|
"test:todo-tui": "PIE_REAL_TODO_TUI=1 node --test --import tsx test/todo-closure.terminal.test.ts",
|
|
@@ -41,7 +43,8 @@
|
|
|
41
43
|
"eval:dev:compare": "tsx evals/runner.ts --layer=task --dataset=dev",
|
|
42
44
|
"eval:core:compare": "tsx evals/runner.ts --layer=task --dataset=core",
|
|
43
45
|
"eval:cognitive": "tsx evals/run.ts",
|
|
44
|
-
"pack:check": "npm pack --dry-run"
|
|
46
|
+
"pack:check": "npm pack --dry-run",
|
|
47
|
+
"prepack": "npm run build"
|
|
45
48
|
},
|
|
46
49
|
"files": [
|
|
47
50
|
"dist/**/*",
|
|
@@ -60,7 +63,7 @@
|
|
|
60
63
|
"author": "",
|
|
61
64
|
"license": "MIT",
|
|
62
65
|
"engines": {
|
|
63
|
-
"node": ">=20.
|
|
66
|
+
"node": ">=20.0.0"
|
|
64
67
|
},
|
|
65
68
|
"dependencies": {
|
|
66
69
|
"@anthropic-ai/sdk": "0.50.4",
|
|
@@ -76,6 +79,7 @@
|
|
|
76
79
|
"@pie/agent-core": "*",
|
|
77
80
|
"@pie/agent-framework": "*",
|
|
78
81
|
"@pie/ai": "*",
|
|
82
|
+
"@pie/platform": "*",
|
|
79
83
|
"@pie/shared-headless-capabilities": "*",
|
|
80
84
|
"@pie/tui": "*",
|
|
81
85
|
"@types/diff": "7.0.2",
|