@super-one/cli 0.60.0-alpha → 0.60.2-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 +30 -7
- package/package.json +10 -10
package/MANIFEST.json
CHANGED
package/lib/cli.mjs
CHANGED
|
@@ -20047,6 +20047,25 @@ var init_agent_error = __esm({
|
|
|
20047
20047
|
}
|
|
20048
20048
|
});
|
|
20049
20049
|
|
|
20050
|
+
// ../../packages/shared/src/codex-command-output.ts
|
|
20051
|
+
function capAggregatedOutput(value) {
|
|
20052
|
+
return value.length <= MAX_AGGREGATED_OUTPUT_CHARS ? value : `${value.slice(0, MAX_AGGREGATED_OUTPUT_CHARS)}${TRUNCATION_NOTICE}`;
|
|
20053
|
+
}
|
|
20054
|
+
function appendAggregatedOutput(previous, delta) {
|
|
20055
|
+
const base = previous ?? "";
|
|
20056
|
+
if (base.length > MAX_AGGREGATED_OUTPUT_CHARS) return base;
|
|
20057
|
+
return capAggregatedOutput(`${base}${delta}`);
|
|
20058
|
+
}
|
|
20059
|
+
var MAX_AGGREGATED_OUTPUT_CHARS, TRUNCATION_NOTICE;
|
|
20060
|
+
var init_codex_command_output = __esm({
|
|
20061
|
+
"../../packages/shared/src/codex-command-output.ts"() {
|
|
20062
|
+
"use strict";
|
|
20063
|
+
MAX_AGGREGATED_OUTPUT_CHARS = 256 * 1024;
|
|
20064
|
+
TRUNCATION_NOTICE = `
|
|
20065
|
+
\u2026 [output truncated at ${MAX_AGGREGATED_OUTPUT_CHARS} characters]`;
|
|
20066
|
+
}
|
|
20067
|
+
});
|
|
20068
|
+
|
|
20050
20069
|
// ../../packages/codex/src/protocol-v149.ts
|
|
20051
20070
|
function asRecord(value) {
|
|
20052
20071
|
return value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
@@ -20281,7 +20300,9 @@ function mapCodexThreadItem(raw, previous, now = Date.now) {
|
|
|
20281
20300
|
id,
|
|
20282
20301
|
type: "command_execution",
|
|
20283
20302
|
command: readString2(rec.command) ?? prev?.command ?? "",
|
|
20284
|
-
aggregatedOutput:
|
|
20303
|
+
aggregatedOutput: capAggregatedOutput(
|
|
20304
|
+
readString2(rec.aggregatedOutput) ?? readString2(rec.aggregated_output) ?? prev?.aggregatedOutput ?? ""
|
|
20305
|
+
),
|
|
20285
20306
|
...exitCode !== null ? { exitCode } : {},
|
|
20286
20307
|
status: mapCommandExecutionStatus(rec.status ?? prev?.status),
|
|
20287
20308
|
...actions ? { commandActions: actions } : prev?.commandActions ? { commandActions: prev.commandActions } : {}
|
|
@@ -20679,7 +20700,7 @@ function createCodexAgentEventMapper(options) {
|
|
|
20679
20700
|
id: itemId,
|
|
20680
20701
|
type: "command_execution",
|
|
20681
20702
|
command: command?.command ?? "",
|
|
20682
|
-
aggregatedOutput:
|
|
20703
|
+
aggregatedOutput: appendAggregatedOutput(command?.aggregatedOutput, readCodexDeltaText(params)),
|
|
20683
20704
|
...command?.exitCode !== void 0 ? { exitCode: command.exitCode } : {},
|
|
20684
20705
|
status: command?.status ?? "in_progress",
|
|
20685
20706
|
...command?.commandActions ? { commandActions: command.commandActions } : {}
|
|
@@ -20800,6 +20821,7 @@ var init_agent_event_mapper = __esm({
|
|
|
20800
20821
|
"../../packages/codex/src/agent-event-mapper.ts"() {
|
|
20801
20822
|
"use strict";
|
|
20802
20823
|
init_agent_error();
|
|
20824
|
+
init_codex_command_output();
|
|
20803
20825
|
init_protocol_v149();
|
|
20804
20826
|
}
|
|
20805
20827
|
});
|
|
@@ -22298,7 +22320,7 @@ function createClaudeAgentEventMapper(options) {
|
|
|
22298
22320
|
}
|
|
22299
22321
|
break;
|
|
22300
22322
|
case "task_started":
|
|
22301
|
-
if (system.task_id) {
|
|
22323
|
+
if (system.task_id && system.ambient !== true) {
|
|
22302
22324
|
activeBackgroundTasks.set(system.task_id, {
|
|
22303
22325
|
toolUseId: system.tool_use_id,
|
|
22304
22326
|
description: system.description ?? ""
|
|
@@ -22365,7 +22387,7 @@ function createClaudeAgentEventMapper(options) {
|
|
|
22365
22387
|
case "background_tasks_changed":
|
|
22366
22388
|
activeBackgroundTasks.clear();
|
|
22367
22389
|
for (const task of system.tasks ?? []) {
|
|
22368
|
-
if (task?.task_id) {
|
|
22390
|
+
if (task?.task_id && task.ambient !== true) {
|
|
22369
22391
|
activeBackgroundTasks.set(task.task_id, { description: task.description ?? "" });
|
|
22370
22392
|
}
|
|
22371
22393
|
}
|
|
@@ -22616,6 +22638,7 @@ ${text}` : text;
|
|
|
22616
22638
|
parentToolUseId: raw.parent_tool_use_id ?? null,
|
|
22617
22639
|
taskId: raw.task_id,
|
|
22618
22640
|
subagentType: raw.subagent_type,
|
|
22641
|
+
...raw.heartbeat === true ? { heartbeat: true } : {},
|
|
22619
22642
|
subagentRetry: retry ? {
|
|
22620
22643
|
agentId: retry.agent_id ?? "",
|
|
22621
22644
|
attempt: retry.attempt ?? 0,
|
|
@@ -70284,8 +70307,8 @@ import { fileURLToPath } from "node:url";
|
|
|
70284
70307
|
function resolveCliReleaseVersion() {
|
|
70285
70308
|
const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
|
|
70286
70309
|
if (fromEnv) return fromEnv;
|
|
70287
|
-
if ("0.60.
|
|
70288
|
-
return "0.60.
|
|
70310
|
+
if ("0.60.2-alpha".trim()) {
|
|
70311
|
+
return "0.60.2-alpha".trim();
|
|
70289
70312
|
}
|
|
70290
70313
|
const fromDist = readDistManifestVersion();
|
|
70291
70314
|
if (fromDist) return fromDist;
|
|
@@ -77504,7 +77527,7 @@ function requiredRuntimeVersion(harnessId, manifest) {
|
|
|
77504
77527
|
import { existsSync as existsSync28, mkdirSync as mkdirSync17, readFileSync as readFileSync16, readdirSync as readdirSync10, statSync as statSync9, writeFileSync as writeFileSync12 } from "node:fs";
|
|
77505
77528
|
import { arch as osArch2, platform as osPlatform2 } from "node:os";
|
|
77506
77529
|
import { join as join26, resolve as resolve7 } from "node:path";
|
|
77507
|
-
var OFFICIAL_CLAUDE_SDK_VERSION = "0.3.
|
|
77530
|
+
var OFFICIAL_CLAUDE_SDK_VERSION = "0.3.257";
|
|
77508
77531
|
var OFFICIAL_CODEX_NPM_VERSION = "0.150.1";
|
|
77509
77532
|
var OFFICIAL_CODEX_PACKAGE = "@openai/codex";
|
|
77510
77533
|
function codexPlatformPackageVersion(baseVersion = OFFICIAL_CODEX_NPM_VERSION) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-one/cli",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.2-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,20 +25,20 @@
|
|
|
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.257",
|
|
29
29
|
"@cursor/sdk": "1.0.27",
|
|
30
30
|
"better-sqlite3": "^13.0.1",
|
|
31
31
|
"node-pty": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
35
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
36
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
37
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
38
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
39
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
40
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
41
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
34
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.257",
|
|
35
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.257",
|
|
36
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.257",
|
|
37
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.257",
|
|
38
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.257",
|
|
39
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.257",
|
|
40
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.257",
|
|
41
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.257",
|
|
42
42
|
"@cursor/sdk-darwin-arm64": "1.0.27",
|
|
43
43
|
"@cursor/sdk-darwin-x64": "1.0.27",
|
|
44
44
|
"@cursor/sdk-linux-arm64": "1.0.27",
|