@super-one/cli 0.50.7-alpha → 0.50.8-alpha
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/MANIFEST.json +2 -2
- package/lib/cli.mjs +44 -12
- package/package.json +10 -10
package/MANIFEST.json
CHANGED
package/lib/cli.mjs
CHANGED
|
@@ -179,7 +179,7 @@ var init_host_action_superone_descriptors = __esm({
|
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"name": "session_collab_request",
|
|
182
|
-
"description": 'Request user approval for one or more child sessions. Call session_collab_list_agents first; repeat an agentId to reuse a profile. Invent a human-friendly name and
|
|
182
|
+
"description": 'Request user approval for one or more child sessions. Call session_collab_list_agents first; repeat an agentId to reuse a profile. Invent a human-friendly name and role for every launch. Pass a short 2\u20133 sentence summary (confirm UI) and a full Markdown task (delivered on start; expandable in the UI). Omitted config fields inherit profile defaults. Before setting config.cwd or config.worktree, call read_manual({ domain: "product", topic: "collaboration" }); same-repo isolation belongs in config.worktree. The user may edit model, effort, provider, permission, and sandbox. Each approved launch returns a one-shot credential for session_collab_start.',
|
|
183
183
|
"inputSchema": {
|
|
184
184
|
"type": "object",
|
|
185
185
|
"properties": {
|
|
@@ -198,10 +198,15 @@ var init_host_action_superone_descriptors = __esm({
|
|
|
198
198
|
"type": "string",
|
|
199
199
|
"description": "Agent profile id from session_collab_list_agents."
|
|
200
200
|
},
|
|
201
|
+
"summary": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"minLength": 1,
|
|
204
|
+
"description": "Short 2\u20133 sentence task summary shown collapsed in the confirm dialog. Not the full brief \u2014 put detail in task."
|
|
205
|
+
},
|
|
201
206
|
"task": {
|
|
202
207
|
"type": "string",
|
|
203
|
-
"
|
|
204
|
-
"description": "
|
|
208
|
+
"minLength": 1,
|
|
209
|
+
"description": "Full task brief in Markdown. Delivered to the child session on session_collab_start. The user can expand the summary in the confirm UI to preview it."
|
|
205
210
|
},
|
|
206
211
|
"name": {
|
|
207
212
|
"type": "string",
|
|
@@ -296,6 +301,7 @@ var init_host_action_superone_descriptors = __esm({
|
|
|
296
301
|
},
|
|
297
302
|
"required": [
|
|
298
303
|
"agentId",
|
|
304
|
+
"summary",
|
|
299
305
|
"task",
|
|
300
306
|
"name",
|
|
301
307
|
"role"
|
|
@@ -9331,6 +9337,7 @@ function buildClaudeResultMetadata(result, startedAt, pausedMs, lastAssistantUsa
|
|
|
9331
9337
|
terminalReason: result.terminal_reason,
|
|
9332
9338
|
resultText: result.result,
|
|
9333
9339
|
fastModeState: result.fast_mode_state,
|
|
9340
|
+
fastModeDisabledReason: result.fast_mode_disabled_reason,
|
|
9334
9341
|
errorSubtype: result.subtype !== "success" ? result.subtype : void 0,
|
|
9335
9342
|
structuredOutput: result.structured_output,
|
|
9336
9343
|
isError: result.is_error || void 0,
|
|
@@ -9364,7 +9371,9 @@ function buildClaudeResultMetadata(result, startedAt, pausedMs, lastAssistantUsa
|
|
|
9364
9371
|
costUSD: modelUsage.costUSD ?? 0,
|
|
9365
9372
|
webSearchRequests: modelUsage.webSearchRequests || void 0,
|
|
9366
9373
|
contextWindow: modelUsage.contextWindow || void 0,
|
|
9367
|
-
maxOutputTokens: modelUsage.maxOutputTokens || void 0
|
|
9374
|
+
maxOutputTokens: modelUsage.maxOutputTokens || void 0,
|
|
9375
|
+
canonicalModel: typeof modelUsage.canonicalModel === "string" ? modelUsage.canonicalModel : void 0,
|
|
9376
|
+
provider: typeof modelUsage.provider === "string" ? modelUsage.provider : void 0
|
|
9368
9377
|
};
|
|
9369
9378
|
}
|
|
9370
9379
|
}
|
|
@@ -9454,7 +9463,8 @@ function createClaudeAgentEventMapper(options) {
|
|
|
9454
9463
|
outputStyle: system.output_style,
|
|
9455
9464
|
availableOutputStyles: system.available_output_styles,
|
|
9456
9465
|
plugins: system.plugins,
|
|
9457
|
-
fastModeState: system.fast_mode_state
|
|
9466
|
+
fastModeState: system.fast_mode_state,
|
|
9467
|
+
fastModeDisabledReason: system.fast_mode_disabled_reason
|
|
9458
9468
|
}
|
|
9459
9469
|
});
|
|
9460
9470
|
break;
|
|
@@ -10177,6 +10187,8 @@ function buildLiveOptions(opts, onPermission, onQuestion, onPlan, signal, timing
|
|
|
10177
10187
|
append: [SUPERONE_SYSTEM_PROMPT_APPEND, opts.systemPromptAppend].filter(Boolean).join("\n\n")
|
|
10178
10188
|
},
|
|
10179
10189
|
...opts.sessionId ? { resume: opts.sessionId } : {},
|
|
10190
|
+
...opts.resumeSessionAt ? { resumeSessionAt: opts.resumeSessionAt } : {},
|
|
10191
|
+
...opts.resumeDropsTurn ? { resumeDropsTurn: opts.resumeDropsTurn } : {},
|
|
10180
10192
|
...env ? { env } : {}
|
|
10181
10193
|
};
|
|
10182
10194
|
return {
|
|
@@ -14374,11 +14386,17 @@ var init_capabilities2 = __esm({
|
|
|
14374
14386
|
});
|
|
14375
14387
|
|
|
14376
14388
|
// ../../packages/shared/src/agent-types.ts
|
|
14377
|
-
|
|
14389
|
+
function resolveLaunchSummary(task, summary) {
|
|
14390
|
+
const explicit = typeof summary === "string" ? summary.trim() : "";
|
|
14391
|
+
if (explicit) return explicit;
|
|
14392
|
+
return task.split(/\n/, 1)[0]?.trim() || task.trim();
|
|
14393
|
+
}
|
|
14394
|
+
var SESSION_AGENT_LAUNCHES_FIELD, SESSION_AGENT_TASK_MAX, CODEX_PERMISSION_PRESETS, DEFAULT_CODEX_PERMISSION_PRESET, DEFAULT_CODEX_PERMISSION_PROFILE, MODEL_BUCKETS;
|
|
14378
14395
|
var init_agent_types = __esm({
|
|
14379
14396
|
"../../packages/shared/src/agent-types.ts"() {
|
|
14380
14397
|
"use strict";
|
|
14381
14398
|
SESSION_AGENT_LAUNCHES_FIELD = "sessionAgentLaunchesJson";
|
|
14399
|
+
SESSION_AGENT_TASK_MAX = 1e5;
|
|
14382
14400
|
CODEX_PERMISSION_PRESETS = {
|
|
14383
14401
|
"read-only": {
|
|
14384
14402
|
approvalPolicy: "on-request",
|
|
@@ -50240,7 +50258,7 @@ var OFFICIAL_CLAUDE_SDK_VERSION, OFFICIAL_CODEX_NPM_VERSION, OFFICIAL_CLAUDE_SDK
|
|
|
50240
50258
|
var init_managed_harness_official = __esm({
|
|
50241
50259
|
"src/session/managed-harness-official.ts"() {
|
|
50242
50260
|
"use strict";
|
|
50243
|
-
OFFICIAL_CLAUDE_SDK_VERSION = "0.3.
|
|
50261
|
+
OFFICIAL_CLAUDE_SDK_VERSION = "0.3.226";
|
|
50244
50262
|
OFFICIAL_CODEX_NPM_VERSION = "0.146.1";
|
|
50245
50263
|
OFFICIAL_CLAUDE_SDK_PACKAGE = "@anthropic-ai/claude-agent-sdk";
|
|
50246
50264
|
OFFICIAL_CODEX_PACKAGE = "@openai/codex";
|
|
@@ -57426,8 +57444,8 @@ import { fileURLToPath } from "node:url";
|
|
|
57426
57444
|
function resolveCliReleaseVersion() {
|
|
57427
57445
|
const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
|
|
57428
57446
|
if (fromEnv) return fromEnv;
|
|
57429
|
-
if ("0.50.
|
|
57430
|
-
return "0.50.
|
|
57447
|
+
if ("0.50.8-alpha".trim()) {
|
|
57448
|
+
return "0.50.8-alpha".trim();
|
|
57431
57449
|
}
|
|
57432
57450
|
const fromDist = readDistManifestVersion();
|
|
57433
57451
|
if (fromDist) return fromDist;
|
|
@@ -66062,8 +66080,15 @@ var CollaborationService = class {
|
|
|
66062
66080
|
code: "invalid_argument"
|
|
66063
66081
|
});
|
|
66064
66082
|
}
|
|
66065
|
-
if (task.length >
|
|
66066
|
-
throw Object.assign(
|
|
66083
|
+
if (task.length > SESSION_AGENT_TASK_MAX) {
|
|
66084
|
+
throw Object.assign(
|
|
66085
|
+
new Error(`A launch task may contain at most ${SESSION_AGENT_TASK_MAX.toLocaleString()} characters`),
|
|
66086
|
+
{ code: "invalid_argument" }
|
|
66087
|
+
);
|
|
66088
|
+
}
|
|
66089
|
+
const summary = resolveLaunchSummary(task, launch2.summary);
|
|
66090
|
+
if (!summary) {
|
|
66091
|
+
throw Object.assign(new Error("Every launch must include a non-empty summary"), {
|
|
66067
66092
|
code: "invalid_argument"
|
|
66068
66093
|
});
|
|
66069
66094
|
}
|
|
@@ -66096,6 +66121,7 @@ var CollaborationService = class {
|
|
|
66096
66121
|
return {
|
|
66097
66122
|
launchId,
|
|
66098
66123
|
agentId: launch2.agentId,
|
|
66124
|
+
summary,
|
|
66099
66125
|
task,
|
|
66100
66126
|
name,
|
|
66101
66127
|
role,
|
|
@@ -66141,7 +66167,12 @@ var CollaborationService = class {
|
|
|
66141
66167
|
() => confirmed.map((launch2) => {
|
|
66142
66168
|
const credential = `s1sc_${randomBytes4(32).toString("base64url")}`;
|
|
66143
66169
|
const credentialHash = hashCredential(credential);
|
|
66144
|
-
const config2 = {
|
|
66170
|
+
const config2 = {
|
|
66171
|
+
...launch2.config,
|
|
66172
|
+
name: launch2.name,
|
|
66173
|
+
role: launch2.role,
|
|
66174
|
+
summary: launch2.summary
|
|
66175
|
+
};
|
|
66145
66176
|
insert.run(
|
|
66146
66177
|
credentialHash,
|
|
66147
66178
|
this.deps.secrets.encrypt(credential),
|
|
@@ -66165,6 +66196,7 @@ var CollaborationService = class {
|
|
|
66165
66196
|
return {
|
|
66166
66197
|
launchId: launch2.launchId,
|
|
66167
66198
|
agentId: launch2.agentId,
|
|
66199
|
+
summary: launch2.summary,
|
|
66168
66200
|
task: launch2.task,
|
|
66169
66201
|
name: launch2.name,
|
|
66170
66202
|
role: launch2.role,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-one/cli",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.8-alpha",
|
|
4
4
|
"description": "SuperOne headless node CLI — remote execution environment (RPC, workspaces, sessions).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"directory": "apps/cli"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
28
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.226",
|
|
29
29
|
"better-sqlite3": "^13.0.1",
|
|
30
30
|
"node-pty": "^1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
34
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
35
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
36
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
37
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
38
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
39
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
40
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
33
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.226",
|
|
34
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.226",
|
|
35
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.226",
|
|
36
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.226",
|
|
37
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.226",
|
|
38
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.226",
|
|
39
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.226",
|
|
40
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.226"
|
|
41
41
|
}
|
|
42
42
|
}
|