@kodax-ai/kodax 0.7.78 → 0.7.79

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.
Files changed (124) hide show
  1. package/CHANGELOG.md +3475 -3197
  2. package/README.md +346 -275
  3. package/README_CN.md +274 -214
  4. package/config-templates/config.example.jsonc +11 -1
  5. package/config-templates/integrations/a2a.example.jsonc +23 -7
  6. package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
  7. package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
  8. package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
  9. package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
  10. package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
  11. package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
  12. package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
  13. package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
  14. package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
  15. package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
  16. package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
  17. package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
  18. package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
  19. package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
  20. package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
  21. package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
  22. package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
  23. package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
  24. package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
  25. package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
  26. package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
  27. package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
  28. package/dist/builtin/skill-creator/scripts/utils.js +5 -1
  29. package/dist/chunks/{agent-ASP4MS3X.js → agent-V4AC5JZD.js} +1 -1
  30. package/dist/chunks/argument-completer-ZPC2MLES.js +2 -0
  31. package/dist/chunks/{chunk-Z3KFRTSB.js → chunk-67THZRM6.js} +1 -1
  32. package/dist/chunks/chunk-6GVQDQTQ.js +292 -0
  33. package/dist/chunks/{chunk-TQDBTTIM.js → chunk-B6UY3VHV.js} +40 -40
  34. package/dist/chunks/{chunk-7OEBJGHK.js → chunk-BBOVVDQJ.js} +1 -1
  35. package/dist/chunks/chunk-CR2IF7VF.js +30 -0
  36. package/dist/chunks/{chunk-UID7BLAB.js → chunk-CXHEZY5G.js} +1 -1
  37. package/dist/chunks/chunk-EDZ4QILG.js +266 -0
  38. package/dist/chunks/chunk-GEECPO2H.js +218 -0
  39. package/dist/chunks/chunk-H5LLM7DB.js +89 -0
  40. package/dist/chunks/chunk-KLWP7POA.js +467 -0
  41. package/dist/chunks/{chunk-2CFHBKRE.js → chunk-M4N2JZTZ.js} +2 -2
  42. package/dist/chunks/{chunk-YAZQTC2L.js → chunk-OWQT3FTE.js} +1 -1
  43. package/dist/chunks/chunk-Q4M7DJOD.js +319 -0
  44. package/dist/chunks/{chunk-6FOJVETH.js → chunk-QCZLCLFL.js} +7 -7
  45. package/dist/chunks/chunk-RQPMGRTR.js +810 -0
  46. package/dist/chunks/chunk-SG6P4SZS.js +123 -0
  47. package/dist/chunks/chunk-TSTVAU5E.js +386 -0
  48. package/dist/chunks/chunk-ZCZZUE5E.js +662 -0
  49. package/dist/chunks/compaction-config-AEUGVROL.js +2 -0
  50. package/dist/chunks/{construction-bootstrap-VQLQGWPY.js → construction-bootstrap-K3ZGEN5N.js} +1 -1
  51. package/dist/chunks/dist-GFJFRPAV.js +2 -0
  52. package/dist/chunks/{dist-BFT5YIGU.js → dist-JMO47GJV.js} +1 -1
  53. package/dist/chunks/host-23K2Q6RZ.js +2 -0
  54. package/dist/chunks/run-manager-PGIR6ITA.js +2 -0
  55. package/dist/chunks/{utils-SID4HW2Q.js → utils-6LEKJPQN.js} +1 -1
  56. package/dist/index.d.ts +20 -20
  57. package/dist/index.js +2 -2
  58. package/dist/kodax_bootstrap.js +2 -1
  59. package/dist/kodax_cli.js +1816 -1458
  60. package/dist/kodax_resume.js +570 -34
  61. package/dist/provider-capabilities.json +85 -50
  62. package/dist/runtime-worker.js +1713 -1361
  63. package/dist/sandbox-workspace-session.js +285 -19
  64. package/dist/sdk-a2a.d.ts +19 -13
  65. package/dist/sdk-a2a.js +8 -8
  66. package/dist/sdk-agent.d.ts +73 -141
  67. package/dist/sdk-agent.js +1 -1
  68. package/dist/sdk-coding.d.ts +29 -60
  69. package/dist/sdk-coding.js +1 -1
  70. package/dist/sdk-experimental-memory.d.ts +3 -3
  71. package/dist/sdk-experimental-memory.js +1 -1
  72. package/dist/sdk-llm.d.ts +7 -7
  73. package/dist/sdk-llm.js +1 -1
  74. package/dist/sdk-mcp.d.ts +1 -1
  75. package/dist/sdk-mcp.js +1 -1
  76. package/dist/sdk-media.d.ts +1 -1
  77. package/dist/sdk-media.js +1 -1
  78. package/dist/sdk-repl.d.ts +25 -26
  79. package/dist/sdk-repl.js +2 -2
  80. package/dist/sdk-runtime.d.ts +227 -31
  81. package/dist/sdk-runtime.js +1 -1
  82. package/dist/sdk-sandbox.js +1 -1
  83. package/dist/sdk-session.d.ts +8 -8
  84. package/dist/sdk-session.js +1 -1
  85. package/dist/sdk-skills.js +1 -1
  86. package/dist/semantic-worker.js +283 -18
  87. package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
  88. package/dist/types-chunks/{bash-prefix-extractor.d-uAe2Oqda.d.ts → bash-prefix-extractor.d-CNSidpmv.d.ts} +28 -7
  89. package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
  90. package/dist/types-chunks/{capsule.d-BlSv9l3V.d.ts → capsule.d-B3q98pLQ.d.ts} +9 -7
  91. package/dist/types-chunks/{types.d-BA-Jwpfs.d.ts → controller.d-RGV7Pjv9.d.ts} +328 -3
  92. package/dist/types-chunks/{guardrail.d-CXDYRgZ3.d.ts → guardrail.d-1NLSFTyN.d.ts} +126 -52
  93. package/dist/types-chunks/{history-retrieval.d-DtCy7x64.d.ts → history-retrieval.d-BAegI14A.d.ts} +16 -3
  94. package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
  95. package/dist/types-chunks/{public-api.d-B3AohsxN.d.ts → public-api.d-BpJhHoa7.d.ts} +334 -25
  96. package/dist/types-chunks/{repl.d-Ie_ZXb_U.d.ts → repl.d-CZ12Ow3X.d.ts} +5 -5
  97. package/dist/types-chunks/{resolver.d-iAQ9ocLB.d.ts → resolver.d-C9IW4fmU.d.ts} +5 -2
  98. package/dist/types-chunks/{run-manager.d-D1twIhF9.d.ts → run-manager.d-CX3AUocA.d.ts} +1 -1
  99. package/dist/types-chunks/{sdk-session-DB9KksIx.d.ts → sdk-session-B3cfJKqF.d.ts} +3 -3
  100. package/dist/types-chunks/{side-query.d-DTuLPcC5.d.ts → side-query.d-CP1LiRiH.d.ts} +8 -2
  101. package/dist/types-chunks/{types-D3g6XUQr.d.ts → types-Bf3Y3mW-.d.ts} +1 -1
  102. package/dist/types-chunks/{types.d-BH0ZkTGf.d.ts → types.d-BZ9oXvTV.d.ts} +2 -2
  103. package/dist/types-chunks/{types.d-DVDTIfB_.d.ts → types.d-C0_rn--1.d.ts} +4 -4
  104. package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
  105. package/dist/types-chunks/{utils.d-CVp6bFl9.d.ts → utils.d-CGpHavsU.d.ts} +14 -6
  106. package/docs/SDK_EMBEDDER_GUIDE.md +1144 -598
  107. package/package.json +4 -1
  108. package/dist/chunks/argument-completer-JYQ7FX3W.js +0 -2
  109. package/dist/chunks/chunk-35PPHOQ2.js +0 -292
  110. package/dist/chunks/chunk-43QNNDHR.js +0 -29
  111. package/dist/chunks/chunk-5GO6FH7L.js +0 -458
  112. package/dist/chunks/chunk-5NDCSFOP.js +0 -78
  113. package/dist/chunks/chunk-6XM4B6K2.js +0 -48
  114. package/dist/chunks/chunk-6YZUE6NC.js +0 -240
  115. package/dist/chunks/chunk-KQLQYHWU.js +0 -386
  116. package/dist/chunks/chunk-NXO6GWSY.js +0 -46
  117. package/dist/chunks/chunk-T2XZTLYE.js +0 -316
  118. package/dist/chunks/chunk-VAT2QYXM.js +0 -765
  119. package/dist/chunks/chunk-YVRYHC4C.js +0 -655
  120. package/dist/chunks/compaction-config-BQSSIWK5.js +0 -2
  121. package/dist/chunks/dist-PCFE24YP.js +0 -2
  122. package/dist/chunks/host-UTFXCYYM.js +0 -2
  123. package/dist/chunks/run-manager-PJU3WIFJ.js +0 -2
  124. package/dist/types-chunks/guardrail.d-BRE_ErEj.d.ts +0 -156
