@cotal-ai/connector-jcode 0.58.0 → 0.60.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.
@@ -1 +1 @@
1
- {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2B,KAAK,SAAS,EAAoC,KAAK,YAAY,EAAkB,MAAM,gBAAgB,CAAC;AAyB9I;;mGAEmG;AACnG,wBAAgB,eAAe,IAAI,YAAY,CA+D9C;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,SAyG5B,CAAC"}
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2B,KAAK,SAAS,EAAoC,KAAK,YAAY,EAAkB,MAAM,gBAAgB,CAAC;AA0B9I;;mGAEmG;AACnG,wBAAgB,eAAe,IAAI,YAAY,CA+D9C;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,SAsH5B,CAAC"}
package/dist/host.d.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  import { HarnessError } from "@1jehuang/jcode-sdk";
2
+ import { type PresenceCondition } from "@cotal-ai/core";
3
+ /** One bridge recovery remains bounded, but it is bounded by time rather than one launch/attach
4
+ * outcome. A loaded host can lose a transient replacement race without turning that into a
5
+ * second provider close or an unbounded relaunch loop. The window opens at the close, so tearing
6
+ * down the broken tree spends it too. Exported so a test waiting on a recovery step allows the
7
+ * host the same window instead of a shorter guess. */
8
+ export declare const BRIDGE_RECOVERY_WINDOW_MS = 60000;
2
9
  export declare const PERMANENT_BRIDGE_RECOVERY_CODES: Set<string>;
3
10
  export declare const PERMANENT_BRIDGE_CONNECT_CAUSE_CODES: Set<string>;
4
11
  /** Recovery retries availability races, not a refusal that another attempt cannot change. */
5
12
  export declare function permanentBridgeRecoveryFailure(error: unknown): error is HarnessError;
13
+ /** A failed turn's condition, relayed from the Harness's own error code. Only a `HarnessError` is
14
+ * relayed: it is what the Harness reported. A code outside the closed set reads `failed`, with
15
+ * the native code kept as `source`. Without this the seat read `waiting` with the error only in
16
+ * its private log (#618). */
17
+ export declare function jcodeTurnCondition(error: unknown, since?: number): PresenceCondition | undefined;
6
18
  export declare function runJcodeHost(): Promise<void>;
7
19
  //# sourceMappingURL=host.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAqE,MAAM,qBAAqB,CAAC;AAwGtH,eAAO,MAAM,+BAA+B,aAQ1C,CAAC;AACH,eAAO,MAAM,oCAAoC,aAAsB,CAAC;AAExE,6FAA6F;AAC7F,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAMpF;AAkPD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAyqDlD"}
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAqE,MAAM,qBAAqB,CAAC;AACtH,OAAO,EAAgC,KAAK,iBAAiB,EAA8B,MAAM,gBAAgB,CAAC;AA4ElH;;;;uDAIuD;AACvD,eAAO,MAAM,yBAAyB,QAAS,CAAC;AA6BhD,eAAO,MAAM,+BAA+B,aAQ1C,CAAC;AACH,eAAO,MAAM,oCAAoC,aAAsB,CAAC;AAExE,6FAA6F;AAC7F,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAMpF;AAaD;;;8BAG8B;AAC9B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,SAAa,GAAG,iBAAiB,GAAG,SAAS,CAKpG;AAyOD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAmuDlD"}