@warble/claude-agent-sdk 0.11.0 → 0.13.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 +5 -2
- package/dist/{chunk-3ON7TSGW.js → chunk-2VDMVARW.js} +1814 -122
- package/dist/chunk-2VDMVARW.js.map +1 -0
- package/dist/cli.js +85 -23
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +743 -209
- package/dist/index.js +53 -3
- package/package.json +4 -4
- package/dist/chunk-3ON7TSGW.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMPONENT_TYPES,
|
|
3
3
|
ChatSession,
|
|
4
|
+
ComponentInvocationRuntime,
|
|
5
|
+
ComponentStepExecutionError,
|
|
4
6
|
DEFAULT_CLARIFY_THRESHOLD,
|
|
7
|
+
DEFAULT_COMPONENT_INVOCATION_LIMITS,
|
|
5
8
|
DEFAULT_RENDER_FLAVOR,
|
|
6
9
|
DEFAULT_TARGET,
|
|
7
10
|
DESTRUCTIVE_BASH_DENY,
|
|
@@ -16,6 +19,11 @@ import {
|
|
|
16
19
|
UNAVAILABLE_COMPONENT_REASON,
|
|
17
20
|
aggregateTrace,
|
|
18
21
|
appendTurn,
|
|
22
|
+
applySlots,
|
|
23
|
+
assertEligibleComponentCallee,
|
|
24
|
+
assertEligibleComponentCaller,
|
|
25
|
+
assertNoSlotReferences,
|
|
26
|
+
assetDirForIr,
|
|
19
27
|
buildAgentManifest,
|
|
20
28
|
buildChatRequest,
|
|
21
29
|
buildDispatchPlan,
|
|
@@ -26,7 +34,11 @@ import {
|
|
|
26
34
|
buildUnavailableAgentManifest,
|
|
27
35
|
callOpenAiCompat,
|
|
28
36
|
collectRequiredCapabilities,
|
|
37
|
+
componentDependencies,
|
|
38
|
+
composeCanUseTool,
|
|
39
|
+
composeHooks,
|
|
29
40
|
createChatSession,
|
|
41
|
+
createSdkComponentStepRunner,
|
|
30
42
|
createSessionState,
|
|
31
43
|
decideClarify,
|
|
32
44
|
discoverClaudeModels,
|
|
@@ -36,33 +48,49 @@ import {
|
|
|
36
48
|
distinctTiers,
|
|
37
49
|
emitAgentModule,
|
|
38
50
|
extractCompletionText,
|
|
51
|
+
fingerprintPrompts,
|
|
52
|
+
fingerprintSurfaces,
|
|
39
53
|
inspectNodeCapabilities,
|
|
40
54
|
isKnownTarget,
|
|
41
55
|
knownTargetNames,
|
|
56
|
+
landAssets,
|
|
42
57
|
lastResolvedIntent,
|
|
43
58
|
lastSessionId,
|
|
44
59
|
localProfile,
|
|
45
60
|
makeReadOnlyGuard,
|
|
61
|
+
normalizeComponentRequest,
|
|
62
|
+
normalizeComponentResult,
|
|
46
63
|
parseIr,
|
|
47
64
|
parseRenderFlavor,
|
|
65
|
+
parseSlotFlags,
|
|
48
66
|
planProviderRouting,
|
|
67
|
+
preflightDispatchAssets,
|
|
49
68
|
prepareDispatch,
|
|
50
69
|
prepareDisplayManifest,
|
|
51
70
|
profileFor,
|
|
71
|
+
promptSurfaces,
|
|
72
|
+
promptSurfacesOf,
|
|
52
73
|
renderEnvelope,
|
|
53
74
|
resolveCapabilities,
|
|
75
|
+
resolveComponentClosure,
|
|
54
76
|
resolveNodeCapabilities,
|
|
55
77
|
resolveProjectCwd,
|
|
78
|
+
resolveSlots,
|
|
56
79
|
resolveStagedSteps,
|
|
80
|
+
runComposedDispatch,
|
|
57
81
|
runDispatch,
|
|
58
82
|
runHybridTool,
|
|
59
83
|
shouldSplitPerStepTier,
|
|
60
|
-
usesLocalProvider
|
|
61
|
-
|
|
84
|
+
usesLocalProvider,
|
|
85
|
+
validateAssets
|
|
86
|
+
} from "./chunk-2VDMVARW.js";
|
|
62
87
|
export {
|
|
63
88
|
COMPONENT_TYPES,
|
|
64
89
|
ChatSession,
|
|
90
|
+
ComponentInvocationRuntime,
|
|
91
|
+
ComponentStepExecutionError,
|
|
65
92
|
DEFAULT_CLARIFY_THRESHOLD,
|
|
93
|
+
DEFAULT_COMPONENT_INVOCATION_LIMITS,
|
|
66
94
|
DEFAULT_RENDER_FLAVOR,
|
|
67
95
|
DEFAULT_TARGET,
|
|
68
96
|
DESTRUCTIVE_BASH_DENY,
|
|
@@ -77,6 +105,11 @@ export {
|
|
|
77
105
|
UNAVAILABLE_COMPONENT_REASON,
|
|
78
106
|
aggregateTrace,
|
|
79
107
|
appendTurn,
|
|
108
|
+
applySlots,
|
|
109
|
+
assertEligibleComponentCallee,
|
|
110
|
+
assertEligibleComponentCaller,
|
|
111
|
+
assertNoSlotReferences,
|
|
112
|
+
assetDirForIr,
|
|
80
113
|
buildAgentManifest,
|
|
81
114
|
buildChatRequest,
|
|
82
115
|
buildDispatchPlan,
|
|
@@ -87,7 +120,11 @@ export {
|
|
|
87
120
|
buildUnavailableAgentManifest,
|
|
88
121
|
callOpenAiCompat,
|
|
89
122
|
collectRequiredCapabilities,
|
|
123
|
+
componentDependencies,
|
|
124
|
+
composeCanUseTool,
|
|
125
|
+
composeHooks,
|
|
90
126
|
createChatSession,
|
|
127
|
+
createSdkComponentStepRunner,
|
|
91
128
|
createSessionState,
|
|
92
129
|
decideClarify,
|
|
93
130
|
discoverClaudeModels,
|
|
@@ -97,27 +134,40 @@ export {
|
|
|
97
134
|
distinctTiers,
|
|
98
135
|
emitAgentModule,
|
|
99
136
|
extractCompletionText,
|
|
137
|
+
fingerprintPrompts,
|
|
138
|
+
fingerprintSurfaces,
|
|
100
139
|
inspectNodeCapabilities,
|
|
101
140
|
isKnownTarget,
|
|
102
141
|
knownTargetNames,
|
|
142
|
+
landAssets,
|
|
103
143
|
lastResolvedIntent,
|
|
104
144
|
lastSessionId,
|
|
105
145
|
localProfile,
|
|
106
146
|
makeReadOnlyGuard,
|
|
147
|
+
normalizeComponentRequest,
|
|
148
|
+
normalizeComponentResult,
|
|
107
149
|
parseIr,
|
|
108
150
|
parseRenderFlavor,
|
|
151
|
+
parseSlotFlags,
|
|
109
152
|
planProviderRouting,
|
|
153
|
+
preflightDispatchAssets,
|
|
110
154
|
prepareDispatch,
|
|
111
155
|
prepareDisplayManifest,
|
|
112
156
|
profileFor,
|
|
157
|
+
promptSurfaces,
|
|
158
|
+
promptSurfacesOf,
|
|
113
159
|
renderEnvelope,
|
|
114
160
|
resolveCapabilities,
|
|
161
|
+
resolveComponentClosure,
|
|
115
162
|
resolveNodeCapabilities,
|
|
116
163
|
resolveProjectCwd,
|
|
164
|
+
resolveSlots,
|
|
117
165
|
resolveStagedSteps,
|
|
166
|
+
runComposedDispatch,
|
|
118
167
|
runDispatch,
|
|
119
168
|
runHybridTool,
|
|
120
169
|
shouldSplitPerStepTier,
|
|
121
|
-
usesLocalProvider
|
|
170
|
+
usesLocalProvider,
|
|
171
|
+
validateAssets
|
|
122
172
|
};
|
|
123
173
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warble/claude-agent-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Warble back-end: Claude Agent SDK query() loop dispatcher (embeddable library + CLI)",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"warble": {
|
|
31
|
-
"irVersion": "0.
|
|
31
|
+
"irVersion": "0.8"
|
|
32
32
|
},
|
|
33
33
|
"main": "./dist/index.js",
|
|
34
34
|
"module": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsup",
|
|
51
51
|
"check-types": "tsc --noEmit",
|
|
52
|
-
"test": "node --import tsx --test tests/*.test.ts",
|
|
52
|
+
"test": "node --import tsx --test --experimental-test-module-mocks tests/*.test.ts",
|
|
53
53
|
"dispatch": "tsx src/cli.ts",
|
|
54
54
|
"prepublishOnly": "npm run check-types && npm run build && npm test"
|
|
55
55
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"zod": "^4.4.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@warble/ir-spec": "0.
|
|
62
|
+
"@warble/ir-spec": "0.8.x"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@warble/ir-spec": "file:../../packages/ir-spec",
|