@outerlayer/cli 0.34.0-next.20261028152714 → 0.34.0-next.20261028183303
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/dist/{agent-setup-MO7DHLV4.js → agent-setup-IVXRBFVV.js} +6 -6
- package/dist/{bridge-4DFOWIY2.js → bridge-4GRZFXJU.js} +2 -2
- package/dist/{build-D5OIIY7B.js → build-SEJJWGTO.js} +7 -7
- package/dist/{build-disk-TEITBQKE.js → build-disk-EYRR3PBT.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-S42B4STV.js → builder-T7B46P7T.js} +4 -4
- package/dist/{check-AMTV6RTN.js → check-VKSOYRNI.js} +37 -37
- package/dist/{chunk-4CNUGDNU.js → chunk-2EHDLYSL.js} +9 -9
- package/dist/{chunk-IZKUPAXF.js → chunk-3KGXXTMN.js} +1 -1
- package/dist/{chunk-UE2C4STC.js → chunk-3UIXIGYT.js} +84 -2
- package/dist/{chunk-NYMDS542.js → chunk-4YD7N6V3.js} +4 -4
- package/dist/{chunk-VJQQVTCS.js → chunk-5TXQFZHY.js} +1 -1
- package/dist/{chunk-NPTEYMBW.js → chunk-5W2YSWIW.js} +9 -4
- package/dist/{chunk-3PFR2WXH.js → chunk-64O2NUVA.js} +6 -6
- package/dist/{chunk-LBEYOL5K.js → chunk-7JSWRF5O.js} +2 -2
- package/dist/{chunk-43BV4MP5.js → chunk-AF4E4I4T.js} +64 -22
- package/dist/{chunk-BUVDDPOM.js → chunk-BBJ6BM5U.js} +1 -1
- package/dist/{chunk-QELQ6Y4I.js → chunk-CUAB7FAZ.js} +1 -1
- package/dist/{chunk-ZXQEBRCB.js → chunk-DCBFUUDL.js} +5 -5
- package/dist/{chunk-4557WV4R.js → chunk-EA2PQRCU.js} +2 -2
- package/dist/{chunk-GHQW2BBX.js → chunk-GG5OE6MY.js} +2 -2
- package/dist/{chunk-6G3BG2GI.js → chunk-H7MGR2GN.js} +2 -2
- package/dist/{chunk-26WUFKYZ.js → chunk-HFOZTCTN.js} +1 -1
- package/dist/{chunk-FG564H3C.js → chunk-I2MFIT6X.js} +5 -5
- package/dist/{chunk-E3GX4WVJ.js → chunk-KH4774QT.js} +1 -1
- package/dist/{chunk-UAINHP2C.js → chunk-KPEMNHVF.js} +3 -3
- package/dist/{chunk-SH5JFBPO.js → chunk-KQDK4Q6A.js} +1 -1
- package/dist/{chunk-4L46A2RR.js → chunk-LJEZGHCH.js} +87 -23
- package/dist/{chunk-7XDF7PNF.js → chunk-MCPCOKHN.js} +2 -2
- package/dist/{chunk-JDQBJUXQ.js → chunk-MEIDQLXQ.js} +1 -1
- package/dist/{chunk-BRBZKIZG.js → chunk-MRLJK4GZ.js} +2 -2
- package/dist/{chunk-QGTJ5IJN.js → chunk-NCOL5RYI.js} +1 -1
- package/dist/{chunk-HUS6X5BJ.js → chunk-NXUZFHMX.js} +3 -3
- package/dist/{chunk-KY6H5L5O.js → chunk-OYQVLQP3.js} +37 -8
- package/dist/{chunk-HA46L5FG.js → chunk-P2PNBDUT.js} +5 -4
- package/dist/{chunk-XDCD4GD5.js → chunk-POND2SMT.js} +3 -3
- package/dist/{chunk-265SXBQ5.js → chunk-QGDGGLSD.js} +3 -3
- package/dist/{chunk-RIKXE3T5.js → chunk-QGEGLZSY.js} +6 -6
- package/dist/{chunk-DKIZDYUX.js → chunk-ROQPDCRU.js} +1 -1
- package/dist/{chunk-47SFTQA5.js → chunk-RRXS4CWE.js} +2 -2
- package/dist/{chunk-2CW2QMSG.js → chunk-S6UM3N4R.js} +1 -1
- package/dist/{chunk-64LLUVJR.js → chunk-SAAVZ2BX.js} +1 -1
- package/dist/{chunk-V64BEF6E.js → chunk-T3XPLCJG.js} +1 -1
- package/dist/{chunk-6MLX26T4.js → chunk-TDCHUEKY.js} +2 -2
- package/dist/{chunk-ORENXMHA.js → chunk-UXC3RQLF.js} +1 -1
- package/dist/{chunk-X2ZJL7GA.js → chunk-UZEIBWTP.js} +2 -2
- package/dist/{chunk-WHONZ53R.js → chunk-V2S2WRGD.js} +1 -1
- package/dist/{chunk-AJZWVXXA.js → chunk-VX7WZK7J.js} +185 -31
- package/dist/{chunk-BEILLR5Q.js → chunk-W7E6IMEW.js} +3 -3
- package/dist/{chunk-I4V2YBMA.js → chunk-WH3FPBPO.js} +598 -40
- package/dist/{chunk-T664NDNT.js → chunk-XDAMLX2L.js} +5 -5
- package/dist/{chunk-JDYBPAPP.js → chunk-YF7W7B7Y.js} +24 -8
- package/dist/{chunk-4N7BQBO4.js → chunk-YLPJOUVF.js} +5 -3
- package/dist/{chunk-TVDKDXW6.js → chunk-ZCA34T7R.js} +3 -3
- package/dist/{chunk-TZXJSNN4.js → chunk-ZCZY3Q55.js} +1 -1
- package/dist/{chunk-BTA5QOKD.js → chunk-ZTOJIRJH.js} +2 -2
- package/dist/{claude-launcher-TG7CHE3N.js → claude-launcher-7IC6QWR5.js} +1 -1
- package/dist/{cli-DQXFGH6X.js → cli-HBS2PXSS.js} +110 -110
- package/dist/{command-JLHJ2TOH.js → command-XA6DOFL4.js} +24 -24
- package/dist/config-RSOCVUKC.js +17 -0
- package/dist/{connect-cmd-VBEYNPAK.js → connect-cmd-JFGDHFLA.js} +5 -5
- package/dist/{container-start-L5FDIAD7.js → container-start-PYW7W2N2.js} +31 -31
- package/dist/{context-show-cmd-GMF7YMSN.js → context-show-cmd-XWLTP6R4.js} +6 -6
- package/dist/{control-plane-launch-4WRFVYNP.js → control-plane-launch-3MBWPYWZ.js} +5 -5
- package/dist/{demo-record-cmd-EGBXUDYP.js → demo-record-cmd-SIKNTSGI.js} +2 -2
- package/dist/{demo-voice-cmd-KFNEU2GR.js → demo-voice-cmd-SAB3QU4F.js} +11 -11
- package/dist/{docker-UP7EFFLL.js → docker-YMRPMDOW.js} +4 -4
- package/dist/{doctor-UIQ22QZC.js → doctor-NVHAE4LS.js} +24 -24
- package/dist/{emit-artifact-cmd-NLCKM5TU.js → emit-artifact-cmd-TZTVQCFT.js} +10 -10
- package/dist/{emit-criteria-cmd-GO3TDUCG.js → emit-criteria-cmd-WH7JB4RQ.js} +7 -7
- package/dist/{emit-demo-cmd-EJBQHFR2.js → emit-demo-cmd-DNUVG5N7.js} +11 -11
- package/dist/{emit-finding-cmd-PHUHZLQ3.js → emit-finding-cmd-X5CBH4ZA.js} +7 -7
- package/dist/{emit-result-cmd-UJSWTGDG.js → emit-result-cmd-VCKNZ4RZ.js} +9 -9
- package/dist/{emit-step-cmd-M2JEWJ4Q.js → emit-step-cmd-IUXZZYKO.js} +7 -7
- package/dist/{exec-client-BQIZRROT.js → exec-client-U4544U2S.js} +3 -3
- package/dist/{find-unit-H5DKNRBG.js → find-unit-QYD2FMCP.js} +8 -8
- package/dist/{findings-cmd-O3VCFA55.js → findings-cmd-PLHBAQW4.js} +7 -7
- package/dist/{fleet-readiness-SXIYBEWC.js → fleet-readiness-F65CKZY5.js} +5 -5
- package/dist/{governing-source-QEXH6MIZ.js → governing-source-JFCTQXYK.js} +9 -9
- package/dist/{guest-init-DXXSPKHY.js → guest-init-MI4SEME4.js} +4 -4
- package/dist/{hook-fast-DPC75LFQ.js → hook-fast-GOH4T6SN.js} +1 -1
- package/dist/{host-checks-BOLFMWX2.js → host-checks-HC4XXGAD.js} +29 -29
- package/dist/{pending-V5FBWIJ4.js → host-key-OMLDWLNG.js} +3 -3
- package/dist/{image-tag-3KPTSRB4.js → image-tag-YJJONB64.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-7G3UO6J3.js → init-JVKJTJNM.js} +21 -21
- package/dist/{init-N6UZ5WCL.js → init-W3ATJYLX.js} +24 -22
- package/dist/{init-cmd-4LYUGPB3.js → init-cmd-XJOEU2PB.js} +10 -10
- package/dist/{init-update-4GUGHNS5.js → init-update-KX3FFQ5H.js} +8 -8
- package/dist/{install-cmd-6HGNO2HF.js → install-cmd-QTIIMO6B.js} +5 -5
- package/dist/{logs-HUENB7U4.js → logs-YVXVAYTD.js} +2 -2
- package/dist/{loop-GRDMQM2J.js → loop-GBTANKUW.js} +36 -36
- package/dist/{machine-QSGONNDX.js → machine-OQOHEMJB.js} +21 -21
- package/dist/{mcp-serve-cmd-OFK3CS2T.js → mcp-serve-cmd-ECTAPDB3.js} +4 -4
- package/dist/{paths-VQ3ALYZ3.js → paths-M66LPPUF.js} +2 -2
- package/dist/{host-key-5P3ZL5XW.js → pending-7LC6XDRO.js} +3 -3
- package/dist/{pidfile-AVJFRZZT.js → pidfile-DSQOOAZV.js} +3 -3
- package/dist/{record-XE7Z3QGF.js → record-3KKIJ3XL.js} +3 -3
- package/dist/{runner-env-K4DOSDUV.js → runner-env-EX7YUIUH.js} +8 -8
- package/dist/{runner-identity-4RVY2MHX.js → runner-identity-LJWBXNM5.js} +4 -4
- package/dist/{runner-key-DIGTV3G5.js → runner-key-CAUO4RKG.js} +21 -21
- package/dist/{session-sender-N6QHL35T.js → session-sender-U2CTD7EX.js} +10 -10
- package/dist/{spec-cmd-EZGRJPUQ.js → spec-cmd-SAWQYHKM.js} +8 -8
- package/dist/{status-NA5DLUXD.js → status-VMFS7N6A.js} +29 -29
- package/dist/{sync-cmd-NEAZMEIL.js → sync-cmd-EBJQ5LMH.js} +9 -9
- package/dist/{update-steps-7HZZPWZE.js → update-steps-HMSVBDKH.js} +30 -30
- package/dist/{watch-FOY5LSSS.js → watch-6NRBX6VE.js} +9 -9
- package/dist/{work-claim-cmd-EJT55FZY.js → work-claim-cmd-SLVX2N4L.js} +12 -12
- package/dist/{work-cmd-KLPPJG4U.js → work-cmd-VSHZCXHQ.js} +7 -7
- package/dist/{work-comment-cmd-TT6TFF6Q.js → work-comment-cmd-3DCL7VHN.js} +8 -8
- package/dist/{work-demo-cmd-22PLEX4X.js → work-demo-cmd-SZJIKB5J.js} +7 -7
- package/dist/{work-logs-cmd-DWK5AYLK.js → work-logs-cmd-MRFSBMJM.js} +7 -7
- package/dist/{work-open-pr-cmd-MKHZBGA6.js → work-open-pr-cmd-N7GK7FUQ.js} +8 -8
- package/dist/{work-pr-cmd-P7PRHAJD.js → work-pr-cmd-HD5OIHUU.js} +7 -7
- package/dist/{work-proofs-cmd-CNQR7RCD.js → work-proofs-cmd-GFGENBGN.js} +9 -9
- package/dist/{work-proofs-record-GICELEJQ.js → work-proofs-record-JD4DNZUW.js} +15 -15
- package/dist/{work-stop-cmd-U42TFT7X.js → work-stop-cmd-M6RIGF7S.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +24 -1
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +2 -1
- package/skill-pack/maintained/outerlayer-build/scripts/criterion-citations.mjs +65 -8
- package/dist/config-2EADRNJB.js +0 -17
|
@@ -30,7 +30,7 @@ import { pathToFileURL } from "node:url";
|
|
|
30
30
|
* - Ruby `*_spec.rb`, `*_test.rb` and `test_*.rb`
|
|
31
31
|
* - Java, Kotlin: `*Test`, `*Tests`, `*IT`; Groovy `*Spec`; Scala `*Spec` and `*Test`
|
|
32
32
|
* - C# `*Test.cs` and `*Tests.cs`, PHP `*Test.php`, Swift `*Tests.swift`
|
|
33
|
-
* - Elixir `*_test.exs`, Dart `*_test.dart`, Rust files under `tests/`, `.bats` files
|
|
33
|
+
* - Elixir `*_test.exs`, Dart `*_test.dart`, Rust files under `tests/`, `.bats` and Gherkin `.feature` files
|
|
34
34
|
*/
|
|
35
35
|
export const TEST_FILE = new RegExp(
|
|
36
36
|
`(?:${[
|
|
@@ -46,21 +46,78 @@ export const TEST_FILE = new RegExp(
|
|
|
46
46
|
String.raw`Tests?\.(?:cs|php)`,
|
|
47
47
|
String.raw`Tests\.swift`,
|
|
48
48
|
String.raw`(?:^|/)tests/.+\.rs`,
|
|
49
|
-
String.raw`\.bats`,
|
|
49
|
+
String.raw`\.(?:bats|feature)`,
|
|
50
50
|
]
|
|
51
51
|
.map((alternative) => `(?:${alternative})`)
|
|
52
52
|
.join("|")})$`,
|
|
53
53
|
);
|
|
54
54
|
|
|
55
|
+
/** Folders whose source files are tests. These are exact names. */
|
|
56
|
+
const TEST_FOLDERS = new Set(["test", "tests", "spec", "__tests__", "Test", "Tests"]);
|
|
57
|
+
/** A project or source-set folder named for its tests: `Wallet.Tests`, `UITests`, `jvmTest`. The capital T is what marks the name: `Contest` is not one. */
|
|
58
|
+
const TEST_FOLDER_SUFFIX = /Tests?$/;
|
|
59
|
+
/** Folders that hold the data of tests, not tests. Compared in lower case. */
|
|
60
|
+
const DATA_FOLDERS = new Set(["fixtures", "fixture", "__fixtures__", "testdata", "test-data", "snapshots", "__snapshots__", "resources"]);
|
|
61
|
+
/** Folders that hold other people's code or build output. Compared in lower case. */
|
|
62
|
+
const VENDORED_FOLDERS = new Set(["node_modules", "vendor", "third_party", "target", "build", "dist", "out", "obj", ".git"]);
|
|
63
|
+
/** The extensions of the source languages whose files a test folder can hold. */
|
|
64
|
+
const SOURCE_EXTENSIONS = new Set(
|
|
65
|
+
`rb py js jsx ts tsx mjs cjs mts cts java kt kts scala sc groovy gvy cs fs fsx vb php ex exs swift dart rs go c cc cpp cxx h hh hpp hxx m mm
|
|
66
|
+
clj cljs cljc hs lhs ml mli lua pl pm t sh bash zsh zig jl r erl hrl nim cr d elm purs vue svelte robot`.split(/\s+/),
|
|
67
|
+
);
|
|
68
|
+
/** The extensions of documentation files, which a search for an id skips. */
|
|
69
|
+
const DOCUMENTATION_EXTENSIONS = new Set(["md", "mdx", "markdown", "rst", "txt", "adoc"]);
|
|
70
|
+
|
|
71
|
+
/** The lower-case extension of a file name; none for `Makefile`, `.rb` or `wallet.`. */
|
|
72
|
+
function extensionOf(file) {
|
|
73
|
+
const dot = file.lastIndexOf(".");
|
|
74
|
+
return dot <= 0 ? "" : file.slice(dot + 1).toLowerCase();
|
|
75
|
+
}
|
|
76
|
+
|
|
55
77
|
/**
|
|
56
|
-
* Whether
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
|
|
78
|
+
* Whether `path` is a source file in a test folder: a folder in its path is
|
|
79
|
+
* named for tests, and none holds test data or other people's code. The
|
|
80
|
+
* folder rule reads helpers and library code that sit in such a folder too.
|
|
81
|
+
* A file cites a criterion only when it holds the criterion's id, so reading such a file as a test does no harm.
|
|
82
|
+
*/
|
|
83
|
+
function inTestFolder(path) {
|
|
84
|
+
const folders = path.split("/");
|
|
85
|
+
const file = folders.pop();
|
|
86
|
+
if (!SOURCE_EXTENSIONS.has(extensionOf(file))) return false;
|
|
87
|
+
let named = false;
|
|
88
|
+
for (const folder of folders) {
|
|
89
|
+
const lower = folder.toLowerCase();
|
|
90
|
+
if (DATA_FOLDERS.has(lower) || VENDORED_FOLDERS.has(lower)) return false;
|
|
91
|
+
if (TEST_FOLDERS.has(folder) || TEST_FOLDER_SUFFIX.test(folder)) named = true;
|
|
92
|
+
}
|
|
93
|
+
return named;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Whether the repository-relative `path` holds tests: a built-in name, a
|
|
98
|
+
* source file in a test folder, or a file the caller's `inRunnerGlob` accepts.
|
|
99
|
+
* `inRunnerGlob` is the caller's test for the files that a runner glob in
|
|
100
|
+
* `.outerlayer-proofs.yaml` matches. A name or a test folder reads a file even
|
|
101
|
+
* when the caller's glob refuses it, and a runner glob only adds files. The criteria judge and
|
|
102
|
+
* `outerlayer work proofs` pass it. This script reads names and folders alone,
|
|
103
|
+
* and the CLI's two readers add the runner globs.
|
|
61
104
|
*/
|
|
62
105
|
export function isTestFile(path, inRunnerGlob) {
|
|
63
|
-
return TEST_FILE.test(path) || (inRunnerGlob?.(path) ?? false);
|
|
106
|
+
return TEST_FILE.test(path) || inTestFolder(path) || (inRunnerGlob?.(path) ?? false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Whether a search for a criterion's id outside the tests may read `path`.
|
|
111
|
+
* It skips documentation, the acceptance folder at the root, the proofs file,
|
|
112
|
+
* and vendored or generated folders. The caller also leaves out the files it
|
|
113
|
+
* reads as tests.
|
|
114
|
+
*/
|
|
115
|
+
export function isSearchableFile(path) {
|
|
116
|
+
const folders = path.split("/");
|
|
117
|
+
const file = folders.pop();
|
|
118
|
+
if (DOCUMENTATION_EXTENSIONS.has(extensionOf(file))) return false;
|
|
119
|
+
if (path === ".outerlayer-proofs.yaml" || folders[0] === "acceptance") return false;
|
|
120
|
+
return !folders.some((folder) => VENDORED_FOLDERS.has(folder.toLowerCase()));
|
|
64
121
|
}
|
|
65
122
|
/** A line that is only a comment: `//`, `#`, `*`, `/*`, `--` or `<!--` first. */
|
|
66
123
|
const COMMENT_LINE = /^\s*(?:\/\/|#|\*|\/\*|--|<!--)/;
|
package/dist/config-2EADRNJB.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, RunnerConfigError, builtinKind, checkHooks, defaultRunnerConfigPath, hasRunnerBlock, imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, keepsHostBuilder, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerVmOf } from './chunk-JDYBPAPP.js';
|
|
4
|
-
import './chunk-47SFTQA5.js';
|
|
5
|
-
import './chunk-HA46L5FG.js';
|
|
6
|
-
import './chunk-CM4J53WZ.js';
|
|
7
|
-
import './chunk-D3CT6XQ4.js';
|
|
8
|
-
import './chunk-VJQQVTCS.js';
|
|
9
|
-
import './chunk-GH2HEEOH.js';
|
|
10
|
-
import './chunk-IXRUVR25.js';
|
|
11
|
-
import './chunk-VNVZDWO3.js';
|
|
12
|
-
import './chunk-2CW2QMSG.js';
|
|
13
|
-
import './chunk-4N7BQBO4.js';
|
|
14
|
-
import './chunk-MESOOLF4.js';
|
|
15
|
-
import './chunk-Z5GEFMRW.js';
|
|
16
|
-
|
|
17
|
-
createRequire(import.meta.url);
|