claudish 14.2.0 → 14.3.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/index.js +47 -8
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -575,7 +575,7 @@ var init_onepassword_config = __esm(() => {
|
|
|
575
575
|
});
|
|
576
576
|
|
|
577
577
|
// src/version.ts
|
|
578
|
-
var VERSION = "14.
|
|
578
|
+
var VERSION = "14.3.0";
|
|
579
579
|
|
|
580
580
|
// src/redact.ts
|
|
581
581
|
function isPlaceholder(value) {
|
|
@@ -59655,7 +59655,9 @@ function toSlotRow(id, snap, acct, now = Date.now(), upstreamRecords = []) {
|
|
|
59655
59655
|
idle_seconds: idle,
|
|
59656
59656
|
activity: terminal ? null : snap.turnEndRecordMissing && snap.activity ? `${snap.activity}: turn_end_record_missing` : snap.agentCountMismatch && snap.activity ? `${snap.activity}: agent_count_mismatch` : snap.activity,
|
|
59657
59657
|
pane: snap.paneId || null,
|
|
59658
|
-
recent: snap.recent
|
|
59658
|
+
recent: snap.recent,
|
|
59659
|
+
agent_requested: id.agentRequested ?? null,
|
|
59660
|
+
agent: snap.agent ?? null
|
|
59659
59661
|
};
|
|
59660
59662
|
}
|
|
59661
59663
|
var init_slot_row = __esm(() => {
|
|
@@ -80167,6 +80169,18 @@ function reservedMessage(flag) {
|
|
|
80167
80169
|
return `${flag} would start a different claudish mode inside the pane`;
|
|
80168
80170
|
return null;
|
|
80169
80171
|
}
|
|
80172
|
+
function requestedAgentOf(flags) {
|
|
80173
|
+
let agent = null;
|
|
80174
|
+
for (let i = 0;i < flags.length; i++) {
|
|
80175
|
+
const [name, inline] = splitFlag(flags[i]);
|
|
80176
|
+
if (name !== "--agent")
|
|
80177
|
+
continue;
|
|
80178
|
+
const value = inline ?? flags[i + 1];
|
|
80179
|
+
if (value && !value.startsWith("-"))
|
|
80180
|
+
agent = value;
|
|
80181
|
+
}
|
|
80182
|
+
return agent;
|
|
80183
|
+
}
|
|
80170
80184
|
function flagsRemoveRead(flags) {
|
|
80171
80185
|
for (let i = 0;i < flags.length; i++) {
|
|
80172
80186
|
const [name, inline] = splitFlag(flags[i]);
|
|
@@ -82466,6 +82480,7 @@ function initialFollowerState(resolvePath = safeRealpath) {
|
|
|
82466
82480
|
mainAssistantIds: [],
|
|
82467
82481
|
mainAssistantSeen: new Set,
|
|
82468
82482
|
session: { stopHooksSeen: false, provenHookless: false },
|
|
82483
|
+
agentSetting: null,
|
|
82469
82484
|
records: 0,
|
|
82470
82485
|
resolvePath
|
|
82471
82486
|
};
|
|
@@ -82790,6 +82805,8 @@ function applyRecord(state, record, offset) {
|
|
|
82790
82805
|
if (r.isSidechain)
|
|
82791
82806
|
return state;
|
|
82792
82807
|
noteMainAssistant(state, r);
|
|
82808
|
+
if (r.type === "agent-setting" && typeof r.agentSetting === "string" && r.agentSetting)
|
|
82809
|
+
state.agentSetting = r.agentSetting;
|
|
82793
82810
|
if (r.type === "system" && r.subtype === "stop_hook_summary") {
|
|
82794
82811
|
state.session.stopHooksSeen = true;
|
|
82795
82812
|
state.session.provenHookless = false;
|
|
@@ -83072,7 +83089,8 @@ class TranscriptFollower {
|
|
|
83072
83089
|
usage: { tokensIn, tokensOut },
|
|
83073
83090
|
toolCalls: this.state.toolUseIds.size,
|
|
83074
83091
|
lastAppendAt: this.lastAppend,
|
|
83075
|
-
session: { ...this.state.session }
|
|
83092
|
+
session: { ...this.state.session },
|
|
83093
|
+
agentSetting: this.state.agentSetting
|
|
83076
83094
|
};
|
|
83077
83095
|
}
|
|
83078
83096
|
}
|
|
@@ -85146,7 +85164,8 @@ ${screenTailOf(this.screen)}`
|
|
|
85146
85164
|
shape: this.shape,
|
|
85147
85165
|
turnEndRecordMissing: !terminal && this.phase === "RUNNING" && this.activity === "finishing" && this.turnEndMissing,
|
|
85148
85166
|
agentCountMismatch: !terminal && this.phase === "RUNNING" && this.agentMismatch !== null,
|
|
85149
|
-
recent: cur && cur.recent.length > 0 ? cur.recent : null
|
|
85167
|
+
recent: cur && cur.recent.length > 0 ? cur.recent : null,
|
|
85168
|
+
agent: view.agentSetting
|
|
85150
85169
|
};
|
|
85151
85170
|
}
|
|
85152
85171
|
phaseActivity() {
|
|
@@ -86381,14 +86400,16 @@ function neverSpawnedRow(e, m) {
|
|
|
86381
86400
|
idle_seconds: null,
|
|
86382
86401
|
activity: null,
|
|
86383
86402
|
pane: null,
|
|
86384
|
-
recent: null
|
|
86403
|
+
recent: null,
|
|
86404
|
+
agent_requested: e.agentRequested,
|
|
86405
|
+
agent: null
|
|
86385
86406
|
};
|
|
86386
86407
|
}
|
|
86387
86408
|
function liveSlotRow(run, e) {
|
|
86388
86409
|
if (!e.session)
|
|
86389
86410
|
return neverSpawnedRow(e, run.status.models[e.id]);
|
|
86390
86411
|
const snap = e.session.snapshot();
|
|
86391
|
-
return toSlotRow({ slot: e.id, model: e.model, spawnModel: e.spawnModel }, snap, refreshAccounting(e, snap), Date.now(), upstreamRecordsFor(snap, upstreamLogPath(run.path, e.id)));
|
|
86412
|
+
return toSlotRow({ slot: e.id, model: e.model, spawnModel: e.spawnModel, agentRequested: e.agentRequested }, snap, refreshAccounting(e, snap), Date.now(), upstreamRecordsFor(snap, upstreamLogPath(run.path, e.id)));
|
|
86392
86413
|
}
|
|
86393
86414
|
function outcomeOf(states) {
|
|
86394
86415
|
const ok = states.filter((s) => s === "COMPLETED").length;
|
|
@@ -86445,7 +86466,9 @@ function teamRunRowFromDisk(path, status) {
|
|
|
86445
86466
|
idle_seconds: null,
|
|
86446
86467
|
activity: null,
|
|
86447
86468
|
pane: m?.pane ?? null,
|
|
86448
|
-
recent: null
|
|
86469
|
+
recent: null,
|
|
86470
|
+
agent_requested: m?.agentRequested ?? null,
|
|
86471
|
+
agent: m?.agent ?? null
|
|
86449
86472
|
};
|
|
86450
86473
|
});
|
|
86451
86474
|
const settled = slots.length > 0 && slots.every((s) => isTerminalState(s.state));
|
|
@@ -86824,6 +86847,7 @@ async function startModelsIn(flight, sessionPath, opts) {
|
|
|
86824
86847
|
const flagCheck = checkChildFlags(claudeFlags);
|
|
86825
86848
|
if (!flagCheck.ok)
|
|
86826
86849
|
throw new Error(`invalid_args: ${flagCheck.message}`);
|
|
86850
|
+
const agentRequested = requestedAgentOf(claudeFlags);
|
|
86827
86851
|
const path = resolve5(sessionPath);
|
|
86828
86852
|
const manifest = JSON.parse(readFileSync34(join52(path, "manifest.json"), "utf-8"));
|
|
86829
86853
|
const statusPath = join52(path, "status.json");
|
|
@@ -86940,6 +86964,7 @@ async function startModelsIn(flight, sessionPath, opts) {
|
|
|
86940
86964
|
lastActivityAt: snap.lastActivityAt,
|
|
86941
86965
|
turnsCompleted: snap.turnsCompleted,
|
|
86942
86966
|
claudeCodeVersion: snap.claudeCodeVersion,
|
|
86967
|
+
agent: snap.agent ?? null,
|
|
86943
86968
|
anomalies: notableAnomalies(snap),
|
|
86944
86969
|
...accountingFields(refreshAccounting(e, snap))
|
|
86945
86970
|
};
|
|
@@ -87111,6 +87136,7 @@ async function startModelsIn(flight, sessionPath, opts) {
|
|
|
87111
87136
|
id,
|
|
87112
87137
|
model: entry.model,
|
|
87113
87138
|
spawnModel,
|
|
87139
|
+
agentRequested,
|
|
87114
87140
|
tokenFile,
|
|
87115
87141
|
session: null,
|
|
87116
87142
|
acct: emptyAccounting(provider),
|
|
@@ -87129,6 +87155,8 @@ async function startModelsIn(flight, sessionPath, opts) {
|
|
|
87129
87155
|
model: entry.model,
|
|
87130
87156
|
spawnModel,
|
|
87131
87157
|
provider,
|
|
87158
|
+
agentRequested,
|
|
87159
|
+
agent: null,
|
|
87132
87160
|
sessionUuid: uuid,
|
|
87133
87161
|
transcriptPath,
|
|
87134
87162
|
pane: null,
|
|
@@ -87668,6 +87696,8 @@ function sessionRowOf(info, upstreamRecords = []) {
|
|
|
87668
87696
|
activity: terminal ? null : info.activity,
|
|
87669
87697
|
pane: info.pane,
|
|
87670
87698
|
recent: info.recent,
|
|
87699
|
+
agent_requested: info.agentRequested ?? null,
|
|
87700
|
+
agent: info.agent ?? null,
|
|
87671
87701
|
session_id: info.sessionId,
|
|
87672
87702
|
started_at: info.startedAt,
|
|
87673
87703
|
completed_at: info.completedAt,
|
|
@@ -87705,6 +87735,8 @@ function toMetaRecord(info, cwd) {
|
|
|
87705
87735
|
captureSource: info.captureSource,
|
|
87706
87736
|
turnSource: info.turnSource,
|
|
87707
87737
|
timeoutSeconds: info.timeoutSeconds,
|
|
87738
|
+
agentRequested: info.agentRequested ?? null,
|
|
87739
|
+
agent: info.agent ?? null,
|
|
87708
87740
|
cwd
|
|
87709
87741
|
};
|
|
87710
87742
|
}
|
|
@@ -87998,6 +88030,7 @@ class SessionManager {
|
|
|
87998
88030
|
const sessionId = opts.sessionId ?? randomUUID8().slice(0, 8);
|
|
87999
88031
|
const claudeSessionId = randomUUID8();
|
|
88000
88032
|
const timeout = normaliseTimeoutSeconds(opts.timeoutSeconds);
|
|
88033
|
+
const agentRequested = requestedAgentOf(opts.claudishFlags ?? []);
|
|
88001
88034
|
const startedAt = new Date().toISOString();
|
|
88002
88035
|
const sessionDir = opts.sessionDir ?? join54(this.sessionsDir, sessionId);
|
|
88003
88036
|
mkdirSync23(sessionDir, { recursive: true });
|
|
@@ -88011,7 +88044,8 @@ class SessionManager {
|
|
|
88011
88044
|
model: opts.model,
|
|
88012
88045
|
timeoutSeconds: timeout,
|
|
88013
88046
|
claudeSessionId,
|
|
88014
|
-
...opts.setupFrom ? { setupFrom: opts.setupFrom } : {}
|
|
88047
|
+
...opts.setupFrom ? { setupFrom: opts.setupFrom } : {},
|
|
88048
|
+
...agentRequested ? { agentRequested } : {}
|
|
88015
88049
|
});
|
|
88016
88050
|
if (inheritedLayer) {
|
|
88017
88051
|
writeFileSync22(join54(sessionDir, INHERITED_SETTINGS), `${JSON.stringify(inheritedLayer, null, 2)}
|
|
@@ -88044,6 +88078,8 @@ class SessionManager {
|
|
|
88044
88078
|
idleSeconds: null,
|
|
88045
88079
|
activity: null,
|
|
88046
88080
|
recent: null,
|
|
88081
|
+
agentRequested,
|
|
88082
|
+
agent: null,
|
|
88047
88083
|
reason: null,
|
|
88048
88084
|
detail: null,
|
|
88049
88085
|
pendingInputs: opts.prompt ? 1 : 0,
|
|
@@ -88299,6 +88335,7 @@ class SessionManager {
|
|
|
88299
88335
|
info.idleSeconds = snap.idleSeconds;
|
|
88300
88336
|
info.activity = snap.activity;
|
|
88301
88337
|
info.recent = snap.recent;
|
|
88338
|
+
info.agent = snap.agent ?? info.agent ?? null;
|
|
88302
88339
|
info.reason = snap.reason;
|
|
88303
88340
|
info.detail = snap.detail;
|
|
88304
88341
|
info.pendingInputs = snap.pendingInputs;
|
|
@@ -88823,6 +88860,8 @@ function diskInfo(d) {
|
|
|
88823
88860
|
idleSeconds: null,
|
|
88824
88861
|
activity: null,
|
|
88825
88862
|
recent: null,
|
|
88863
|
+
agentRequested: metaString(meta?.agentRequested) ?? metaString(spawnRecord?.agentRequested),
|
|
88864
|
+
agent: metaString(meta?.agent),
|
|
88826
88865
|
reason,
|
|
88827
88866
|
detail: meta === null ? NO_TERMINAL_RECORD : metaString(meta.detail),
|
|
88828
88867
|
pendingInputs: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"ai"
|
|
72
72
|
],
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"@claudish/magmux-darwin-arm64": "14.
|
|
75
|
-
"@claudish/magmux-darwin-x64": "14.
|
|
76
|
-
"@claudish/magmux-linux-arm64": "14.
|
|
77
|
-
"@claudish/magmux-linux-x64": "14.
|
|
74
|
+
"@claudish/magmux-darwin-arm64": "14.3.0",
|
|
75
|
+
"@claudish/magmux-darwin-x64": "14.3.0",
|
|
76
|
+
"@claudish/magmux-linux-arm64": "14.3.0",
|
|
77
|
+
"@claudish/magmux-linux-x64": "14.3.0"
|
|
78
78
|
},
|
|
79
79
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
80
80
|
"license": "MIT",
|