@super-one/cli 0.53.3-alpha → 0.53.4-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 +99 -6
- package/package.json +10 -10
package/MANIFEST.json
CHANGED
package/lib/cli.mjs
CHANGED
|
@@ -2878,6 +2878,67 @@ var init_host_action_superone_descriptors = __esm({
|
|
|
2878
2878
|
"additionalProperties": false
|
|
2879
2879
|
}
|
|
2880
2880
|
},
|
|
2881
|
+
{
|
|
2882
|
+
"name": "browser_act",
|
|
2883
|
+
"description": "Submit 1\u201320 page actions as one call: click, hover, type, press, scroll, drag, select, upload. Prefer a CSS selector from snapshot/query; click/hover also accept text or x/y. engine=auto|cdp|synthetic (default auto). description is shown to the user instead of raw selectors. Do not use this to navigate (browser_tabs), wait (browser_wait_for), or run JS (browser_evaluate). Fail-fast: stops at the first error.",
|
|
2884
|
+
"inputSchema": {
|
|
2885
|
+
"type": "object",
|
|
2886
|
+
"properties": {
|
|
2887
|
+
"tab": { "type": "string" },
|
|
2888
|
+
"description": { "type": "string" },
|
|
2889
|
+
"actions": {
|
|
2890
|
+
"type": "array",
|
|
2891
|
+
"minItems": 1,
|
|
2892
|
+
"maxItems": 20,
|
|
2893
|
+
"items": {
|
|
2894
|
+
"type": "object",
|
|
2895
|
+
"properties": {
|
|
2896
|
+
"type": { "type": "string", "enum": ["click", "hover", "type", "press", "scroll", "drag", "select", "upload"] }
|
|
2897
|
+
},
|
|
2898
|
+
"required": ["type"],
|
|
2899
|
+
"additionalProperties": true
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
"required": ["actions"],
|
|
2904
|
+
"additionalProperties": false
|
|
2905
|
+
}
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"name": "browser_network",
|
|
2909
|
+
"description": "Network, downloads, and page environment. Recording ladder: action=start \u2192 do an act/navigate \u2192 action=wait or stop (lean manifest) \u2192 action=body({requestId}) for one response. action=download fetches a URL through the session; action=downloads lists page-triggered captures. action=cookies|mock|emulate need CDP experimental settings. emulate with only preset/width/height/reset resizes without CDP. Prefer snapshot/query for page content.",
|
|
2910
|
+
"inputSchema": {
|
|
2911
|
+
"type": "object",
|
|
2912
|
+
"properties": {
|
|
2913
|
+
"action": {
|
|
2914
|
+
"type": "string",
|
|
2915
|
+
"enum": ["start", "stop", "wait", "body", "download", "downloads", "cookies", "mock", "emulate"]
|
|
2916
|
+
},
|
|
2917
|
+
"tab": { "type": "string" },
|
|
2918
|
+
"description": { "type": "string" },
|
|
2919
|
+
"recordingId": { "type": "string" },
|
|
2920
|
+
"requestId": { "type": "string" },
|
|
2921
|
+
"url": { "type": "string" }
|
|
2922
|
+
},
|
|
2923
|
+
"required": ["action"],
|
|
2924
|
+
"additionalProperties": true
|
|
2925
|
+
}
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"name": "browser_action",
|
|
2929
|
+
"description": "Saved semantic browser actions (dynamic catalog \u2014 list then do). action=list (optional domain; includeSteps to see the full definition). action=save creates or replaces a named flow (domain+name). action=do runs one saved action with input. This does not record prior browser calls. Use browser_act for one-off clicks/types.",
|
|
2930
|
+
"inputSchema": {
|
|
2931
|
+
"type": "object",
|
|
2932
|
+
"properties": {
|
|
2933
|
+
"action": { "type": "string", "enum": ["list", "save", "do"] },
|
|
2934
|
+
"domain": { "type": "string" },
|
|
2935
|
+
"name": { "type": "string" },
|
|
2936
|
+
"input": { "type": "object", "additionalProperties": true }
|
|
2937
|
+
},
|
|
2938
|
+
"required": ["action"],
|
|
2939
|
+
"additionalProperties": true
|
|
2940
|
+
}
|
|
2941
|
+
},
|
|
2881
2942
|
{
|
|
2882
2943
|
"name": "miniapp_list",
|
|
2883
2944
|
"description": "List mini-apps authorized for this session and their tools. Omit appId for a compact catalog (tool names + one-line descriptions). Pass appId to inspect one app; includeSchema defaults true for that app's full tool definitions including inputSchema. Call this before miniapp_call when you do not know the tool names or parameters.",
|
|
@@ -9744,7 +9805,7 @@ function isStaticHostOwnedSuperoneToolQualified(qualifiedName) {
|
|
|
9744
9805
|
const bare = qualifiedName.slice(MCP_SUPERONE_TOOL_PREFIX.length);
|
|
9745
9806
|
return isStaticHostOwnedSuperoneBareName(bare);
|
|
9746
9807
|
}
|
|
9747
|
-
var MCP_SUPERONE_TOOL_PREFIX, BROWSER_PRIMITIVE_TOOL_NAMES, BROWSER_ACTION_TOOL_NAMES, BROWSER_TOOL_NAMES, BUILT_IN_SUPERONE_TOOL_NAMES, MOBILE_SHARE_FILE_TOOL_NAME, MINIAPP_LIST_BARE_NAME, MINIAPP_CALL_BARE_NAME;
|
|
9808
|
+
var MCP_SUPERONE_TOOL_PREFIX, BROWSER_PRIMITIVE_TOOL_NAMES, BROWSER_ACTION_TOOL_NAMES, BROWSER_LEGACY_TOOL_NAMES, BROWSER_COMPACT_TOOL_NAMES, BROWSER_TOOL_NAMES, BUILT_IN_SUPERONE_TOOL_NAMES, MOBILE_SHARE_FILE_TOOL_NAME, MINIAPP_LIST_BARE_NAME, MINIAPP_CALL_BARE_NAME;
|
|
9748
9809
|
var init_superone_host_owned_tools = __esm({
|
|
9749
9810
|
"../../packages/shared/src/superone-host-owned-tools.ts"() {
|
|
9750
9811
|
"use strict";
|
|
@@ -9783,10 +9844,26 @@ var init_superone_host_owned_tools = __esm({
|
|
|
9783
9844
|
"browser_action_save",
|
|
9784
9845
|
"browser_action_do"
|
|
9785
9846
|
];
|
|
9786
|
-
|
|
9847
|
+
BROWSER_LEGACY_TOOL_NAMES = [
|
|
9787
9848
|
...BROWSER_PRIMITIVE_TOOL_NAMES,
|
|
9788
9849
|
...BROWSER_ACTION_TOOL_NAMES
|
|
9789
9850
|
];
|
|
9851
|
+
BROWSER_COMPACT_TOOL_NAMES = [
|
|
9852
|
+
"browser_tabs",
|
|
9853
|
+
"browser_snapshot",
|
|
9854
|
+
"browser_query",
|
|
9855
|
+
"browser_act",
|
|
9856
|
+
"browser_wait_for",
|
|
9857
|
+
"browser_evaluate",
|
|
9858
|
+
"browser_network",
|
|
9859
|
+
"browser_action"
|
|
9860
|
+
];
|
|
9861
|
+
BROWSER_TOOL_NAMES = [
|
|
9862
|
+
...BROWSER_LEGACY_TOOL_NAMES,
|
|
9863
|
+
...BROWSER_COMPACT_TOOL_NAMES.filter(
|
|
9864
|
+
(name) => !BROWSER_LEGACY_TOOL_NAMES.includes(name)
|
|
9865
|
+
)
|
|
9866
|
+
];
|
|
9790
9867
|
BUILT_IN_SUPERONE_TOOL_NAMES = [
|
|
9791
9868
|
"read_manual",
|
|
9792
9869
|
"miniapp_dev_setup",
|
|
@@ -10036,6 +10113,18 @@ var init_map_sdk_message = __esm({
|
|
|
10036
10113
|
}
|
|
10037
10114
|
});
|
|
10038
10115
|
|
|
10116
|
+
// ../../packages/shared/src/slash-commands.ts
|
|
10117
|
+
function readTerminalSlashCommands(value) {
|
|
10118
|
+
if (!Array.isArray(value)) return void 0;
|
|
10119
|
+
const names = value.filter((item) => typeof item === "string" && item.length > 0);
|
|
10120
|
+
return names.length > 0 ? names : void 0;
|
|
10121
|
+
}
|
|
10122
|
+
var init_slash_commands = __esm({
|
|
10123
|
+
"../../packages/shared/src/slash-commands.ts"() {
|
|
10124
|
+
"use strict";
|
|
10125
|
+
}
|
|
10126
|
+
});
|
|
10127
|
+
|
|
10039
10128
|
// ../../packages/claude/src/agent-event-mapper.ts
|
|
10040
10129
|
function emptyResult(sessionId) {
|
|
10041
10130
|
return {
|
|
@@ -10208,10 +10297,11 @@ function createClaudeAgentEventMapper(options) {
|
|
|
10208
10297
|
};
|
|
10209
10298
|
const applySystem = (system) => {
|
|
10210
10299
|
switch (system.subtype) {
|
|
10211
|
-
case "init":
|
|
10300
|
+
case "init": {
|
|
10212
10301
|
if (typeof system.session_id === "string" && system.session_id) {
|
|
10213
10302
|
options.onSessionId?.(system.session_id);
|
|
10214
10303
|
}
|
|
10304
|
+
const terminalSlashCommands = readTerminalSlashCommands(system.terminal_slash_commands);
|
|
10215
10305
|
emit({
|
|
10216
10306
|
type: "session_init",
|
|
10217
10307
|
session: {
|
|
@@ -10221,6 +10311,7 @@ function createClaudeAgentEventMapper(options) {
|
|
|
10221
10311
|
mcpServers: system.mcp_servers ?? [],
|
|
10222
10312
|
permissionMode: system.permissionMode ?? "default",
|
|
10223
10313
|
slashCommands: system.slash_commands ?? [],
|
|
10314
|
+
...terminalSlashCommands ? { terminalSlashCommands } : {},
|
|
10224
10315
|
skills: system.skills ?? [],
|
|
10225
10316
|
claudeCodeVersion: system.claude_code_version ?? "",
|
|
10226
10317
|
cwd: system.cwd ?? "",
|
|
@@ -10235,6 +10326,7 @@ function createClaudeAgentEventMapper(options) {
|
|
|
10235
10326
|
}
|
|
10236
10327
|
});
|
|
10237
10328
|
break;
|
|
10329
|
+
}
|
|
10238
10330
|
case "hook_started":
|
|
10239
10331
|
emit({
|
|
10240
10332
|
type: "hook_started",
|
|
@@ -10691,6 +10783,7 @@ ${text}` : text;
|
|
|
10691
10783
|
var init_agent_event_mapper2 = __esm({
|
|
10692
10784
|
"../../packages/claude/src/agent-event-mapper.ts"() {
|
|
10693
10785
|
"use strict";
|
|
10786
|
+
init_slash_commands();
|
|
10694
10787
|
}
|
|
10695
10788
|
});
|
|
10696
10789
|
|
|
@@ -61056,8 +61149,8 @@ import { fileURLToPath } from "node:url";
|
|
|
61056
61149
|
function resolveCliReleaseVersion() {
|
|
61057
61150
|
const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
|
|
61058
61151
|
if (fromEnv) return fromEnv;
|
|
61059
|
-
if ("0.53.
|
|
61060
|
-
return "0.53.
|
|
61152
|
+
if ("0.53.4-alpha".trim()) {
|
|
61153
|
+
return "0.53.4-alpha".trim();
|
|
61061
61154
|
}
|
|
61062
61155
|
const fromDist = readDistManifestVersion();
|
|
61063
61156
|
if (fromDist) return fromDist;
|
|
@@ -63391,7 +63484,7 @@ function requiredRuntimeVersion(harnessId, manifest) {
|
|
|
63391
63484
|
import { existsSync as existsSync25, mkdirSync as mkdirSync14, readFileSync as readFileSync15, readdirSync as readdirSync9, statSync as statSync8, writeFileSync as writeFileSync11 } from "node:fs";
|
|
63392
63485
|
import { arch as osArch2, platform as osPlatform2 } from "node:os";
|
|
63393
63486
|
import { join as join23, resolve as resolve5 } from "node:path";
|
|
63394
|
-
var OFFICIAL_CLAUDE_SDK_VERSION = "0.3.
|
|
63487
|
+
var OFFICIAL_CLAUDE_SDK_VERSION = "0.3.232";
|
|
63395
63488
|
var OFFICIAL_CODEX_NPM_VERSION = "0.147.0";
|
|
63396
63489
|
var OFFICIAL_CODEX_PACKAGE = "@openai/codex";
|
|
63397
63490
|
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.53.
|
|
3
|
+
"version": "0.53.4-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.232",
|
|
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.232",
|
|
35
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.232",
|
|
36
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.232",
|
|
37
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.232",
|
|
38
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.232",
|
|
39
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.232",
|
|
40
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.232",
|
|
41
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.232",
|
|
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",
|