@@ -36,13 +36,22 @@
36
36
  // "autoMode": {
37
37
  // "engine": "llm",
38
38
  // "classifierModel": "provider:model",
39
- // "timeoutMs": 20000,
39
+ // "timeoutMs": 30000,
40
40
  // "speculativeWindowMs": 500
41
41
  // },
42
42
 
43
43
  // UI/manual locale.
44
44
  // "locale": "zh",
45
45
 
46
+ // Sensitive environment variables are filtered from model-issued commands by
47
+ // default. List exact host variable names here to pass them to the command
48
+ // target (including ASRT); values are never stored in this file. Project
49
+ // config cannot extend this user-level list. Execution-control variables such
50
+ // as NODE_OPTIONS and BASH_ENV remain blocked.
51
+ // "sandbox": {
52
+ // "envPass": ["GH_TOKEN", "GITHUB_TOKEN", "OPENAI_API_KEY"]
53
+ // },
54
+
46
55
  // Custom providers store public connection metadata only. Put the actual
47
56
  // credential in the named environment variable, never in this file. Use
48
57
  // `kodax setup --custom` for the guided writer.
@@ -58,6 +67,7 @@
58
67
  // "userAgentMode": "compat",
59
68
  // "contextWindow": 128000,
60
69
  // "maxOutputTokens": 8192,
