kojee-mcp 0.7.5-staging.3 → 0.7.5-staging.4
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/{cc-session-id-RURNIHHC.js → cc-session-id-NNCZCHZZ.js} +3 -1
- package/dist/{chunk-WBXU27BF.js → chunk-3P24YPR7.js} +1 -1
- package/dist/{chunk-ZSHCHOPL.js → chunk-O2GELC3V.js} +2 -2
- package/dist/{chunk-KNEJTD6G.js → chunk-SRLD2UY7.js} +4 -0
- package/dist/{chunk-247WFMCJ.js → chunk-TBVJOXIR.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/{doctor-WUU5BVPT.js → doctor-ZHV362IF.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/lib.js +2 -2
- package/dist/{registry-XJ67EO22.js → registry-DKWVVXJM.js} +1 -1
- package/dist/{send-cli-45RLGYIC.js → send-cli-OLNEVSBI.js} +2 -2
- package/dist/{stop-hook-N6TX4YQT.js → stop-hook-4MNOSDCB.js} +2 -2
- package/dist/{user-prompt-submit-hook-DTXXFDSD.js → user-prompt-submit-hook-44N6SCNJ.js} +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SESSION_ID_ENV_VARS,
|
|
3
|
+
STABLE_RUNTIMES,
|
|
3
4
|
resolveInstanceKey,
|
|
4
5
|
resolveSharedSessionId
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SRLD2UY7.js";
|
|
6
7
|
export {
|
|
7
8
|
SESSION_ID_ENV_VARS,
|
|
9
|
+
STABLE_RUNTIMES,
|
|
8
10
|
resolveInstanceKey,
|
|
9
11
|
resolveSharedSessionId
|
|
10
12
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
GatewayClient,
|
|
6
6
|
applyStableSessionId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TBVJOXIR.js";
|
|
8
8
|
import {
|
|
9
9
|
AuthModule
|
|
10
10
|
} from "./chunk-I67C2HYA.js";
|
|
@@ -295,7 +295,7 @@ async function startProxy(config) {
|
|
|
295
295
|
}
|
|
296
296
|
console.error(`[kojee-mcp] Tandem memberships: ${tandemMembershipCount === -1 ? "unknown" : tandemMembershipCount}`);
|
|
297
297
|
let server;
|
|
298
|
-
const { selectDelivery } = await import("./registry-
|
|
298
|
+
const { selectDelivery } = await import("./registry-DKWVVXJM.js");
|
|
299
299
|
const delivery = selectDelivery(adapter.runtime, {
|
|
300
300
|
supportsChannels: adapter.supportsChannels,
|
|
301
301
|
// Per-window delivered mirror for the tandem_pending tool (codex only —
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/runtime/cc-session-id.ts
|
|
2
2
|
import { randomUUID } from "crypto";
|
|
3
3
|
var SESSION_ID_ENV_VARS = ["CLAUDE_CODE_SESSION_ID"];
|
|
4
|
+
var STABLE_RUNTIMES = /* @__PURE__ */ new Set(["openclaw", "open_claw"]);
|
|
4
5
|
function sanitizeKey(value) {
|
|
5
6
|
return value.replace(/[^A-Za-z0-9_-]/g, "");
|
|
6
7
|
}
|
|
@@ -12,6 +13,8 @@ function resolveInstanceKey(deps = {}) {
|
|
|
12
13
|
}
|
|
13
14
|
const explicit = sanitizeKey((env.KOJEE_INSTANCE ?? "").trim());
|
|
14
15
|
if (explicit) return `inst-${explicit}`;
|
|
16
|
+
const runtime = sanitizeKey((env.KOJEE_RUNTIME ?? "").trim().toLowerCase());
|
|
17
|
+
if (STABLE_RUNTIMES.has(runtime)) return `rt-${runtime}`;
|
|
15
18
|
const mint = deps.randomUUID ?? randomUUID;
|
|
16
19
|
return `mint-${mint()}`;
|
|
17
20
|
}
|
|
@@ -26,6 +29,7 @@ function resolveSharedSessionId(deps = {}) {
|
|
|
26
29
|
|
|
27
30
|
export {
|
|
28
31
|
SESSION_ID_ENV_VARS,
|
|
32
|
+
STABLE_RUNTIMES,
|
|
29
33
|
resolveInstanceKey,
|
|
30
34
|
resolveSharedSessionId
|
|
31
35
|
};
|
package/dist/cli.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-EIAUW6KO.js";
|
|
5
5
|
import {
|
|
6
6
|
startProxy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O2GELC3V.js";
|
|
8
8
|
import "./chunk-TCWIXG5C.js";
|
|
9
9
|
import {
|
|
10
10
|
pairedConfigPath
|
|
11
11
|
} from "./chunk-5SZHXYPK.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TBVJOXIR.js";
|
|
13
13
|
import "./chunk-Z5LPNJQ6.js";
|
|
14
14
|
import "./chunk-I67C2HYA.js";
|
|
15
15
|
import "./chunk-MIEI4PLB.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import "./chunk-FJUAMJHU.js";
|
|
26
26
|
import "./chunk-PPTKGWFF.js";
|
|
27
27
|
import "./chunk-XJEBJIQE.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SRLD2UY7.js";
|
|
29
29
|
|
|
30
30
|
// src/cli.ts
|
|
31
31
|
import { Command } from "commander";
|
|
@@ -63,11 +63,11 @@ program.command("hook").description("Run a kojee MCP hook script (called by Clau
|
|
|
63
63
|
"Hook type: stop, user-prompt-submit, codex-stop, or codex-prompt-submit"
|
|
64
64
|
).action(async (opts) => {
|
|
65
65
|
if (opts.type === "stop") {
|
|
66
|
-
const { runStopHook } = await import("./stop-hook-
|
|
66
|
+
const { runStopHook } = await import("./stop-hook-4MNOSDCB.js");
|
|
67
67
|
await runStopHook();
|
|
68
68
|
process.exit(0);
|
|
69
69
|
} else if (opts.type === "user-prompt-submit") {
|
|
70
|
-
const { runUserPromptSubmitHook } = await import("./user-prompt-submit-hook-
|
|
70
|
+
const { runUserPromptSubmitHook } = await import("./user-prompt-submit-hook-44N6SCNJ.js");
|
|
71
71
|
await runUserPromptSubmitHook();
|
|
72
72
|
process.exit(0);
|
|
73
73
|
} else if (opts.type === "codex-stop") {
|
|
@@ -104,7 +104,7 @@ Restart Claude Code for hooks to take effect.`
|
|
|
104
104
|
program.command("send <tandem_id>").description(
|
|
105
105
|
"Send a Tandem message using this machine's paired credentials (~/.kojee). Prints one JSON envelope to stdout: {ok, message_id, cursor, text} on success, {ok:false, error:<typed code>, message} on failure (exit 1)."
|
|
106
106
|
).requiredOption("--body <text>", "Message body (required)").option("--reply-to <message_id>", "Message id this send replies to").option("--kind <kind>", "Message kind: message | status (default: backend default)").action(async (tandemId, opts) => {
|
|
107
|
-
const { runSendCli } = await import("./send-cli-
|
|
107
|
+
const { runSendCli } = await import("./send-cli-OLNEVSBI.js");
|
|
108
108
|
const { exitCode, envelope } = await runSendCli({
|
|
109
109
|
tandemId,
|
|
110
110
|
body: opts.body,
|
|
@@ -124,7 +124,7 @@ program.command("tail <path>").description("Stream a file's contents and follow
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
program.command("doctor").description("Diagnose the kojee wake path (proxy, hook-server, SSE stream, event log, Monitor) and print the exact wake recipe").action(async () => {
|
|
127
|
-
const { runDoctor } = await import("./doctor-
|
|
127
|
+
const { runDoctor } = await import("./doctor-ZHV362IF.js");
|
|
128
128
|
const code = await runDoctor();
|
|
129
129
|
process.exit(code);
|
|
130
130
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listTandemIds,
|
|
3
3
|
startProxy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O2GELC3V.js";
|
|
5
5
|
import "./chunk-TCWIXG5C.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-TBVJOXIR.js";
|
|
7
7
|
import "./chunk-Z5LPNJQ6.js";
|
|
8
8
|
import "./chunk-I67C2HYA.js";
|
|
9
9
|
import "./chunk-MIEI4PLB.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-5DHIUN73.js";
|
|
|
14
14
|
import "./chunk-FJUAMJHU.js";
|
|
15
15
|
import "./chunk-PPTKGWFF.js";
|
|
16
16
|
import "./chunk-XJEBJIQE.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SRLD2UY7.js";
|
|
18
18
|
export {
|
|
19
19
|
listTandemIds,
|
|
20
20
|
startProxy
|
package/dist/lib.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
GatewayClient,
|
|
15
15
|
applyStableSessionId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TBVJOXIR.js";
|
|
17
17
|
import {
|
|
18
18
|
deriveStableSessionId
|
|
19
19
|
} from "./chunk-Z5LPNJQ6.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-6G6YYST6.js";
|
|
33
33
|
import "./chunk-U5HHHRXA.js";
|
|
34
34
|
import "./chunk-PPTKGWFF.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-SRLD2UY7.js";
|
|
36
36
|
export {
|
|
37
37
|
AuthModule,
|
|
38
38
|
GatewayClient,
|
|
@@ -129,7 +129,7 @@ function createClaudeCodeDelivery() {
|
|
|
129
129
|
const { startEventStream } = await import("./event-stream-ATKYXDBV.js");
|
|
130
130
|
const { createMcpServer } = await import("./server-DU3LFS32.js");
|
|
131
131
|
const { deriveDiscoveryKey } = await import("./ancestry-A2F5KQ6A.js");
|
|
132
|
-
const { resolveSharedSessionId } = await import("./cc-session-id-
|
|
132
|
+
const { resolveSharedSessionId } = await import("./cc-session-id-NNCZCHZZ.js");
|
|
133
133
|
sweepStaleDiscovery();
|
|
134
134
|
sweepStaleEventLogs();
|
|
135
135
|
const projectDir = process.env["CLAUDE_PROJECT_DIR"];
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
GatewayClient,
|
|
15
15
|
applyStableSessionId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TBVJOXIR.js";
|
|
17
17
|
import "./chunk-Z5LPNJQ6.js";
|
|
18
18
|
import "./chunk-MIEI4PLB.js";
|
|
19
19
|
import {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-6G6YYST6.js";
|
|
23
23
|
import "./chunk-U5HHHRXA.js";
|
|
24
24
|
import "./chunk-PPTKGWFF.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-SRLD2UY7.js";
|
|
26
26
|
|
|
27
27
|
// src/tandem/send-cli.ts
|
|
28
28
|
import os from "os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-XLKGPGZT.js";
|
|
2
2
|
import {
|
|
3
3
|
resolveHookDiscovery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3P24YPR7.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookStdin
|
|
7
7
|
} from "./chunk-LSUB6QMP.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
buildMonitorNudge
|
|
22
22
|
} from "./chunk-FJUAMJHU.js";
|
|
23
23
|
import "./chunk-XJEBJIQE.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-SRLD2UY7.js";
|
|
25
25
|
|
|
26
26
|
// src/hooks/stop-hook.ts
|
|
27
27
|
import fs from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveHookDiscovery
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3P24YPR7.js";
|
|
4
4
|
import {
|
|
5
5
|
readHookStdin
|
|
6
6
|
} from "./chunk-LSUB6QMP.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import "./chunk-67F67AQ6.js";
|
|
14
14
|
import "./chunk-U5HHHRXA.js";
|
|
15
15
|
import "./chunk-XJEBJIQE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SRLD2UY7.js";
|
|
17
17
|
|
|
18
18
|
// src/hooks/user-prompt-submit-hook.ts
|
|
19
19
|
async function runUserPromptSubmitHook() {
|