@outerlayer/cli 0.33.0-next.20261023120437 → 0.33.0-next.20261023151440
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/README.md +12 -2
- package/dist/build-info.json +1 -1
- package/dist/{check-4QNLMDP7.js → check-XPMN4GHD.js} +9 -9
- package/dist/{chunk-FZUFUVLK.js → chunk-2LFWCIIE.js} +5 -5
- package/dist/{chunk-IUPY54BZ.js → chunk-4YLL2E7Y.js} +2 -2
- package/dist/{chunk-2JLM4GUF.js → chunk-BLHUFOOB.js} +2 -2
- package/dist/{chunk-MZYOUIY5.js → chunk-DA3PLB5N.js} +1 -1
- package/dist/chunk-RZOO7X4G.js +81 -0
- package/dist/{chunk-SQQD5MST.js → chunk-VMIOUVJF.js} +1 -1
- package/dist/{chunk-YXMGHGHR.js → chunk-VSLJ6PPG.js} +6 -2
- package/dist/{chunk-YSM4EEUK.js → chunk-YY3OQJ4X.js} +83 -17
- package/dist/{chunk-XCRET2GZ.js → chunk-Z57X4KNC.js} +4 -3
- package/dist/{cli-BC7JWQUQ.js → cli-65ZQJ622.js} +43 -43
- package/dist/{command-SQ4466SL.js → command-QENZQGZL.js} +3 -3
- package/dist/{container-start-AQJ64LCF.js → container-start-RVH5743X.js} +34 -11
- package/dist/{doctor-4YZOP343.js → doctor-MFLM7DMY.js} +4 -4
- package/dist/{governing-source-IRRP7G5G.js → governing-source-INEXO2CK.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-63X6ECKF.js → init-VWJIINBC.js} +3 -3
- package/dist/{init-T64C4MID.js → init-WIHSXL74.js} +3 -3
- package/dist/{init-cmd-7CGCDLBZ.js → init-cmd-3VWJUWXA.js} +2 -2
- package/dist/{loop-YJF27PUS.js → loop-5QV4VZOF.js} +9 -9
- package/dist/{machine-VBITNWTR.js → machine-XTSUAX3K.js} +3 -3
- package/dist/{runner-key-5SGBLTDJ.js → runner-key-N4IIFMUX.js} +3 -3
- package/dist/{spec-cmd-E6SINBX6.js → spec-cmd-7W4ERDL7.js} +1 -1
- package/dist/{status-AYHBGIAP.js → status-VBUCLDN5.js} +4 -4
- package/dist/{work-claim-cmd-CIVWB7EJ.js → work-claim-cmd-G3DC5LJK.js} +7 -5
- package/dist/{work-cmd-OO6K6ELP.js → work-cmd-J2LJ3V4A.js} +1 -1
- package/dist/{work-comment-cmd-SY7NY2CR.js → work-comment-cmd-QEZHRXC5.js} +1 -1
- package/dist/{work-demo-cmd-Y7EU335L.js → work-demo-cmd-A7XE4NKA.js} +1 -1
- package/dist/{work-logs-cmd-PWOFLTGD.js → work-logs-cmd-UA5PAXRP.js} +1 -1
- package/dist/{work-open-pr-cmd-AJUTKYWN.js → work-open-pr-cmd-ZYKNAJJM.js} +1 -1
- package/dist/{work-proofs-cmd-6W6DDAP6.js → work-proofs-cmd-XBESDEPM.js} +1 -1
- package/dist/{work-stop-cmd-WZHBEKE4.js → work-stop-cmd-ZDIW3MVX.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-YGZLRX5U.js +0 -36
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaFromAcceptanceFile, runEmitCriteria } from './chunk-GO2DUPQS.js';
|
|
4
4
|
import './chunk-ESVW4MJY.js';
|
|
5
|
-
import { getJson, postJson, patchJson, WorkCommandError, resolveCredentials } from './chunk-
|
|
5
|
+
import { getJson, postJson, patchJson, WorkCommandError, resolveCredentials } from './chunk-VSLJ6PPG.js';
|
|
6
6
|
import './chunk-IP7BIBXJ.js';
|
|
7
7
|
import { autoConnect } from './chunk-HLZMAJJD.js';
|
|
8
8
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isReadable, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-
|
|
3
|
+
import { isReadable, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-2LFWCIIE.js';
|
|
4
4
|
import { jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
5
5
|
import './chunk-HVRQQOMH.js';
|
|
6
6
|
import './chunk-6LBSAW6I.js';
|
|
@@ -10,7 +10,7 @@ import './chunk-D3EDZPJR.js';
|
|
|
10
10
|
import './chunk-7UPMYRPS.js';
|
|
11
11
|
import './chunk-ESVW4MJY.js';
|
|
12
12
|
import './chunk-TBT347UY.js';
|
|
13
|
-
import { LEASE_SECONDS } from './chunk-
|
|
13
|
+
import { LEASE_SECONDS } from './chunk-4YLL2E7Y.js';
|
|
14
14
|
import './chunk-2PGI6RDE.js';
|
|
15
15
|
import './chunk-EXZACZ2P.js';
|
|
16
16
|
import './chunk-YXHKCHWG.js';
|
|
@@ -19,7 +19,7 @@ import './chunk-JBJTC3UU.js';
|
|
|
19
19
|
import './chunk-OGFGZQA3.js';
|
|
20
20
|
import './chunk-5THSC6BD.js';
|
|
21
21
|
import './chunk-L26V6ILJ.js';
|
|
22
|
-
import { formatDuration, formatClock, relativeToRunner } from './chunk-
|
|
22
|
+
import { formatDuration, formatClock, relativeToRunner } from './chunk-Z57X4KNC.js';
|
|
23
23
|
import { pullInstruction } from './chunk-MZBQTVFG.js';
|
|
24
24
|
import './chunk-TQMI335S.js';
|
|
25
25
|
import './chunk-EHOFFTVX.js';
|
|
@@ -28,7 +28,7 @@ import { formatBytes } from './chunk-X4JEBMYN.js';
|
|
|
28
28
|
import './chunk-OGMXVPCS.js';
|
|
29
29
|
import './chunk-3Z3MPR55.js';
|
|
30
30
|
import './chunk-NE63JADS.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-VSLJ6PPG.js';
|
|
32
32
|
import './chunk-IP7BIBXJ.js';
|
|
33
33
|
import './chunk-HLZMAJJD.js';
|
|
34
34
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-DA3PLB5N.js';
|
|
4
4
|
import { defaultRunnerConfigPath } from './chunk-VWQCYOBS.js';
|
|
5
5
|
import './chunk-X4JEBMYN.js';
|
|
6
6
|
import './chunk-OGMXVPCS.js';
|
|
7
7
|
import './chunk-3Z3MPR55.js';
|
|
8
8
|
import './chunk-NE63JADS.js';
|
|
9
|
-
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-
|
|
10
|
-
export { WorkCommandError } from './chunk-
|
|
9
|
+
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-VSLJ6PPG.js';
|
|
10
|
+
export { WorkCommandError } from './chunk-VSLJ6PPG.js';
|
|
11
11
|
import './chunk-IP7BIBXJ.js';
|
|
12
12
|
import './chunk-HLZMAJJD.js';
|
|
13
13
|
import './chunk-S5CNYXUA.js';
|
|
@@ -26,7 +26,7 @@ import './chunk-BJ3KTMDH.js';
|
|
|
26
26
|
import './chunk-44V5SD4G.js';
|
|
27
27
|
import './chunk-5BHIBJDA.js';
|
|
28
28
|
import './chunk-CDDED64E.js';
|
|
29
|
-
import './chunk-RA3O54FC.js';
|
|
29
|
+
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
30
30
|
import './chunk-WZBHBH3J.js';
|
|
31
31
|
import './chunk-CRB3POP4.js';
|
|
32
32
|
import './chunk-6CXNWKWD.js';
|
|
@@ -71,7 +71,9 @@ async function runWorkClaim(opts) {
|
|
|
71
71
|
`/v1/work-items/${itemId}/claim`,
|
|
72
72
|
creds.apiKey,
|
|
73
73
|
creds.appId,
|
|
74
|
-
|
|
74
|
+
// The CLI's own version, so the gateway judges this claim on it and not on a runner that once
|
|
75
|
+
// heartbeated under the same host name.
|
|
76
|
+
{ host, kind: opts.kind, seconds, runnerProtocol: RUNNER_PROTOCOL, cliVersion: resolveVersion(), hostKey: hostKey.hostKey },
|
|
75
77
|
fetchImpl,
|
|
76
78
|
void 0,
|
|
77
79
|
hostKey.signer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { WorkCommandError, environmentFacts, findLiveItemForIssue, getJson, parsePositiveInt, patchJson, postJson, resolveCredentials, runWorkBuild, runWorkLinkSession, runWorkList, runWorkRemove, runWorkStatus } from './chunk-
|
|
3
|
+
export { WorkCommandError, environmentFacts, findLiveItemForIssue, getJson, parsePositiveInt, patchJson, postJson, resolveCredentials, runWorkBuild, runWorkLinkSession, runWorkList, runWorkRemove, runWorkStatus } from './chunk-VSLJ6PPG.js';
|
|
4
4
|
import './chunk-IP7BIBXJ.js';
|
|
5
5
|
import './chunk-HLZMAJJD.js';
|
|
6
6
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-VSLJ6PPG.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import './chunk-HLZMAJJD.js';
|
|
6
6
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { resolveCredentials, WorkCommandError } from './chunk-
|
|
4
|
+
import { resolveCredentials, WorkCommandError } from './chunk-VSLJ6PPG.js';
|
|
5
5
|
import './chunk-IP7BIBXJ.js';
|
|
6
6
|
import './chunk-HLZMAJJD.js';
|
|
7
7
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, getJson } from './chunk-VSLJ6PPG.js';
|
|
4
4
|
import './chunk-IP7BIBXJ.js';
|
|
5
5
|
import './chunk-HLZMAJJD.js';
|
|
6
6
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { itemLabel, runWorkPr, WorkPrCommandError } from './chunk-5M2J7B5N.js';
|
|
4
|
-
import { resolveCredentials } from './chunk-
|
|
4
|
+
import { resolveCredentials } from './chunk-VSLJ6PPG.js';
|
|
5
5
|
import './chunk-IP7BIBXJ.js';
|
|
6
6
|
import './chunk-HLZMAJJD.js';
|
|
7
7
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-VSLJ6PPG.js';
|
|
4
4
|
import './chunk-IP7BIBXJ.js';
|
|
5
5
|
import './chunk-HLZMAJJD.js';
|
|
6
6
|
import './chunk-S5CNYXUA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, WorkCommandError } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, WorkCommandError } from './chunk-VSLJ6PPG.js';
|
|
4
4
|
import './chunk-IP7BIBXJ.js';
|
|
5
5
|
import './chunk-HLZMAJJD.js';
|
|
6
6
|
import './chunk-S5CNYXUA.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.33.0-next.
|
|
3
|
+
"version": "0.33.0-next.20261023151440",
|
|
4
4
|
"description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, findings, work, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|
package/dist/chunk-YGZLRX5U.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-EHOFFTVX.js';
|
|
4
|
-
import { readFileSync } from 'fs';
|
|
5
|
-
|
|
6
|
-
createRequire(import.meta.url);
|
|
7
|
-
var GIB = 1024 ** 3;
|
|
8
|
-
var DEFAULT_GIB = 8;
|
|
9
|
-
var MINIMUM_GIB = 4;
|
|
10
|
-
var BUILD_MEMORY_VARIABLE = "OUTERLAYER_BUILD_MEMORY";
|
|
11
|
-
function memoryIsSet(configPath) {
|
|
12
|
-
try {
|
|
13
|
-
const raw = JSON.parse(readFileSync(configPath, "utf8"));
|
|
14
|
-
return raw.runner.build.memory !== void 0;
|
|
15
|
-
} catch {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function gib(bytes) {
|
|
20
|
-
return `${Number((bytes / GIB).toFixed(1))} GiB`;
|
|
21
|
-
}
|
|
22
|
-
function fitImageBuildMemory(config, totalMemoryBytes) {
|
|
23
|
-
if (memoryIsSet(config.configPath)) return { config };
|
|
24
|
-
const current = config.build?.memory ?? `${DEFAULT_GIB}g`;
|
|
25
|
-
if (checkFit({ concurrency: config.concurrency, buildMemory: current, usableBytes: totalMemoryBytes }).fits) return { config };
|
|
26
|
-
const available = Math.max(0, totalMemoryBytes - RUNNER_RESERVE_BYTES);
|
|
27
|
-
const perBuild = Math.floor(available / config.concurrency / GIB);
|
|
28
|
-
if (perBuild < MINIMUM_GIB) return { config };
|
|
29
|
-
const memory = `${perBuild}g`;
|
|
30
|
-
return {
|
|
31
|
-
config: { ...config, build: { ...config.build, memory } },
|
|
32
|
-
note: `builds get ${memory} of memory to fit this machine's ${gib(totalMemoryBytes)}; set ${BUILD_MEMORY_VARIABLE} to choose another value`
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { BUILD_MEMORY_VARIABLE, fitImageBuildMemory };
|