@cydm/pie 4.7.0 → 4.9.0
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 +51 -27
- package/dist/builtin/extensions/ask-user/index.js +4 -4
- package/dist/builtin/extensions/cron/index.js +916 -162
- package/dist/builtin/extensions/im-forward/README.md +24 -7
- package/dist/builtin/extensions/im-forward/index.js +6823 -3683
- package/dist/builtin/extensions/memory/index.js +76 -28
- package/dist/builtin/extensions/pie-ipc/README.md +2 -2
- package/dist/builtin/extensions/pie-ipc/index.js +421 -27
- package/dist/builtin/extensions/pie-proc/README.md +7 -7
- package/dist/builtin/extensions/pie-proc/index.js +453 -97
- package/dist/builtin/extensions/plan-mode/index.js +5 -5
- package/dist/builtin/extensions/subagent/index.js +8 -8
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +35 -24
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +391 -123
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/chunk-HAUDUMDO.js +795 -0
- package/dist/builtin/skills/chrome-devtools-axi/{cli-NLPMVDGG.js → cli-K7ESY3XD.js} +1437 -231
- package/dist/builtin/skills/computer-use-axi/SKILL.md +26 -8
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +465 -83
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +75 -22
- package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
- package/dist/chunks/{chunk-3W3SXVPB.js → chunk-4UIUMTHG.js} +993 -371
- package/dist/chunks/chunk-6WKBQZWM.js +19 -0
- package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BA4Z27XT.js} +4 -3
- package/dist/chunks/{chunk-BLDI2GRF.js → chunk-DBDU3RRN.js} +1364 -446
- package/dist/chunks/{chunk-LAJXWOKS.js → chunk-EEC5PJTC.js} +11 -9
- package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
- package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-LRHNAG4V.js} +349 -288
- package/dist/chunks/chunk-OU33ROFD.js +717 -0
- package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-PN6B54VT.js} +104 -22
- package/dist/chunks/{chunk-NHV2CALB.js → chunk-WYXUF4MP.js} +388 -32
- package/dist/chunks/{chunk-4PR34UZF.js → chunk-Z5KL6AO2.js} +159 -145
- package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-RASJSVZY.js} +1 -1
- package/dist/chunks/{manager-cli-NEZA46M5.js → manager-cli-Y6HM3MHA.js} +5 -5
- package/dist/chunks/{model-registry-3XAHXXTA.js → model-registry-5TLYILYR.js} +2 -2
- package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-VPKDBV23.js} +5 -5
- package/dist/chunks/{src-B44QWSGM.js → src-2XI5P62J.js} +2 -2
- package/dist/chunks/{src-EGXFJ3WA.js → src-6QGGDHIW.js} +3 -3
- package/dist/chunks/{src-Q7LU27C2.js → src-CCEENRKC.js} +31 -1
- package/dist/chunks/{src-CLE5ILN4.js → src-DI4MCAGT.js} +20 -4
- package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-SYVWIPPW.js} +2 -2
- package/dist/cli.js +1918 -1489
- package/models.schema.json +271 -0
- package/package.json +2 -2
- package/dist/builtin/skills/chrome-devtools-axi/chunk-WOGAQ4P5.js +0 -399
- package/dist/chunks/chunk-7UAUDXZW.js +0 -1425
- package/dist/chunks/{chunk-CGSFBWOM.js → chunk-WBL73KRI.js} +3 -3
- package/dist/chunks/{manager-upgrade-CTU3ISCW.js → manager-upgrade-LSTOHBUV.js} +3 -3
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
ACTIVE_THINKING_LEVELS,
|
|
4
|
+
ALL_THINKING_LEVELS,
|
|
3
5
|
ANTHROPIC_PROMPT_CACHE_CAPABILITY,
|
|
4
6
|
AssistantMessageEventStream,
|
|
5
7
|
BUILTIN_MODEL_DEFINITIONS,
|
|
8
|
+
DEFAULT_THINKING_BUDGETS,
|
|
6
9
|
EMPTY_ASSISTANT_CONTENT_ERROR,
|
|
7
10
|
EMPTY_ASSISTANT_CONTENT_ERROR_CODE,
|
|
8
11
|
EmptyAssistantContentError,
|
|
@@ -11,6 +14,7 @@ import {
|
|
|
11
14
|
NO_CACHE_CAPABILITY,
|
|
12
15
|
OPENAI_COMPAT_PROTOCOL_ERROR_CODE,
|
|
13
16
|
OpenAICompatProtocolError,
|
|
17
|
+
PORTABLE_THINKING_LEVELS,
|
|
14
18
|
RESPONSES_PROTOCOL_ERROR_CODE,
|
|
15
19
|
ResponsesProtocolError,
|
|
16
20
|
assertAssistantHasContent,
|
|
@@ -21,6 +25,7 @@ import {
|
|
|
21
25
|
completeSimple,
|
|
22
26
|
createAssistantMessageEventStream,
|
|
23
27
|
createModel,
|
|
28
|
+
describeThinkingLevel,
|
|
24
29
|
disposeModelTransports,
|
|
25
30
|
fileKindForToolModelPurpose,
|
|
26
31
|
getAllModels,
|
|
@@ -31,15 +36,22 @@ import {
|
|
|
31
36
|
getEnvApiKey,
|
|
32
37
|
getModel,
|
|
33
38
|
getModelCacheCapability,
|
|
39
|
+
getModelThinkingCapabilities,
|
|
34
40
|
getModels,
|
|
35
41
|
getProviderEnvVar,
|
|
36
42
|
getProviders,
|
|
37
43
|
getResponsesCompat,
|
|
44
|
+
getSupportedThinkingLevels,
|
|
38
45
|
hasAssistantContent,
|
|
39
46
|
hasModel,
|
|
47
|
+
isActiveThinkingLevel,
|
|
48
|
+
isDisableWireCompatibleWithApi,
|
|
40
49
|
isEmptyAssistantContentError,
|
|
50
|
+
isPortableThinkingLevel,
|
|
41
51
|
isPromptCacheCapability,
|
|
42
52
|
isSessionStoreCapability,
|
|
53
|
+
isThinkingModeCompatibleWithApi,
|
|
54
|
+
isThinkingSelectionLevel,
|
|
43
55
|
listAvailableModels,
|
|
44
56
|
logEmptyAssistantContentError,
|
|
45
57
|
modelSupportsToolPurpose,
|
|
@@ -50,6 +62,8 @@ import {
|
|
|
50
62
|
registerModels,
|
|
51
63
|
registerModelsFromConfig,
|
|
52
64
|
requiredCapabilityForToolPurpose,
|
|
65
|
+
resolveOutputAllowance,
|
|
66
|
+
resolveThinkingSelection,
|
|
53
67
|
sortToolModelCandidatesByCapability,
|
|
54
68
|
stream,
|
|
55
69
|
streamAnthropic,
|
|
@@ -60,17 +74,21 @@ import {
|
|
|
60
74
|
streamSimpleOpenAICompletions,
|
|
61
75
|
streamSimpleResponses,
|
|
62
76
|
unregisterModel,
|
|
77
|
+
validateExplicitThinkingSelection,
|
|
63
78
|
validateToolArguments,
|
|
64
79
|
validateToolCall
|
|
65
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-4UIUMTHG.js";
|
|
66
81
|
import {
|
|
67
82
|
Type
|
|
68
83
|
} from "./chunk-XXGYUYXI.js";
|
|
69
84
|
import "./chunk-LZQXQOPJ.js";
|
|
70
85
|
export {
|
|
86
|
+
ACTIVE_THINKING_LEVELS,
|
|
87
|
+
ALL_THINKING_LEVELS,
|
|
71
88
|
ANTHROPIC_PROMPT_CACHE_CAPABILITY,
|
|
72
89
|
AssistantMessageEventStream,
|
|
73
90
|
BUILTIN_MODEL_DEFINITIONS,
|
|
91
|
+
DEFAULT_THINKING_BUDGETS,
|
|
74
92
|
EMPTY_ASSISTANT_CONTENT_ERROR,
|
|
75
93
|
EMPTY_ASSISTANT_CONTENT_ERROR_CODE,
|
|
76
94
|
EmptyAssistantContentError,
|
|
@@ -79,6 +97,7 @@ export {
|
|
|
79
97
|
NO_CACHE_CAPABILITY,
|
|
80
98
|
OPENAI_COMPAT_PROTOCOL_ERROR_CODE,
|
|
81
99
|
OpenAICompatProtocolError,
|
|
100
|
+
PORTABLE_THINKING_LEVELS,
|
|
82
101
|
RESPONSES_PROTOCOL_ERROR_CODE,
|
|
83
102
|
ResponsesProtocolError,
|
|
84
103
|
Type,
|
|
@@ -90,6 +109,7 @@ export {
|
|
|
90
109
|
completeSimple,
|
|
91
110
|
createAssistantMessageEventStream,
|
|
92
111
|
createModel,
|
|
112
|
+
describeThinkingLevel,
|
|
93
113
|
disposeModelTransports,
|
|
94
114
|
fileKindForToolModelPurpose,
|
|
95
115
|
getAllModels,
|
|
@@ -100,15 +120,22 @@ export {
|
|
|
100
120
|
getEnvApiKey,
|
|
101
121
|
getModel,
|
|
102
122
|
getModelCacheCapability,
|
|
123
|
+
getModelThinkingCapabilities,
|
|
103
124
|
getModels,
|
|
104
125
|
getProviderEnvVar,
|
|
105
126
|
getProviders,
|
|
106
127
|
getResponsesCompat,
|
|
128
|
+
getSupportedThinkingLevels,
|
|
107
129
|
hasAssistantContent,
|
|
108
130
|
hasModel,
|
|
131
|
+
isActiveThinkingLevel,
|
|
132
|
+
isDisableWireCompatibleWithApi,
|
|
109
133
|
isEmptyAssistantContentError,
|
|
134
|
+
isPortableThinkingLevel,
|
|
110
135
|
isPromptCacheCapability,
|
|
111
136
|
isSessionStoreCapability,
|
|
137
|
+
isThinkingModeCompatibleWithApi,
|
|
138
|
+
isThinkingSelectionLevel,
|
|
112
139
|
listAvailableModels,
|
|
113
140
|
logEmptyAssistantContentError,
|
|
114
141
|
modelSupportsToolPurpose,
|
|
@@ -119,6 +146,8 @@ export {
|
|
|
119
146
|
registerModels,
|
|
120
147
|
registerModelsFromConfig,
|
|
121
148
|
requiredCapabilityForToolPurpose,
|
|
149
|
+
resolveOutputAllowance,
|
|
150
|
+
resolveThinkingSelection,
|
|
122
151
|
sortToolModelCandidatesByCapability,
|
|
123
152
|
stream,
|
|
124
153
|
streamAnthropic,
|
|
@@ -129,6 +158,7 @@ export {
|
|
|
129
158
|
streamSimpleOpenAICompletions,
|
|
130
159
|
streamSimpleResponses,
|
|
131
160
|
unregisterModel,
|
|
161
|
+
validateExplicitThinkingSelection,
|
|
132
162
|
validateToolArguments,
|
|
133
163
|
validateToolCall
|
|
134
164
|
};
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
clusterCandidates,
|
|
64
64
|
collectFilesForGrep,
|
|
65
65
|
collectLastAssistantText,
|
|
66
|
+
collectProjectKeyAliases,
|
|
66
67
|
collectSharedCapabilityPromptAdditions,
|
|
67
68
|
conflictingValues,
|
|
68
69
|
consumptionSummary,
|
|
@@ -144,6 +145,10 @@ import {
|
|
|
144
145
|
getToolCapabilityMetadata,
|
|
145
146
|
harvestSessionsForDate,
|
|
146
147
|
hasAntonymCross,
|
|
148
|
+
hasCjk,
|
|
149
|
+
hasExactCjkAntonymSwap,
|
|
150
|
+
hasMatchingAsciiAntonymSwap,
|
|
151
|
+
hasTechnicalTokenMismatch,
|
|
147
152
|
interpretBashExit,
|
|
148
153
|
interpretShellExit,
|
|
149
154
|
isInfrastructureSession,
|
|
@@ -151,6 +156,7 @@ import {
|
|
|
151
156
|
isPrivateHostname,
|
|
152
157
|
isRetired,
|
|
153
158
|
isToolAllowedInPlanMode,
|
|
159
|
+
legacyProjectKeyFor,
|
|
154
160
|
listGatedPatches,
|
|
155
161
|
looksLikeSecretPresent,
|
|
156
162
|
markCompletedPlanSteps,
|
|
@@ -161,6 +167,7 @@ import {
|
|
|
161
167
|
nearDuplicate,
|
|
162
168
|
normalizeForClustering,
|
|
163
169
|
normalizeForFuzzyMatch,
|
|
170
|
+
normalizeGitUrl,
|
|
164
171
|
normalizeStatus,
|
|
165
172
|
normalizeToLF,
|
|
166
173
|
normalizeTodos,
|
|
@@ -205,6 +212,7 @@ import {
|
|
|
205
212
|
toSessionRecord,
|
|
206
213
|
todayKey,
|
|
207
214
|
tokenJaccard,
|
|
215
|
+
tokenizeCasePreserving,
|
|
208
216
|
touchLiveSession,
|
|
209
217
|
transplantMessages,
|
|
210
218
|
truncateHead,
|
|
@@ -213,12 +221,12 @@ import {
|
|
|
213
221
|
understandFileWithModel,
|
|
214
222
|
validateTodos,
|
|
215
223
|
writeJournalNarrative
|
|
216
|
-
} from "./chunk-
|
|
217
|
-
import "./chunk-
|
|
218
|
-
import "./chunk-
|
|
224
|
+
} from "./chunk-DBDU3RRN.js";
|
|
225
|
+
import "./chunk-LRHNAG4V.js";
|
|
226
|
+
import "./chunk-BA4Z27XT.js";
|
|
219
227
|
import {
|
|
220
228
|
hashText
|
|
221
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-4UIUMTHG.js";
|
|
222
230
|
import "./chunk-XXGYUYXI.js";
|
|
223
231
|
import "./chunk-LZQXQOPJ.js";
|
|
224
232
|
export {
|
|
@@ -285,6 +293,7 @@ export {
|
|
|
285
293
|
clusterCandidates,
|
|
286
294
|
collectFilesForGrep,
|
|
287
295
|
collectLastAssistantText,
|
|
296
|
+
collectProjectKeyAliases,
|
|
288
297
|
collectSharedCapabilityPromptAdditions,
|
|
289
298
|
conflictingValues,
|
|
290
299
|
consumptionSummary,
|
|
@@ -366,6 +375,10 @@ export {
|
|
|
366
375
|
getToolCapabilityMetadata,
|
|
367
376
|
harvestSessionsForDate,
|
|
368
377
|
hasAntonymCross,
|
|
378
|
+
hasCjk,
|
|
379
|
+
hasExactCjkAntonymSwap,
|
|
380
|
+
hasMatchingAsciiAntonymSwap,
|
|
381
|
+
hasTechnicalTokenMismatch,
|
|
369
382
|
hashText,
|
|
370
383
|
interpretBashExit,
|
|
371
384
|
interpretShellExit,
|
|
@@ -374,6 +387,7 @@ export {
|
|
|
374
387
|
isPrivateHostname,
|
|
375
388
|
isRetired,
|
|
376
389
|
isToolAllowedInPlanMode,
|
|
390
|
+
legacyProjectKeyFor,
|
|
377
391
|
listGatedPatches,
|
|
378
392
|
looksLikeSecretPresent,
|
|
379
393
|
markCompletedPlanSteps,
|
|
@@ -384,6 +398,7 @@ export {
|
|
|
384
398
|
nearDuplicate,
|
|
385
399
|
normalizeForClustering,
|
|
386
400
|
normalizeForFuzzyMatch,
|
|
401
|
+
normalizeGitUrl,
|
|
387
402
|
normalizeStatus,
|
|
388
403
|
normalizeToLF,
|
|
389
404
|
normalizeTodos,
|
|
@@ -428,6 +443,7 @@ export {
|
|
|
428
443
|
toSessionRecord,
|
|
429
444
|
todayKey,
|
|
430
445
|
tokenJaccard,
|
|
446
|
+
tokenizeCasePreserving,
|
|
431
447
|
touchLiveSession,
|
|
432
448
|
transplantMessages,
|
|
433
449
|
truncateHead,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EventStream
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4UIUMTHG.js";
|
|
5
5
|
import "./chunk-XXGYUYXI.js";
|
|
6
6
|
import "./chunk-LZQXQOPJ.js";
|
|
7
7
|
|
|
@@ -93,7 +93,7 @@ function createTestStreamFnFromSequenceEnv(value = process.env.PIE_TEST_MOCK_STR
|
|
|
93
93
|
let callIndex = 0;
|
|
94
94
|
return async (model, context, options) => {
|
|
95
95
|
const step = steps[Math.min(callIndex, steps.length - 1)];
|
|
96
|
-
assertSystemPromptIncludes(context.systemPrompt, callIndex);
|
|
96
|
+
assertSystemPromptIncludes(context.systemPrompt ?? "", callIndex);
|
|
97
97
|
const capturePath = process.env.PIE_TEST_MOCK_CAPTURE_CONTEXT;
|
|
98
98
|
if (capturePath) {
|
|
99
99
|
try {
|