@kodax-ai/kodax 0.7.71 → 0.7.72
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/CHANGELOG.md +602 -487
- package/README.md +46 -27
- package/README_CN.md +30 -13
- package/dist/chunks/agent-YKGU4USA.js +2 -0
- package/dist/chunks/argument-completer-QZETLNAB.js +2 -0
- package/dist/chunks/{chunk-SX2WFHIS.js → chunk-2RI252RN.js} +1 -1
- package/dist/chunks/chunk-CLFP6UGU.js +71 -0
- package/dist/chunks/chunk-E27LHEIP.js +37 -0
- package/dist/chunks/chunk-EDZ5KJFT.js +5 -0
- package/dist/chunks/chunk-GIK4SGAT.js +364 -0
- package/dist/chunks/chunk-GVWPHE23.js +310 -0
- package/dist/chunks/{chunk-A2TFSV5M.js → chunk-IR5KIK7E.js} +1 -1
- package/dist/chunks/chunk-JSDLBXME.js +755 -0
- package/dist/chunks/chunk-MVARIMQV.js +22 -0
- package/dist/chunks/chunk-PKQOEDHJ.js +628 -0
- package/dist/chunks/{chunk-64NQBOSN.js → chunk-SQODXBLX.js} +1 -1
- package/dist/chunks/chunk-VDGCGOQH.js +328 -0
- package/dist/chunks/chunk-VVE3UM4F.js +410 -0
- package/dist/chunks/chunk-WIBLZK4G.js +151 -0
- package/dist/chunks/{compaction-config-5KKKXYFT.js → compaction-config-TWCDFLX6.js} +1 -1
- package/dist/chunks/{construction-bootstrap-OXDDDW6O.js → construction-bootstrap-ZJPXUPXQ.js} +1 -1
- package/dist/chunks/dist-JT4ATXVM.js +2 -0
- package/dist/chunks/host-SVEDZUC5.js +2 -0
- package/dist/chunks/{run-manager-Z3W6MDO7.js → run-manager-RX42UNEM.js} +1 -1
- package/dist/chunks/{utils-CFOXDCB5.js → utils-OTT5CG5J.js} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +28 -0
- package/dist/kodax_cli.js +1325 -1333
- package/dist/kodax_resume.js +44 -0
- package/dist/provider-capabilities.json +50 -48
- package/dist/runtime-worker.js +1322 -1330
- package/dist/sdk-a2a.d.ts +10 -9
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +382 -206
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +80 -128
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +3 -0
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +71 -23
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +143 -31
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +5 -5
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +14 -14
- package/dist/types-chunks/{bash-prefix-extractor.d-YoiZl5yt.d.ts → bash-prefix-extractor.d-CHJO5y94.d.ts} +107 -248
- package/dist/types-chunks/{capsule.d-CK5Pfz1k.d.ts → capsule.d-DxtdE-GD.d.ts} +24 -95
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +91 -0
- package/dist/types-chunks/{commands.d-D6g2jq8V.d.ts → commands.d-DZxHzH5-.d.ts} +6 -4
- package/dist/types-chunks/{guardrail.d-DilYC1dh.d.ts → guardrail.d-DlpMnd-Y.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-DdeDWnVu.d.ts → guardrail.d-auV61_h5.d.ts} +83 -10
- package/dist/types-chunks/public-api.d--IDNJsu1.d.ts +1342 -0
- package/dist/types-chunks/{run-manager.d-DxU3SSGR.d.ts → run-manager.d-Bh50OdVl.d.ts} +1 -1
- package/dist/types-chunks/sdk-session-Cfw6NFu-.d.ts +82 -0
- package/dist/types-chunks/{types.d-CEZZSY9s.d.ts → types.d-CNZgY52F.d.ts} +2 -2
- package/dist/types-chunks/{types.d-vJExiRje.d.ts → types.d-DCQVBqVn.d.ts} +10 -5
- package/dist/types-chunks/{types.d-CRCaLt_s.d.ts → types.d-DH1mvdcl.d.ts} +284 -164
- package/dist/types-chunks/{types.d-CzsLFqmf.d.ts → types.d-EqQmHztg.d.ts} +9 -10
- package/dist/types-chunks/{utils.d-Cb6vdvFM.d.ts → utils.d-gmn3c5U4.d.ts} +9 -12
- package/docs/SDK_EMBEDDER_GUIDE.md +171 -26
- package/package.json +4 -4
- package/scripts/kodax-bin.cjs +4 -2
- package/scripts/production-env.cjs +9 -0
- package/dist/chunks/agent-X2EWQADL.js +0 -2
- package/dist/chunks/argument-completer-BLNXDO2F.js +0 -2
- package/dist/chunks/chunk-4DY756KL.js +0 -70
- package/dist/chunks/chunk-52JSZ77P.js +0 -37
- package/dist/chunks/chunk-A574DBTV.js +0 -422
- package/dist/chunks/chunk-F7KGYHJ3.js +0 -624
- package/dist/chunks/chunk-GVTM4Z6O.js +0 -151
- package/dist/chunks/chunk-PHH4TRGF.js +0 -22
- package/dist/chunks/chunk-PVUXONQB.js +0 -366
- package/dist/chunks/chunk-T7LYK53M.js +0 -329
- package/dist/chunks/chunk-VRSVNU2Y.js +0 -7
- package/dist/chunks/chunk-Y5XKAN7C.js +0 -755
- package/dist/chunks/chunk-Z535BARK.js +0 -306
- package/dist/chunks/dist-IXJRJ27U.js +0 -2
- package/dist/chunks/host-VRKDAN26.js +0 -2
- package/dist/types-chunks/public-api.d-BvCp5VkW.d.ts +0 -601
- package/dist/types-chunks/sdk-session-wGpa7X_U.d.ts +0 -796
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{T as xe,V as be}from"./chunk-VDGCGOQH.js";import{C as z,Ca as H,F as V,G as ue,H as q,Ma as ve,Qa as ye,ma as de,na as fe,oa as pe,pa as me,q as le,qa as ge,ra as W,ya as he,za as C}from"./chunk-ZJIMT5I3.js";import{Fa as we}from"./chunk-JSDLBXME.js";import{e as Ee}from"./chunk-E27LHEIP.js";import{a as o}from"./chunk-ONUPGMER.js";import u from"fs";import p from"path";import{exec as tt,spawnSync as nt}from"child_process";import{promisify as rt}from"util";import{fileURLToPath as ot}from"url";var J="en";function Ue(){return(process.env.LC_ALL||process.env.LC_MESSAGES||process.env.LANG||"").toLowerCase().startsWith("zh")?"zh":"en"}o(Ue,"detectSystemLocale");function Se(e){if(!e||e==="auto"){J=Ue();return}J=e.toLowerCase().replace(/[-_].*/,"")==="zh"?"zh":"en"}o(Se,"setLocale");var Pe={en:{"dialog.confirm":"[Confirm]","dialog.select":"[Select]","dialog.input":"[Input]","confirm.instruction.basic":"Press (y) yes, (n) no","confirm.instruction.always":"Press (y) yes, (a) always yes for this tool, (n) no","confirm.instruction.protected":"Press (y) to confirm, (n) to cancel (protected path)","confirm.result.approved":"Approved","confirm.result.approved_always":"Approved (always)","confirm.result.denied":"Denied","tool.bash.title":"Execute bash command?","tool.shell.title":"Execute shell command?","tool.write.title":"Write to file?","tool.edit.title":"Edit file?","tool.generic.title":"Execute {tool}?","field.reason":"Reason","field.intent":"Intent","field.target":"Target","field.scope":"Scope","field.risk":"Risk","field.summary":"Summary","intent.read":"Read project files","intent.delete":"Delete files","intent.deps":"Modify dependencies or environment","intent.modify":"Modify files","intent.execute":"Execute command","intent.write_file":"Write file","intent.edit_file":"Edit file","intent.use_tool":"Use {tool}","risk.destructive":"Destructive change","risk.deps":"May change dependencies or local tools","risk.modify":"May modify files","risk.unknown":"Command effects depend on its arguments","risk.network":"May access network","scope.outside":"Outside project","scope.protected":"Protected path","waiting.confirm":"Waiting: approval required","waiting.select":"Waiting: choose an option","waiting.input":"Waiting: answer the prompt","placeholder.confirm":"Respond to the approval prompt above...","placeholder.select":"Choose an option above...","placeholder.input":"Answer the prompt above...","placeholder.busy":"Agent is busy...","placeholder.queue":"Queue a follow-up for the next round...","placeholder.idle":"Type a message...","select.choice":"Choice:","select.type_number":"(type a number)","select.more":"{count} more choices...","select.more_above":"\u2191 {count} more above","select.more_below":"\u2193 {count} more below","select.confirm_hint":"Press Enter to confirm, Esc to cancel","select.navigate_hint":"Use \u2191\u2193 to navigate, Enter to confirm, Esc to cancel","select.multiselect_hint":"Use \u2191\u2193 to navigate, Space to toggle, Enter to confirm, Esc to cancel","select.multiselect_empty":"Select at least one option with Space before confirming.","select.multiselect_min":"Select at least {min} option(s) with Space before confirming.","select.multiselect_max":"Select at most {max} option(s) with Space before confirming.","select.back_prev":"\u2190 Back to previous question","input.default":"Default:","input.value":"Value:","input.type_response":"(type your response)","managed.completed":"Task completed","managed.completed.blocked":"Task blocked","managed.completed.continuation":"Task needs continuation",cancelled:"[Cancelled] Operation cancelled by user"},zh:{"dialog.confirm":"[\u786E\u8BA4]","dialog.select":"[\u9009\u62E9]","dialog.input":"[\u8F93\u5165]","confirm.instruction.basic":"\u6309 (y) \u786E\u8BA4, (n) \u62D2\u7EDD","confirm.instruction.always":"\u6309 (y) \u786E\u8BA4, (a) \u59CB\u7EC8\u5141\u8BB8\u6B64\u5DE5\u5177, (n) \u62D2\u7EDD","confirm.instruction.protected":"\u6309 (y) \u786E\u8BA4, (n) \u53D6\u6D88 (\u53D7\u4FDD\u62A4\u8DEF\u5F84)","confirm.result.approved":"\u5DF2\u6279\u51C6","confirm.result.approved_always":"\u5DF2\u6279\u51C6 (\u59CB\u7EC8\u5141\u8BB8)","confirm.result.denied":"\u5DF2\u62D2\u7EDD","tool.bash.title":"\u6267\u884C bash \u547D\u4EE4\uFF1F","tool.shell.title":"\u6267\u884C shell \u547D\u4EE4\uFF1F","tool.write.title":"\u5199\u5165\u6587\u4EF6\uFF1F","tool.edit.title":"\u7F16\u8F91\u6587\u4EF6\uFF1F","tool.generic.title":"\u6267\u884C {tool}\uFF1F","field.reason":"\u539F\u56E0","field.intent":"\u610F\u56FE","field.target":"\u76EE\u6807","field.scope":"\u8303\u56F4","field.risk":"\u98CE\u9669","field.summary":"\u6458\u8981","intent.read":"\u8BFB\u53D6\u9879\u76EE\u6587\u4EF6","intent.delete":"\u5220\u9664\u6587\u4EF6","intent.deps":"\u4FEE\u6539\u4F9D\u8D56\u6216\u73AF\u5883","intent.modify":"\u4FEE\u6539\u6587\u4EF6","intent.execute":"\u6267\u884C\u547D\u4EE4","intent.write_file":"\u5199\u5165\u6587\u4EF6","intent.edit_file":"\u7F16\u8F91\u6587\u4EF6","intent.use_tool":"\u4F7F\u7528 {tool}","risk.destructive":"\u7834\u574F\u6027\u53D8\u66F4","risk.deps":"\u53EF\u80FD\u4FEE\u6539\u4F9D\u8D56\u6216\u672C\u5730\u5DE5\u5177","risk.modify":"\u53EF\u80FD\u4FEE\u6539\u6587\u4EF6","risk.unknown":"\u547D\u4EE4\u6548\u679C\u53D6\u51B3\u4E8E\u53C2\u6570","risk.network":"\u53EF\u80FD\u8BBF\u95EE\u7F51\u7EDC","scope.outside":"\u9879\u76EE\u5916\u90E8","scope.protected":"\u53D7\u4FDD\u62A4\u8DEF\u5F84","waiting.confirm":"\u7B49\u5F85\u4E2D\uFF1A\u9700\u8981\u5BA1\u6279","waiting.select":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u9009\u62E9","waiting.input":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u56DE\u7B54","placeholder.confirm":"\u8BF7\u56DE\u5E94\u4E0A\u65B9\u7684\u5BA1\u6279\u63D0\u793A...","placeholder.select":"\u8BF7\u5728\u4E0A\u65B9\u9009\u62E9\u4E00\u4E2A\u9009\u9879...","placeholder.input":"\u8BF7\u56DE\u7B54\u4E0A\u65B9\u7684\u63D0\u793A...","placeholder.busy":"\u667A\u80FD\u4F53\u6B63\u5728\u5DE5\u4F5C\u4E2D...","placeholder.queue":"\u6392\u961F\u7B49\u5F85\u4E0B\u4E00\u8F6E\u8DDF\u8FDB...","placeholder.idle":"\u8F93\u5165\u6D88\u606F...","select.choice":"\u9009\u9879\uFF1A","select.type_number":"(\u8F93\u5165\u7F16\u53F7)","select.more":"\u8FD8\u6709 {count} \u4E2A\u9009\u9879...","select.more_above":"\u2191 \u4E0A\u65B9\u8FD8\u6709 {count} \u4E2A","select.more_below":"\u2193 \u4E0B\u65B9\u8FD8\u6709 {count} \u4E2A","select.confirm_hint":"\u6309 Enter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.navigate_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0C\u7A7A\u683C \u5207\u6362\u9009\u4E2D\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_empty":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u9009\u9879\u3002","select.multiselect_min":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u81F3\u5C11\u9009\u62E9 {min} \u4E2A\u9009\u9879\u3002","select.multiselect_max":"\u6700\u591A\u53EA\u80FD\u9009\u62E9 {max} \u4E2A\u9009\u9879\u3002","select.back_prev":"\u2190 \u8FD4\u56DE\u4E0A\u4E00\u9898","input.default":"\u9ED8\u8BA4\u503C\uFF1A","input.value":"\u503C\uFF1A","input.type_response":"(\u8F93\u5165\u4F60\u7684\u56DE\u7B54)","managed.completed":"\u4EFB\u52A1\u5B8C\u6210","managed.completed.blocked":"\u4EFB\u52A1\u53D7\u963B","managed.completed.continuation":"\u4EFB\u52A1\u9700\u8981\u7EE7\u7EED",cancelled:"[\u5DF2\u53D6\u6D88] \u64CD\u4F5C\u5DF2\u88AB\u7528\u6237\u53D6\u6D88"}};function Dt(e,t){let r=Pe[J][e]??Pe.en[e]??e;if(t)for(let[i,s]of Object.entries(t))r=r.replace(`{${i}}`,String(s));return r}o(Dt,"t");var _e={core:`// KodaX core configuration template.
|
|
3
|
+
// Copy only the fields you need to ~/.kodax/config.json (strict JSON).
|
|
4
|
+
// MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use
|
|
5
|
+
// \`kodax integrations migrate --dry-run\` for legacy declarations.
|
|
6
|
+
{
|
|
7
|
+
// "provider": "deepseek",
|
|
8
|
+
// "model": "deepseek-v4",
|
|
9
|
+
// "runtimeMode": "embedded",
|
|
10
|
+
// "effort": "high",
|
|
11
|
+
// "agentMode": "ama",
|
|
12
|
+
// "permissionMode": "accept-edits",
|
|
13
|
+
// "locale": "zh",
|
|
14
|
+
// "customProviders": [
|
|
15
|
+
// {
|
|
16
|
+
// "name": "my-relay",
|
|
17
|
+
// "protocol": "openai",
|
|
18
|
+
// "baseUrl": "https://api.example.com/v1",
|
|
19
|
+
// "apiKeyEnv": "MY_RELAY_API_KEY",
|
|
20
|
+
// "model": "provider/model",
|
|
21
|
+
// "reasoning": { "efforts": ["off", "low", "high"], "default": "high" }
|
|
22
|
+
// }
|
|
23
|
+
// ],
|
|
24
|
+
// "repoIntelligenceMode": "auto",
|
|
25
|
+
// "sessionRetentionDays": 0,
|
|
26
|
+
// "workflow": { "maxConcurrency": 8 }
|
|
27
|
+
}
|
|
28
|
+
`,mcp:`// User MCP declarations: ~/.kodax/integrations/mcp.json (strict JSON).
|
|
29
|
+
// The whole file hot-reloads; healthy entries remain active if one new entry
|
|
30
|
+
// fails to prepare. Keep credentials in \${env:NAME} references.
|
|
31
|
+
{
|
|
32
|
+
"version": 1,
|
|
33
|
+
"servers": {}
|
|
34
|
+
// Example:
|
|
35
|
+
// "servers": {
|
|
36
|
+
// "reporting": {
|
|
37
|
+
// "type": "streamable-http",
|
|
38
|
+
// "url": "https://mcp.example.com",
|
|
39
|
+
// "headers": { "Authorization": "Bearer \${env:REPORTING_MCP_TOKEN}" },
|
|
40
|
+
// "connect": "lazy"
|
|
41
|
+
// }
|
|
42
|
+
// }
|
|
43
|
+
}
|
|
44
|
+
`,a2a:`// Bidirectional A2A configuration: ~/.kodax/integrations/a2a.json.
|
|
45
|
+
// \`agents\` calls many third-party Agents. The optional singleton \`server\`
|
|
46
|
+
// exposes exactly one KodaX general task Agent; ACP remains the coding/editor
|
|
47
|
+
// protocol. Uncomment only the entries you need; no token value belongs here.
|
|
48
|
+
// Legacy version 1 files remain readable. Non-empty files require an explicit
|
|
49
|
+
// stopped-daemon migration; new/empty files and every later write use version 2.
|
|
50
|
+
{
|
|
51
|
+
"version": 2,
|
|
52
|
+
|
|
53
|
+
// Create this inbound block with \`kodax a2a expose\`; config never starts a
|
|
54
|
+
// listener by itself. Do not copy private Agent instructions, Runtime Skills,
|
|
55
|
+
// model names, or local paths into the public \`published.skills\` list.
|
|
56
|
+
// Managed workspaces default below
|
|
57
|
+
// ~/kodax_a2a_server_workspace/<runtime-profile>/contexts/<context-key>/.
|
|
58
|
+
// Native read/grep/glob remains available according to workspace access.
|
|
59
|
+
// Arbitrary shell is never exposed. Skill instructions/assets need no
|
|
60
|
+
// process authority. An exact checked-in scripts/... entry requires
|
|
61
|
+
// process="isolated", skillScripts admission, and \`kodax sandbox doctor\`.
|
|
62
|
+
// ASRT receives no KodaX credentials or ambient ~/.srt-settings.json and its
|
|
63
|
+
// script quota is observed; hostile tenants also require an outer container/VM.
|
|
64
|
+
//
|
|
65
|
+
// "server": {
|
|
66
|
+
// "execution": {
|
|
67
|
+
// "kind": "local-agent",
|
|
68
|
+
// "agentRef": { "source": "markdown:user", "name": "report-agent" },
|
|
69
|
+
// "workspace": { "mode": "managed" },
|
|
70
|
+
// "toolPolicy": {
|
|
71
|
+
// "workspace": "write",
|
|
72
|
+
// "process": "deny",
|
|
73
|
+
// "network": { "mode": "deny" },
|
|
74
|
+
// "tools": [],
|
|
75
|
+
// "mcp": {},
|
|
76
|
+
// "skillScripts": {},
|
|
77
|
+
// "subagents": "deny"
|
|
78
|
+
// }
|
|
79
|
+
// },
|
|
80
|
+
// "published": {
|
|
81
|
+
// "name": "KodaX Agent",
|
|
82
|
+
// "description": "Completes approved general tasks.",
|
|
83
|
+
// "version": "0.7.71",
|
|
84
|
+
// "skills": [{ "id": "general", "name": "General", "description": "Complete general tasks.", "tags": [] }],
|
|
85
|
+
// "inputModes": ["text/plain"],
|
|
86
|
+
// "outputModes": ["text/plain"]
|
|
87
|
+
// },
|
|
88
|
+
// "authentication": { "type": "bearer-env", "tokenEnv": "KODAX_A2A_TOKEN", "principalId": "configured-client" },
|
|
89
|
+
// "dataDir": "~/.kodax/a2a/tasks"
|
|
90
|
+
// },
|
|
91
|
+
|
|
92
|
+
// Production OAuth2 resource-server alternative for the server above. The
|
|
93
|
+
// external Authorization Server issues access tokens and, for JWT tokens,
|
|
94
|
+
// signs them. KodaX holds no issuer signing key; it validates RFC 9068 tokens
|
|
95
|
+
// against the issuer's rotating JWKS, audience, expiry, subject, and scopes.
|
|
96
|
+
// Replace the server.authentication value above with:
|
|
97
|
+
// {
|
|
98
|
+
// "type": "oauth2-jwt",
|
|
99
|
+
// "scheme": "enterprise-oauth",
|
|
100
|
+
// "issuer": "https://identity.example.com",
|
|
101
|
+
// "audience": "https://agent.example.com/a2a",
|
|
102
|
+
// "jwksUrl": "https://identity.example.com/.well-known/jwks.json",
|
|
103
|
+
// "tokenUrl": "https://identity.example.com/oauth/token",
|
|
104
|
+
// "metadataUrl": "https://identity.example.com/.well-known/oauth-authorization-server",
|
|
105
|
+
// "requiredScopes": ["a2a.invoke"]
|
|
106
|
+
// }
|
|
107
|
+
|
|
108
|
+
"agents": {
|
|
109
|
+
// Fixed Bearer compatibility example. \`enabled\` is hot desired state:
|
|
110
|
+
// disabled Agents remain configured but are not candidates for new
|
|
111
|
+
// orchestration, while already admitted remote tasks may finish.
|
|
112
|
+
// "reporting": {
|
|
113
|
+
// "cardUrl": "https://agents.example.com/.well-known/agent-card.json",
|
|
114
|
+
// "enabled": true,
|
|
115
|
+
// "credentialEnv": "REPORTING_A2A_TOKEN",
|
|
116
|
+
// "effect": "read"
|
|
117
|
+
// },
|
|
118
|
+
|
|
119
|
+
// Standards-based machine-to-machine OAuth2 example. The external
|
|
120
|
+
// Authorization Server issues access tokens; KodaX obtains and caches them
|
|
121
|
+
// only in process memory. \`tokenUrl\` must exactly match the selected Card
|
|
122
|
+
// OAuth2 clientCredentials flow. Use \`kodax a2a enable|disable <name>\` to
|
|
123
|
+
// mutate \`enabled\` atomically; the owning Runtime applies it asynchronously.
|
|
124
|
+
// "reviewer": {
|
|
125
|
+
// "cardUrl": "https://reviewer.example.com/.well-known/agent-card.json",
|
|
126
|
+
// "enabled": false,
|
|
127
|
+
// "effect": "read",
|
|
128
|
+
// "authentication": {
|
|
129
|
+
// "type": "oauth2-client-credentials",
|
|
130
|
+
// "scheme": "enterprise-oauth",
|
|
131
|
+
// "issuer": "https://identity.example.com",
|
|
132
|
+
// "tokenUrl": "https://identity.example.com/oauth/token",
|
|
133
|
+
// "clientId": "kodax-reviewer",
|
|
134
|
+
// "clientSecretEnv": "REVIEWER_CLIENT_SECRET",
|
|
135
|
+
// "scopes": ["a2a.invoke"],
|
|
136
|
+
// "resource": "https://reviewer.example.com/",
|
|
137
|
+
// "clientAuthentication": "client-secret-basic"
|
|
138
|
+
// }
|
|
139
|
+
// }
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`,extensions:`// Trusted user Extension paths: ~/.kodax/integrations/extensions.json.
|
|
143
|
+
// Extensions are host code. Reload is whole-domain atomic; use MCP for
|
|
144
|
+
// capabilities that should remain outside the KodaX process.
|
|
145
|
+
{
|
|
146
|
+
"version": 1,
|
|
147
|
+
"paths": []
|
|
148
|
+
}
|
|
149
|
+
`};function Ce(e){return _e[e]}o(Ce,"getConfigTemplate");import{closeSync as Y,existsSync as m,fsyncSync as Ae,mkdirSync as ee,openSync as te,readFileSync as Ie,renameSync as Re,statSync as Ge,unlinkSync as Q,watch as ze,writeFileSync as De}from"node:fs";import{createHash as Ve}from"node:crypto";import g from"node:path";var qe={mcp:"mcp.json",a2a:"a2a.json",extensions:"extensions.json"},We=new Set(["type","command","args","cwd","env","url","headers","connect","startupTimeoutMs","requestTimeoutMs","auth"]);function E(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}o(E,"isRecord");function w(e,t){if(!E(e))throw new Error(`${t} must be an object.`);return e}o(w,"requireRecord");function T(e,t,n){let r=Object.keys(e).find(i=>!t.has(i));if(r!==void 0)throw new Error(`${n} has unknown field "${r}".`)}o(T,"assertNoUnknownKeys");function Le(e,t){if(e.version!==1)throw new Error(`${t} version must be 1.`)}o(Le,"requireVersionOne");function ke(e,t){let n=w(e,t);for(let[r,i]of Object.entries(n))if(r.trim().length===0||typeof i!="string")throw new Error(`${t} must contain non-empty string keys and string values.`);return structuredClone(n)}o(ke,"requireStringMap");function Z(e,t){if(!Array.isArray(e)||!e.every(n=>typeof n=="string"&&n.trim().length>0))throw new Error(`${t} must be an array of non-empty strings.`);return e.map(n=>n.trim())}o(Z,"requireStringArray");function B(e,t){if(e!==void 0&&(!Number.isFinite(e)||Number(e)<=0))throw new Error(`${t} must be a positive number.`)}o(B,"validatePositiveNumber");function He(e,t){if(e.trim().length===0)throw new Error("MCP server names must not be empty.");let n=w(t,`MCP server "${e}"`);T(n,We,`MCP server "${e}"`);let r=n.type??"stdio";if(!["stdio","sse","streamable-http","http"].includes(String(r)))throw new Error(`MCP server "${e}" has an unsupported transport type.`);if(r==="stdio"){if(typeof n.command!="string"||n.command.trim().length===0)throw new Error(`MCP server "${e}" stdio transport requires command.`)}else if(typeof n.url!="string"||n.url.trim().length===0)throw new Error(`MCP server "${e}" ${String(r)} transport requires url.`);if(n.args!==void 0&&Z(n.args,`MCP server "${e}" args`),n.cwd!==void 0&&typeof n.cwd!="string")throw new Error(`MCP server "${e}" cwd must be a string.`);if(n.env!==void 0&&ke(n.env,`MCP server "${e}" env`),n.headers!==void 0&&ke(n.headers,`MCP server "${e}" headers`),n.connect!==void 0&&!["lazy","prewarm","disabled"].includes(String(n.connect)))throw new Error(`MCP server "${e}" has an unsupported connect mode.`);if(B(n.startupTimeoutMs,`MCP server "${e}" startupTimeoutMs`),B(n.requestTimeoutMs,`MCP server "${e}" requestTimeoutMs`),n.auth!==void 0){let i=w(n.auth,`MCP server "${e}" auth`);if(T(i,new Set(["type","clientId","authorizationUrl","tokenUrl","scopes","redirectPort"]),`MCP server "${e}" auth`),i.type!=="oauth2")throw new Error(`MCP server "${e}" auth type must be oauth2.`);for(let a of["clientId","authorizationUrl","tokenUrl"])if(i[a]!==void 0&&typeof i[a]!="string")throw new Error(`MCP server "${e}" auth.${a} must be a string.`);i.scopes!==void 0&&Z(i.scopes,`MCP server "${e}" auth.scopes`),B(i.redirectPort,`MCP server "${e}" auth.redirectPort`)}return structuredClone(n)}o(He,"parseMcpServer");function k(e){let t=w(e,"MCP integration config");T(t,new Set(["version","servers"]),"MCP integration config"),Le(t,"MCP integration config");let n=w(t.servers,"MCP integration config servers"),r={};for(let[i,s]of Object.entries(n))r[i]=He(i,s);return{version:1,servers:r}}o(k,"parseMcpIntegrationDocument");function M(e){let t=w(e,"Extensions integration config");T(t,new Set(["version","paths"]),"Extensions integration config"),Le(t,"Extensions integration config");let n=Z(t.paths,"Extensions integration config paths");if(new Set(n).size!==n.length)throw new Error("Extensions integration config paths must not contain duplicates.");return{version:1,paths:n}}o(M,"parseExtensionsIntegrationDocument");function P(e,t){return g.join(g.resolve(t),"integrations",qe[e])}o(P,"resolveIntegrationConfigPath");function ne(e){return g.join(g.resolve(e),"config.json")}o(ne,"coreConfigPath");function Te(e){return Ve("sha256").update(e).digest("hex")}o(Te,"hashText");function re(e){let t=Ie(e,"utf8");try{return{raw:t,value:JSON.parse(t)}}catch(n){let r=n instanceof Error?n.message:String(n);throw new Error(`Invalid JSON: ${r}`)}}o(re,"readJsonFile");function O(e){return{domain:e.domain,source:e.source,path:e.path,revision:Te(e.raw),document:structuredClone(e.document),loadedAt:new Date().toISOString()}}o(O,"snapshot");function N(e){let t=ne(e);return m(t)?w(re(t).value,"Core config"):{}}o(N,"readCoreConfig");function $(e){let t=P("mcp",e);if(m(t)){let i=re(t);return O({domain:"mcp",source:"user",path:t,raw:i.raw,document:k(i.value)})}let n=N(e).mcpServers,r=k({version:1,servers:E(n)?n:{}});return O({domain:"mcp",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o($,"readMcpIntegration");function K(e){let t=P("extensions",e);if(m(t)){let i=re(t);return O({domain:"extensions",source:"user",path:t,raw:i.raw,document:M(i.value)})}let n=N(e).extensions,r=M({version:1,paths:Array.isArray(n)?n:[]});return O({domain:"extensions",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o(K,"readExtensionsIntegration");function Je(e){if(!E(e))return[];let t=[],n=/(token|secret|password|api[_-]?key|authorization)/i;for(let[r,i]of Object.entries(e))if(E(i))for(let s of["env","headers"]){let a=i[s];if(E(a))for(let[l,c]of Object.entries(a))n.test(l)&&typeof c=="string"&&!c.startsWith("${env:")&&t.push(`MCP server "${r}" ${s}.${l} may contain a literal secret.`)}return t}o(Je,"likelySecretWarnings");function Be(e){let t=N(e),n=P("mcp",e),r=P("extensions",e),i=t.mcpServers,s=t.extensions,a=E(i)?Object.keys(i).length:0,l=Array.isArray(s)?s.length:0,c=o((b,R,D)=>m(b)?{action:"none",entries:R,destination:b,reason:"destination-exists"}:D?{action:"create",entries:R,destination:b}:{action:"none",entries:0,destination:b,reason:"legacy-absent"},"domainPlan");return{mcp:c(n,a,i!==void 0),extensions:c(r,l,s!==void 0),warnings:Je(i)}}o(Be,"planLegacyIntegrationMigration");function Ye(e,t){let n=ne(e);ee(g.dirname(n),{recursive:!0,mode:448});let r=`${n}.${process.pid}.${Date.now()}.tmp`,i=te(r,"wx",384);try{De(i,`${JSON.stringify(t,null,2)}
|
|
150
|
+
`,"utf8"),Ae(i)}finally{Y(i)}try{Re(r,n)}catch(s){throw m(r)&&Q(r),new Error("Failed to atomically clean legacy integration fields.",{cause:s})}}o(Ye,"writeCoreConfigAtomically");function Ft(e){let t=Be(e.configHome),n=N(e.configHome),r=[];t.mcp.action==="create"&&(A({domain:"mcp",configHome:e.configHome,document:{version:1,servers:E(n.mcpServers)?n.mcpServers:{}},validate:k}),r.push("mcp")),t.extensions.action==="create"&&(A({domain:"extensions",configHome:e.configHome,document:{version:1,paths:Array.isArray(n.extensions)?n.extensions:[]},validate:M}),r.push("extensions"));let i=!1;if(e.cleanupLegacy&&m(ne(e.configHome))){let s={...n};m(t.mcp.destination)&&delete s.mcpServers,m(t.extensions.destination)&&delete s.extensions,Qe(n,s)||(Ye(e.configHome,s),i=!0)}return{...t,applied:r,cleanedLegacy:i}}o(Ft,"migrateLegacyIntegrationConfig");function Qe(e,t){return JSON.stringify(e)===JSON.stringify(t)}o(Qe,"isDeepStrictEqualForConfig");function Ze(e){return m(e)?Te(Ie(e,"utf8")):void 0}o(Ze,"currentUserRevision");function et(e){let t=`${e}.lock`;try{return{fd:te(t,"wx",384),path:t}}catch(n){throw new Error(`Integration configuration is busy: ${g.basename(e)}`,{cause:n})}}o(et,"acquireWriteLock");function A(e){let t=P(e.domain,e.configHome),n=e.validate(e.document);ee(g.dirname(t),{recursive:!0,mode:448});let r=et(t);try{let i=Ze(t);if(e.expectedRevision!==void 0&&i!==e.expectedRevision)throw new Error(`Integration configuration revision changed (expected ${e.expectedRevision}, actual ${i??"missing"}).`);let s=`${JSON.stringify(n,null,2)}
|
|
151
|
+
`,a=`${t}.${process.pid}.${Date.now()}.tmp`,l=te(a,"wx",384);try{De(l,s,"utf8"),Ae(l)}finally{Y(l)}try{Re(a,t)}catch(c){throw m(a)&&Q(a),new Error(`Failed to atomically replace ${g.basename(t)}.`,{cause:c})}return O({domain:e.domain,source:"user",path:t,raw:s,document:n})}finally{Y(r.fd),m(r.path)&&Q(r.path)}}o(A,"writeIntegrationDocument");function Me(e){if(!m(e))return"missing";let t=Ge(e);return`${t.dev}:${t.ino}:${t.size}:${t.mtimeMs}`}o(Me,"metadataSignature");function L(e,t){return{code:e,message:t,time:new Date().toISOString()}}o(L,"safeDiagnostic");var Oe=class{static{o(this,"IntegrationConfigController")}#a;#r;#c;#l;#e;#t;#u="";#o;#n;#i;#d=Promise.resolve();#s=new Set;constructor(t){this.#a=t.domain,this.#r=P(t.domain,t.configHome),this.#l=t.validate,this.#c=t.read}async initialize(){let t=await this.reload();if(!t.ok||!this.#e)throw new Error(t.ok?"Integration configuration did not produce a snapshot.":t.error);return structuredClone(this.#e)}snapshot(){return this.#e?structuredClone(this.#e):void 0}status(){return{domain:this.#a,path:this.#r,...this.#e?{revision:this.#e.revision,source:this.#e.source,lastReloadAt:this.#e.loadedAt}:{},...this.#t?{diagnostic:this.#t}:{},watching:this.#o!==void 0}}subscribe(t){return this.#s.add(t),()=>{this.#s.delete(t)}}reload(){let t=this.#d.then(()=>this.#f());return this.#d=t.then(()=>{},()=>{}),t}async#f(){this.#u=Me(this.#r);let t;try{t=this.#c(),this.#l(t.document)}catch{return this.#t=L("invalid-config","Integration configuration is invalid; check the file against its versioned schema."),{ok:!1,error:this.#t.message}}let n=this.#e?structuredClone(this.#e):void 0;try{for(let r of this.#s)await r(structuredClone(t),n)}catch{return this.#t=L("activation-failed","Integration configuration could not be activated; the previous configuration remains active."),{ok:!1,error:this.#t.message}}return this.#e=t,this.#t=void 0,{ok:!0,snapshot:structuredClone(t)}}async ensureCurrent(){return Me(this.#r)===this.#u&&this.#e?{ok:!0,snapshot:structuredClone(this.#e)}:this.reload()}startWatching(t=100,n=2e3){if(!(this.#o||this.#i)){ee(g.dirname(this.#r),{recursive:!0,mode:448});try{this.#o=ze(g.dirname(this.#r),(r,i)=>{i!==null&&i.toString()!==g.basename(this.#r)||(this.#n&&clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#n=void 0,this.reload()},t),this.#n.unref?.())}),this.#o.unref(),this.#o.on("error",()=>{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")})}catch{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")}this.#i=setInterval(()=>{this.ensureCurrent()},n),this.#i.unref?.()}}close(){this.#n&&clearTimeout(this.#n),this.#n=void 0,this.#i&&clearInterval(this.#i),this.#i=void 0,this.#o?.close(),this.#o=void 0,this.#s.clear()}};var it=rt(tt),st=2,Ne=!1,d=Ee(),tn=p.join(d,"sessions"),f=p.join(d,"config.json"),nn=60,h=null,ie=!1,at="dumb";function ct(e){let t=p.basename(e).toLowerCase(),n="__KODAX_SHELL_ENV_START__",r=`printf '%s\\0' '${n}'; env -0`;return t==="fish"?{args:["-i","-c",r],sentinel:n}:{args:t==="bash"||t==="zsh"?["-ic",r]:["-lc",r],sentinel:n}}o(ct,"buildShellEnvCommand");function lt(e,t){let n=`${t}\0`,r=e.lastIndexOf(n);if(r===-1)return{};let i=e.slice(r+n.length),s={};for(let a of i.split("\0")){if(!a)continue;let l=a.indexOf("=");l<=0||(s[a.slice(0,l)]=a.slice(l+1))}return s}o(lt,"parseNullDelimitedShellEnv");function ut(e={}){let t=e.env??process.env;if((e.platform??process.platform)==="win32"||t.KODAX_DISABLE_SHELL_ENV_HYDRATION==="1")return!1;let r=e.shell??t.SHELL;if(!r||!p.isAbsolute(r))return!1;let{args:i,sentinel:s}=ct(r),a=e.run??nt,l={...t,TERM:at},c=a(r,i,{encoding:"utf8",env:l,maxBuffer:1024*1024,timeout:5e3,windowsHide:!0,detached:!0,stdio:["ignore","pipe","pipe"]});if(c.status!==0||!c.stdout)return!1;let b=typeof c.stdout=="string"?c.stdout:c.stdout.toString("utf8"),R=lt(b,s),D=!1;for(let[G,Fe]of Object.entries(R))G!=="TERM"&&t[G]===void 0&&(t[G]=Fe,D=!0);return D}o(ut,"hydrateProcessEnvFromShell");function dt(){if(!ie){ie=!0;try{ut()}catch{}}}o(dt,"ensureShellEnvironmentHydrated");function rn(){ie=!1}o(rn,"resetShellEnvironmentHydrationForTesting");function ft(e){he(e.customProviders??[])}o(ft,"registerConfiguredCustomProviders");function se(e){if(!Array.isArray(e))return;let t=e.filter(n=>typeof n=="string").map(n=>n.trim()).filter(n=>n.length>0);return t.length>0?t:[]}o(se,"normalizeConfiguredExtensions");function pt(e){if(e.permissionMode!=="default")return e;let t={...e,permissionMode:"accept-edits"};try{u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(t,null,2))}catch{}return t}o(pt,"migrateLegacyPermissionModeInConfig");function mt(e){if(e.permissionMode!=="auto-in-project")return e;try{let t=u.readFileSync(f,"utf-8"),n=t.replace(/("permissionMode"\s*:\s*)"auto-in-project"/,'$1"auto"');n!==t&&u.writeFileSync(f,n)}catch{}return{...e,permissionMode:"auto"}}o(mt,"migrateAutoInProjectAliasInConfig");function gt(){if(h)return h;let e="0.7.72";if(e)return h=e,h;let t=p.join(p.dirname(ot(import.meta.url)),"../../package.json");if(u.existsSync(t))try{return h=JSON.parse(u.readFileSync(t,"utf-8")).version??"0.0.0",h??"0.0.0"}catch{}return h="0.0.0",h}o(gt,"getVersion");var on=gt();function ht(e){return fe(e)}o(ht,"getProviderModel");function ae(e,t){let n=new Set(e.map(i=>i.toLowerCase())),r=[...e];for(let i of t)n.has(i.toLowerCase())||r.push(i);return r}o(ae,"mergeModels");function vt(e,t){t||(t=ce().providerModels);let n=t?.[e];if(n&&n.length>0){try{let r=W(e);if(r.length>0)return ae(n,r)}catch{}try{let r=C(e);if(r)return ae(n,r.getAvailableModels())}catch{}return n}try{let r=W(e);if(r.length>0)return r}catch{}try{let r=C(e);if(r)return r.getAvailableModels()}catch{}return[]}o(vt,"getProviderAvailableModels");function yt(e,t){let n=pe(e,t);if(n!=="unknown")return n;try{let r=C(e);if(r)return r.getReasoningCapability(t)}catch{}return"unknown"}o(yt,"getProviderReasoningCapability");function Et(e){let t=me(e);if(t)return t;try{return H().find(r=>r.name===e)?.capabilityProfile??null}catch{return null}}o(Et,"getProviderCapabilityProfile");function je(e,t){let n=Et(e),r=yt(e,t);if(n)return{capabilityProfile:n,reasoningCapability:r};try{let i=ve(e);return{capabilityProfile:i.getCapabilityProfile(),reasoningCapability:i.getReasoningCapability(t)}}catch{return null}}o(je,"getProviderCapabilityMetadata");function sn(e,t){let n=je(e,t);return n?xe({providerName:e,model:t,capabilityProfile:n.capabilityProfile,reasoningCapability:n.reasoningCapability==="unknown"?void 0:n.reasoningCapability}):null}o(sn,"getProviderCapabilitySnapshot");function wt(e,t,n,r){let i=je(e,t);return i?be({providerName:e,model:t,capabilityProfile:i.capabilityProfile,reasoningCapability:i.reasoningCapability==="unknown"?void 0:i.reasoningCapability,reasoningMode:n,hints:r}):null}o(wt,"getProviderPolicyDecision");function an(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"forwards only the latest user message":"preserves full conversation history",r=e.mcpSupport==="native"?"MCP available":"MCP unavailable";return`${t}; ${n}; ${r}`}o(an,"describeProviderCapabilitySummary");function cn(e){switch(e){case"native-budget":return"B";case"native-effort":return"E";case"native-toggle":return"T";case"native-adaptive":return"A";default:return"-"}}o(cn,"formatReasoningCapabilityShort");function _(e){if(e)return e==="none"?"off":e}o(_,"formatReasoningEffortForDisplay");function X(e,t){let n=_(t);n&&!e.includes(n)&&e.push(n)}o(X,"pushUniqueEffortDisplay");function ln(e,t){let n=["auto"],i=U(e,t)?.supportedEfforts?.filter(s=>s.isUserVisible!==!1);if(!i||i.length===0){for(let s of["off","low","medium","high"])X(n,s);return n}for(let s of i)X(n,s.value);return n}o(ln,"getProviderReasoningEffortOptions");function un(e,t){let n=U(e,t),r=new Set(n?.disabledEfforts??[]),i=n?.supportedEfforts?.filter(c=>c.isUserVisible!==!1),s=[],a=n?.supportsDisabledThinking===!0;if(!i||i.length===0){for(let c of["low","medium","high"])X(s,c);a=!0}else for(let c of i){if(c.value==="none"){a=!0;continue}if(r.has(c.value)){a=!0;continue}X(s,c.value)}let l=[];return a&&l.push("off"),l.push(...s),l.push("auto"),l}o(un,"getProviderReasoningEffortCycle");function xt(e,t){if(t===!1)return"off";switch(e){case"off":return"off";case"quick":return"low";case"balanced":return"medium";case"deep":return"high";default:return"auto"}}o(xt,"legacyReasoningModeToEffortDisplay");function U(e,t){let n=t??ht(e);if(!n)return;let r=ye(e,n)?.reasoningProfile;if(r)return le(r,we(e,n))}o(U,"resolveReasoningProfileForDisplay");function dn(e){let t=_(e.effort)??xt(e.reasoningMode,e.thinking),n=U(e.provider,e.model);if(!n)return t;try{let r=ue({capability:n,explicitEffort:e.effortOverride?e.effort:void 0,sessionEffort:e.effortOverride?void 0:e.effort,legacyReasoningMode:e.reasoningMode,thinking:e.thinking}),i=_(r.configuredEffort)??t,a=r.configuredEffort!==void 0&&n.disabledEfforts?.includes(r.configuredEffort)===!0?"off":_(r.effectiveEffort);return a&&a!==i?`${i}->${a}`:i}catch{if(e.effort)try{let r=q({currentEffort:e.effort,capability:n}),i=_(e.effort)??t,s=_(r.effectiveEffort);return s&&s!==i?`${i}->${s}`:i}catch{return t}return t}}o(dn,"formatReasoningEffortStatusLabel");function fn(e){let t=It(e);if(!t)return{preserved:!0};let n=U(e.provider,e.model);if(!n)return{configuredEffort:t,runtimeEffort:t,preserved:!0};let r=q({currentEffort:t,capability:n});return{configuredEffort:t,runtimeEffort:r.effectiveEffort,preserved:r.preserved,diagnostic:r.diagnostic}}o(fn,"resolveProviderReasoningRuntimeEffort");function bt(e){switch(e){case"native-budget":return"budget";case"native-effort":return"effort";case"native-toggle":return"toggle";case"native-adaptive":return"adaptive";default:return"none"}}o(bt,"describeReasoningCapabilityControl");function pn(e,t){if(e==="off")return"Reasoning disabled";switch(t){case"native-budget":return"Uses native thinking budget control";case"native-effort":return"Uses native reasoning effort control";case"native-toggle":return"Uses provider-native thinking toggle only";case"native-adaptive":return"Model adaptively decides thinking depth (Opus 4.7+)";case"none":return"Runs without native reasoning parameters";case"prompt-only":return"Uses prompt overlays only; no native reasoning parameter";default:return"Runs without native reasoning parameters"}}o(pn,"describeReasoningExecution");function mn(e){let t=[];e||(e=ce().providerModels);for(let n of ge())t.push({name:n.name,model:n.model,models:vt(n.name,e),configured:n.capabilityProfile.transport==="cli-bridge"?!0:n.configured,reasoningCapability:n.reasoningCapability,capabilityProfile:n.capabilityProfile});try{let n=H().map(r=>({...r,models:(()=>{let i=e?.[r.name];return i&&i.length>0?ae(i,r.models):r.models})()}));t.push(...n)}catch{}return t}o(mn,"getProviderList");function gn(e){if(de(e))return!0;try{return C(e)?.isConfigured()??!1}catch{return!1}}o(gn,"isProviderConfigured");var F=class extends Error{static{o(this,"InvalidAgentModeConfigError")}};function Pt(e){let t=e.agentMode;if(t===void 0||t==="ama"||t==="sa")return e;if(t!=="amaw"&&t!=="ama-workflow")throw new F(`Invalid agentMode "${t}" in ${f}. Expected "ama" or "sa".`);let n={...e,agentMode:"ama",schemaVersion:Math.max(e.schemaVersion??0,st)},r=`${f}.migrate-${process.pid}.tmp`;try{u.writeFileSync(r,JSON.stringify(n,null,2),{mode:384}),u.renameSync(r,f)}catch{u.rmSync(r,{force:!0})}return Ne||(process.emitWarning(`Migrated persisted agentMode "${t}" to "ama". Workflow use is now explicit intent.`,{code:"KODAX_AGENT_MODE_MIGRATED"}),Ne=!0),n}o(Pt,"migrateLegacyAgentModeConfig");function ce(){try{if(u.existsSync(f)){let n=JSON.parse(u.readFileSync(f,"utf-8")),r=Pt(n),i=r.reasoningCeiling??r.reasoningMode,s=[],a={};try{s=[...K(d).document.paths]}catch{}try{a=$(d).document.servers}catch{}return mt(pt({...r,reasoningMode:i,extensions:se(s),mcpServers:a}))}}catch(n){if(n instanceof F)throw n}let e,t;try{let n=K(d);n.source!=="default"&&(e=se([...n.document.paths]))}catch{}try{let n=$(d);n.source!=="default"&&(t=n.document.servers)}catch{}return{...e===void 0?{}:{extensions:e},...t===void 0?{}:{mcpServers:t}}}o(ce,"loadConfig");var St=p.join(d,"config.example.jsonc"),oe={mcp:p.join(d,"integrations","mcp.example.jsonc"),a2a:p.join(d,"integrations","a2a.example.jsonc"),extensions:p.join(d,"integrations","extensions.example.jsonc")},_t=[{name:"core",path:St},{name:"mcp",path:oe.mcp},{name:"a2a",path:oe.a2a},{name:"extensions",path:oe.extensions}];function Ct(){let e=[];for(let t of _t)try{if(u.existsSync(t.path))continue;u.mkdirSync(p.dirname(t.path),{recursive:!0}),u.writeFileSync(t.path,Ce(t.name),"utf8"),e.push(t.path)}catch{}return e}o(Ct,"ensureExampleConfigFiles");function hn(){return Ct()[0]}o(hn,"ensureExampleConfigFile");var j=new Map;function kt(e,t){let n=process.env[e],r=j.get(e),i=r!==void 0&&n===r;if(n!==void 0&&!i){j.delete(e);return}if(t===void 0){i&&delete process.env[e],j.delete(e);return}process.env[e]=t,j.set(e,t)}o(kt,"projectConfigEnvironment");var Xe=[{configPath:"streamIdleTimeoutMs",env:"KODAX_STREAM_IDLE_TIMEOUT_MS",value:o(e=>x(e.streamIdleTimeoutMs),"value")},{configPath:"repoIntelligenceMode",env:"KODAX_REPO_INTELLIGENCE",value:o(e=>e.repoIntelligenceMode,"value")},{configPath:"repoIntelligenceTrace",env:"KODAX_REPO_INTELLIGENCE_TRACE",value:o(e=>S(e.repoIntelligenceTrace),"value")},{configPath:"verifierLog",env:"KODAX_VERIFIER_LOG",value:o(e=>S(e.verifierLog),"value")},{configPath:"stallLog",env:"KODAX_STALL_LOG",value:o(e=>S(e.stallLog),"value")},{configPath:"fallbackProviders",env:"KODAX_FALLBACK_PROVIDERS",value:o(e=>Ot(e.fallbackProviders),"value")},{configPath:"fastProvider",env:"KODAX_FAST_PROVIDER",value:o(e=>v(e.fastProvider),"value")},{configPath:"fastModel",env:"KODAX_FAST_MODEL",value:o(e=>v(e.fastModel),"value")},{configPath:"deepProvider",env:"KODAX_DEEP_PROVIDER",value:o(e=>v(e.deepProvider),"value")},{configPath:"deepModel",env:"KODAX_DEEP_MODEL",value:o(e=>v(e.deepModel),"value")},{configPath:"provider",env:"KODAX_PROVIDER",value:o(e=>v(e.provider),"value")},{configPath:"effort",env:"KODAX_EFFORT",value:o(e=>v(e.effort),"value")},{configPath:"runtimeMode",env:"KODAX_RUNTIME_MODE",value:o(e=>e.runtimeMode,"value")},{configPath:"sessionRetentionDays",env:"KODAX_SESSION_RETENTION_DAYS",value:o(e=>x(e.sessionRetentionDays),"value")},{configPath:"maxOutputTokens",env:"KODAX_MAX_OUTPUT_TOKENS",value:o(e=>x(e.maxOutputTokens),"value")},{configPath:"disablePromptCache",env:"KODAX_DISABLE_PROMPT_CACHE",value:o(e=>S(e.disablePromptCache),"value")},{configPath:"lsp",env:"KODAX_LSP",value:o(e=>S(e.lsp),"value")},{configPath:"lspAutoDownload",env:"KODAX_LSP_DOWNLOAD",value:o(e=>S(e.lspAutoDownload),"value")},{configPath:"acpLogLevel",env:"KODAX_ACP_LOG",value:o(e=>v(e.acpLogLevel),"value")},{configPath:"repoIntelligence.toolWaitMs",env:"KODAX_REPO_INTELLIGENCE_TOOL_WAIT_MS",value:o(e=>x(e.repoIntelligence?.toolWaitMs),"value")},{configPath:"repoIntelligence.workerTimeoutMs",env:"KODAX_REPO_INTELLIGENCE_WORKER_TIMEOUT_MS",value:o(e=>x(e.repoIntelligence?.workerTimeoutMs),"value")},{configPath:"repoIntelligence.workerOldSpaceMb",env:"KODAX_REPO_INTELLIGENCE_WORKER_OLD_SPACE_MB",value:o(e=>x(e.repoIntelligence?.workerOldSpaceMb),"value")},{configPath:"repoIntelligence.storageDir",env:"KODAX_REPO_INTELLIGENCE_STORAGE_DIR",value:o(e=>v(e.repoIntelligence?.storageDir),"value")},{configPath:"workflow.maxConcurrency",env:"KODAX_WORKFLOW_MAX_CONCURRENCY",value:o(e=>x(e.workflow?.maxConcurrency),"value")}];function Mt(e){for(let t of Xe)kt(t.env,t.value(e))}o(Mt,"applyConfigSurfaceBridges");function v(e){return e?.trim()||void 0}o(v,"normalizedConfigString");function x(e){return typeof e=="number"&&Number.isFinite(e)?String(e):void 0}o(x,"configNumberString");function S(e){return e===void 0?void 0:e?"1":"0"}o(S,"configBooleanString");function Ot(e){return e?.filter(t=>t.trim().length>0).join(",")}o(Ot,"configStringList");var vn=[...Xe.map(({configPath:e,env:t})=>({configPath:e,env:t}))];function At(e){Mt(e)}o(At,"applyConfigEnvironment");function yn(){dt();let e=ce();return At(e),ft(e),Se(e.locale),e}o(yn,"prepareRuntimeConfig");function En(e){let t={};if(u.existsSync(f))try{let a=JSON.parse(u.readFileSync(f,"utf8"));a&&typeof a=="object"&&!Array.isArray(a)&&(t=a)}catch{}let{extensions:n,mcpServers:r,...i}=e,s={...t,...i};for(let a of Object.keys(i))i[a]===void 0&&delete s[a];if(u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(s,null,2)),n!==void 0){let a=K(d);A({domain:"extensions",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,paths:se(n)??[]},validate:M})}if(r!==void 0){let a=$(d);A({domain:"mcp",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,servers:r},validate:k})}}o(En,"saveConfig");function wn(e,t,n){return e.effort!==void 0||V(n).kind==="value"||t.effort!==void 0}o(wn,"resolveInitialEffortOverride");function y(e){return e?.trim()?e:void 0}o(y,"nonEmptySelection");function xn(e){return y(e.explicitProvider)??y(e.environmentProvider)??y(e.configuredProvider)??e.defaultProvider}o(xn,"resolveRuntimeProviderSelection");function bn(e){let t=y(e.explicitModel);if(t)return t;let n=y(e.configuredModel);if(!n)return;let r=y(e.explicitProvider)??y(e.environmentProvider);return r?y(e.configuredProvider)===r?n:void 0:n}o(bn,"resolveRuntimeModelSelection");function Pn(e){if(e.explicitEffort!==void 0)return z(e.explicitEffort);let t=V(e.environmentEffort);return t.kind==="value"?t.value:e.configuredEffort===void 0?void 0:z(e.configuredEffort)}o(Pn,"resolveRuntimeEffortSelection");function It(e){return e.permissionMode==="plan"&&e.effortOverride!==!0&&e.planModeEffort!==void 0?e.planModeEffort:e.effort}o(It,"resolvePermissionModeEffort");async function Sn(e){try{let{stdout:t}=await it("git rev-parse --show-toplevel",{cwd:e});return t.trim()}catch{return null}}o(Sn,"getGitRoot");function Rt(e){switch(e){case"builtin":return"Built-in";case"runtime":return"Runtime extension";case"custom":return"Custom config";default:return"Unknown"}}o(Rt,"formatProviderSourceKind");function _n(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"latest-user-message only":"full conversation history";return[`Source: ${Rt(e.sourceKind)}`,`Transport: ${t}`,`Conversation semantics: ${n}`,`Context fidelity: ${e.contextFidelity}`,`Tool calling: ${e.toolCallingFidelity}`,`Session behavior: ${e.sessionSupport}`,`Long-running support: ${e.longRunningSupport}`,`Evidence-heavy flows: ${e.evidenceSupport}`,`Multimodal support: ${e.multimodalSupport}`,`MCP support: ${e.mcpSupport}`,`Reasoning control: ${bt(e.reasoningCapability)}`]}o(_n,"formatProviderCapabilityDetailLines");function Cn(e,t,n){return[{label:"General coding",hints:{}},{label:"Evidence-heavy review",hints:{evidenceHeavy:!0}},{label:"Long-running task",hints:{longRunning:!0}}].map(i=>({label:i.label,decision:wt(e,t,n,i.hints)})).filter(i=>i.decision!==null)}o(Cn,"getProviderCommonPolicyScenarios");var $e=.5,Ke=0,I={locked:!1,queue:[]};async function kn(e){for(;I.locked;)await new Promise(t=>I.queue.push(t));I.locked=!0;try{let t=(Date.now()-Ke)/1e3;t<$e&&await new Promise(r=>setTimeout(r,($e-t)*1e3));let n=await e();return Ke=Date.now(),n}finally{I.locked=!1;let t=I.queue.shift();t&&t()}}o(kn,"rateLimitedCall");export{Dt as a,_e as b,Ce as c,k as d,M as e,P as f,$ as g,K as h,Be as i,Ft as j,A as k,Oe as l,d as m,tn as n,f as o,nn as p,ut as q,rn as r,ft as s,gt as t,on as u,ht as v,vt as w,yt as x,Et as y,sn as z,wt as A,an as B,cn as C,_ as D,ln as E,un as F,dn as G,fn as H,bt as I,pn as J,mn as K,gn as L,ce as M,St as N,oe as O,Ct as P,hn as Q,vn as R,At as S,yn as T,En as U,wn as V,xn as W,bn as X,Pn as Y,It as Z,Sn as _,Rt as $,_n as aa,Cn as ba,kn as ca};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-2RI252RN.js";import"./chunk-JSDLBXME.js";import"./chunk-E27LHEIP.js";import"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import"./chunk-ONUPGMER.js";export{a as loadCompactionConfig};
|
package/dist/chunks/{construction-bootstrap-OXDDDW6O.js → construction-bootstrap-ZJPXUPXQ.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-VVE3UM4F.js";import"./chunk-IR5KIK7E.js";import"./chunk-MVARIMQV.js";import"./chunk-VDGCGOQH.js";import"./chunk-SQODXBLX.js";import"./chunk-44QXPEEE.js";import{Yb as a,bc as i,ic as l,nc as c}from"./chunk-GIK4SGAT.js";import"./chunk-ZJIMT5I3.js";import"./chunk-JSDLBXME.js";import"./chunk-E27LHEIP.js";import"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import{a as n}from"./chunk-ONUPGMER.js";var r=null;function y(e){r=e}n(y,"bindAskUserForConstruction");function p(e){return e.content?.capabilities?.tools??[]}n(p,"readDeclaredTools");var m=n(async e=>{if(!r)return"reject";let t=p(e),o=t.length>0?t.join(", "):"<none>";return await r({question:`Activate constructed tool ${e.name}@${e.version}?
|
|
3
3
|
It declares capabilities.tools = [${o}].`,allowCustomInput:!1,options:[{label:"Approve \u2014 register and make callable",description:"The tool will be added to the active tool registry and the LLM can invoke it on the next turn.",value:"approve"},{label:"Reject \u2014 do not register",description:"The artifact stays staged on disk; rerun activate_tool to retry.",value:"reject"}]})==="approve"?"approve":"reject"},"replConstructionPolicy"),v=n(async e=>{if(!r)return"reject";let t=e.llmSummary.flaggedConcerns.length>0?e.llmSummary.flaggedConcerns.map(u=>` \u2022 ${u}`).join(`
|
|
4
4
|
`):" \u2022 <none>",o=e.prevContent.instructions??"<no instructions>",s=e.nextContent.instructions??"<no instructions>",d=[`Self-modify activation: ${e.agentName}@${e.fromVersion} \u2192 ${e.toVersion}`,"",`LLM diff summary (severity=${e.llmSummary.severity}):`,` ${e.llmSummary.summary}`,"","Flagged concerns:",t,"",`Budget remaining (after approve): ${e.budgetRemaining-1}/${e.budgetLimit}`,"","\u2500\u2500 Previous instructions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",o,"\u2500\u2500 Proposed instructions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",s,"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","","The LLM summary is advisory \u2014 read the proposed instructions above before approving."].join(`
|
|
5
5
|
`);return await r({question:d,allowCustomInput:!1,options:[{label:"Approve \u2014 activate the new version on the next run",description:"Resolver swap is deferred to the next Runner.run boundary so the in-flight conversation keeps the prior reference.",value:"approve"},{label:"Reject \u2014 stay on the previous version",description:"Budget is not consumed on rejection; the staged version is left on disk for diff inspection.",value:"reject"}]})==="approve"?"approve":"reject"},"replSelfModifyAskUser");async function h(e){a({cwd:e,policy:m,selfModifyAskUser:v});let t=await i();await c();let o=await l({cwd:e});return{loaded:t.loaded,failed:t.failed,tampered:t.tampered,markdownLoaded:o.loaded,markdownFailures:o.failed}}n(h,"bootstrapConstructionRuntime");export{y as bindAskUserForConstruction,h as bootstrapConstructionRuntime};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{$ as Vh,A as uh,Aa as ui,B as vh,Ba as vi,C as wh,Ca as wi,D as xh,Da as xi,E as yh,Ea as yi,F as zh,Fa as zi,G as Ah,Ga as Ai,H as Bh,Ha as Bi,I as Ch,Ia as Ci,J as Dh,Ja as Di,K as Eh,Ka as Ei,L as Fh,La as Fi,M as Gh,N as Hh,O as Ih,P as Jh,Q as Kh,R as Lh,S as Mh,T as Nh,U as Oh,V as Ph,W as Qh,X as Rh,Y as Sh,Z as Th,_ as Uh,a as aa,aa as Wh,b as ba,ba as Xh,c as ca,ca as Yh,d as Zg,da as Zh,e as _g,ea as _h,f as $g,fa as $h,g as ah,ga as ai,h as bh,ha as bi,i as ch,ia as ci,j as dh,ja as di,k as eh,ka as ei,l as fh,la as fi,m as gh,ma as gi,n as hh,na as hi,o as ih,oa as ii,p as jh,pa as ji,q as kh,qa as ki,r as lh,ra as li,s as mh,sa as mi,t as nh,ta as ni,u as oh,ua as oi,v as ph,va as pi,w as qh,wa as qi,x as rh,xa as ri,y as sh,ya as si,z as th,za as ti}from"./chunk-VVE3UM4F.js";import{a as ag,b as bg,c as cg,d as dg,e as eg,f as fg,g as gg,h as hg,i as ig,j as Tg}from"./chunk-IR5KIK7E.js";import{A as Jg,B as Kg,C as Lg,D as Mg,E as Ng,F as Og,G as Pg,H as Qg,I as Rg,J as Sg,a as jg,b as kg,c as lg,d as mg,e as ng,f as og,g as pg,h as qg,i as rg,j as sg,k as tg,l as ug,m as vg,n as wg,o as xg,p as yg,q as zg,r as Ag,s as Bg,t as Cg,u as Dg,v as Eg,w as Fg,x as Gg,y as Hg,z as Ig}from"./chunk-MVARIMQV.js";import{$ as Nf,A as vf,B as wf,Ba as Ug,C as xf,Ca as Vg,D as yf,E as zf,F as Af,I as Bf,J as Cf,Ja as Wg,K as Df,Ka as Xg,L as Ef,M as Ff,Ma as Yg,N as Gf,O as Hf,T as If,U as Jf,V as Kf,W as Lf,X as Mf,a as $,aa as Of,b as Aa,ba as Pf,c as Ba,ca as Qf,d as af,e as bf,f as cf,fa as Rf,g as df,h as ef,i as ff,k as kf,l as lf,m as mf,n as nf,o as of,p as pf,q as qf,v as rf,w as sf,y as tf,z as uf}from"./chunk-VDGCGOQH.js";import"./chunk-SQODXBLX.js";import{a as $f}from"./chunk-44QXPEEE.js";import{$ as qc,$a as ld,$b as ge,$c as Ye,A as bc,Aa as Oc,Ab as Hd,B as cc,Bb as Id,C as dc,Ca as Pc,Cb as Jd,Cc as Ce,D as ec,Da as Qc,Db as Kd,Dc as De,Ea as Rc,Eb as Ld,Ec as Ee,Ed as Yf,Fa as Sc,Fb as Md,Fc as Fe,Fd as Zf,Ga as Tc,Gb as Nd,Gc as Ge,Gd as _f,Ha as Uc,Hb as Od,Hc as He,Ia as Vc,Ib as Pd,Ic as Ie,Ja as Wc,Jb as Qd,Jc as Je,K as fc,Ka as Xc,Kb as Rd,Kc as Ke,L as gc,La as Yc,Lb as Sd,Lc as Le,M as hc,Ma as Zc,Mb as Td,Mc as Me,N as ic,Na as _c,Nb as Ud,Nc as Ne,O as jc,Oa as $c,Ob as Vd,Oc as Oe,Pa as ad,Pb as Wd,Pc as Pe,Qa as bd,Qb as Xd,Qc as Qe,Ra as cd,Rb as Yd,Rc as Re,Sa as dd,Sb as Zd,Sc as Se,T as kc,Ta as ed,Tb as _d,Tc as Te,Ua as fd,Ub as $d,V as lc,Va as gd,Vb as ae,Wa as hd,Wb as be,X as mc,Xa as id,Xb as ce,Xc as Ue,Y as nc,Yb as de,Yc as Ve,Z as oc,Za as jd,Zb as ee,Zc as We,_ as pc,_a as kd,_b as fe,_c as Xe,ab as md,ac as he,ad as Ze,ba as rc,bb as nd,bc as ie,bd as _e,ca as sc,cb as od,cc as je,cd as $e,d as Nb,da as tc,db as pd,dc as ke,dd as gf,e as Ob,ea as uc,eb as qd,ec as le,ed as hf,fa as vc,fb as rd,fc as me,fd as jf,ga as wc,gb as sd,gc as ne,ha as xc,hb as td,hc as oe,i as Pb,ia as yc,ib as ud,ic as pe,j as Qb,ja as zc,jb as vd,jc as qe,k as Rb,ka as Ac,kb as wd,kc as re,l as Sb,la as Bc,lb as xd,lc as se,m as Tb,ma as Cc,mc as te,n as Ub,na as Dc,nc as ue,o as Vb,oa as Ec,ob as yd,oc as ve,p as Wb,pa as Fc,pc as we,q as Xb,qa as Gc,qc as xe,r as Yb,ra as Hc,rc as ye,s as Zb,sb as zd,sc as ze,sd as Sf,t as _b,tb as Ad,tc as Ae,td as Tf,ua as Ic,ub as Bd,uc as Be,ud as Uf,va as Jc,vb as Cd,vd as Vf,wa as Kc,wb as Dd,wd as Wf,xa as Lc,xb as Ed,xd as Xf,y as $b,ya as Mc,yb as Fd,z as ac,za as Nc,zb as Gd}from"./chunk-GIK4SGAT.js";import{Aa as I,Ba as J,C as h,Ca as K,D as i,Da as L,E as j,Ea as M,F as k,Fa as N,G as l,Ga as O,H as m,Ha as P,Ia as Q,Ja as R,Ka as S,La as T,Ma as U,Na as V,Oa as W,Pa as X,Qa as Y,Ra as Z,U as n,Ua as _,ca as o,d as a,da as p,e as b,f as c,ia as q,ja as r,ka as s,la as t,m as d,ma as u,n as e,na as v,oa as w,pa as x,qa as y,ra as z,sa as A,ta as B,ua as C,v as f,va as D,w as g,wa as E,xa as F,ya as G,za as H}from"./chunk-ZJIMT5I3.js";import{Ac as vb,Ec as wb,Fc as xb,Mc as yb,Nc as zb,Oc as Ab,Pc as Bb,Qc as Cb,Rc as Db,Sc as Eb,Uc as Fb,Vc as Gb,Wc as Hb,Xc as Ib,Yc as Jb,Zc as Kb,a as Ca,b as Da,bc as Za,c as Ea,cc as _a,d as Fa,dc as $a,e as Ga,ec as ab,ed as Lb,f as Ha,fc as bb,fd as Mb,gc as cb,h as Ia,hc as db,i as Ja,ic as eb,j as Ka,jc as fb,k as La,kc as gb,l as Ma,lc as hb,mc as ib,nc as jb,oc as kb,pc as lb,qc as mb,rc as nb,s as Na,sa as Ra,sb as Xa,sc as ob,t as Oa,tb as Ya,tc as pb,u as Pa,uc as qb,v as Qa,va as Sa,vc as rb,wc as sb,yc as tb,zc as ub}from"./chunk-JSDLBXME.js";import{d as Ta,e as Ua,f as Va,i as Wa}from"./chunk-E27LHEIP.js";import{F as za,a as da,b as ea,c as fa,d as ga,e as ha,f as ia,g as ja,h as ka,i as la,j as ma,k as na,l as oa,m as pa,n as qa,o as ra,p as sa,q as ta,r as ua,s as va,t as wa,u as xa,y as ya}from"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import"./chunk-ONUPGMER.js";export{vf as ALWAYS_RESIDENT_TOOL_NAMES,Zh as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,_h as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,si as BASH_POLICY_SPEC,lh as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,di as BREAKER_ERROR_THRESHOLD,ei as BREAKER_WINDOW_MS,ug as BUILTIN_WORKFLOWS,Ob as CANCELLED_TOOL_RESULT_MESSAGE,Nb as CANCELLED_TOOL_RESULT_PREFIX,Nh as CODING_AGENT_MARKER,dh as CODING_INVARIANTS,Ug as CODING_SUMMARY_PROMPT,Vg as CODING_UPDATE_SUMMARY_PROMPT,Od as CapabilityDeniedError,fh as Client,Yf as CodingActorSession,xe as CombinedExtensionRuntime,Pd as ConstructionManifestError,Wg as DEFAULT_CODING_AGENT_NAME,Ch as DEFAULT_DANGEROUS_PATTERNS,Md as DEFAULT_HANDLER_TIMEOUT_MS,Bf as DEFAULT_RESILIENCE_CONFIG,Bh as DEFAULT_SAFE_PATTERNS,Zd as DEFAULT_SELF_MODIFY_BUDGET,oi as DEFAULT_SPECULATIVE_WINDOW_MS,Qb as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Pb as DEFAULT_TOOL_OUTPUT_MAX_LINES,bg as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,Qa as DefaultSummaryCompaction,Kh as EMIT_VERDICT_TOOL_NAME,Aa as ErrorCategory,mg as FINDING_VERIFICATION_OUTPUT_SCHEMA,ed as GENERATOR_AGENT_NAME,ea as ImageResizeError,Ja as KODAX_API_MIN_INTERVAL,s as KODAX_DEFAULT_PROVIDER,Da as KODAX_DEFAULT_TIMEOUT,va as KODAX_FILE_MEDIA_TYPES,Ea as KODAX_HARD_TIMEOUT,ta as KODAX_IMAGE_MEDIA_TYPES,Ha as KODAX_MAX_INCOMPLETE_RETRIES,Fa as KODAX_MAX_RETRIES,Ca as KODAX_MAX_TOKENS,r as KODAX_PROVIDERS,q as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,Ga as KODAX_RETRY_BASE_DELAY,g as KODAX_STABLE_EFFORT_INTENTS,Ia as KODAX_STAGGER_DELAY,Ce as KODAX_TOOLS,ac as KODAX_UNDERLYING_CAPABILITY_TOPICS,ua as KODAX_VIDEO_MEDIA_TYPES,o as KodaXAnthropicCompatProvider,n as KodaXBaseProvider,fh as KodaXClient,a as KodaXError,we as KodaXExtensionRuntime,da as KodaXMediaError,p as KodaXOpenAICompatProvider,b as KodaXProviderError,c as KodaXRateLimitError,ba as KodaXSessionError,ca as KodaXTerminalError,aa as KodaXToolError,tb as LINEAGE_ENTRY_TYPES,Uf as LSP_SERVERS,vb as LineageCompaction,ub as LineageExtension,Vf as LspService,bc as MANUAL_REGISTRY,$b as MANUAL_TOPIC_IDS,ka as MAX_DIMENSION,eb as McpAuthRequiredError,qb as McpCapabilityProvider,db as McpExpiredSessionError,rb as McpManager,pb as McpServerRuntime,pa as PASTE_TMP_DIR_ENV,qa as PASTE_TMP_TTL_MS,dd as PLANNER_AGENT_NAME,Ka as PROMISE_PATTERN,bf as PROMPT_SECTION_REGISTRY,Mh as PROTOCOL_EMITTER_TOOLS,Hf as ProviderRecoveryCoordinator,Rb as READ_DEFAULT_LIMIT,Tb as READ_MAX_LINE_CHARS,Sb as READ_PREFLIGHT_SIZE_BYTES,se as REPO_EXPLORER_AGENT_NAME,te as REPO_EXPLORER_TOOL_NAMES,Sa as Runner,lg as SCOPED_REVIEW_OUTPUT_SCHEMA,cd as SCOUT_AGENT_NAME,Ci as SCOUT_THEN_AUTHOR_PROMPT_LINES,lf as SELF_KNOWLEDGE_ROUTING_RULE,af as SYSTEM_PROMPT,Lg as SYSTEM_WORKFLOW_LIMITS,Ff as StableBoundaryTracker,la as TARGET_RAW_SIZE_BYTES,hd as TASK_ENGINE_ROLE_AGENTS,Oh as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,vi as TRACING_ENV,fd as WORKER_AGENT_NAME,ag as WORKFLOW_GENERATION_SYSTEM_PROMPT,ee as _resetRuntimeForTesting,he as activate,ya as actorQueueId,wc as analyzeChangedScope,Xd as appendAuditEntry,Db as appendSessionLineageLabel,sd as applyAccountingDelta,pg as applyFindingVerification,Eb as applySessionCompaction,lc as applyToolResultGuardrail,Kb as archiveOldIslands,Ei as authorWorkflowViaWorker,ci as autoModeDenialShouldFallback,li as bashSignalCollector,wi as bootstrapTracing,$g as boundedRevise,hi as breakerShouldFallback,ah as budgetCeiling,Mg as buildApprovalSummary,vd as buildBlockedGoal,mf as buildCapabilityContextSections,Qh as buildClassifierPrompt,wd as buildCompleteGoal,rd as buildCreatedGoal,Of as buildFallbackRoutingDecision,ph as buildGoalRuntimeBinding,ob as buildInitializeCapabilities,Ud as buildLlmReviewPrompt,dc as buildManualToolDescription,uh as buildMcpReverseCapabilities,td as buildPausedGoal,qf as buildPromptMessageContent,ff as buildPromptSnapshot,If as buildProviderCapabilitySnapshot,Pf as buildProviderPolicyHintsForDecision,Jf as buildProviderPolicyPromptNotes,vc as buildRepoIntelligenceContext,Ic as buildRepoIntelligenceIndex,sc as buildRepoOverview,ud as buildResumedGoal,sg as buildScopedReviewFinalPrompt,qg as buildScopedReviewPrimaryPrompt,rg as buildScopedReviewVerificationPrompt,Di as buildScoutThenAuthorPrompt,kf as buildSelfKnowledgeRoutingRule,Ib as buildSessionTree,of as buildSystemPrompt,nf as buildSystemPromptSnapshot,Ze as buildToolResultBudget,_e as buildToolResultBudgetFromUsage,zd as buildToolSearchIndex,Ig as buildWorkflowCostReport,fg as buildWorkflowGenerationSkillContext,eg as buildWorkflowGenerationUserPrompt,ki as checkAbsoluteDeny,pf as checkIncompleteToolCalls,Rf as checkPromiseSignal,$e as clampToolResultPolicyToBudget,Ng as clampWorkflowLimits,Sh as classify,Eh as classifyBashCommand,Ba as classifyError,rc as classifyFileCategory,Df as classifyResilienceError,Ve as cleanupExpiredToolOutputs,Ya as cleanupIncompleteToolCalls,We as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,ni as collectAllSignals,ye as combineExtensionRuntimes,Gh as computeInputSignature,Th as computeRulesFingerprint,de as configureRuntime,zf as consumeCompactionCooldown,Xc as convertCapabilityReadResult,Wc as convertProviderSearchResults,Jb as countActiveLineageMessages,Ma as countTokens,Na as createAgent,$h as createAutoModeDenialTracker,ri as createAutoModeToolGuardrail,Dh as createBashClassifierConfig,ui as createBashPrefixExtractor,Ke as createBuiltinToolDefinition,fi as createCircuitBreaker,jg as createCodingWorkflowBackend,xf as createCompactionAntiThrashState,Qd as createCtxProxy,F as createCustomProvider,Xg as createDefaultCodingAgent,Fh as createDenialTracker,ze as createExtensionRuntime,_f as createExternalActorTurnExecutor,ia as createFileArtifactFromPath,Oa as createHandoff,ha as createImageArtifactFromPath,Pa as createInMemorySession,xh as createKodaXTaskRunner,Zf as createLocalCodingActorControl,_a as createMcpCapabilityId,sb as createMcpManager,fb as createMcpTransport,cf as createPromptSection,Qf as createReasoningPlan,Kg as createRunGraphWriter,uf as createRuntimeContextBudgetSnapshot,Zg as createSessionControl,yb as createSessionLineage,Ph as createToolResultTruncationGuardrail,ja as createVideoArtifactFromPath,yi as createWorkflowLifecycleController,Bi as createWorkflowPatternTemplateModule,Rg as createWorkflowRunManager,hh as decideWorkflowInvocation,Hd as dedupeExtensionPathsByEntrypoint,Za as defaultMcpCacheDir,Nd as defaultPolicy,Dg as deleteSavedWorkflow,ce as disableSelfModify,jb as discoverAuthorizationServerMetadata,Ld as discoverDefaultExtensions,Kd as discoverExtensionsInDirectory,Jd as discoverExtensionsInDirectoryDetailed,re as discoverMarkdownAgents,kb as discoverOAuthEndpoints,ib as discoverProtectedResourceMetadata,xg as discoverSavedWorkflows,kd as drainPendingSwaps,j as effortToLegacyReasoningMode,Lh as emitVerdict,Pg as emitWorkflowAgentDigest,za as enqueueWithArtifacts,ue as ensureBuiltinRepoExplorerAgent,La as estimateTokens,tf as estimateToolSchemaTokens,Kf as evaluateProviderPolicy,Id as excludeExtensionPathsByEntrypoint,Cd as exec,Ue as executeTool,Lb as extractArtifactLedger,ti as extractCommandPrefix,sf as extractComparableUserMessageText,Vc as extractHtmlTitle,hb as extractInsufficientScope,rf as extractPromptComparableText,gb as extractResourceMetadataUrl,xb as extractTitleFromMessages,mi as fileSignalCollector,Zc as finalizeRetrievalResult,ne as findByVersion,Fb as findPreviousUserEntryId,Hb as forkSessionLineage,jf as formatAgentsForPrompt,zh as formatParallelDispatchResult,Ub as formatSize,wb as generateSessionId,hg as generateWorkflow,ig as generateWorkflowFromOptions,Be as getActiveExtensionRuntime,Ua as getAgentConfigHome,Va as getAgentConfigPath,Me as getAllRegisteredTools,Wa as getAppDataDir,W as getAvailableProviderNames,Je as getBuiltinRegisteredToolDefinition,Ie as getBuiltinToolDefinition,vg as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Fd as getDefaultExtensionDirectory,Wf as getDefaultLspService,Sg as getDefaultWorkflowRunManager,Jh as getDenialContext,Nc as getImpactEstimate,gf as getKodaxGlobalDir,cb as getMcpCachePaths,C as getModelCapabilities,wa as getModelInputCapabilities,Kc as getModuleContext,Mc as getProcessContext,t as getProvider,x as getProviderConfiguredCapabilityProfile,w as getProviderConfiguredReasoningCapability,y as getProviderList,v as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,Ge as getRegisteredToolDefinition,Jc as getRepoIntelligenceIndex,tc as getRepoOverview,Oc as getRepoRoutingSignals,Re as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,zb as getSessionLineagePath,Ab as getSessionMessagesFromLineage,Lc as getSymbolContext,Ee as getTool,Fe as getToolDefinition,He as getToolRegistrations,kc as getToolResultPolicy,Ai as getWorkflowPatternTemplate,od as goalTokenDelta,gh as hasExplicitNaturalLanguageWorkflowIntent,jd as hasPendingSwap,fa as inferImageMediaType,Nf as inferTaskType,ga as inferVideoMediaType,ic as inspectEditFailure,Hc as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Ih as isDeniedRecently,V as isKnownProvider,yh as isParallelDispatchDirective,u as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,Ef as isSessionRecoveryCandidateError,Ed as isSupportedExtensionModulePath,Oe as isToolFileMutation,Qe as isToolMutation,Pe as isToolNetworkRead,Ne as isToolPlanModeAllowed,xd as isValidTokenBudget,Sf as languageIdForPath,oe as listAll,Z as listAllModelCapabilities,ke as listArtifacts,D as listBuiltinModelCapabilities,Le as listBuiltinToolDefinitions,wg as listBuiltinWorkflows,ld as listCodingDispatchableAgents,me as listConstructed,O as listCustomProviderModelCapabilities,Te as listToolDefinitions,Se as listTools,zi as listWorkflowPatternTemplates,hf as loadAgentsFiles,pe as loadAgentsFromMarkdown,Xh as loadAutoRules,Fg as loadGeneratedWorkflowFromRun,Rd as loadHandler,qe as loadMarkdownAgentScope,Ag as loadSavedWorkflow,zg as loadSavedWorkflowCapsule,nb as loadValidToken,nd as makeDisabledGoalToolsContext,i as mapLegacyReasoningModeToEffortIntent,Ye as maybeRunReferenceAwareToolOutputGc,Xe as maybeRunToolOutputGc,th as mcpRootsFromWorkspace,Mb as mergeArtifactLedger,og as mergeScopedReviewResults,$ as normalizeKodaXAgentMode,$a as normalizeMcpCapabilityId,ma as normalizePastedImage,h as normalizeReasoningEffortValue,ng as normalizeScopedReviewResult,yg as normalizeWorkflowModule,df as orderPromptSections,kg as parallelInvestigation,Wh as parseAutoRules,Rh as parseClassifierOutput,hc as parseEditToolError,Vd as parseLlmReviewVerdict,ab as parseMcpCapabilityId,ii as parseModelSpec,k as parseReasoningEffortEnv,e as parseTimeoutSecEnvMs,Bd as parseToolSearchQuery,gg as parseWorkflowGeneration,mb as performOAuthLogin,ra as persistImageAsBlock,Zb as persistToolOutput,wf as planToolExposure,Hg as preflightWorkflowCapsule,Pc as prewarmRepoIntelligenceCaches,$f as providerResilienceConfigFromTimeouts,sa as prunePasteTmpDir,oa as readAndNormalizeClipboardImage,le as readArtifact,Yd as readAuditEntries,_d as readBudget,na as readClipboardImage,be as readDisableState,pi as readSpeculativeWindowFromEnv,Uh as readTrustState,Mf as reasoningModeToDepth,Gf as reconstructMessagesWithToolGuard,bi as recordAutoModeAllow,ai as recordAutoModeBlock,jh as recordBlockerAttempt,gi as recordBreakerError,Af as recordCompactionSavings,Hh as recordDenial,eh as registerCodingInvariants,rh as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,lb as registerOAuthClient,vh as registerOfficialSandboxExtension,Ra as registerPresetDispatcher,De as registerTool,ie as rehydrateActiveArtifacts,$d as remainingSelfModifyBudget,Cg as renameSavedWorkflow,xc as renderChangedScope,Ec as renderImpactEstimate,Bc as renderModuleContext,Dc as renderProcessContext,ef as renderPromptSections,uc as renderRepoOverview,Yc as renderRetrievalResult,Cc as renderSymbolContext,sh as replaceConfiguredMcpCapabilityProvider,Eg as replaceSavedWorkflow,Tf as reportLspDiagnostics,kh as resetBlockerCounter,ae as resetBudget,ji as resolveClassifierModel,md as resolveCodingDispatchableAgent,id as resolveConstructedAgent,Gd as resolveExtensionEntrypoint,cc as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,l as resolveReasoningEffort,m as resolveReasoningEffortForModelSwitch,Lf as resolveReasoningMode,Gc as resolveRepoIntelligenceMode,Fc as resolveRepoIntelligenceRuntimeConfig,Cf as resolveResilienceConfig,Bb as resolveSessionLineageTarget,yd as resolveToolBridgeTarget,bh as resolveToolCapability,Yb as resolveToolOutputDir,_ as resolveWireEffort,cg as resolveWorkflowGenerationTimeoutMs,xi as resolveWorkflowIdentity,je as revoke,Gb as rewindSessionLineage,ve as rollbackSelfModify,Sd as runAstRules,Yg as runKodaX,Wd as runLlmReview,qh as runManagedTask,wh as runOrchestration,Qg as runWorkflowFromOptions,Og as runWorkflowModule,Jg as safeWorkflowArtifactName,Bg as saveGeneratedWorkflow,Gg as saveGeneratedWorkflowFromRun,tg as scopedReview,bb as searchMcpCatalog,Ad as searchToolIndex,Ae as setActiveExtensionRuntime,Ta as setAgentConfigHome,Cb as setSessionLineageActiveEntry,qd as shouldFlipBudgetLimited,yf as shouldSkipLlmCompaction,Xf as shutdownDefaultLspService,qi as speculativeRace,fe as stage,_g as startKodaX,Tg as startManagedWorkflow,Yh as stripAssistantText,Uc as stripHtmlToText,ge as testArtifact,d as timeoutSecToMs,qc as toolAskUserQuestion,mc as toolBash,Ac as toolChangedDiff,zc as toolChangedScope,ad as toolCodeSearch,gc as toolEdit,nc as toolGlob,oc as toolGrep,Tc as toolImpactEstimate,jc as toolInsertAfterAnchor,Qc as toolModuleContext,ch as toolPermission,Sc as toolProcessContext,_b as toolRead,yc as toolRepoOverview,bd as toolSemanticLookup,Rc as toolSymbolContext,pc as toolUndo,$c as toolWebFetch,_c as toolWebSearch,fc as toolWrite,Vb as truncateHead,Xb as truncateLine,Wb as truncateTail,Vh as trustProjectRules,pd as turnWallTimeDelta,Xa as validateAndFixToolHistory,E as validateCustomProviderConfig,dg as validateGeneratedWorkflowSource,xa as validateInputArtifactsForModel,Ah as validateSubtaskIndependence,Td as validateToolSchemaForProvider,oh as verifyGoalCompletion,Dd as webhook,mh as withGoalBeforeNextTurn,nh as withGoalStopHook,ec as withManualToolBranding,gd as workerAgent,ih as workflowStartOutcomeConsumesTurn,Fi as writeReviewPackets};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{j as a}from"./chunk-IR5KIK7E.js";import"./chunk-MVARIMQV.js";import"./chunk-44QXPEEE.js";import"./chunk-GIK4SGAT.js";import"./chunk-ZJIMT5I3.js";import"./chunk-JSDLBXME.js";import"./chunk-E27LHEIP.js";import"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import"./chunk-ONUPGMER.js";export{a as startManagedWorkflow};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{I as a,J as b}from"./chunk-
|
|
2
|
+
import{I as a,J as b}from"./chunk-MVARIMQV.js";import"./chunk-GIK4SGAT.js";import"./chunk-ZJIMT5I3.js";import"./chunk-JSDLBXME.js";import"./chunk-E27LHEIP.js";import"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import"./chunk-ONUPGMER.js";export{a as createWorkflowRunManager,b as getDefaultWorkflowRunManager};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as R,A as q,B as r,C as s,D as t,E as u,F as v,G as w,H as x,I as y,J as z,K as A,L as B,M as C,N as D,O as E,P as F,Q as G,R as H,S as I,T as J,U as K,V as L,W as M,X as N,Y as O,Z as P,_ as Q,aa as S,b as a,ba as T,c as b,ca as U,m as c,n as d,o as e,p as f,q as g,r as h,s as i,t as j,u as k,v as l,w as m,x as n,y as o,z as p}from"./chunk-
|
|
2
|
+
import{$ as R,A as q,B as r,C as s,D as t,E as u,F as v,G as w,H as x,I as y,J as z,K as A,L as B,M as C,N as D,O as E,P as F,Q as G,R as H,S as I,T as J,U as K,V as L,W as M,X as N,Y as O,Z as P,_ as Q,aa as S,b as a,ba as T,c as b,ca as U,m as c,n as d,o as e,p as f,q as g,r as h,s as i,t as j,u as k,v as l,w as m,x as n,y as o,z as p}from"./chunk-WIBLZK4G.js";import"./chunk-VVE3UM4F.js";import"./chunk-IR5KIK7E.js";import"./chunk-MVARIMQV.js";import"./chunk-VDGCGOQH.js";import"./chunk-SQODXBLX.js";import"./chunk-44QXPEEE.js";import"./chunk-GIK4SGAT.js";import"./chunk-ZJIMT5I3.js";import"./chunk-JSDLBXME.js";import"./chunk-E27LHEIP.js";import"./chunk-EDZ5KJFT.js";import"./chunk-23X6REO4.js";import"./chunk-ONUPGMER.js";export{a as CONFIG_TEMPLATES,H as KODAX_CONFIG_ENV_BINDINGS,e as KODAX_CONFIG_FILE,c as KODAX_DIR,D as KODAX_EXAMPLE_CONFIG_FILE,E as KODAX_INTEGRATION_EXAMPLE_FILES,d as KODAX_SESSIONS_DIR,k as KODAX_VERSION,f as PREVIEW_MAX_LENGTH,I as applyConfigEnvironment,r as describeProviderCapabilitySummary,y as describeReasoningCapabilityControl,z as describeReasoningExecution,G as ensureExampleConfigFile,F as ensureExampleConfigFiles,S as formatProviderCapabilityDetailLines,R as formatProviderSourceKind,s as formatReasoningCapabilityShort,t as formatReasoningEffortForDisplay,w as formatReasoningEffortStatusLabel,b as getConfigTemplate,Q as getGitRoot,m as getProviderAvailableModels,o as getProviderCapabilityProfile,p as getProviderCapabilitySnapshot,T as getProviderCommonPolicyScenarios,A as getProviderList,l as getProviderModel,q as getProviderPolicyDecision,n as getProviderReasoningCapability,v as getProviderReasoningEffortCycle,u as getProviderReasoningEffortOptions,j as getVersion,g as hydrateProcessEnvFromShell,B as isProviderConfigured,C as loadConfig,J as prepareRuntimeConfig,U as rateLimitedCall,i as registerConfiguredCustomProviders,h as resetShellEnvironmentHydrationForTesting,L as resolveInitialEffortOverride,P as resolvePermissionModeEffort,x as resolveProviderReasoningRuntimeEffort,O as resolveRuntimeEffortSelection,N as resolveRuntimeModelSelection,M as resolveRuntimeProviderSelection,K as saveConfig};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,29 +4,29 @@ export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_
|
|
|
4
4
|
export { K as KodaXLlmTimeoutConfig, p as parseTimeoutSecEnvMs, t as timeoutSecToMs } from './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
5
5
|
export { K as KodaXBaseProvider } from './types-chunks/base.d-Cz_rwpOi.js';
|
|
6
6
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
7
|
-
export { A as ALWAYS_RESIDENT_TOOL_NAMES, B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, c as BoundExtensionRuntimeController, C as CapabilityRuntimeContract, e as
|
|
8
|
-
export { AbsoluteDenyMatch, AbsoluteDenyMiss, AbsoluteDenyResult, AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, AuthorWorkflowViaWorkerHandle, AuthorWorkflowViaWorkerInput, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BashClassificationResult, BashClassifierConfig, BashRiskLevel, BlockerAttemptResult, BootstrapTracingOptions, BudgetState, BuildClassifierPromptInput, BuildPromptInput, CANCELLED_TOOL_RESULT_MESSAGE, CANCELLED_TOOL_RESULT_PREFIX, CODING_AGENT_MARKER, CODING_INVARIANTS, CODING_SUMMARY_PROMPT, CODING_UPDATE_SUMMARY_PROMPT, ChangedFileEntry, ChangedFileStatus, ChangedScopeAreaSummary, ChangedScopeReport, ClassifierDecision, ClassifierPrompt, ClassifyDecision, ClassifyOptions, Client, CodingDispatchableAgentRoute, CodingWorkflowBackendDeps, CombinedExtensionRuntime, CreateCtxProxyOptions, CreateKodaXTaskRunnerOptions, CreateWorkflowLifecycleControllerOptions, DEFAULT_CODING_AGENT_NAME, DEFAULT_DANGEROUS_PATTERNS, DEFAULT_RESILIENCE_CONFIG, DEFAULT_SAFE_PATTERNS, DEFAULT_SELF_MODIFY_BUDGET, DEFAULT_SPECULATIVE_WINDOW_MS, DEFAULT_TOOL_OUTPUT_MAX_BYTES, DEFAULT_TOOL_OUTPUT_MAX_LINES, DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS, DeleteSavedWorkflowInput, DeleteWorkflowRunOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EMIT_VERDICT_TOOL_NAME, EditRecoveryDiagnostic, EditToolErrorCode, ErrorCategory, ErrorClassification, ExtensionDiscoveryResult, ExtensionDiscoverySkipReason, FINDING_VERIFICATION_OUTPUT_SCHEMA, FindingVerificationResult, GENERATOR_AGENT_NAME, GenerateWorkflowFromOptionsInput, GenerateWorkflowInput, GeneratedWorkflow, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KODAX_TOOLS, KODAX_UNDERLYING_CAPABILITY_TOPICS, KodaXAgentWorkerSpec, Client as KodaXClient, KodaXExtensionRuntime, KodaXPromptSection, KodaXPromptSectionDefinition, KodaXPromptSectionSlot, KodaXPromptSectionStability, KodaXPromptSnapshot, KodaXPromptSnapshotMetadata, KodaXProviderCapabilitySnapshot, KodaXProviderPolicyDecision, KodaXProviderPolicyIssue, KodaXProviderPolicyIssueSeverity, KodaXProviderSourceKind, KodaXSessionError, KodaXTerminalError, KodaXToolError, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadMarkdownAgentScopeOptions, LoadMarkdownAgentScopeResult, LoadedGeneratedWorkflowFromRun, LoadedMarkdownAgent, MANUAL_REGISTRY, MANUAL_TOPIC_IDS, ManagedWorkflowRun, ManagedWorkflowSnapshot, ManagedWorkflowSource, MarkdownAgentLoadWarning, MarkdownAgentToolFilter, MarkdownLoadFailure, McpReverseWorkspace, MergedScopedReviewResult, ModuleCapsule, ModuleContextResult, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, PLANNER_AGENT_NAME, PROMPT_SECTION_REGISTRY, PROTOCOL_EMITTER_TOOLS, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, ProviderRecoveryCoordinator, QualityVerdict, READ_DEFAULT_LIMIT, READ_MAX_LINE_CHARS, READ_PREFLIGHT_SIZE_BYTES, REPO_EXPLORER_AGENT_NAME, REPO_EXPLORER_TOOL_NAMES, RawScopedReviewResult, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, ReviewPacketBudget, ReviewPacketChunk, ReviewPacketInput, ReviewPacketMetadata, ReviewSeverity, RollbackResult, RunGraphWriter, RunGraphWriterDeps, RunJsonInput, RunWorkflowFromOptionsInput, RunWorkflowModuleOptions, RunWorkflowModuleOutcome, RunningSession, SCOPED_REVIEW_OUTPUT_SCHEMA, SCOUT_AGENT_NAME, SCOUT_THEN_AUTHOR_PROMPT_LINES, SELF_KNOWLEDGE_ROUTING_RULE, SYSTEM_PROMPT, SYSTEM_WORKFLOW_LIMITS, SaveGeneratedWorkflowFromRunInput, SaveGeneratedWorkflowInput, SavedGeneratedWorkflowFile, SavedWorkflowDirs, SavedWorkflowExecution, SavedWorkflowRef, SavedWorkflowSource, SchemaProvider, SchemaValidationResult, ScopedReviewResult, ScopedReviewWorkflowArgs, ScopedReviewWorkflowResult, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SkippedExtensionDiscoveryEntry, SpecVerdict, SpeculativeResult, StableBoundaryTracker, StartManagedWorkflowInput, StartManagedWorkflowResult, StripOptions, SymbolContextResult, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, TestArtifactOptions, TierZeroPatternId, ToolOutputGcResult, ToolResultBudget, ToolResultBudgetReason, ToolResultBudgetUsageInput, ToolResultCapacity, ToolSearchIndex, ToolSearchIndexEntry, ToolSearchIndexOptions, ToolSearchQueryParts, ToolSearchResult, VerifiedScopedReviewResult, VerifyGoalCompletionOptions, WORKER_AGENT_NAME, WORKFLOW_GENERATION_SYSTEM_PROMPT, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowCostReport, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPacketReadCost, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef, _resetRuntimeForTesting, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyFindingVerification, applyToolResultGuardrail, authorWorkflowViaWorker, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildLlmReviewPrompt, buildManualToolDescription, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildScopedReviewFinalPrompt, buildScopedReviewPrimaryPrompt, buildScopedReviewVerificationPrompt, buildScoutThenAuthorPrompt, buildSelfKnowledgeRoutingRule, buildSystemPrompt, buildSystemPromptSnapshot, buildToolResultBudget, buildToolResultBudgetFromUsage, buildToolSearchIndex, buildWorkflowCostReport, buildWorkflowGenerationSkillContext, buildWorkflowGenerationUserPrompt, checkAbsoluteDeny, checkIncompleteToolCalls, checkPromiseSignal, clampToolResultPolicyToBudget, clampWorkflowLimits, classify, classifyBashCommand, classifyError, classifyFileCategory, classifyResilienceError, cleanupExpiredToolOutputs, cleanupUnreferencedToolOutputs, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, createBashClassifierConfig, createBuiltinToolDefinition, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, emitVerdict, emitWorkflowAgentDigest, ensureBuiltinRepoExplorerAgent, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getImpactEstimate, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolNetworkRead, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listCodingDispatchableAgents, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadMarkdownAgentScope, loadSavedWorkflow, loadSavedWorkflowCapsule, maybeRunReferenceAwareToolOutputGc, maybeRunToolOutputGc, mcpRootsFromWorkspace, mergeScopedReviewResults, normalizeScopedReviewResult, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseToolSearchQuery, parseWorkflowGeneration, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, readArtifact, readAuditEntries, readBudget, readDisableState, readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remainingSelfModifyBudget, renameSavedWorkflow, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, replaceConfiguredMcpCapabilityProvider, replaceSavedWorkflow, reportLspDiagnostics, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveCodingDispatchableAgent, resolveExtensionEntrypoint, resolveKodaXManual, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolCapability, resolveToolOutputDir, resolveWorkflowGenerationTimeoutMs, resolveWorkflowIdentity, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, runWorkflowFromOptions, runWorkflowModule, safeWorkflowArtifactName, saveGeneratedWorkflow, saveGeneratedWorkflowFromRun, scopedReview, searchToolIndex, setActiveExtensionRuntime, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, startManagedWorkflow, stripAssistantText, stripHtmlToText, testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateGeneratedWorkflowSource, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, withManualToolBranding, workerAgent, writeReviewPackets } from './sdk-coding.js';
|
|
7
|
+
export { A as ALWAYS_RESIDENT_TOOL_NAMES, B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, c as BoundExtensionRuntimeController, C as CapabilityRuntimeContract, d as CodingActorSession, e as CodingActorSessionOptions, f as CompactionAntiThrashConfig, g as CompactionAntiThrashState, h as CompactionSavingsDecision, i as CompactionSavingsSample, j as CompactionSkipReason, k as CreateBashPrefixExtractorOptions, D as DiagnosticsRequest, E as ExtensionRuntimeContract, l as ExtractCommandPrefixOptions, F as FailureStage, G as GoalBlockedResult, m as GoalCompleteResult, n as GoalCreateInput, o as GoalLifecycleContext, p as GoalRuntimeBinding, q as GoalRuntimeBindingDeps, r as GoalToolsContext, K as KodaXActivityEventMeta, t as KodaXAgentMode, u as KodaXAgentProfile, v as KodaXAgentScope, w as KodaXBudgetDisclosureZone, x as KodaXBudgetExtensionRequest, y as KodaXCanonicalAgentMode, z as KodaXChildAgentResult, H as KodaXChildContextBundle, J as KodaXCompactionOverride, L as KodaXContextOptions, M as KodaXContextTokenSnapshot, N as KodaXEffectiveTaskConfig, O as KodaXEvents, P as KodaXLiveEventMeta, Q as KodaXManagedBudgetSnapshot, S as KodaXManagedTask, T as KodaXManagedTaskRuntimeState, U as KodaXManagedTaskStatusEvent, V as KodaXManualIndexTopic, W as KodaXManualSource, X as KodaXManualTopic, Y as KodaXManualTopicId, Z as KodaXManualTopicInput, _ as KodaXMemoryStrategy, $ as KodaXOptions, a0 as KodaXOrchestrationVerdict, a1 as KodaXParentReductionContract, a2 as KodaXProviderPolicyHints, a3 as KodaXRepoIntelligenceCapability, a4 as KodaXRepoIntelligenceMode, a5 as KodaXRepoIntelligenceResolvedMode, a6 as KodaXRepoIntelligenceTrace, a7 as KodaXRepoIntelligenceTraceEvent, a8 as KodaXRepoRoutingSignals, a9 as KodaXResult, aa as KodaXRoleRoundSummary, ab as KodaXRuntimeVerificationContract, ac as KodaXSelfManualConfig, ad as KodaXSessionControl, ae as KodaXSessionMutators, af as KodaXSessionOptions, ag as KodaXSidecarMessageEvent, ah as KodaXSkillDynamicContextPolicy, ai as KodaXSkillInvocationContext, aj as KodaXSkillMap, ak as KodaXSkillProjectionConfidence, al as KodaXSkillScriptInputFile, am as KodaXSkillScriptOutputFile, an as KodaXSkillScriptRunInput, ao as KodaXSkillScriptRunner, ap as KodaXTaskCapabilityHint, aq as KodaXTaskContract, ar as KodaXTaskEvidenceArtifact, as as KodaXTaskEvidenceBundle, at as KodaXTaskEvidenceEntry, au as KodaXTaskRole, av as KodaXTaskRoleAssignment, aw as KodaXTaskStatus, ax as KodaXTaskSurface, ay as KodaXTaskToolPolicy, az as KodaXTaskVerificationContract, aA as KodaXTaskVerificationCriterion, aB as KodaXTaskWorkItem, aC as KodaXTimeoutConfig, aD as KodaXToolEventMeta, aE as KodaXToolExecutionContext, aF as KodaXToolVisibilityMeta, aG as KodaXToolVisibilityPolicy, aH as KodaXTurnCompletedEvent, aI as KodaXTurnDeliveryKind, aJ as KodaXTurnFailedEvent, aK as KodaXTurnStartedEvent, aL as KodaXVerificationScorecard, aM as KodaXVerificationScorecardCriterion, aN as KodaXWorkflowAgentDigestEvent, aO as KodaXWorkflowEventMeta, aP as KodaXWorkflowTimeoutConfig, aQ as LSP_SERVERS, aR as LspServerInfo, aS as LspService, aT as LspServiceConfig, aU as ProviderExecutionState, aV as ProviderRecoveryEvent, aW as ProviderResilienceConfig, aX as ProviderResiliencePolicy, aY as RecoveryAction, aZ as RecoveryDecision, a_ as RecoveryLadderStep, a$ as RecoveryResult, b0 as ResilienceClassification, b1 as ResilienceErrorClass, b2 as ResolveKodaXManualInput, b3 as ResolveKodaXManualOptions, b4 as ResolveKodaXManualResult, b5 as RuntimeCompactionSkippedEvent, b6 as RuntimeContextBudgetBreakdown, b7 as RuntimeContextBudgetRecommendation, b8 as RuntimeContextBudgetSnapshot, b9 as RuntimeContextBudgetSnapshotInput, ba as RuntimeContextOptimizationProfile, bb as RuntimeContextPressure, bc as RuntimeDefaultsSnapshot, bd as RuntimeToolExposureDecision, be as RuntimeToolExposureMode, bf as RuntimeToolExposurePlan, bg as RuntimeToolExposurePlanInput, bh as RuntimeToolExposureReason, bi as TodoItem, bj as TodoList, bk as TodoStatus, bl as ToolSideEffect, bm as WorkflowHostPolicy, bn as WorkflowInvocationAction, bo as WorkflowInvocationPolicyDecision, bp as WorkflowInvocationPolicyInput, bq as WorkflowInvocationSource, br as WorkflowStartOutcome, bs as WorkflowToolHost, bt as WorkflowToolHostInlineInput, bu as WorkflowToolHostResult, bv as WorkflowToolHostStartResult, bw as buildGoalRuntimeBinding, bx as consumeCompactionCooldown, by as createBashPrefixExtractor, bz as createCompactionAntiThrashState, bA as createExternalActorTurnExecutor, bB as createLocalCodingActorControl, bC as createRuntimeContextBudgetSnapshot, bD as decideWorkflowInvocation, bE as drainPendingSwaps, bF as estimateToolSchemaTokens, bG as extractCommandPrefix, bH as getDefaultLspService, bI as hasExplicitNaturalLanguageWorkflowIntent, bJ as hasPendingSwap, bK as makeDisabledGoalToolsContext, bL as normalizeKodaXAgentMode, bM as planToolExposure, bN as providerResilienceConfigFromTimeouts, bO as recordCompactionSavings, bP as resolveConstructedAgent, bQ as shouldSkipLlmCompaction, bR as shutdownDefaultLspService, bS as withGoalBeforeNextTurn, bT as withGoalStopHook, bU as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-CHJO5y94.js';
|
|
8
|
+
export { AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, AuthorWorkflowViaWorkerHandle, AuthorWorkflowViaWorkerInput, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BashClassificationResult, BashClassifierConfig, BashRiskLevel, BlockerAttemptResult, BootstrapTracingOptions, BudgetState, BuildClassifierPromptInput, BuildPromptInput, CANCELLED_TOOL_RESULT_MESSAGE, CANCELLED_TOOL_RESULT_PREFIX, CODING_AGENT_MARKER, CODING_INVARIANTS, CODING_SUMMARY_PROMPT, CODING_UPDATE_SUMMARY_PROMPT, ChangedFileEntry, ChangedFileStatus, ChangedScopeAreaSummary, ChangedScopeReport, ClassifierDecision, ClassifierPrompt, ClassifyDecision, ClassifyOptions, Client, CodingDispatchableAgentRoute, CodingWorkflowBackendDeps, CombinedExtensionRuntime, CreateCtxProxyOptions, CreateKodaXTaskRunnerOptions, CreateWorkflowLifecycleControllerOptions, DEFAULT_CODING_AGENT_NAME, DEFAULT_DANGEROUS_PATTERNS, DEFAULT_RESILIENCE_CONFIG, DEFAULT_SAFE_PATTERNS, DEFAULT_SELF_MODIFY_BUDGET, DEFAULT_SPECULATIVE_WINDOW_MS, DEFAULT_TOOL_OUTPUT_MAX_BYTES, DEFAULT_TOOL_OUTPUT_MAX_LINES, DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS, DeleteSavedWorkflowInput, DeleteWorkflowRunOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EMIT_VERDICT_TOOL_NAME, EditRecoveryDiagnostic, EditToolErrorCode, ErrorCategory, ErrorClassification, ExtensionDiscoveryResult, ExtensionDiscoverySkipReason, FINDING_VERIFICATION_OUTPUT_SCHEMA, FindingVerificationResult, GENERATOR_AGENT_NAME, GenerateWorkflowFromOptionsInput, GenerateWorkflowInput, GeneratedWorkflow, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KODAX_TOOLS, KODAX_UNDERLYING_CAPABILITY_TOPICS, KodaXAgentWorkerSpec, Client as KodaXClient, KodaXExtensionRuntime, KodaXPromptSection, KodaXPromptSectionDefinition, KodaXPromptSectionSlot, KodaXPromptSectionStability, KodaXPromptSnapshot, KodaXPromptSnapshotMetadata, KodaXProviderCapabilitySnapshot, KodaXProviderPolicyDecision, KodaXProviderPolicyIssue, KodaXProviderPolicyIssueSeverity, KodaXProviderSourceKind, KodaXSessionError, KodaXTerminalError, KodaXToolError, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadMarkdownAgentScopeOptions, LoadMarkdownAgentScopeResult, LoadedGeneratedWorkflowFromRun, LoadedMarkdownAgent, MANUAL_REGISTRY, MANUAL_TOPIC_IDS, ManagedWorkflowRun, ManagedWorkflowSnapshot, ManagedWorkflowSource, MarkdownAgentLoadWarning, MarkdownAgentToolFilter, MarkdownLoadFailure, McpReverseWorkspace, MergedScopedReviewResult, ModuleCapsule, ModuleContextResult, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, PLANNER_AGENT_NAME, PROMPT_SECTION_REGISTRY, PROTOCOL_EMITTER_TOOLS, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, ProviderRecoveryCoordinator, QualityVerdict, READ_DEFAULT_LIMIT, READ_MAX_LINE_CHARS, READ_PREFLIGHT_SIZE_BYTES, REPO_EXPLORER_AGENT_NAME, REPO_EXPLORER_TOOL_NAMES, RawScopedReviewResult, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, ReviewPacketBudget, ReviewPacketChunk, ReviewPacketInput, ReviewPacketMetadata, ReviewSeverity, RollbackResult, RunGraphWriter, RunGraphWriterDeps, RunJsonInput, RunWorkflowFromOptionsInput, RunWorkflowModuleOptions, RunWorkflowModuleOutcome, RunningSession, SCOPED_REVIEW_OUTPUT_SCHEMA, SCOUT_AGENT_NAME, SCOUT_THEN_AUTHOR_PROMPT_LINES, SELF_KNOWLEDGE_ROUTING_RULE, SYSTEM_PROMPT, SYSTEM_WORKFLOW_LIMITS, SaveGeneratedWorkflowFromRunInput, SaveGeneratedWorkflowInput, SavedGeneratedWorkflowFile, SavedWorkflowDirs, SavedWorkflowExecution, SavedWorkflowRef, SavedWorkflowSource, SchemaProvider, SchemaValidationResult, ScopedReviewResult, ScopedReviewWorkflowArgs, ScopedReviewWorkflowResult, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SkippedExtensionDiscoveryEntry, SpecVerdict, SpeculativeResult, StableBoundaryTracker, StartManagedWorkflowInput, StartManagedWorkflowResult, StripOptions, SymbolContextResult, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, TestArtifactOptions, ToolOutputGcResult, ToolResultBudget, ToolResultBudgetReason, ToolResultBudgetUsageInput, ToolResultCapacity, ToolSearchIndex, ToolSearchIndexEntry, ToolSearchIndexOptions, ToolSearchQueryParts, ToolSearchResult, VerifiedScopedReviewResult, VerifyGoalCompletionOptions, WORKER_AGENT_NAME, WORKFLOW_GENERATION_SYSTEM_PROMPT, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowCostReport, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPacketReadCost, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef, _resetRuntimeForTesting, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyFindingVerification, applyToolResultGuardrail, authorWorkflowViaWorker, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildLlmReviewPrompt, buildManualToolDescription, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildScopedReviewFinalPrompt, buildScopedReviewPrimaryPrompt, buildScopedReviewVerificationPrompt, buildScoutThenAuthorPrompt, buildSelfKnowledgeRoutingRule, buildSystemPrompt, buildSystemPromptSnapshot, buildToolResultBudget, buildToolResultBudgetFromUsage, buildToolSearchIndex, buildWorkflowCostReport, buildWorkflowGenerationSkillContext, buildWorkflowGenerationUserPrompt, checkIncompleteToolCalls, checkPromiseSignal, clampToolResultPolicyToBudget, clampWorkflowLimits, classify, classifyBashCommand, classifyError, classifyFileCategory, classifyResilienceError, cleanupExpiredToolOutputs, cleanupUnreferencedToolOutputs, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, createBashClassifierConfig, createBuiltinToolDefinition, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, emitVerdict, emitWorkflowAgentDigest, ensureBuiltinRepoExplorerAgent, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getImpactEstimate, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolNetworkRead, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listCodingDispatchableAgents, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadMarkdownAgentScope, loadSavedWorkflow, loadSavedWorkflowCapsule, maybeRunReferenceAwareToolOutputGc, maybeRunToolOutputGc, mcpRootsFromWorkspace, mergeScopedReviewResults, normalizeScopedReviewResult, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseToolSearchQuery, parseWorkflowGeneration, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, readArtifact, readAuditEntries, readBudget, readDisableState, readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remainingSelfModifyBudget, renameSavedWorkflow, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, replaceConfiguredMcpCapabilityProvider, replaceSavedWorkflow, reportLspDiagnostics, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveCodingDispatchableAgent, resolveExtensionEntrypoint, resolveKodaXManual, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolBridgeTarget, resolveToolCapability, resolveToolOutputDir, resolveWorkflowGenerationTimeoutMs, resolveWorkflowIdentity, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, runWorkflowFromOptions, runWorkflowModule, safeWorkflowArtifactName, saveGeneratedWorkflow, saveGeneratedWorkflowFromRun, scopedReview, searchToolIndex, setActiveExtensionRuntime, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, startManagedWorkflow, stripAssistantText, stripHtmlToText, testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateGeneratedWorkflowSource, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, withManualToolBranding, workerAgent, writeReviewPackets } from './sdk-coding.js';
|
|
9
9
|
export { CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateVideoArtifactFromPathOptions, EnqueueWithArtifactsInput, GetModelInputCapabilitiesInput, ImageResizeError, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXInputCapabilityStatus, KodaXMediaError, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, MAX_DIMENSION, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, PersistImageAsBlockOptions, TARGET_RAW_SIZE_BYTES, ValidateInputArtifactsOptions, createFileArtifactFromPath, createImageArtifactFromPath, createVideoArtifactFromPath, enqueueWithArtifacts, getModelInputCapabilities, inferImageMediaType, inferVideoMediaType, normalizePastedImage, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, validateInputArtifactsForModel } from './sdk-media.js';
|
|
10
|
-
export { A as AgentArtifact, b as ArtifactStatus, C as Capabilities, c as CapabilityDeniedError, d as ConstructionArtifact, e as ConstructionManifestError, f as ConstructionPolicy, g as ConstructionPolicyVerdict, D as DEFAULT_HANDLER_TIMEOUT_MS, E as ExecOptions, h as ExecResult, i as ExtensionCommandContext, j as ExtensionCommandDefinition, k as ExtensionCommandInvocation, l as ExtensionCommandResult, m as ExtensionContributionSource, n as ExtensionEventMap, o as ExtensionFailureDiagnostic, p as ExtensionFailureStage, q as ExtensionHookMap, r as ExtensionLoadSource, s as ExtensionLogger, t as ExtensionRuntimeController, u as ExtensionRuntimeDiagnostics, v as ExtensionToolBeforeHookContext, K as KodaXExtensionAPI, w as KodaXExtensionActivationResult, x as KodaXExtensionModule, y as KodaXRetrievalArtifact, z as KodaXRetrievalFreshness, B as KodaXRetrievalItem, F as KodaXRetrievalResult, G as KodaXRetrievalScope, H as KodaXRetrievalToolName, I as KodaXRetrievalTrust, L as LoadedExtensionDiagnostic, J as LocalToolDefinition, M as ModelProviderRegistration, R as RegisteredCapabilityProviderDiagnostic, N as RegisteredCommandDiagnostic, O as RegisteredHookDiagnostic, P as RegisteredToolDefinition, Q as RegisteredToolDiagnostic, S as RuntimeRemoteToolContext, T as RuntimeRemoteToolContract, U as RuntimeRemoteToolDecision, V as RuntimeRemoteWorkspaceBroker, W as ScriptSource, X as StagedHandle, Y as TestResult, Z as ToolContent, _ as ToolDefinitionSource, $ as ToolHandler, a1 as ToolRegistrationOptions, a2 as ToolRegistry, a3 as WebhookOptions, a4 as WebhookResult, a5 as defaultPolicy, a6 as exec, a7 as webhook } from './types-chunks/types.d-
|
|
11
|
-
export { f as Agent,
|
|
12
|
-
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, O as appendSessionLineageLabel, R as applySessionCompaction, S as archiveOldIslands, U as buildSessionTree, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a2 as estimateTokens, a3 as extractArtifactLedger, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir,
|
|
10
|
+
export { A as AgentArtifact, b as ArtifactStatus, C as Capabilities, c as CapabilityDeniedError, d as ConstructionArtifact, e as ConstructionManifestError, f as ConstructionPolicy, g as ConstructionPolicyVerdict, D as DEFAULT_HANDLER_TIMEOUT_MS, E as ExecOptions, h as ExecResult, i as ExtensionCommandContext, j as ExtensionCommandDefinition, k as ExtensionCommandInvocation, l as ExtensionCommandResult, m as ExtensionContributionSource, n as ExtensionEventMap, o as ExtensionFailureDiagnostic, p as ExtensionFailureStage, q as ExtensionHookMap, r as ExtensionLoadSource, s as ExtensionLogger, t as ExtensionRuntimeController, u as ExtensionRuntimeDiagnostics, v as ExtensionToolBeforeHookContext, K as KodaXExtensionAPI, w as KodaXExtensionActivationResult, x as KodaXExtensionModule, y as KodaXRetrievalArtifact, z as KodaXRetrievalFreshness, B as KodaXRetrievalItem, F as KodaXRetrievalResult, G as KodaXRetrievalScope, H as KodaXRetrievalToolName, I as KodaXRetrievalTrust, L as LoadedExtensionDiagnostic, J as LocalToolDefinition, M as ModelProviderRegistration, R as RegisteredCapabilityProviderDiagnostic, N as RegisteredCommandDiagnostic, O as RegisteredHookDiagnostic, P as RegisteredToolDefinition, Q as RegisteredToolDiagnostic, S as RuntimeRemoteToolContext, T as RuntimeRemoteToolContract, U as RuntimeRemoteToolDecision, V as RuntimeRemoteWorkspaceBroker, W as ScriptSource, X as StagedHandle, Y as TestResult, Z as ToolContent, _ as ToolDefinitionSource, $ as ToolHandler, a1 as ToolRegistrationOptions, a2 as ToolRegistry, a3 as WebhookOptions, a4 as WebhookResult, a5 as defaultPolicy, a6 as exec, a7 as webhook } from './types-chunks/types.d-EqQmHztg.js';
|
|
11
|
+
export { f as Agent, a8 as AgentMessage, ai as AgentReasoningProfile, az as AgentTool, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aN as CompactionAnchor, aQ as CompactionResult, aS as CompactionUpdate, ba as Guardrail, bc as Handoff, be as InMemorySessionOptions, bj as KodaXCompactMemoryProgress, bk as KodaXCompactMemorySeed, bl as KodaXExtensionSessionRecord, bm as KodaXExtensionSessionState, bp as KodaXFileInputArtifact, bt as KodaXImageInputArtifact, bu as KodaXImageMediaType, bv as KodaXInputArtifact, bw as KodaXInputArtifactSource, bx as KodaXJsonValue, bC as KodaXSessionArtifactLedgerEntry, bD as KodaXSessionBranchSummaryEntry, bF as KodaXSessionCompactionEntry, bG as KodaXSessionData, bH as KodaXSessionEntry, bI as KodaXSessionEntryBase, bK as KodaXSessionLabelEntry, bL as KodaXSessionLineage, bO as KodaXSessionMessageEntry, bP as KodaXSessionMeta, bQ as KodaXSessionNavigationOptions, bS as KodaXSessionRuntimeInfo, bT as KodaXSessionScope, bU as KodaXSessionStorage, bV as KodaXSessionTreeNode, bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem, c1 as KodaXSessionWorkspaceKind, c2 as KodaXVideoInputArtifact, c3 as KodaXVideoMediaType, cO as MessageEntry, cR as PresetDispatcher, cW as ReasoningDepth, cY as RunEvent, cZ as RunOptions, c_ as RunResult, d0 as Runner, db as Session, dd as SessionEntry, de as SessionErrorMetadata, df as SessionExtension, dg as SessionForkOptions, dO as WorkflowEventCorrelation, eE as createAgent, eF as createHandoff, eG as createInMemorySession, e$ as registerPresetDispatcher } from './types-chunks/types.d-DH1mvdcl.js';
|
|
12
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, N as actorQueueId, O as appendSessionLineageLabel, R as applySessionCompaction, S as archiveOldIslands, U as buildSessionTree, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a2 as estimateTokens, a3 as extractArtifactLedger, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir, ac as getSessionLineagePath, ad as getSessionMessagesFromLineage, ag as mergeArtifactLedger, al as resolveSessionLineageTarget, am as rewindSessionLineage, an as setAgentConfigHome, ao as setSessionLineageActiveEntry, ap as validateAndFixToolHistory } from './types-chunks/capsule.d-DxtdE-GD.js';
|
|
13
13
|
export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
14
14
|
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
|
|
15
15
|
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
|
|
16
|
-
export { d as ManagedWorkflowStatus } from './types-chunks/run-manager.d-
|
|
17
|
-
export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,
|
|
16
|
+
export { d as ManagedWorkflowStatus } from './types-chunks/run-manager.d-Bh50OdVl.js';
|
|
17
|
+
export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, m as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AbsoluteDenyCheck, a as AbsoluteDenyMatch, b as AbsoluteDenyMiss, c as AbsoluteDenyResult, d as AgentsFile, e as AutoModeAskUser, f as AutoModeAskUserVerdict, D as AutoModeDenialTracker, g as AutoModeEngine, h as AutoModeGuardrailConfig, i as AutoModeSharedState, j as AutoModeStats, k as AutoModeToolGuardrail, l as AutoRules, E as BREAKER_ERROR_THRESHOLD, W as BREAKER_WINDOW_MS, n as CircuitBreaker, K as KodaXMcpConnectMode, o as KodaXMcpServerConfig, p as KodaXMcpServersConfig, q as KodaXMcpTransport, L as LoadAgentsOptions, r as LoadedRulesSource, R as RulesLoadError, s as RulesLoadResult, S as SignalCollector, t as SkippedRulesSource, T as TierZeroPatternId, u as ToolCallSignal, v as TrustState, U as autoModeDenialShouldFallback, V as breakerShouldFallback, w as checkAbsoluteDeny, x as collectAllSignals, y as computeRulesFingerprint, F as createAutoModeDenialTracker, z as createAutoModeToolGuardrail, B as createCircuitBreaker, G as formatAgentsForPrompt, H as getKodaxGlobalDir, I as loadAgentsFiles, J as loadAutoRules, M as parseAutoRules, N as readTrustState, O as recordAutoModeAllow, P as recordAutoModeBlock, Q as recordBreakerError, X as trustProjectRules } from './types-chunks/guardrail.d-auV61_h5.js';
|
|
18
18
|
import { KodaXRuntime } from './sdk-runtime.js';
|
|
19
19
|
export { CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntimeMode, RuntimeConnectionService, RuntimeConnectionState, RuntimeCreateSessionInput, RuntimeCredentialLease, RuntimeCredentialService, RuntimeDaemonContextOptions, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonPreflight, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeForkSessionInput, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolService, RuntimeIdentity, RuntimeInlineOwnerHandle, RuntimeInteractionResolvedEventPayload, RuntimeKodaXOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLoadedEventPayload, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubscription, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTransportBoundaryError, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeWarningEventPayload, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, parseRuntimeEvent, setKodaXRuntimeOwnerMode } from './sdk-runtime.js';
|
|
20
20
|
import { Agent, AgentSideConnection, InitializeRequest, InitializeResponse, NewSessionRequest, NewSessionResponse, SetSessionModeRequest, SetSessionModeResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
21
|
-
import {
|
|
22
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, R as RepLOptions, g as executeCommand, p as parseCommand, i as processSpecialSyntax, r as runInkInteractiveMode, j as runInteractiveMode } from './types-chunks/commands.d-
|
|
23
|
-
export { a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, K as KODAX_CONFIG_FILE, i as KODAX_DIR, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, o as createInteractiveContext, r as getGitRoot, s as getProviderList, t as getProviderModel, u as getVersion, v as hydrateProcessEnvFromShell, w as isProviderConfigured, x as loadConfig, y as prepareRuntimeConfig, z as rateLimitedCall, A as registerConfiguredCustomProviders, F as saveConfig, G as touchContext } from './types-chunks/utils.d-
|
|
21
|
+
import { j as FileSessionStorage } from './types-chunks/public-api.d--IDNJsu1.js';
|
|
22
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, R as RepLOptions, g as executeCommand, p as parseCommand, i as processSpecialSyntax, r as runInkInteractiveMode, j as runInteractiveMode } from './types-chunks/commands.d-DZxHzH5-.js';
|
|
23
|
+
export { a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, K as KODAX_CONFIG_FILE, i as KODAX_DIR, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, o as createInteractiveContext, r as getGitRoot, s as getProviderList, t as getProviderModel, u as getVersion, v as hydrateProcessEnvFromShell, w as isProviderConfigured, x as loadConfig, y as prepareRuntimeConfig, z as rateLimitedCall, A as registerConfiguredCustomProviders, F as saveConfig, G as touchContext } from './types-chunks/utils.d-gmn3c5U4.js';
|
|
24
24
|
import '@anthropic-ai/sdk';
|
|
25
25
|
import 'openai';
|
|
26
|
-
import './types-chunks/types.d-
|
|
26
|
+
import './types-chunks/types.d-DCQVBqVn.js';
|
|
27
27
|
import 'vscode-languageserver-protocol';
|
|
28
|
-
import './types-chunks/guardrail.d-
|
|
29
|
-
import './types-chunks/types.d-
|
|
28
|
+
import './types-chunks/guardrail.d-DlpMnd-Y.js';
|
|
29
|
+
import './types-chunks/center-types.d-BBT122uJ.js';
|
|
30
30
|
import 'readline';
|
|
31
31
|
import 'child_process';
|
|
32
32
|
|