@sema-agent/cli 1.0.17 → 1.0.19
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/npm-shrinkwrap.json +5 -5
- package/package.json +3 -3
- package/sema.js +43 -15
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sema-agent/cli",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.19",
|
|
10
10
|
"license": "BUSL-1.1",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@sema-agent/sdk": "0.0.53",
|
|
@@ -629,9 +629,9 @@
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
"node_modules/@sema-agent/core": {
|
|
632
|
-
"version": "1.
|
|
633
|
-
"resolved": "https://registry.npmjs.org/@sema-agent/core/-/core-1.
|
|
634
|
-
"integrity": "sha512-
|
|
632
|
+
"version": "1.321.0",
|
|
633
|
+
"resolved": "https://registry.npmjs.org/@sema-agent/core/-/core-1.321.0.tgz",
|
|
634
|
+
"integrity": "sha512-oxvGe/btqrbwwzkqj9sMrOJHrqlAbUzFiuj2mDarMz2tpIUZY7fOgI4CLWCe4DW5gdVcTmpfwx11fNbFE5ZYjA==",
|
|
635
635
|
"license": "BUSL-1.1",
|
|
636
636
|
"dependencies": {
|
|
637
637
|
"@modelcontextprotocol/sdk": "1.29.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Sema — your own Claude Code-grade coding agent, in the terminal.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@sema-agent/server": "1.225.0"
|
|
26
26
|
},
|
|
27
27
|
"overrides": {
|
|
28
|
-
"@sema-agent/core": "1.
|
|
28
|
+
"@sema-agent/core": "1.321.0",
|
|
29
29
|
"@sema-agent/registry-core": "0.10.19"
|
|
30
30
|
},
|
|
31
|
-
"semaEngineVersion": "server 1.225.0 / core 1.
|
|
31
|
+
"semaEngineVersion": "server 1.225.0 / core 1.321.0 / registry-core 0.10.19",
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
}
|
package/sema.js
CHANGED
|
@@ -356442,7 +356442,7 @@ var import_react71, import_jsx_runtime101, MD_SYNTAX_RE2;
|
|
|
356442
356442
|
var init_exitplanmode = __esm({
|
|
356443
356443
|
"build-src/src/sema/overrides/exitplanmode.tsx"() {
|
|
356444
356444
|
init_marked_esm();
|
|
356445
|
-
import_react71 = __toESM(require_react()
|
|
356445
|
+
import_react71 = __toESM(require_react());
|
|
356446
356446
|
init_ink2();
|
|
356447
356447
|
init_useSettings();
|
|
356448
356448
|
init_MarkdownTable();
|
|
@@ -356452,7 +356452,7 @@ var init_exitplanmode = __esm({
|
|
|
356452
356452
|
init_teammateMailbox();
|
|
356453
356453
|
init_ShutdownMessage();
|
|
356454
356454
|
init_TaskAssignmentMessage();
|
|
356455
|
-
import_jsx_runtime101 = __toESM(require_jsx_runtime()
|
|
356455
|
+
import_jsx_runtime101 = __toESM(require_jsx_runtime());
|
|
356456
356456
|
MD_SYNTAX_RE2 = /[#*`|[>\-_~]|\n\n|^\d+\. |\n\d+\. /;
|
|
356457
356457
|
}
|
|
356458
356458
|
});
|
|
@@ -432192,6 +432192,11 @@ function cleanupAnchorForPid(pid) {
|
|
|
432192
432192
|
} catch {
|
|
432193
432193
|
}
|
|
432194
432194
|
}
|
|
432195
|
+
function logShutdownKill(msg) {
|
|
432196
|
+
if (process.env.SEMA_DEBUG_SHUTDOWN === "1") {
|
|
432197
|
+
console.error(`[sema-shutdown] ${msg}`);
|
|
432198
|
+
}
|
|
432199
|
+
}
|
|
432195
432200
|
function teardownOwnedEngineSync(reason) {
|
|
432196
432201
|
if (teardownDone) return;
|
|
432197
432202
|
teardownDone = true;
|
|
@@ -432210,6 +432215,7 @@ function teardownOwnedEngineSync(reason) {
|
|
|
432210
432215
|
);
|
|
432211
432216
|
markEngineExitExpected(target.pid);
|
|
432212
432217
|
try {
|
|
432218
|
+
logShutdownKill(`teardown(${reason}): SIGTERM engine pid=${target.pid} (single-pid, no group kill)`);
|
|
432213
432219
|
process.kill(target.pid, "SIGTERM");
|
|
432214
432220
|
} catch {
|
|
432215
432221
|
}
|
|
@@ -432275,6 +432281,7 @@ async function shutdownEngine(instance) {
|
|
|
432275
432281
|
const pid = instance.pid;
|
|
432276
432282
|
const signal = (sig) => {
|
|
432277
432283
|
try {
|
|
432284
|
+
logShutdownKill(`shutdownEngine: ${sig} engine pid=${pid} (single-pid, no group kill)`);
|
|
432278
432285
|
if (child) child.kill(sig);
|
|
432279
432286
|
else process.kill(pid, sig);
|
|
432280
432287
|
} catch {
|
|
@@ -450708,7 +450715,7 @@ function Settings({
|
|
|
450708
450715
|
var import_react113, import_jsx_runtime192;
|
|
450709
450716
|
var init_cmd_config = __esm({
|
|
450710
450717
|
"build-src/src/sema/overrides/cmd-config.tsx"() {
|
|
450711
|
-
import_react113 = __toESM(require_react());
|
|
450718
|
+
import_react113 = __toESM(require_react(), 1);
|
|
450712
450719
|
init_useKeybinding();
|
|
450713
450720
|
init_useExitOnCtrlCDWithKeybindings();
|
|
450714
450721
|
init_useTerminalSize();
|
|
@@ -450719,7 +450726,7 @@ var init_cmd_config = __esm({
|
|
|
450719
450726
|
init_Config();
|
|
450720
450727
|
init_settings_usage();
|
|
450721
450728
|
init_Stats();
|
|
450722
|
-
import_jsx_runtime192 = __toESM(require_jsx_runtime());
|
|
450729
|
+
import_jsx_runtime192 = __toESM(require_jsx_runtime(), 1);
|
|
450723
450730
|
}
|
|
450724
450731
|
});
|
|
450725
450732
|
|
|
@@ -479586,8 +479593,8 @@ var init_sema_brand = __esm({
|
|
|
479586
479593
|
"Slash-command gating wired to the fleet capability handshake"
|
|
479587
479594
|
]
|
|
479588
479595
|
},
|
|
479589
|
-
productVersion: "1.0.
|
|
479590
|
-
announcement: "sema 1.0.
|
|
479596
|
+
productVersion: "1.0.19",
|
|
479597
|
+
announcement: "sema 1.0.19 \u2014 services you leave running with nohup ... & now reliably survive session end on every platform: background command bookkeeping no longer holds them hostage at cleanup (spooled stdio for background shells, CC-parity). Plus SEMA_DEBUG_SHUTDOWN=1 to trace every teardown action."
|
|
479591
479598
|
};
|
|
479592
479599
|
}
|
|
479593
479600
|
});
|
|
@@ -482521,8 +482528,8 @@ var require_sema_brand = __commonJS({
|
|
|
482521
482528
|
"Slash-command gating wired to the fleet capability handshake"
|
|
482522
482529
|
]
|
|
482523
482530
|
},
|
|
482524
|
-
productVersion: "1.0.
|
|
482525
|
-
announcement: "sema 1.0.
|
|
482531
|
+
productVersion: "1.0.19",
|
|
482532
|
+
announcement: "sema 1.0.19 \u2014 services you leave running with nohup ... & now reliably survive session end on every platform: background command bookkeeping no longer holds them hostage at cleanup (spooled stdio for background shells, CC-parity). Plus SEMA_DEBUG_SHUTDOWN=1 to trace every teardown action."
|
|
482526
482533
|
};
|
|
482527
482534
|
}
|
|
482528
482535
|
});
|
|
@@ -552850,9 +552857,24 @@ var init_compaction = __esm({
|
|
|
552850
552857
|
}
|
|
552851
552858
|
});
|
|
552852
552859
|
|
|
552860
|
+
// node_modules/@sema-agent/core/dist/core/shutdown-debug.js
|
|
552861
|
+
function shutdownDebug(msg, extra) {
|
|
552862
|
+
if (process.env.SEMA_DEBUG_SHUTDOWN !== "1")
|
|
552863
|
+
return;
|
|
552864
|
+
try {
|
|
552865
|
+
console.error(`[sema:shutdown] ${msg}${extra !== void 0 ? ` ${JSON.stringify(extra)}` : ""}`);
|
|
552866
|
+
} catch {
|
|
552867
|
+
}
|
|
552868
|
+
}
|
|
552869
|
+
var init_shutdown_debug = __esm({
|
|
552870
|
+
"node_modules/@sema-agent/core/dist/core/shutdown-debug.js"() {
|
|
552871
|
+
}
|
|
552872
|
+
});
|
|
552873
|
+
|
|
552853
552874
|
// node_modules/@sema-agent/core/dist/engine/execution-env/kill-tree.js
|
|
552854
552875
|
var init_kill_tree = __esm({
|
|
552855
552876
|
"node_modules/@sema-agent/core/dist/engine/execution-env/kill-tree.js"() {
|
|
552877
|
+
init_shutdown_debug();
|
|
552856
552878
|
}
|
|
552857
552879
|
});
|
|
552858
552880
|
|
|
@@ -553806,7 +553828,7 @@ var init_llm2 = __esm({
|
|
|
553806
553828
|
var BRAIN_ERROR_CODES, CODE_ALTERNATION, CODE_RE, CODE_PREFIX_RE;
|
|
553807
553829
|
var init_errors12 = __esm({
|
|
553808
553830
|
"node_modules/@sema-agent/core/dist/brain/errors.js"() {
|
|
553809
|
-
BRAIN_ERROR_CODES = ["auth", "rate_limit", "invalid_request", "server", "network", "http"];
|
|
553831
|
+
BRAIN_ERROR_CODES = ["auth", "rate_limit", "invalid_request", "server", "network", "http", "stream_torn", "refusal", "length_empty"];
|
|
553810
553832
|
CODE_ALTERNATION = BRAIN_ERROR_CODES.join("|");
|
|
553811
553833
|
CODE_RE = new RegExp(`^\\[(${CODE_ALTERNATION})\\]`);
|
|
553812
553834
|
CODE_PREFIX_RE = new RegExp(`^\\[(?:${CODE_ALTERNATION})\\]\\s*`);
|
|
@@ -554430,6 +554452,7 @@ var init_task_registry = __esm({
|
|
|
554430
554452
|
init_build3();
|
|
554431
554453
|
init_tools3();
|
|
554432
554454
|
init_background_shell();
|
|
554455
|
+
init_shutdown_debug();
|
|
554433
554456
|
init_workflow_run_store();
|
|
554434
554457
|
init_untrusted_text();
|
|
554435
554458
|
init_untrusted_egress();
|
|
@@ -554773,6 +554796,7 @@ var init_task_registry = __esm({
|
|
|
554773
554796
|
if ((handle.type === "background_bash" || handle.type === "monitor") && handle.retained === true && handle.status === "running")
|
|
554774
554797
|
continue;
|
|
554775
554798
|
if (handle.type === "monitor" && handle.status === "running" && handle.sessionScoped && canAccess(handle, access7)) {
|
|
554799
|
+
shutdownDebug("session reap: monitor row", { id: handle.id, shellId: handle.shellId, retainEnv: handle.env.backgroundCapabilities.retainBackgroundProcesses === true });
|
|
554776
554800
|
this.markStopSource(handle.id, "system");
|
|
554777
554801
|
if (handle.watcher !== void 0) {
|
|
554778
554802
|
handle.timers.clearInterval(handle.watcher);
|
|
@@ -554788,6 +554812,7 @@ var init_task_registry = __esm({
|
|
|
554788
554812
|
continue;
|
|
554789
554813
|
}
|
|
554790
554814
|
if (handle.type === "background_bash" && handle.status === "running" && handle.sessionScoped && canAccess(handle, access7)) {
|
|
554815
|
+
shutdownDebug("session reap: background_bash row", { id: handle.id, shellId: handle.shellId, retainEnv: handle.env.backgroundCapabilities.retainBackgroundProcesses === true });
|
|
554791
554816
|
this.markStopSource(handle.id, "system");
|
|
554792
554817
|
if (handle.watcher !== void 0) {
|
|
554793
554818
|
clearInterval(handle.watcher);
|
|
@@ -605425,8 +605450,8 @@ function _temp158() {
|
|
|
605425
605450
|
var import_compiler_runtime312, import_react309, import_jsx_runtime455, DESKTOP_UPSELL_DEFAULT;
|
|
605426
605451
|
var init_DesktopUpsellStartup = __esm({
|
|
605427
605452
|
"build-src/src/components/DesktopUpsell/DesktopUpsellStartup.tsx"() {
|
|
605428
|
-
import_compiler_runtime312 = __toESM(require_compiler_runtime()
|
|
605429
|
-
import_react309 = __toESM(require_react()
|
|
605453
|
+
import_compiler_runtime312 = __toESM(require_compiler_runtime());
|
|
605454
|
+
import_react309 = __toESM(require_react());
|
|
605430
605455
|
init_ink2();
|
|
605431
605456
|
init_growthbook_advisor_flag();
|
|
605432
605457
|
init_analytics_index();
|
|
@@ -605434,7 +605459,7 @@ var init_DesktopUpsellStartup = __esm({
|
|
|
605434
605459
|
init_select();
|
|
605435
605460
|
init_DesktopHandoff();
|
|
605436
605461
|
init_PermissionDialog();
|
|
605437
|
-
import_jsx_runtime455 = __toESM(require_jsx_runtime()
|
|
605462
|
+
import_jsx_runtime455 = __toESM(require_jsx_runtime());
|
|
605438
605463
|
DESKTOP_UPSELL_DEFAULT = {
|
|
605439
605464
|
enable_shortcut_tip: false,
|
|
605440
605465
|
enable_startup_dialog: false
|
|
@@ -607789,8 +607814,8 @@ function _temp161() {
|
|
|
607789
607814
|
var import_compiler_runtime316, import_react313, SETTINGS_ERRORS_NOTIFICATION_KEY;
|
|
607790
607815
|
var init_useSettingsErrors = __esm({
|
|
607791
607816
|
"build-src/src/hooks/notifs/useSettingsErrors.tsx"() {
|
|
607792
|
-
import_compiler_runtime316 = __toESM(require_compiler_runtime()
|
|
607793
|
-
import_react313 = __toESM(require_react()
|
|
607817
|
+
import_compiler_runtime316 = __toESM(require_compiler_runtime());
|
|
607818
|
+
import_react313 = __toESM(require_react());
|
|
607794
607819
|
init_notifications();
|
|
607795
607820
|
init_state();
|
|
607796
607821
|
init_allErrors();
|
|
@@ -640745,6 +640770,9 @@ function reclaimOneShotEngine(pid, api2, label = "one-shot") {
|
|
|
640745
640770
|
} catch {
|
|
640746
640771
|
}
|
|
640747
640772
|
try {
|
|
640773
|
+
if (process.env.SEMA_DEBUG_SHUTDOWN === "1") {
|
|
640774
|
+
console.error(`[sema-shutdown] ${label}: SIGTERM engine pid=${pid} (single-pid, no group kill)`);
|
|
640775
|
+
}
|
|
640748
640776
|
process.kill(pid, "SIGTERM");
|
|
640749
640777
|
} catch {
|
|
640750
640778
|
}
|
|
@@ -653937,7 +653965,7 @@ Auth: unix socket -R \u2192 local proxy`, "info");
|
|
|
653937
653965
|
pendingHookMessages
|
|
653938
653966
|
}, renderAndRun);
|
|
653939
653967
|
}
|
|
653940
|
-
}).version("sema 1.0.
|
|
653968
|
+
}).version("sema 1.0.19", "-v, --version", "Output the version number");
|
|
653941
653969
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
653942
653970
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
653943
653971
|
if (canUserConfigureAdvisor()) {
|