@sema-agent/cli 1.0.114 → 1.0.115
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 +33 -29
- package/package.json +4 -4
- package/sema-main.js +8548 -7090
- package/sema.js +10 -1
package/sema.js
CHANGED
|
@@ -13,6 +13,14 @@ function synthesizedResultDenials() {
|
|
|
13
13
|
return { permission_denials: [], _sema_permission_denials_absent: true };
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
// build-src/src/utils/signalExitClaim.ts
|
|
17
|
+
var CLAIM = /* @__PURE__ */ Symbol.for("sema.signalExitClaim");
|
|
18
|
+
function claimSignalExit(code) {
|
|
19
|
+
if (!Number.isInteger(code) || code <= 0) return;
|
|
20
|
+
const g = globalThis;
|
|
21
|
+
if (g[CLAIM] === void 0) g[CLAIM] = code;
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
// build-src/src/utils/bootSignalTail.ts
|
|
17
25
|
var INSTALLED_MARKER = /* @__PURE__ */ Symbol.for("sema.bootSignalTailInstalled");
|
|
18
26
|
function wantsStreamJson(argv2) {
|
|
@@ -38,6 +46,7 @@ function installBootSignalTailFrame(argv2 = process.argv.slice(2)) {
|
|
|
38
46
|
if (g[INSTALLED_MARKER] === true) return false;
|
|
39
47
|
g[INSTALLED_MARKER] = true;
|
|
40
48
|
const bootTail = (signal, exitCode) => {
|
|
49
|
+
claimSignalExit(exitCode);
|
|
41
50
|
if (g[/* @__PURE__ */ Symbol.for("sema.streamJsonSignalTailFrame")] === true) return;
|
|
42
51
|
if (g[/* @__PURE__ */ Symbol.for("sema.streamJsonTailEmitted")] !== true) {
|
|
43
52
|
g[/* @__PURE__ */ Symbol.for("sema.streamJsonTailEmitted")] = true;
|
|
@@ -80,7 +89,7 @@ function installBootSignalTailFrame(argv2 = process.argv.slice(2)) {
|
|
|
80
89
|
installBootSignalTailFrame();
|
|
81
90
|
|
|
82
91
|
// build-src/src/sema/preludeEntry.ts
|
|
83
|
-
var versionLine = "sema 1.0.
|
|
92
|
+
var versionLine = "sema 1.0.115" ? "sema 1.0.115" : "";
|
|
84
93
|
var argv = process.argv.slice(2);
|
|
85
94
|
var wantsVersionFastPath = argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v");
|
|
86
95
|
var EARLY_INPUT_PRELUDE_SLOT = /* @__PURE__ */ Symbol.for("sema.earlyInputPrelude");
|