70
+ // "maxOutputTokensField": "max_completion_tokens",
61
71
  // "thinkingBudgetCap": 32000,
62
72
  // "promptCacheAffinity": false,
63
73
  // "replayReasoningContent": false,
@@ -66,13 +66,29 @@
66
66
  // Fixed Bearer compatibility example. `enabled` is hot desired state:
67
67
  // disabled Agents remain configured but are not candidates for new
68
68
  // orchestration, while already admitted remote tasks may finish.
69
- // "reporting": {
70
- // "cardUrl": "https://agents.example.com/.well-known/agent-card.json",
71
- // "enabled": true,
72
- // "credentialEnv": "REPORTING_A2A_TOKEN",
73
- // "effect": "read"
74
- // },
75
-
69
+ // "reporting": {
70
+ // "cardUrl": "https://agents.example.com/.well-known/agent-card.json",
71
+ // "enabled": true,
72
+ // "credentialEnv": "REPORTING_A2A_TOKEN",
73
+ // "effect": "read"
74
+ // },
75
+
76
+ // Private addresses and plaintext HTTP are separate, default-deny
77
+ // permissions. Exact loopback HTTP needs neither. Private HTTP needs both;
78
+ // private HTTPS needs only allowPrivateAddresses. Prefer TLS whenever it is
79
+ // available. The equivalent CLI flags are `--allow-private` and
80
+ // `--allow-insecure-http`. OAuth token endpoints keep their stricter
81
+ // HTTPS-or-exact-loopback rule even when Agent transport HTTP is allowed.
82
+ // "intranet": {
83
+ // "cardUrl": "http://10.20.30.40/.well-known/agent-card.json",
84
+ // "enabled": true,
85
+ // "network": {
86
+ // "allowPrivateAddresses": true,
87
+ // "allowInsecureHttp": true
88
+ // },
89
+ // "effect": "read"
90
+ // },
91
+
76
92
  // Standards-based machine-to-machine OAuth2 example. The external
