@moxt-ai/mobius 0.0.415 → 0.0.417
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/{chunk-XLNNEHPR.js → chunk-K3YAUS5L.js} +2 -12
- package/dist/{chunk-XLNNEHPR.js.map → chunk-K3YAUS5L.js.map} +2 -2
- package/dist/{chunk-BV3LIKQU.js → chunk-NYCOWKU2.js} +16 -31
- package/dist/{chunk-BV3LIKQU.js.map → chunk-NYCOWKU2.js.map} +2 -2
- package/dist/cli/handler/pair/logic/options.d.ts +3 -1
- package/dist/cli/handler/pair/logic/options.d.ts.map +1 -1
- package/dist/cli/handler/pair/logic/options.js +30 -2
- package/dist/cli/handler/pair/logic/options.js.map +1 -1
- package/dist/cli/handler/pair/pair.d.ts +1 -1
- package/dist/cli/handler/pair/pair.d.ts.map +1 -1
- package/dist/cli/handler/pair/pair.js +3 -1
- package/dist/cli/handler/pair/pair.js.map +1 -1
- package/dist/{cli-I4VJRVRJ.js → cli-FLXN6UTM.js} +30 -7
- package/dist/{cli-I4VJRVRJ.js.map → cli-FLXN6UTM.js.map} +2 -2
- package/dist/cli.js +2 -2
- package/dist/engine.js +2 -2
- package/package.json +1 -11
|
@@ -80,7 +80,7 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
80
80
|
// package.json
|
|
81
81
|
var package_default = {
|
|
82
82
|
name: "@moxt-ai/mobius",
|
|
83
|
-
version: "0.0.
|
|
83
|
+
version: "0.0.417",
|
|
84
84
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
85
85
|
type: "module",
|
|
86
86
|
bin: {
|
|
@@ -136,16 +136,6 @@ var package_default = {
|
|
|
136
136
|
dependencies: {
|
|
137
137
|
undici: "8.12.2"
|
|
138
138
|
},
|
|
139
|
-
optionalDependencies: {
|
|
140
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.257",
|
|
141
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.257",
|
|
142
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.257",
|
|
143
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.257",
|
|
144
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.257",
|
|
145
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.257",
|
|
146
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.257",
|
|
147
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.257"
|
|
148
|
-
},
|
|
149
139
|
devDependencies: {
|
|
150
140
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
151
141
|
"@anthropic-ai/claude-agent-sdk": "0.3.257",
|
|
@@ -181,4 +171,4 @@ export {
|
|
|
181
171
|
__callDispose,
|
|
182
172
|
package_default
|
|
183
173
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-K3YAUS5L.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"@moxt-ai/mobius\",\n \"version\": \"0.0.
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACI,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,KAAO;AAAA,IACH,QAAU;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACP,YAAY;AAAA,MACR,iBAAiB;AAAA,MACjB,OAAS;AAAA,MACT,SAAW;AAAA,IACf;AAAA,EACJ;AAAA,EACA,OAAS;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA,SAAW;AAAA,IACP,MAAQ;AAAA,EACZ;AAAA,EACA,eAAiB;AAAA,IACb,QAAU;AAAA,IACV,SAAW;AAAA,MACP,YAAY;AAAA,QACR,OAAS;AAAA,QACT,QAAU;AAAA,QACV,SAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ;AAAA,EACA,YAAc;AAAA,IACV,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACjB;AAAA,EACA,SAAW;AAAA,IACP,UAAY;AAAA,IACZ,OAAS;AAAA,IACT,KAAO;AAAA,IACP,cAAgB;AAAA,IAChB,SAAW;AAAA,IACX,OAAS;AAAA,IACT,WAAa;AAAA,IACb,sBAAsB;AAAA,IACtB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,oBAAoB;AAAA,IACpB,iBAAiB;AAAA,EACrB;AAAA,EACA,cAAgB;AAAA,IACZ,QAAU;AAAA,EACd;AAAA,EACA,
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@moxt-ai/mobius\",\n \"version\": \"0.0.417\",\n \"description\": \"Mobius CLI for pairing and running local AI agent services.\",\n \"type\": \"module\",\n \"bin\": {\n \"mobius\": \"dist/cli.js\"\n },\n \"exports\": {\n \"./engine\": {\n \"mobius-source\": \"./src/exports/engine.ts\",\n \"types\": \"./dist/exports/engine.d.ts\",\n \"default\": \"./dist/engine.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.txt\"\n ],\n \"engines\": {\n \"node\": \">=22.19.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"exports\": {\n \"./engine\": {\n \"types\": \"./dist/exports/engine.d.ts\",\n \"import\": \"./dist/engine.js\",\n \"default\": \"./dist/engine.js\"\n }\n }\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/moxt-ai/mobius.git\",\n \"directory\": \"packages/cli\"\n },\n \"scripts\": {\n \"prebuild\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"build\": \"node scripts/build.ts && tsc --project tsconfig.build.json\",\n \"dev\": \"node --watch src/cli/entrypoint.ts\",\n \"pretypecheck\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"prepack\": \"pnpm build\",\n \"start\": \"node dist/cli.js\",\n \"typecheck\": \"tsc --project tsconfig.json && tsc --project tests/tsconfig.json\",\n \"pretest:controlled\": \"pnpm build\",\n \"test:controlled\": \"vitest run tests/sessions tests/runtime\",\n \"pretest:manual\": \"pnpm pretest:controlled\",\n \"test:manual\": \"vitest run tests/manual\",\n \"pretest:agents\": \"pnpm build\",\n \"test:agents\": \"vitest run tests/agents --maxWorkers=2\",\n \"pretest:pressure\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"test:pressure\": \"node tests/pressure/concurrent-sessions.mjs\"\n },\n \"dependencies\": {\n \"undici\": \"8.12.2\"\n },\n \"devDependencies\": {\n \"@agentclientprotocol/sdk\": \"^1.4.0\",\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.257\",\n \"@anthropic-ai/sdk\": \"0.122.0\",\n \"@moxt-ai/mobius-sdk\": \"workspace:*\",\n \"@moxt-ai/mobius-test\": \"workspace:*\",\n \"@types/node\": \"^24.13.5\",\n \"@types/semver\": \"^7.8.0\",\n \"@types/ws\": \"^8.18.1\",\n \"commander\": \"15.0.0\",\n \"drizzle-kit\": \"1.0.0-rc.4\",\n \"drizzle-orm\": \"1.0.0-rc.4\",\n \"esbuild\": \"0.28.2\",\n \"semver\": \"^7.8.5\",\n \"valibot\": \"1.5.0\",\n \"ws\": \"^8.21.3\",\n \"zod\": \"^4.6.7\"\n },\n \"keywords\": [],\n \"author\": \"Moxt\",\n \"license\": \"Apache-2.0\",\n \"bugs\": {\n \"url\": \"https://github.com/moxt-ai/mobius/issues\"\n },\n \"homepage\": \"https://github.com/moxt-ai/mobius#readme\"\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACI,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,KAAO;AAAA,IACH,QAAU;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACP,YAAY;AAAA,MACR,iBAAiB;AAAA,MACjB,OAAS;AAAA,MACT,SAAW;AAAA,IACf;AAAA,EACJ;AAAA,EACA,OAAS;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA,SAAW;AAAA,IACP,MAAQ;AAAA,EACZ;AAAA,EACA,eAAiB;AAAA,IACb,QAAU;AAAA,IACV,SAAW;AAAA,MACP,YAAY;AAAA,QACR,OAAS;AAAA,QACT,QAAU;AAAA,QACV,SAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ;AAAA,EACA,YAAc;AAAA,IACV,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACjB;AAAA,EACA,SAAW;AAAA,IACP,UAAY;AAAA,IACZ,OAAS;AAAA,IACT,KAAO;AAAA,IACP,cAAgB;AAAA,IAChB,SAAW;AAAA,IACX,OAAS;AAAA,IACT,WAAa;AAAA,IACb,sBAAsB;AAAA,IACtB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,oBAAoB;AAAA,IACpB,iBAAiB;AAAA,EACrB;AAAA,EACA,cAAgB;AAAA,IACZ,QAAU;AAAA,EACd;AAAA,EACA,iBAAmB;AAAA,IACf,4BAA4B;AAAA,IAC5B,kCAAkC;AAAA,IAClC,qBAAqB;AAAA,IACrB,uBAAuB;AAAA,IACvB,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,WAAa;AAAA,IACb,eAAe;AAAA,IACf,eAAe;AAAA,IACf,SAAW;AAAA,IACX,QAAU;AAAA,IACV,SAAW;AAAA,IACX,IAAM;AAAA,IACN,KAAO;AAAA,EACX;AAAA,EACA,UAAY,CAAC;AAAA,EACb,QAAU;AAAA,EACV,SAAW;AAAA,EACX,MAAQ;AAAA,IACJ,KAAO;AAAA,EACX;AAAA,EACA,UAAY;AAChB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export,
|
|
4
4
|
__using,
|
|
5
5
|
package_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K3YAUS5L.js";
|
|
7
7
|
|
|
8
8
|
// src/engine/runtime/relay/runtime-revocation.ts
|
|
9
9
|
var runtimeRevocationCloseCode = 1008;
|
|
@@ -66383,32 +66383,6 @@ function recoveredToolInput(prefix) {
|
|
|
66383
66383
|
return void 0;
|
|
66384
66384
|
}
|
|
66385
66385
|
}
|
|
66386
|
-
async function claudeCliPath() {
|
|
66387
|
-
if (process.env.CLAUDE_CODE_EXECUTABLE) {
|
|
66388
|
-
return process.env.CLAUDE_CODE_EXECUTABLE;
|
|
66389
|
-
}
|
|
66390
|
-
const { createRequire } = await import("node:module");
|
|
66391
|
-
const req = createRequire(import.meta.url);
|
|
66392
|
-
const ext = process.platform === "win32" ? ".exe" : "";
|
|
66393
|
-
const candidates = process.platform === "linux" ? isMuslLibc() ? [
|
|
66394
|
-
`@anthropic-ai/claude-agent-sdk-linux-${process.arch}-musl/claude${ext}`,
|
|
66395
|
-
`@anthropic-ai/claude-agent-sdk-linux-${process.arch}/claude${ext}`
|
|
66396
|
-
] : [
|
|
66397
|
-
`@anthropic-ai/claude-agent-sdk-linux-${process.arch}/claude${ext}`,
|
|
66398
|
-
`@anthropic-ai/claude-agent-sdk-linux-${process.arch}-musl/claude${ext}`
|
|
66399
|
-
] : [`@anthropic-ai/claude-agent-sdk-${process.platform}-${process.arch}/claude${ext}`];
|
|
66400
|
-
for (const candidate of candidates) {
|
|
66401
|
-
try {
|
|
66402
|
-
return req.resolve(candidate);
|
|
66403
|
-
} catch {
|
|
66404
|
-
}
|
|
66405
|
-
}
|
|
66406
|
-
throw new Error(`Claude native binary not found for ${process.platform}-${process.arch}. Reinstall @moxt-ai/mobius without --omit=optional, or set CLAUDE_CODE_EXECUTABLE.`);
|
|
66407
|
-
}
|
|
66408
|
-
function isMuslLibc() {
|
|
66409
|
-
const report = process.report?.getReport();
|
|
66410
|
-
return !report?.header?.glibcVersionRuntime;
|
|
66411
|
-
}
|
|
66412
66386
|
function shouldHideClaudeAuth() {
|
|
66413
66387
|
return process.argv.includes("--hide-claude-auth");
|
|
66414
66388
|
}
|
|
@@ -67038,13 +67012,24 @@ var ClaudeAcpAgent = class {
|
|
|
67038
67012
|
headers: {}
|
|
67039
67013
|
};
|
|
67040
67014
|
}
|
|
67015
|
+
/**
|
|
67016
|
+
* The Claude Code executable this Agent runs: the installation its host discovered and checked, so sessions and
|
|
67017
|
+
* logout use the same Claude the user installed rather than a copy shipped with the SDK.
|
|
67018
|
+
*/
|
|
67019
|
+
claudeExecutable() {
|
|
67020
|
+
const executable = this.environment.CLAUDE_CODE_EXECUTABLE;
|
|
67021
|
+
if (executable === void 0 || executable === "") {
|
|
67022
|
+
throw RequestError.internalError(void 0, "No Claude Code executable is configured for this Agent.");
|
|
67023
|
+
}
|
|
67024
|
+
return executable;
|
|
67025
|
+
}
|
|
67041
67026
|
async logout(_params) {
|
|
67042
67027
|
this.gatewayAuthRequest = void 0;
|
|
67043
67028
|
this.providerConfig = void 0;
|
|
67044
67029
|
contextWindowCache.clear();
|
|
67045
|
-
const
|
|
67030
|
+
const executable = this.claudeExecutable();
|
|
67046
67031
|
try {
|
|
67047
|
-
await execFileAsync(
|
|
67032
|
+
await execFileAsync(executable, ["auth", "logout"]);
|
|
67048
67033
|
} catch (error62) {
|
|
67049
67034
|
const stderr = typeof error62 === "object" && error62 && "stderr" in error62 ? String(error62.stderr).trim() : void 0;
|
|
67050
67035
|
throw RequestError.internalError({ stderr: stderr || void 0 }, `claude auth logout failed: ${error62 instanceof Error ? error62.message : String(error62)}`);
|
|
@@ -69535,7 +69520,7 @@ ${message.api_refusal_explanation}` : "";
|
|
|
69535
69520
|
onUserDialog: this.handleUserDialog(sessionId),
|
|
69536
69521
|
supportedDialogKinds: [REFUSAL_FALLBACK_DIALOG_KIND]
|
|
69537
69522
|
} : {},
|
|
69538
|
-
pathToClaudeCodeExecutable: this.
|
|
69523
|
+
pathToClaudeCodeExecutable: this.claudeExecutable(),
|
|
69539
69524
|
...this.spawnClaudeCodeProcess === void 0 ? {} : { spawnClaudeCodeProcess: this.spawnClaudeCodeProcess },
|
|
69540
69525
|
extraArgs: {
|
|
69541
69526
|
...userProvidedOptions?.extraArgs,
|
|
@@ -97614,4 +97599,4 @@ export {
|
|
|
97614
97599
|
* MIT Licensed
|
|
97615
97600
|
*)
|
|
97616
97601
|
*/
|
|
97617
|
-
//# sourceMappingURL=chunk-
|
|
97602
|
+
//# sourceMappingURL=chunk-NYCOWKU2.js.map
|