@kodax-ai/kodax 0.7.82 → 0.7.83
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 +30 -0
- package/README.md +10 -0
- package/README_CN.md +8 -0
- package/dist/chunks/{agent-4UTCCMD5.js → agent-S7LMMTG7.js} +1 -1
- package/dist/chunks/argument-completer-SQHG2LYE.js +2 -0
- package/dist/chunks/chunk-37RT45HT.js +379 -0
- package/dist/chunks/{chunk-ZOBNDWOA.js → chunk-3DKQC7A2.js} +1 -1
- package/dist/chunks/{chunk-WMYCNECP.js → chunk-45E23YJI.js} +142 -67
- package/dist/chunks/{chunk-GIVYTXQW.js → chunk-6QILIBOU.js} +155 -155
- package/dist/chunks/{chunk-JDZFNWMZ.js → chunk-DSFHIUHZ.js} +2 -2
- package/dist/chunks/{chunk-7ZN2MLVM.js → chunk-DZUMH6GJ.js} +1 -1
- package/dist/chunks/{chunk-VQBJMNFD.js → chunk-HI6RCW5Y.js} +2 -2
- package/dist/chunks/{chunk-XTCDCU2Q.js → chunk-LF2JBTBG.js} +4 -4
- package/dist/chunks/{chunk-NINELPXH.js → chunk-RAQGGVIF.js} +1 -1
- package/dist/chunks/{chunk-ZZUIO5KL.js → chunk-TC2VHPG5.js} +1 -1
- package/dist/chunks/{chunk-S6JTWDN6.js → chunk-URCS6CVP.js} +1 -1
- package/dist/chunks/{chunk-KH2HED37.js → chunk-XB2JNLXH.js} +2 -2
- package/dist/chunks/{compaction-config-IDL5JQVI.js → compaction-config-SSQ5NXUP.js} +1 -1
- package/dist/chunks/{construction-bootstrap-STYUR6XA.js → construction-bootstrap-E4M3CY3N.js} +1 -1
- package/dist/chunks/{dist-RKBHBUHV.js → dist-MIXP4ULB.js} +1 -1
- package/dist/chunks/{host-RF2IX3N6.js → host-ZCPI7SMC.js} +1 -1
- package/dist/chunks/{run-manager-WE2KPAKZ.js → run-manager-4RYG7HSP.js} +1 -1
- package/dist/chunks/{utils-Z2RSAENX.js → utils-7DKE2EKT.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1522 -1098
- package/dist/kodax_resume.js +140 -65
- package/dist/runtime-worker.js +1415 -991
- package/dist/sandbox-workspace-session.js +121 -46
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +8 -1
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +47 -2
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +120 -45
- package/docs/SDK_EMBEDDER_GUIDE.md +35 -8
- package/package.json +2 -1
- package/dist/chunks/argument-completer-N7ORRJBS.js +0 -2
- package/dist/chunks/chunk-PGTU7JQX.js +0 -30
|
@@ -2651,14 +2651,41 @@ SDK auto-start allows `daemonStartupTimeoutMs` (default 60 seconds) and
|
|
|
2651
2651
|
concurrent test/desktop startup without weakening PID, endpoint, token, or
|
|
2652
2652
|
runtime-identity validation.
|
|
2653
2653
|
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2654
|
+
### Windows daemon shutdown containment (v0.7.83)
|
|
2655
|
+
|
|
2656
|
+
On Windows, a newly started daemon is created suspended and assigned to a
|
|
2657
|
+
kill-on-close Job Object before it is resumed. Daemon application code cannot
|
|
2658
|
+
create descendants before that assignment. An out-of-Job supervisor waits for
|
|
2659
|
+
the daemon to exit and then waits for the Job's active-process count to reach
|
|
2660
|
+
zero, so a daemon PID exit alone is not a verified shutdown.
|
|
2661
|
+
|
|
2662
|
+
Hosts that own the shutdown boundary can use the public verifier:
|
|
2663
|
+
|
|
2664
|
+
```ts
|
|
2665
|
+
import { waitForRuntimeDaemonShutdown } from '@kodax-ai/kodax/runtime';
|
|
2666
|
+
|
|
2667
|
+
const result = await waitForRuntimeDaemonShutdown({
|
|
2668
|
+
homeDir: kodaxHome,
|
|
2669
|
+
profile: 'default',
|
|
2670
|
+
runtimeId,
|
|
2671
|
+
timeoutMs: 30_000,
|
|
2672
|
+
});
|
|
2673
|
+
if (!result.verified) {
|
|
2674
|
+
throw new Error(`Runtime shutdown was not verified: ${result.outcome}`);
|
|
2675
|
+
}
|
|
2676
|
+
```
|
|
2677
|
+
|
|
2678
|
+
The connected daemon must advertise `daemonShutdownVerification: 1` when a host
|
|
2679
|
+
requires this contract. A legacy daemon without Job-containment metadata is
|
|
2680
|
+
kept usable for ordinary Session recovery, but it is never reported as a
|
|
2681
|
+
verified shutdown and is not silently upgraded in place. Stop it explicitly and
|
|
2682
|
+
relaunch it before requiring the capability. The CLI's `kodax daemon stop
|
|
2683
|
+
--json` follows the same daemon-plus-supervisor boundary.
|
|
2684
|
+
|
|
2685
|
+
The daemon-owned slice does not close the Worker-owned child lifetime gap in
|
|
2686
|
+
Issue 256; that owner-lease work remains scheduled for v0.7.84. Worker and
|
|
2687
|
+
executor cleanup still use identity-checked evidence and fail closed when a
|
|
2688
|
+
descendant cannot be proven gone.
|
|
2662
2689
|
|
|
2663
2690
|
`homeDir` and `KODAX_HOME` deliberately name different levels. Runtime SDK and
|
|
2664
2691
|
CLI daemon `--home` accept the **base directory that contains `.kodax`**;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodax-ai/kodax",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.83",
|
|
4
4
|
"description": "KodaX lightweight coding agent - TypeScript implementation with 16 built-in LLM provider aliases, published as a Node-free single-file CLI and SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"kodaxRuntimeContracts": {
|
|
11
|
+
"daemonShutdownVerification": 1,
|
|
11
12
|
"integrationConfigResilience": 1,
|
|
12
13
|
"managedRunDurability": 1
|
|
13
14
|
},
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ea as a,Fa as b}from"./chunk-JDZFNWMZ.js";import"./chunk-VQBJMNFD.js";import"./chunk-7ZN2MLVM.js";import"./chunk-ZOBNDWOA.js";import"./chunk-ZZUIO5KL.js";import"./chunk-NINELPXH.js";import"./chunk-HTVLCHWH.js";import"./chunk-KH2HED37.js";import"./chunk-GIVYTXQW.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import"./chunk-WMYCNECP.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
|