@cotal-ai/connector-jcode 0.165.4 → 0.166.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,5 +1,5 @@
1
1
  import { type RecordMapper } from "@cotal-ai/connector-core";
2
- export interface JcodeContentBlock {
2
+ interface JcodeContentBlock {
3
3
  type?: string;
4
4
  text?: string;
5
5
  id?: string;
@@ -9,7 +9,7 @@ export interface JcodeContentBlock {
9
9
  content?: unknown;
10
10
  is_error?: boolean;
11
11
  }
12
- export interface JcodeMessage {
12
+ interface JcodeMessage {
13
13
  role?: string;
14
14
  content?: JcodeContentBlock[];
15
15
  timestamp?: string;
@@ -33,4 +33,5 @@ export declare function createJcodeMapper(opts: {
33
33
  resumeTools?: readonly string[];
34
34
  now?: () => number;
35
35
  }): JcodeMapper;
36
+ export {};
36
37
  //# sourceMappingURL=agui-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agui-map.d.ts","sourceRoot":"","sources":["../src/agui-map.ts"],"names":[],"mappings":"AACA,OAAO,EAeL,KAAK,YAAY,EAClB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,YAAY,EAAE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AY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,YAAY,CAAC,4BAA4B,CAAC,CAAC;IAChD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAeD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB,GAAG,WAAW,CAiId"}
Binary file
Binary file
package/dist/host.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { HarnessError } from "@1jehuang/jcode-sdk";
2
- import { type PresenceCondition } from "@cotal-ai/core";
3
2
  /** One bridge recovery remains bounded, but it is bounded by time rather than one launch/attach
4
3
  * outcome. A loaded host can lose a transient replacement race without turning that into a
5
4
  * second provider close or an unbounded relaunch loop. The window opens at the close, so tearing
@@ -10,11 +9,6 @@ export declare const PERMANENT_BRIDGE_RECOVERY_CODES: Set<string>;
10
9
  export declare const PERMANENT_BRIDGE_CONNECT_CAUSE_CODES: Set<string>;
11
10
  /** Recovery retries availability races, not a refusal that another attempt cannot change. */
12
11
  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;
18
12
  /** Jcode acknowledges a plain send with `message_accepted` before it checks whether this connection
19
13
  * is still processing a message, and then refuses the send with this error. The acknowledgement is
20
14
  * therefore no proof that the model received the text. */
@@ -1 +1 @@
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;AAgFlH;;;;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;AAED;;2DAE2D;AAC3D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE1D;AAuOD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAo6DlD"}
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAqE,MAAM,qBAAqB,CAAC;AAiFtH;;;;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;AAwBD;;2DAE2D;AAC3D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE1D;AAuOD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAo6DlD"}