@warble/claude-agent-sdk 0.4.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 +164 -0
- package/dist/chunk-F4QDKVP7.js +2844 -0
- package/dist/chunk-F4QDKVP7.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +288 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +1143 -0
- package/dist/index.js +123 -0
- package/dist/index.js.map +1 -0
- package/package.json +55 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
ChatSession,
|
|
4
|
+
DEFAULT_CLARIFY_THRESHOLD,
|
|
5
|
+
DEFAULT_RENDER_FLAVOR,
|
|
6
|
+
DEFAULT_TARGET,
|
|
7
|
+
DESTRUCTIVE_BASH_DENY,
|
|
8
|
+
DispatchError,
|
|
9
|
+
DispatchSessionError,
|
|
10
|
+
MODEL_CATALOG_VERSION,
|
|
11
|
+
ModelConfig,
|
|
12
|
+
OUTCOME_KINDS,
|
|
13
|
+
REALIZATION_KINDS,
|
|
14
|
+
SUPPORTED_IR_VERSIONS,
|
|
15
|
+
TRIGGER_KINDS,
|
|
16
|
+
UNAVAILABLE_COMPONENT_REASON,
|
|
17
|
+
aggregateTrace,
|
|
18
|
+
appendTurn,
|
|
19
|
+
buildAgentManifest,
|
|
20
|
+
buildChatRequest,
|
|
21
|
+
buildDispatchPlan,
|
|
22
|
+
buildManifest,
|
|
23
|
+
buildStepMessages,
|
|
24
|
+
buildToolDriverPrompt,
|
|
25
|
+
buildTurnPrompt,
|
|
26
|
+
buildUnavailableAgentManifest,
|
|
27
|
+
callOpenAiCompat,
|
|
28
|
+
collectRequiredCapabilities,
|
|
29
|
+
createChatSession,
|
|
30
|
+
createSessionState,
|
|
31
|
+
decideClarify,
|
|
32
|
+
discoverClaudeModels,
|
|
33
|
+
dispatch,
|
|
34
|
+
distillFollowup,
|
|
35
|
+
distinctProviders,
|
|
36
|
+
distinctTiers,
|
|
37
|
+
emitAgentModule,
|
|
38
|
+
extractCompletionText,
|
|
39
|
+
inspectNodeCapabilities,
|
|
40
|
+
isKnownTarget,
|
|
41
|
+
knownTargetNames,
|
|
42
|
+
lastResolvedIntent,
|
|
43
|
+
lastSessionId,
|
|
44
|
+
localProfile,
|
|
45
|
+
makeReadOnlyGuard,
|
|
46
|
+
parseIr,
|
|
47
|
+
parseRenderFlavor,
|
|
48
|
+
planProviderRouting,
|
|
49
|
+
prepareDispatch,
|
|
50
|
+
prepareDisplayManifest,
|
|
51
|
+
profileFor,
|
|
52
|
+
renderEnvelope,
|
|
53
|
+
resolveCapabilities,
|
|
54
|
+
resolveNodeCapabilities,
|
|
55
|
+
resolveProjectCwd,
|
|
56
|
+
resolveStagedSteps,
|
|
57
|
+
runDispatch,
|
|
58
|
+
runHybridTool,
|
|
59
|
+
shouldSplitPerStepTier,
|
|
60
|
+
usesLocalProvider
|
|
61
|
+
} from "./chunk-F4QDKVP7.js";
|
|
62
|
+
export {
|
|
63
|
+
COMPONENT_TYPES,
|
|
64
|
+
ChatSession,
|
|
65
|
+
DEFAULT_CLARIFY_THRESHOLD,
|
|
66
|
+
DEFAULT_RENDER_FLAVOR,
|
|
67
|
+
DEFAULT_TARGET,
|
|
68
|
+
DESTRUCTIVE_BASH_DENY,
|
|
69
|
+
DispatchError,
|
|
70
|
+
DispatchSessionError,
|
|
71
|
+
MODEL_CATALOG_VERSION,
|
|
72
|
+
ModelConfig,
|
|
73
|
+
OUTCOME_KINDS,
|
|
74
|
+
REALIZATION_KINDS,
|
|
75
|
+
SUPPORTED_IR_VERSIONS,
|
|
76
|
+
TRIGGER_KINDS,
|
|
77
|
+
UNAVAILABLE_COMPONENT_REASON,
|
|
78
|
+
aggregateTrace,
|
|
79
|
+
appendTurn,
|
|
80
|
+
buildAgentManifest,
|
|
81
|
+
buildChatRequest,
|
|
82
|
+
buildDispatchPlan,
|
|
83
|
+
buildManifest,
|
|
84
|
+
buildStepMessages,
|
|
85
|
+
buildToolDriverPrompt,
|
|
86
|
+
buildTurnPrompt,
|
|
87
|
+
buildUnavailableAgentManifest,
|
|
88
|
+
callOpenAiCompat,
|
|
89
|
+
collectRequiredCapabilities,
|
|
90
|
+
createChatSession,
|
|
91
|
+
createSessionState,
|
|
92
|
+
decideClarify,
|
|
93
|
+
discoverClaudeModels,
|
|
94
|
+
dispatch,
|
|
95
|
+
distillFollowup,
|
|
96
|
+
distinctProviders,
|
|
97
|
+
distinctTiers,
|
|
98
|
+
emitAgentModule,
|
|
99
|
+
extractCompletionText,
|
|
100
|
+
inspectNodeCapabilities,
|
|
101
|
+
isKnownTarget,
|
|
102
|
+
knownTargetNames,
|
|
103
|
+
lastResolvedIntent,
|
|
104
|
+
lastSessionId,
|
|
105
|
+
localProfile,
|
|
106
|
+
makeReadOnlyGuard,
|
|
107
|
+
parseIr,
|
|
108
|
+
parseRenderFlavor,
|
|
109
|
+
planProviderRouting,
|
|
110
|
+
prepareDispatch,
|
|
111
|
+
prepareDisplayManifest,
|
|
112
|
+
profileFor,
|
|
113
|
+
renderEnvelope,
|
|
114
|
+
resolveCapabilities,
|
|
115
|
+
resolveNodeCapabilities,
|
|
116
|
+
resolveProjectCwd,
|
|
117
|
+
resolveStagedSteps,
|
|
118
|
+
runDispatch,
|
|
119
|
+
runHybridTool,
|
|
120
|
+
shouldSplitPerStepTier,
|
|
121
|
+
usesLocalProvider
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@warble/claude-agent-sdk",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Warble back-end: Claude Agent SDK query() loop dispatcher (embeddable library + CLI)",
|
|
7
|
+
"homepage": "https://github.com/Canner/Warble/tree/main/dispatcher/claude-agent-sdk#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/Canner/Warble",
|
|
11
|
+
"directory": "dispatcher/claude-agent-sdk"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Canner/Warble/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": ["warble", "claude-agent-sdk", "dispatcher", "agent", "llm", "cli"],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=18"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"bin": {
|
|
34
|
+
"warble-agent-sdk": "./dist/cli.js"
|
|
35
|
+
},
|
|
36
|
+
"files": ["dist"],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsup",
|
|
39
|
+
"check-types": "tsc --noEmit",
|
|
40
|
+
"test": "node --import tsx --test tests/*.test.ts",
|
|
41
|
+
"dispatch": "tsx src/cli.ts",
|
|
42
|
+
"prepublishOnly": "npm run check-types && npm run build && npm test"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@anthropic-ai/claude-agent-sdk": "^0.1.0",
|
|
46
|
+
"yaml": "^2.9.0",
|
|
47
|
+
"zod": "^4.4.3"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^22",
|
|
51
|
+
"tsup": "^8",
|
|
52
|
+
"tsx": "^4",
|
|
53
|
+
"typescript": "^5"
|
|
54
|
+
}
|
|
55
|
+
}
|