77
93
  // Authorization Server issues access tokens; KodaX obtains and caches them
78
94
  // only in process memory. `tokenUrl` must exactly match the selected Card
@@ -198,7 +198,8 @@ async function main() {
198
198
  console.log(`Wrote ${benchmarkMdPath}`);
199
199
  }
200
200
 
201
- const isDirectRun = process.argv[1]
201
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
202
+ && process.argv[1]
202
203
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
203
204
 
204
205
  if (isDirectRun) {
@@ -44,3 +44,4 @@ export function analyzeBenchmark(
44
44
  analysisJsonPath: string;
45
45
  analysisMdPath: string;
46
46
  }>;
47
+ export declare function main(argv?: string[]): Promise<void>;
@@ -263,8 +263,8 @@ function parseArgs(argv) {
263
263
  return args;
264
264
  }
265
265
 
266
- async function main() {
267
- const args = parseArgs(process.argv);
266
+ export async function main(argv = process.argv) {
267
+ const args = parseArgs(argv);
268
268
  if (!args.workspaceDir) {
269
269
  console.error('Usage: node scripts/analyze-benchmark.js <workspace> [--benchmark benchmark.json] [--output analysis.json] [--markdown analysis.md]');
270
270
  process.exit(1);
@@ -278,7 +278,8 @@ async function main() {
278
278
  }, null, 2)}\n`);
279
279
  }
280
280
 
281
- const isDirectRun = process.argv[1]
281
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
282
+ && process.argv[1]
282
283
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
283
284
 
284
285
  if (isDirectRun) {
@@ -60,3 +60,4 @@ export function compareWorkspace(
60
60
  outputPath: string;
61
61
  markdownPath: string;
62
62
  }>;
63
+ export declare function main(argv?: string[]): Promise<void>;
@@ -307,8 +307,8 @@ function parseArgs(argv) {
307
307
  return args;
308
308
  }
309
309
 
310
- async function main() {
311
- const args = parseArgs(process.argv);
310
+ export async function main(argv = process.argv) {
311
+ const args = parseArgs(argv);
312
312
  if (!args.workspaceDir) {
313
313
  console.error('Usage: node scripts/compare-runs.js <workspace> [--config-a with_skill] [--config-b without_skill] [--output comparison.json]');
314
314
  process.exit(1);
@@ -322,7 +322,8 @@ async function main() {
322
322
  }, null, 2)}\n`);
323
323
  }
324
324
 
325
- const isDirectRun = process.argv[1]
325
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
326
+ && process.argv[1]
326
327
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
327
328
 
328
329
  if (isDirectRun) {
@@ -404,7 +404,8 @@ async function main() {
404
404
  });
405
405
  }
406
406
 
407
- const isDirectRun = process.argv[1]
407
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
408
+ && process.argv[1]
408
409
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
409
410
 
