@cotal-ai/connector-jcode 0.41.3 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,11 +8,12 @@ export declare function launchIdentityEnv(): {
8
8
  };
9
9
  /** Immutable identity of one process at capture time; throws when the platform cannot prove it. */
10
10
  export declare function captureProcessIdentity(pid: number): ProcessIdentity;
11
- interface ProcessIdentityProbe {
11
+ export interface ProcessIdentityProbe {
12
+ readEnviron: (pid: number) => string;
12
13
  ps: (pid: number) => string;
13
14
  pidExists: (pid: number) => boolean;
14
15
  }
15
- export declare const processHasLaunchIdentityForTest: (pid: number, identityValue: string, probe: ProcessIdentityProbe) => boolean;
16
+ export declare const processHasLaunchIdentityForTest: (pid: number, identityValue: string, probe: Pick<ProcessIdentityProbe, "ps" | "pidExists">) => boolean;
16
17
  /** Every PID this seat's private home records. The caller must still prove ownership. */
17
18
  export declare function recordedTreePids(jcodeHome: string): number[];
18
19
  export interface LaunchRecord {
@@ -63,10 +64,11 @@ export interface StopPrivateTreeOptions {
63
64
  killWaitMs?: number;
64
65
  /** Records must remain absent for this long after the bridge is gone (default 500ms). */
65
66
  settleMs?: number;
67
+ /** Injectable process proof source for direct lifecycle tests. */
68
+ identityProbe?: ProcessIdentityProbe;
66
69
  }
67
70
  /** SIGTERM the launch-owned tree, escalate survivors to SIGKILL, and only return once its records
68
71
  * remain quiescent after the bridge is gone. A stale or reused registry PID is skipped, never
69
72
  * signalled; an unprovable live process is not converted into ownership by location alone. */
70
73
  export declare function stopPrivateTree(options: StopPrivateTreeOptions): Promise<void>;
71
- export {};
72
74
  //# sourceMappingURL=private-lifecycle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-lifecycle.d.ts","sourceRoot":"","sources":["../src/private-lifecycle.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAi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AAE,YAAY,GAAG,IAAI,CAOrE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAYvE;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkB1F;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,MAAM,EAAE,eAAe,CAAC;IACxB,mFAAmF;IACnF,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC;AAED;;8FAE8F;AAC9F,wBAAsB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiFpF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-jcode",
3
3
  "description": "Cotal connector for Jcode: a host-mode mesh peer driven through Jcode's Harness API bridge.",
4
- "version": "0.41.3",
4
+ "version": "0.42.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,8 +29,8 @@
29
29
  "esbuild": "^0.28.0",
30
30
  "tsx": "^4.22.4",
31
31
  "zod": "^4.4.3",
32
- "@cotal-ai/connector-core": "0.41.3",
33
- "@cotal-ai/core": "0.41.3",
32
+ "@cotal-ai/connector-core": "0.42.0",
33
+ "@cotal-ai/core": "0.42.0",
34
34
  "@cotal-ai/smoke-kit": "0.0.0"
35
35
  },
36
36
  "files": [