@cotal-ai/connector-claude-code 0.126.3 → 0.127.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/app-host.d.ts +5 -1
- package/dist/app-host.d.ts.map +1 -1
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +11 -10
- package/dist/mcp.d.ts.map +1 -1
- package/dist/monitor.cjs +2 -1
- package/dist/wake-feed.d.ts +2 -0
- package/dist/wake-feed.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/app-host.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GatewayHost } from "@cotal-ai/connector-core";
|
|
1
|
+
import { type GatewayConnection, type GatewayHost, type NativeTurnParticipationLease } from "@cotal-ai/connector-core";
|
|
2
2
|
/** How often a pending request is replayed to the authority while the person decides, and how long
|
|
3
3
|
* past its expiry a replay may still bring the recorded decision before the host stops asking. */
|
|
4
4
|
declare const WATCH: {
|
|
@@ -18,6 +18,10 @@ export interface AppHostOptions {
|
|
|
18
18
|
env: NodeJS.ProcessEnv;
|
|
19
19
|
/** Tell the bound native session what the person decided. True when a reader heard it. */
|
|
20
20
|
notify?: (session: string, notice: ApprovalNotice) => boolean;
|
|
21
|
+
/** Obtain a finite authority-issued lease for this exact personal identity. */
|
|
22
|
+
participate?: (connection: GatewayConnection) => Promise<NativeTurnParticipationLease>;
|
|
23
|
+
/** Deliver one pending workflow turn through the bound native session wake feed. */
|
|
24
|
+
turn?: (session: string, connectionId: string, text: string) => boolean;
|
|
21
25
|
watch?: typeof WATCH;
|
|
22
26
|
}
|
|
23
27
|
export interface AppHost extends GatewayHost {
|
package/dist/app-host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-host.d.ts","sourceRoot":"","sources":["../src/app-host.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
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,OAAO,CAqPxD"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export interface ClaudeHandleDeps {
|
|
|
10
10
|
surfaced?: (items: readonly InboxItem[]) => void;
|
|
11
11
|
/** False when native ingress owns delivery and these hooks observe lifecycle only. */
|
|
12
12
|
delivery?: boolean;
|
|
13
|
+
/** Allow run-turn lifecycle and exact yield correlation while peer inbox delivery stays disabled. */
|
|
14
|
+
turns?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/** The hook side of the connector: the handler plus the delivery callback that commits what it
|
|
15
17
|
* injected. Both must be wired into {@link startControlServer} — the handler surfaces, the
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAcA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAqEjD,MAAM,WAAW,gBAAgB;IAC/B,mGAAmG;IACnG,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACnE,iFAAiF;IACjF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,KAAK,IAAI,CAAC;IACjD,sFAAsF;IACtF,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAcA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU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