@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.
- package/dist/agui-map.d.ts +3 -2
- package/dist/agui-map.d.ts.map +1 -1
- package/dist/docs-bundle.bin +0 -0
- package/dist/docs-index.bin +0 -0
- package/dist/host.d.ts +0 -6
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +42 -42
- package/dist/index.js +2 -2
- package/dist/mcp.js +3 -3
- package/dist/private-lifecycle.d.ts +5 -6
- package/dist/private-lifecycle.d.ts.map +1 -1
- package/dist/private-state.d.ts +3 -2
- package/dist/private-state.d.ts.map +1 -1
- package/dist/queue-fallback.d.ts +4 -3
- package/dist/queue-fallback.d.ts.map +1 -1
- package/dist/route-identity.d.ts +2 -1
- package/dist/route-identity.d.ts.map +1 -1
- package/dist/session-fork.d.ts +3 -2
- package/dist/session-fork.d.ts.map +1 -1
- package/dist/startup-diagnostics.d.ts +3 -2
- package/dist/startup-diagnostics.d.ts.map +1 -1
- package/dist/stored-sessions.d.ts +2 -1
- package/dist/stored-sessions.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/agui-map.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RecordMapper } from "@cotal-ai/connector-core";
|
|
2
|
-
|
|
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
|
-
|
|
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
|
package/dist/agui-map.d.ts.map
CHANGED
|
@@ -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,
|
|
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,UAAU,iBAAiB;IACzB,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,UAAU,YAAY;IACpB,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,CAAC;IACjC,YAAY,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"}
|
package/dist/docs-bundle.bin
CHANGED
|
Binary file
|
package/dist/docs-index.bin
CHANGED
|
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. */
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAqE,MAAM,qBAAqB,CAAC;
|
|
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"}
|