@dotobokuri/fleet-cli 1.12.0 → 1.14.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 +36 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -33845,8 +33845,6 @@ function buildCodexNativeArgs(context) {
|
|
|
33845
33845
|
"--enable",
|
|
33846
33846
|
"plugins",
|
|
33847
33847
|
"--enable",
|
|
33848
|
-
"child_agents_md",
|
|
33849
|
-
"--enable",
|
|
33850
33848
|
"hooks",
|
|
33851
33849
|
"--profile",
|
|
33852
33850
|
profileName,
|
|
@@ -72015,8 +72013,6 @@ function buildCodexNativeArgs2(context) {
|
|
|
72015
72013
|
"--enable",
|
|
72016
72014
|
"plugins",
|
|
72017
72015
|
"--enable",
|
|
72018
|
-
"child_agents_md",
|
|
72019
|
-
"--enable",
|
|
72020
72016
|
"hooks",
|
|
72021
72017
|
"--profile",
|
|
72022
72018
|
profileName,
|
|
@@ -81324,6 +81320,7 @@ function sanitizeDurableOperation(value) {
|
|
|
81324
81320
|
if (!sessionId || !theaterId || !cwd || !cwdLabel || sequence === null || createdAt === null) return null;
|
|
81325
81321
|
const label = readOptionalString(value.label);
|
|
81326
81322
|
const labelSource = readLabelSource(value.labelSource);
|
|
81323
|
+
const accent = readOptionalAccent(value.accent);
|
|
81327
81324
|
const autoNamePromptSeen = value.autoNamePromptSeen === true || labelSource === "auto" && label !== void 0;
|
|
81328
81325
|
const providerSession = sanitizeProviderSession(value.providerSession);
|
|
81329
81326
|
return {
|
|
@@ -81334,6 +81331,7 @@ function sanitizeDurableOperation(value) {
|
|
|
81334
81331
|
sequence,
|
|
81335
81332
|
...label ? { label } : {},
|
|
81336
81333
|
...labelSource ? { labelSource } : {},
|
|
81334
|
+
...accent ? { accent } : {},
|
|
81337
81335
|
...autoNamePromptSeen ? { autoNamePromptSeen: true } : {},
|
|
81338
81336
|
...readOptionalString(value.cliId) ? { cliId: readOptionalString(value.cliId) } : {},
|
|
81339
81337
|
...readOptionalString(value.cliLabel) ? { cliLabel: readOptionalString(value.cliLabel) } : {},
|
|
@@ -81370,6 +81368,11 @@ function readOptionalString(value) {
|
|
|
81370
81368
|
function readLabelSource(value) {
|
|
81371
81369
|
return value === "user" || value === "auto" ? value : void 0;
|
|
81372
81370
|
}
|
|
81371
|
+
function readOptionalAccent(value) {
|
|
81372
|
+
if (typeof value !== "string") return void 0;
|
|
81373
|
+
const trimmed = value.trim();
|
|
81374
|
+
return trimmed.length > 0 ? trimmed.slice(0, 64) : void 0;
|
|
81375
|
+
}
|
|
81373
81376
|
function readPositiveInteger(value) {
|
|
81374
81377
|
return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : null;
|
|
81375
81378
|
}
|
|
@@ -81923,6 +81926,7 @@ function createConsoleObservabilityStore(deps = {}) {
|
|
|
81923
81926
|
sequence: operation.sequence,
|
|
81924
81927
|
label: operation.label,
|
|
81925
81928
|
labelSource: operation.labelSource,
|
|
81929
|
+
accent: operation.accent,
|
|
81926
81930
|
autoNamePromptSeen: operation.autoNamePromptSeen,
|
|
81927
81931
|
cliId: operation.cliId,
|
|
81928
81932
|
cliLabel: operation.cliLabel,
|
|
@@ -81947,6 +81951,7 @@ function createConsoleObservabilityStore(deps = {}) {
|
|
|
81947
81951
|
sequence: session.sequence,
|
|
81948
81952
|
...session.label ? { label: session.label } : {},
|
|
81949
81953
|
...session.labelSource ? { labelSource: session.labelSource } : {},
|
|
81954
|
+
...session.accent ? { accent: session.accent } : {},
|
|
81950
81955
|
...session.autoNamePromptSeen ? { autoNamePromptSeen: true } : {},
|
|
81951
81956
|
...session.cliId ? { cliId: session.cliId } : {},
|
|
81952
81957
|
...session.cliLabel ? { cliLabel: session.cliLabel } : {},
|
|
@@ -82002,6 +82007,17 @@ function createConsoleObservabilityStore(deps = {}) {
|
|
|
82002
82007
|
}
|
|
82003
82008
|
return toTerminalSessionInfo(session);
|
|
82004
82009
|
}
|
|
82010
|
+
function setTerminalSessionAccent(sessionId, accent) {
|
|
82011
|
+
const session = terminalSessionsById.get(sessionId);
|
|
82012
|
+
if (!session) return null;
|
|
82013
|
+
const normalized = accent?.trim().slice(0, 64) ?? "";
|
|
82014
|
+
if (normalized.length === 0) {
|
|
82015
|
+
delete session.accent;
|
|
82016
|
+
} else {
|
|
82017
|
+
session.accent = normalized;
|
|
82018
|
+
}
|
|
82019
|
+
return toTerminalSessionInfo(session);
|
|
82020
|
+
}
|
|
82005
82021
|
function autoNameTerminalSession(sessionId, label) {
|
|
82006
82022
|
const session = terminalSessionsById.get(sessionId);
|
|
82007
82023
|
if (!session) return null;
|
|
@@ -82068,6 +82084,7 @@ function createConsoleObservabilityStore(deps = {}) {
|
|
|
82068
82084
|
notifySessionAttention,
|
|
82069
82085
|
notifySessionUpdated,
|
|
82070
82086
|
renameTerminalSession,
|
|
82087
|
+
setTerminalSessionAccent,
|
|
82071
82088
|
autoNameTerminalSession,
|
|
82072
82089
|
subscribe,
|
|
82073
82090
|
subscribeAll,
|
|
@@ -82139,6 +82156,7 @@ function toTerminalSessionInfo(state) {
|
|
|
82139
82156
|
cwdLabel: state.cwdLabel,
|
|
82140
82157
|
sequence: state.sequence,
|
|
82141
82158
|
label: state.label,
|
|
82159
|
+
accent: state.accent,
|
|
82142
82160
|
cliId: state.cliId,
|
|
82143
82161
|
cliLabel: state.cliLabel,
|
|
82144
82162
|
status: state.status,
|
|
@@ -84327,13 +84345,25 @@ function createConsoleServer(deps = {}) {
|
|
|
84327
84345
|
writeJson(res, 400, { error: "invalid_session_label" });
|
|
84328
84346
|
return;
|
|
84329
84347
|
}
|
|
84330
|
-
|
|
84348
|
+
if (body.accent !== void 0 && body.accent !== null && typeof body.accent !== "string") {
|
|
84349
|
+
writeJson(res, 400, { error: "invalid_session_accent" });
|
|
84350
|
+
return;
|
|
84351
|
+
}
|
|
84352
|
+
let updated = observability.getTerminalSessionInfo(sessionId);
|
|
84353
|
+
let renamed = false;
|
|
84354
|
+
if (body.label !== void 0) {
|
|
84355
|
+
updated = observability.renameTerminalSession(sessionId, body.label);
|
|
84356
|
+
renamed = true;
|
|
84357
|
+
}
|
|
84358
|
+
if (body.accent !== void 0) {
|
|
84359
|
+
updated = observability.setTerminalSessionAccent(sessionId, body.accent);
|
|
84360
|
+
}
|
|
84331
84361
|
if (!updated) {
|
|
84332
84362
|
writeJson(res, 404, { error: "session_not_found" });
|
|
84333
84363
|
return;
|
|
84334
84364
|
}
|
|
84335
84365
|
observability.notifySessionUpdated(updated);
|
|
84336
|
-
injectRenameCommand(sessionId, updated.label);
|
|
84366
|
+
if (renamed) injectRenameCommand(sessionId, updated.label);
|
|
84337
84367
|
persistDurableState();
|
|
84338
84368
|
writeJson(res, 200, updated);
|
|
84339
84369
|
return;
|