410
411
  if (isDirectRun) {
@@ -71,3 +71,4 @@ export function gradeWorkspace(
71
71
  processed_runs: Array<Record<string, unknown>>;
72
72
  skipped_runs: string[];
73
73
  }>;
74
+ export declare function main(argv?: string[]): Promise<void>;
@@ -383,8 +383,8 @@ function parseArgs(argv) {
383
383
  return args;
384
384
  }
385
385
 
386
- async function main() {
387
- const args = parseArgs(process.argv);
386
+ export async function main(argv = process.argv) {
387
+ const args = parseArgs(argv);
388
388
  if (!args.workspaceDir) {
389
389
  console.error('Usage: node scripts/grade-evals.js <workspace> [--provider anthropic] [--configs with_skill,without_skill] [--overwrite]');
390
390
  process.exit(1);
@@ -394,7 +394,8 @@ async function main() {
394
394
  process.stdout.write(`${JSON.stringify(summary, null, 2)}\n`);
395
395
  }
396
396
 
397
- const isDirectRun = process.argv[1]
397
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
398
+ && process.argv[1]
398
399
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
399
400
 
400
401
  if (isDirectRun) {
@@ -150,7 +150,8 @@ async function main() {
150
150
  }
151
151
  }
152
152
 
153
- const isDirectRun = process.argv[1]
153
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
154
+ && process.argv[1]
154
155
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
155
156
 
156
157
  if (isDirectRun) {
@@ -12,3 +12,4 @@ export function initSkill(options: InitSkillOptions): Promise<{
12
12
  skillDir: string;
13
13
  created: string[];
14
14
  }>;
15
+ export declare function main(argv?: string[]): Promise<void>;
@@ -131,8 +131,8 @@ function parseArgs(argv) {
131
131
  return args;
132
132
  }
133
133
 
134
- async function main() {
135
- const args = parseArgs(process.argv);
134
+ export async function main(argv = process.argv) {
135
+ const args = parseArgs(argv);
136
136
  if (!args.name) {
137
137
  console.error('Usage: node scripts/init-skill.js <skill-name> [--path <skills-dir>] [--description <text>] [--force] [--no-evals]');
138
138
  process.exit(1);
@@ -142,7 +142,8 @@ async function main() {
142
142
  console.log(`Initialized ${result.skillDir}`);
143
143
  }
144
144
 
145
- const isDirectRun = process.argv[1]
145
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
146
+ && process.argv[1]
146
147
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
147
148
 
148
149
  if (isDirectRun) {
@@ -27,3 +27,4 @@ export function installSkill(
27
27
  inputPath: string,
28
28
  options?: { skillsDir?: string; force?: boolean }
29
29
  ): Promise<InstalledSkillResult>;
30
+ export declare function main(argv?: string[]): Promise<void>;
@@ -154,8 +154,8 @@ function parseArgs(argv) {
154
154
  return args;
155
155
  }
156
156
 
157
- async function main() {
158
- const args = parseArgs(process.argv);
157
+ export async function main(argv = process.argv) {
158
+ const args = parseArgs(argv);
159
159
  if (!args.input) {
160
160
  console.error('Usage: node scripts/install-skill.js <skill-dir-or-archive> [--dest <skills-dir>] [--force]');
161
161
  process.exit(1);
@@ -165,7 +165,8 @@ async function main() {
165
165
  console.log(`Installed ${result.skillName} to ${result.installedTo}`);
166
166
  }
167
167
 
168
- const isDirectRun = process.argv[1]
168
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
169
+ && process.argv[1]
169
170
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
170
171
 
171
172
  if (isDirectRun) {
@@ -36,3 +36,4 @@ export function writeSkillPackage(
36
36
  outputPath: string,
37
37
  options?: { createdAt?: string }
38
38
  ): Promise<{ manifest: SkillPackageManifest; bytes: Uint8Array; outputPath: string }>;
39
+ export declare function main(argv?: string[]): Promise<void>;
@@ -100,8 +100,8 @@ function parseArgs(argv) {
100
100
  return args;
101
101
  }
102
102
 
103
- async function main() {
104
- const args = parseArgs(process.argv);
103
+ export async function main(argv = process.argv) {
104
+ const args = parseArgs(argv);
105
105
  if (!args.skillDir) {
106
106
  console.error('Usage: node scripts/package-skill.js <skill-dir> [--output <file.skill>]');
107
107
  process.exit(1);
@@ -113,7 +113,8 @@ async function main() {
113
113
  console.log(`Wrote ${result.outputPath}`);
114
114
  }
115
115
 
116
- const isDirectRun = process.argv[1]
116
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
117
+ && process.argv[1]
117
118
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
118
119
 
119
120
  if (isDirectRun) {
@@ -6,3 +6,4 @@ export interface SkillValidationResult {
6
6
  }
7
7
 
8
8
  export function validateSkillDirectory(skillDir: string): Promise<SkillValidationResult>;
9
+ export declare function main(argv?: string[]): Promise<void>;
@@ -127,8 +127,8 @@ export async function validateSkillDirectory(skillDir) {
127
127
  return result;
128
128
  }
129
129
 
130
- async function main() {
131
- const skillDir = process.argv[2];
130
+ export async function main(argv = process.argv) {
131
+ const skillDir = argv[2];
132
132
  if (!skillDir) {
133
133
  console.error('Usage: node scripts/quick-validate.js <skill-directory>');
134
134
  process.exit(1);
@@ -155,7 +155,8 @@ async function main() {
155
155
  process.exit(result.valid ? 0 : 1);
156
156
  }
157
157
 
158
- const isDirectRun = process.argv[1]
158
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
159
+ && process.argv[1]
159
160
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
160
161
 
161
162
  if (isDirectRun) {
@@ -64,3 +64,4 @@ export function runEvalWorkspace(
64
64
  runs_per_config: number;
65
65
  reports: Array<Record<string, unknown>>;
66
66
  }>;
67
+ export declare function main(argv?: string[]): Promise<void>;
@@ -327,8 +327,8 @@ function parseArgs(argv) {
327
327
  return args;
328
328
  }
329
329
 
330
- async function main() {
331
- const args = parseArgs(process.argv);
330
+ export async function main(argv = process.argv) {
331
+ const args = parseArgs(argv);
332
332
  if (!args.skillPath || !args.evalsPath || !args.workspaceDir) {
333
333
  console.error('Usage: node scripts/run-eval.js --skill-path <dir> --evals <evals.json> --workspace <dir> [--provider anthropic] [--runs 1]');
334
334
  process.exit(1);
@@ -345,7 +345,8 @@ async function main() {
345
345
  }
346
346
  }
347
347
 
348
- const isDirectRun = process.argv[1]
348
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
349
+ && process.argv[1]
349
350
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
350
351
 
351
352
  if (isDirectRun) {
@@ -232,7 +232,8 @@ async function main() {
232
232
  }
233
233
  }
234
234
 
235
- const isDirectRun = process.argv[1]
235
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
236
+ && process.argv[1]
236
237
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
237
238
 
238
239
  if (isDirectRun) {
@@ -214,7 +214,8 @@ async function main() {
214
214
  }
215
215
  }
216
216
 
217
- const isDirectRun = process.argv[1]
217
+ const isDirectRun = process.env.KODAX_MODULE_BUNDLE !== 'true'
218
+ && process.argv[1]
218
219
  && fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
219
220
 
220
221
  if (isDirectRun) {
@@ -0,0 +1,3 @@
1
+ export declare function setKodaXSDKForSkillCreator(
2
+ sdk: Readonly<Record<string, unknown>>,
3
+ ): void;
@@ -31,7 +31,11 @@ import YAML from 'yaml';
31
31
  // See docs/ADR.md ADR-022 / ADR-024 + docs/HLD.md §12 for the SDK distribution
32
32
  // contract.
33
33
 
34
- let _cachedSdk = null;
34
+ let _cachedSdk = null;
35
+
36
+ export function setKodaXSDKForSkillCreator(sdk) {
37
+ _cachedSdk = sdk;
38
+ }
35
39
 
36
40
  export async function loadKodaXSDK() {
37
41
  if (_cachedSdk) return _cachedSdk;
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{Ja as g,La as h,Ya as i,a as c,cb as j,ra as d,sa as e,ta as f}from"./chunk-TQDBTTIM.js";import"./chunk-Z3KFRTSB.js";import"./chunk-KQLQYHWU.js";import"./chunk-YAZQTC2L.js";import"./chunk-5NDCSFOP.js";import{qb as a,rb as b}from"./chunk-VAT2QYXM.js";import"./chunk-6XM4B6K2.js";import"./chunk-2CFHBKRE.js";import"./chunk-NXO6GWSY.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,j as runKodaX,i as saveSessionSnapshot,a as validateAndFixToolHistory};
2
+ import{Ja as g,La as h,Ya as i,a as c,cb as j,ra as d,sa as e,ta as f}from"./chunk-B6UY3VHV.js";import"./chunk-67THZRM6.js";import"./chunk-TSTVAU5E.js";import"./chunk-OWQT3FTE.js";import"./chunk-SG6P4SZS.js";import{ub as a,vb as b}from"./chunk-RQPMGRTR.js";import"./chunk-GEECPO2H.js";import"./chunk-M4N2JZTZ.js";import"./chunk-H5LLM7DB.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,j as runKodaX,i as saveSessionSnapshot,a as validateAndFixToolHistory};
@@ -0,0 +1,2 @@
1
+ // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
+ import{$a as a,ab as b}from"./chunk-ZCZZUE5E.js";import"./chunk-EDZ4QILG.js";import"./chunk-BBOVVDQJ.js";import"./chunk-KLWP7POA.js";import"./chunk-B6UY3VHV.js";import"./chunk-CXHEZY5G.js";import"./chunk-67THZRM6.js";import"./chunk-QCZLCLFL.js";import"./chunk-TSTVAU5E.js";import"./chunk-OWQT3FTE.js";import"./chunk-SG6P4SZS.js";import"./chunk-RQPMGRTR.js";import"./chunk-GEECPO2H.js";import"./chunk-M4N2JZTZ.js";import"./chunk-H5LLM7DB.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{o}from"./chunk-5NDCSFOP.js";import{a as i}from"./chunk-ONUPGMER.js";function r(u){let e=o(u?.llm);if(!e)return;let t={};return e.requestTimeoutMs!==void 0&&(t.requestTimeoutMs=e.requestTimeoutMs),e.streamIdleTimeoutMs!==void 0&&(t.streamIdleTimeoutMs=e.streamIdleTimeoutMs),e.chunkTimeoutMs!==void 0&&(t.chunkTimeoutMs=e.chunkTimeoutMs),e.maxRetryDelayMs!==void 0&&(t.maxRetryDelayMs=e.maxRetryDelayMs),Object.keys(t).length>0?t:void 0}i(r,"providerResilienceConfigFromTimeouts");export{r as a};
2
+ import{o}from"./chunk-SG6P4SZS.js";import{a as i}from"./chunk-ONUPGMER.js";function r(u){let e=o(u?.llm);if(!e)return;let t={};return e.requestTimeoutMs!==void 0&&(t.requestTimeoutMs=e.requestTimeoutMs),e.streamIdleTimeoutMs!==void 0&&(t.streamIdleTimeoutMs=e.streamIdleTimeoutMs),e.chunkTimeoutMs!==void 0&&(t.chunkTimeoutMs=e.chunkTimeoutMs),e.maxRetryDelayMs!==void 0&&(t.maxRetryDelayMs=e.maxRetryDelayMs),Object.keys(t).length>0?t:void 0}i(r,"providerResilienceConfigFromTimeouts");export{r as a};