@codyswann/lisa 5.0.2 → 5.1.0
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/all/copy-overwrite/scripts/lib/automation-provenance-contract.mjs +136 -11
- package/all/copy-overwrite/scripts/lib/automation-provenance-local.mjs +3 -0
- package/all/copy-overwrite/scripts/lib/npm-update-allocate.mjs +4 -10
- package/all/copy-overwrite/scripts/lib/npm-update-bun.mjs +39 -7
- package/all/copy-overwrite/scripts/lib/npm-update-cancel-origin.mjs +20 -20
- package/all/copy-overwrite/scripts/lib/npm-update-cancellation-proof.mjs +8 -8
- package/all/copy-overwrite/scripts/lib/npm-update-cancellation.mjs +5 -3
- package/all/copy-overwrite/scripts/lib/npm-update-contract.mjs +12 -5
- package/all/copy-overwrite/scripts/lib/npm-update-gate.mjs +3 -6
- package/all/copy-overwrite/scripts/lib/npm-update-hosted-gate.mjs +2 -3
- package/all/copy-overwrite/scripts/lib/npm-update-leaf-contract.mjs +12 -4
- package/all/copy-overwrite/scripts/lib/npm-update-npm.mjs +4 -1
- package/all/copy-overwrite/scripts/lib/npm-update-policy.mjs +35 -2
- package/all/copy-overwrite/scripts/lib/npm-update-prepare.mjs +26 -17
- package/all/copy-overwrite/scripts/lib/npm-update-rails-runtime-contract.mjs +6 -2
- package/all/copy-overwrite/scripts/lib/npm-update-supersession.mjs +13 -6
- package/all/copy-overwrite/scripts/lisa-automation-provenance.mjs +10 -3
- package/all/copy-overwrite/scripts/lisa-npm-updater.mjs +7 -4
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +30 -19
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +66 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +34 -19
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/** Fixed npm policy validation shares the optional signed runtime contract without cycles. */
|
|
5
5
|
import { keys, required } from "./npm-update-invariants.mjs";
|
|
6
6
|
import { railsRuntime } from "./npm-update-rails-runtime-contract.mjs";
|
|
7
|
+
import { validDirectory } from "./automation-provenance-contract.mjs";
|
|
7
8
|
|
|
8
9
|
export const NAME = /^(?:@[a-z0-9][a-z0-9_.-]*\/)?[a-z0-9][a-z0-9_.-]*$/;
|
|
9
10
|
export const VERSION =
|
|
@@ -23,8 +24,15 @@ export function validatePolicy(value, config) {
|
|
|
23
24
|
]);
|
|
24
25
|
railsRuntime(value);
|
|
25
26
|
required(
|
|
26
|
-
value.version === 1 &&
|
|
27
|
-
|
|
27
|
+
value.version === 1 &&
|
|
28
|
+
validDirectory(value.directory) &&
|
|
29
|
+
value.target === "main",
|
|
30
|
+
"only a committed npm directory on main is supported"
|
|
31
|
+
);
|
|
32
|
+
required(
|
|
33
|
+
value.directory === "." ||
|
|
34
|
+
(value.lisaOwner === "absent" && !Object.hasOwn(value, "runtime")),
|
|
35
|
+
"a subdirectory npm project has no Lisa owner or runtime profile"
|
|
28
36
|
);
|
|
29
37
|
required(
|
|
30
38
|
config.tracker === "github" &&
|
|
@@ -71,3 +79,28 @@ export function validatePolicy(value, config) {
|
|
|
71
79
|
}
|
|
72
80
|
return structuredClone(value);
|
|
73
81
|
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* One run updates one committed directory. The legacy single object is a
|
|
85
|
+
* one-entry list, so a root-only policy keeps its exact digest; every entry is
|
|
86
|
+
* validated even when another directory is selected, and directories are unique.
|
|
87
|
+
*/
|
|
88
|
+
export function selectPolicy(config, directory) {
|
|
89
|
+
const raw = config.npmUpdater;
|
|
90
|
+
const list = Array.isArray(raw) ? raw : [raw];
|
|
91
|
+
required(
|
|
92
|
+
list.length >= 1 && list.length <= 8 && !list.some(Array.isArray),
|
|
93
|
+
"invalid npm updater directory list"
|
|
94
|
+
);
|
|
95
|
+
const policies = list.map(entry => validatePolicy(entry, config));
|
|
96
|
+
required(
|
|
97
|
+
new Set(policies.map(policy => policy.directory)).size === policies.length,
|
|
98
|
+
"duplicate npm updater directory"
|
|
99
|
+
);
|
|
100
|
+
const matches = policies.filter(policy => policy.directory === directory);
|
|
101
|
+
required(
|
|
102
|
+
matches.length === 1,
|
|
103
|
+
"directory is not a committed npm updater selection"
|
|
104
|
+
);
|
|
105
|
+
return matches[0];
|
|
106
|
+
}
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
validateHost,
|
|
23
23
|
validateLock,
|
|
24
24
|
proposalFrom,
|
|
25
|
-
proposalFileNames,
|
|
26
25
|
} from "./npm-update-contract.mjs";
|
|
27
26
|
import {
|
|
28
27
|
runProcess,
|
|
@@ -34,7 +33,8 @@ import { canonicalJson } from "../lisa-automation-provenance.mjs";
|
|
|
34
33
|
import { qualifyLisaOwner } from "./npm-update-owner.mjs";
|
|
35
34
|
export { qualifyLisaOwner } from "./npm-update-owner.mjs";
|
|
36
35
|
import { sha256 } from "./github-attestation-verifier.mjs";
|
|
37
|
-
import {
|
|
36
|
+
import { directoryBun, qualifiedBun, frozenBun } from "./npm-update-bun.mjs";
|
|
37
|
+
import { npmPath } from "./automation-provenance-contract.mjs";
|
|
38
38
|
|
|
39
39
|
const NPM_FLAGS = ["--ignore-scripts", "--no-audit", "--no-fund"];
|
|
40
40
|
|
|
@@ -53,8 +53,16 @@ function installedVersions(directory, selections) {
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Re-read the committed source; an unstaged manifest cannot become the baseline.
|
|
58
|
+
* Files are keyed by name inside the selected directory, never by repository path.
|
|
59
|
+
*/
|
|
60
|
+
export async function baseline(
|
|
61
|
+
cwd,
|
|
62
|
+
env,
|
|
63
|
+
proposal,
|
|
64
|
+
directory = proposal?.directory ?? "."
|
|
65
|
+
) {
|
|
58
66
|
const command = args =>
|
|
59
67
|
runProcess("git", args, { cwd, env, maximum: 1_048_576 });
|
|
60
68
|
const parent = (await command(["rev-parse", "HEAD"])).stdout
|
|
@@ -62,18 +70,19 @@ export async function baseline(cwd, env, proposal) {
|
|
|
62
70
|
.trim();
|
|
63
71
|
const files = {};
|
|
64
72
|
for (const file of FILES) {
|
|
73
|
+
const path = npmPath({ directory }, file);
|
|
65
74
|
const entry = (
|
|
66
|
-
await command(["ls-tree", "HEAD", "--",
|
|
75
|
+
await command(["ls-tree", "HEAD", "--", path])
|
|
67
76
|
).stdout.toString();
|
|
68
77
|
required(
|
|
69
78
|
entry.startsWith("100644 blob ") && entry.trim().split("\n").length === 1,
|
|
70
79
|
"regular committed npm files required"
|
|
71
80
|
);
|
|
72
|
-
files[file] = (await command(["show", `HEAD:${
|
|
81
|
+
files[file] = (await command(["show", `HEAD:${path}`])).stdout.toString(
|
|
73
82
|
"utf8"
|
|
74
83
|
);
|
|
75
84
|
}
|
|
76
|
-
const bun = await
|
|
85
|
+
const bun = await directoryBun(cwd, command, directory, proposal);
|
|
77
86
|
if (bun !== undefined) files["bun.lock"] = bun;
|
|
78
87
|
if (proposal)
|
|
79
88
|
required(
|
|
@@ -178,7 +187,10 @@ async function preparedProposal({
|
|
|
178
187
|
{ cwd: app }
|
|
179
188
|
);
|
|
180
189
|
const files = Object.fromEntries(
|
|
181
|
-
names.map(file => [
|
|
190
|
+
names.map(file => [
|
|
191
|
+
npmPath(policy, file),
|
|
192
|
+
readFileSync(join(app, file), "utf8"),
|
|
193
|
+
])
|
|
182
194
|
);
|
|
183
195
|
const proposal = proposalFrom(
|
|
184
196
|
policy,
|
|
@@ -189,10 +201,7 @@ async function preparedProposal({
|
|
|
189
201
|
bun ? sha256(original.files["bun.lock"]) : undefined
|
|
190
202
|
);
|
|
191
203
|
const hashes = Object.fromEntries(
|
|
192
|
-
|
|
193
|
-
file,
|
|
194
|
-
sha256(readFileSync(join(app, file))),
|
|
195
|
-
])
|
|
204
|
+
names.map(file => [file, sha256(readFileSync(join(app, file)))])
|
|
196
205
|
);
|
|
197
206
|
await npm(["ci", ...npmFlags]);
|
|
198
207
|
if (bun) await frozenBun(bun, app, names);
|
|
@@ -218,10 +227,8 @@ async function preparedProposal({
|
|
|
218
227
|
};
|
|
219
228
|
}
|
|
220
229
|
|
|
221
|
-
/** The private resource lifecycle remains outside the prepared proposal's npm checks. */
|
|
230
|
+
/** The private resource lifecycle remains outside the prepared proposal's npm checks; the baseline proves the directory before npm reads its config. */
|
|
222
231
|
export async function prepareUpdate({ cwd, policy: input, config }) {
|
|
223
|
-
const engineStrict = await effectiveEngineStrict(cwd);
|
|
224
|
-
const npmFlags = [...NPM_FLAGS, ...(engineStrict ? ["--engine-strict"] : [])];
|
|
225
232
|
const policy = validatePolicy(input, config);
|
|
226
233
|
let privatePath;
|
|
227
234
|
const result = await withPrivateRoot(async (root, env) => {
|
|
@@ -236,7 +243,9 @@ export async function prepareUpdate({ cwd, policy: input, config }) {
|
|
|
236
243
|
["10.9.9", "11.21.0"].includes(version),
|
|
237
244
|
"supported npm10.9.9 or11.21.0 is required"
|
|
238
245
|
);
|
|
239
|
-
const original = await baseline(cwd, env);
|
|
246
|
+
const original = await baseline(cwd, env, undefined, policy.directory);
|
|
247
|
+
const strict = await effectiveEngineStrict(join(cwd, policy.directory));
|
|
248
|
+
const npmFlags = [...NPM_FLAGS, ...(strict ? ["--engine-strict"] : [])];
|
|
240
249
|
const before = JSON.parse(original.files["package.json"]);
|
|
241
250
|
validateHost(before);
|
|
242
251
|
required(
|
|
@@ -244,7 +253,7 @@ export async function prepareUpdate({ cwd, policy: input, config }) {
|
|
|
244
253
|
(!before.packageManager || before.packageManager === `npm@${version}`),
|
|
245
254
|
"unsupported workspace or npm declaration"
|
|
246
255
|
);
|
|
247
|
-
await qualifyLisaOwner(cwd, before, policy, config,
|
|
256
|
+
await qualifyLisaOwner(cwd, before, policy, config, strict);
|
|
248
257
|
validateLock(JSON.parse(original.files["package-lock.json"]), before, []);
|
|
249
258
|
for (const file of Object.keys(original.files))
|
|
250
259
|
writeFileSync(join(app, file), original.files[file], { mode: 0o600 });
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
/** Closed committed runtime data cannot select commands, credentials or tool versions. */
|
|
5
5
|
import { keys, required } from "./npm-update-invariants.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
canonicalJson,
|
|
8
|
+
directoryOf,
|
|
9
|
+
policyEntry,
|
|
10
|
+
} from "./automation-provenance-contract.mjs";
|
|
7
11
|
import { sha256 } from "./github-attestation-verifier.mjs";
|
|
8
12
|
|
|
9
13
|
/** Explicit absence preserves the historical npm-only contract byte for byte. */
|
|
@@ -71,5 +75,5 @@ export function assertCommittedRuntime(value, git) {
|
|
|
71
75
|
);
|
|
72
76
|
const original =
|
|
73
77
|
entry === "" ? {} : JSON.parse(git(["show", "HEAD:.lisa.config.json"]));
|
|
74
|
-
assertRuntimeBinding(value, original
|
|
78
|
+
assertRuntimeBinding(value, policyEntry(original, directoryOf(value)) ?? {});
|
|
75
79
|
}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
import { canonicalJson } from "../lisa-automation-provenance.mjs";
|
|
6
6
|
import { required } from "./npm-update-contract.mjs";
|
|
7
7
|
import { validateProposal, keys } from "./npm-update-contract.mjs";
|
|
8
|
+
import {
|
|
9
|
+
directoryOf,
|
|
10
|
+
proposalPolicy,
|
|
11
|
+
} from "./automation-provenance-contract.mjs";
|
|
8
12
|
import { join } from "node:path";
|
|
9
13
|
import { writeFileSync } from "node:fs";
|
|
10
14
|
import { writeJson, withPrivateRoot } from "./npm-update-process.mjs";
|
|
@@ -165,7 +169,13 @@ export async function recordedCancellation({
|
|
|
165
169
|
keys(checkpoint.payload.preview, ["cancellation"]);
|
|
166
170
|
const record = checkpoint.payload.preview.cancellation;
|
|
167
171
|
validateCancellation(record, record);
|
|
168
|
-
const
|
|
172
|
+
const directory = directoryOf(proposal);
|
|
173
|
+
const historical = await committedCancellationConfig(
|
|
174
|
+
cwd,
|
|
175
|
+
record.parent,
|
|
176
|
+
directory
|
|
177
|
+
);
|
|
178
|
+
const committed = proposalPolicy(historical, proposal);
|
|
169
179
|
const authority = historical.automationProvenance;
|
|
170
180
|
required(
|
|
171
181
|
[
|
|
@@ -176,13 +186,10 @@ export async function recordedCancellation({
|
|
|
176
186
|
"ghExecutable",
|
|
177
187
|
"ghSha256",
|
|
178
188
|
].every(key => authority[key] === api.policy[key]) &&
|
|
179
|
-
|
|
189
|
+
committed.maintainer === proposalPolicy(config, proposal).maintainer,
|
|
180
190
|
"recorded cancellation authority differs"
|
|
181
191
|
);
|
|
182
|
-
const replacement = validateProposal(
|
|
183
|
-
checkpoint.payload.proposal,
|
|
184
|
-
historical.npmUpdater
|
|
185
|
-
);
|
|
192
|
+
const replacement = validateProposal(checkpoint.payload.proposal, committed);
|
|
186
193
|
required(
|
|
187
194
|
replacement.selectionKey === proposal.selectionKey,
|
|
188
195
|
"recorded cancellation selection differs"
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
trustedConfiguration,
|
|
24
24
|
npmProposal,
|
|
25
25
|
signedProposalFields,
|
|
26
|
+
directoryOf,
|
|
27
|
+
policyEntry,
|
|
26
28
|
} from "./lib/automation-provenance-contract.mjs";
|
|
27
29
|
import {
|
|
28
30
|
git,
|
|
@@ -67,7 +69,12 @@ function recoveryPermission(
|
|
|
67
69
|
recoveryBytes.toString("utf8") === `${canonicalJson(recovery)}\n`,
|
|
68
70
|
"noncanonical/duplicate recovery fields"
|
|
69
71
|
);
|
|
70
|
-
|
|
72
|
+
// The digest is of the one committed entry for the descriptor's directory, so a
|
|
73
|
+
// legacy single-object root policy keeps its historical digest.
|
|
74
|
+
const directory = directoryOf(descriptor);
|
|
75
|
+
const entry = policyEntry(config, directory);
|
|
76
|
+
requireProof(entry, "committed npm directory policy is absent");
|
|
77
|
+
const npmPolicySha256 = sha256(canonicalJson(entry));
|
|
71
78
|
verifyRecoveryOrigin(policy, descriptor, recovery, sha256(bytes), paths, {
|
|
72
79
|
npmPolicySha256,
|
|
73
80
|
proposalKey: sha256(
|
|
@@ -75,7 +82,7 @@ function recoveryPermission(
|
|
|
75
82
|
repository: policy.repository,
|
|
76
83
|
target: "main",
|
|
77
84
|
ecosystem: "npm",
|
|
78
|
-
directory
|
|
85
|
+
directory,
|
|
79
86
|
parent: descriptor.parent,
|
|
80
87
|
policySha256: npmPolicySha256,
|
|
81
88
|
updates: descriptor.updates,
|
|
@@ -84,7 +91,7 @@ function recoveryPermission(
|
|
|
84
91
|
),
|
|
85
92
|
leafBodySha256: sha256(context.issue.body),
|
|
86
93
|
commit: predictedCommit(descriptor, messageBytes),
|
|
87
|
-
maintainer:
|
|
94
|
+
maintainer: entry.maintainer,
|
|
88
95
|
recoverySha256: sha256(recoveryBytes),
|
|
89
96
|
});
|
|
90
97
|
requireProof(
|
|
@@ -12,7 +12,7 @@ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
|
12
12
|
import {
|
|
13
13
|
required,
|
|
14
14
|
keys,
|
|
15
|
-
|
|
15
|
+
selectPolicy,
|
|
16
16
|
validateProposal,
|
|
17
17
|
} from "./lib/npm-update-contract.mjs";
|
|
18
18
|
import { publicFailure, withStage } from "./lib/npm-update-invariants.mjs";
|
|
@@ -90,8 +90,11 @@ async function cancellationPhase(cwd, output, proposal, config, phase) {
|
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Only committed policy grants authority; ignored/local config cannot activate Actions.
|
|
95
|
+
* LISA_NPM_DIRECTORY only selects among committed entries ("." by default); it never adds one.
|
|
96
|
+
*/
|
|
97
|
+
async function configuration(cwd, directory = process.env.LISA_NPM_DIRECTORY) {
|
|
95
98
|
const result = await runProcess("git", ["show", "HEAD:.lisa.config.json"], {
|
|
96
99
|
cwd,
|
|
97
100
|
env: { PATH: process.env.PATH, HOME: "/nonexistent" },
|
|
@@ -102,7 +105,7 @@ async function configuration(cwd) {
|
|
|
102
105
|
config.automationProvenance?.enabled === true,
|
|
103
106
|
"automation provenance must be explicitly configured on committed main"
|
|
104
107
|
);
|
|
105
|
-
const policy =
|
|
108
|
+
const policy = selectPolicy(config, directory ?? ".");
|
|
106
109
|
required(
|
|
107
110
|
config.automationProvenance.repository === policy.repository,
|
|
108
111
|
"committed authority repository differs"
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"children": []
|
|
34
34
|
},
|
|
35
35
|
"lib/automation-provenance-contract.mjs": {
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "7c24a2eabd4c56d46ad6d2b5c14b4a4d033d58fee08b87dfbd5d054818b7ab35",
|
|
37
37
|
"staticImports": [
|
|
38
|
-
"lib/github-attestation-verifier.mjs"
|
|
38
|
+
"lib/github-attestation-verifier.mjs",
|
|
39
|
+
"node:path"
|
|
39
40
|
],
|
|
40
41
|
"dynamicImports": [],
|
|
41
42
|
"children": []
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"children": []
|
|
51
52
|
},
|
|
52
53
|
"lib/automation-provenance-local.mjs": {
|
|
53
|
-
"sha256": "
|
|
54
|
+
"sha256": "09c6d63675bdcc23dd83c3a9f0a5ecbd8e7b7789f40fe4ec00717bbb68eb14ae",
|
|
54
55
|
"staticImports": [
|
|
55
56
|
"lib/automation-provenance-contract.mjs",
|
|
56
57
|
"lib/automation-provenance-files.mjs",
|
|
@@ -344,8 +345,9 @@
|
|
|
344
345
|
"children": []
|
|
345
346
|
},
|
|
346
347
|
"lib/npm-update-allocate.mjs": {
|
|
347
|
-
"sha256": "
|
|
348
|
+
"sha256": "de04b6972a507c6a7629c2b3d9aec993f62139234550c75d0d0245c4bacb4d71",
|
|
348
349
|
"staticImports": [
|
|
350
|
+
"lib/automation-provenance-contract.mjs",
|
|
349
351
|
"lib/github-attestation-verifier.mjs",
|
|
350
352
|
"lib/npm-update-contract.mjs",
|
|
351
353
|
"lib/npm-update-leaf.mjs",
|
|
@@ -390,7 +392,7 @@
|
|
|
390
392
|
"children": []
|
|
391
393
|
},
|
|
392
394
|
"lib/npm-update-bun.mjs": {
|
|
393
|
-
"sha256": "
|
|
395
|
+
"sha256": "60e3d30e82f054a483633342891e047b08f79d20c0a5719e5e6ab276732c8e25",
|
|
394
396
|
"staticImports": [
|
|
395
397
|
"lib/automation-provenance-contract.mjs",
|
|
396
398
|
"lib/github-attestation-verifier.mjs",
|
|
@@ -404,7 +406,7 @@
|
|
|
404
406
|
"children": []
|
|
405
407
|
},
|
|
406
408
|
"lib/npm-update-cancel-origin.mjs": {
|
|
407
|
-
"sha256": "
|
|
409
|
+
"sha256": "57bf06a580f5c0433690dabf3bcbd36dd2bd5e6de4fa77e04806ca0042152214",
|
|
408
410
|
"staticImports": [
|
|
409
411
|
"lib/automation-provenance-contract.mjs",
|
|
410
412
|
"lib/github-attestation-provider.mjs",
|
|
@@ -422,8 +424,9 @@
|
|
|
422
424
|
"children": []
|
|
423
425
|
},
|
|
424
426
|
"lib/npm-update-cancellation-proof.mjs": {
|
|
425
|
-
"sha256": "
|
|
427
|
+
"sha256": "8572761b79fd89f9d4e6a45258d9c1fbd75a39aac25c60a692b2c6332ff42c73",
|
|
426
428
|
"staticImports": [
|
|
429
|
+
"lib/automation-provenance-contract.mjs",
|
|
427
430
|
"lib/github-attestation-recovery.mjs",
|
|
428
431
|
"lib/github-attestation-verifier.mjs",
|
|
429
432
|
"lib/npm-update-contract.mjs",
|
|
@@ -433,8 +436,9 @@
|
|
|
433
436
|
"children": []
|
|
434
437
|
},
|
|
435
438
|
"lib/npm-update-cancellation.mjs": {
|
|
436
|
-
"sha256": "
|
|
439
|
+
"sha256": "cf2f4a8f0456f6a40ade2f34682cc4f7be8fe58f85e71a391c1bc77324ab8ef9",
|
|
437
440
|
"staticImports": [
|
|
441
|
+
"lib/automation-provenance-contract.mjs",
|
|
438
442
|
"lib/github-attestation-verifier.mjs",
|
|
439
443
|
"lib/npm-update-allocate.mjs",
|
|
440
444
|
"lib/npm-update-cancel-origin.mjs",
|
|
@@ -484,7 +488,7 @@
|
|
|
484
488
|
"children": []
|
|
485
489
|
},
|
|
486
490
|
"lib/npm-update-contract.mjs": {
|
|
487
|
-
"sha256": "
|
|
491
|
+
"sha256": "6db3b43a61a89cbb8638207c18862d759023b021f8140fa2a0a30a8b80a2bc87",
|
|
488
492
|
"staticImports": [
|
|
489
493
|
"lib/automation-provenance-contract.mjs",
|
|
490
494
|
"lib/github-attestation-verifier.mjs",
|
|
@@ -608,8 +612,9 @@
|
|
|
608
612
|
"children": []
|
|
609
613
|
},
|
|
610
614
|
"lib/npm-update-gate.mjs": {
|
|
611
|
-
"sha256": "
|
|
615
|
+
"sha256": "b214d8f6c40629856e9aa91ab5ffaebae2a3ed35a66ff117f43242ce6cc15986",
|
|
612
616
|
"staticImports": [
|
|
617
|
+
"lib/automation-provenance-contract.mjs",
|
|
613
618
|
"lib/github-attestation-verifier.mjs",
|
|
614
619
|
"lib/npm-update-contract.mjs",
|
|
615
620
|
"lib/npm-update-controller-factory.mjs",
|
|
@@ -757,8 +762,9 @@
|
|
|
757
762
|
"children": []
|
|
758
763
|
},
|
|
759
764
|
"lib/npm-update-hosted-gate.mjs": {
|
|
760
|
-
"sha256": "
|
|
765
|
+
"sha256": "72755685d08ca4ce01f99211fd19fd293d3b6bc77bef042579acb448da5fe8e1",
|
|
761
766
|
"staticImports": [
|
|
767
|
+
"lib/automation-provenance-contract.mjs",
|
|
762
768
|
"lib/npm-update-bun.mjs",
|
|
763
769
|
"lib/npm-update-contract.mjs",
|
|
764
770
|
"lib/npm-update-controller-factory.mjs",
|
|
@@ -828,8 +834,9 @@
|
|
|
828
834
|
"children": []
|
|
829
835
|
},
|
|
830
836
|
"lib/npm-update-leaf-contract.mjs": {
|
|
831
|
-
"sha256": "
|
|
837
|
+
"sha256": "a62ff918f24217958cd4b3bd45e28dbaa745e8b733ebb6fd48b4ab1dd1794823",
|
|
832
838
|
"staticImports": [
|
|
839
|
+
"lib/automation-provenance-contract.mjs",
|
|
833
840
|
"lib/npm-update-contract.mjs",
|
|
834
841
|
"lisa-automation-provenance.mjs",
|
|
835
842
|
"lisa-work-item.mjs"
|
|
@@ -864,8 +871,9 @@
|
|
|
864
871
|
]
|
|
865
872
|
},
|
|
866
873
|
"lib/npm-update-npm.mjs": {
|
|
867
|
-
"sha256": "
|
|
874
|
+
"sha256": "844437d2588c341f86d74661580fa32eee60ea2992fe43444328203d2c700fc3",
|
|
868
875
|
"staticImports": [
|
|
876
|
+
"lib/automation-provenance-contract.mjs",
|
|
869
877
|
"lib/github-attestation-verifier.mjs",
|
|
870
878
|
"lib/npm-update-contract.mjs",
|
|
871
879
|
"lib/npm-update-process-core.mjs",
|
|
@@ -920,8 +928,9 @@
|
|
|
920
928
|
"children": []
|
|
921
929
|
},
|
|
922
930
|
"lib/npm-update-policy.mjs": {
|
|
923
|
-
"sha256": "
|
|
931
|
+
"sha256": "290544f8b9e04592ae7ac9d4977d7f4fb4d0d512203375592926988242a7511c",
|
|
924
932
|
"staticImports": [
|
|
933
|
+
"lib/automation-provenance-contract.mjs",
|
|
925
934
|
"lib/npm-update-invariants.mjs",
|
|
926
935
|
"lib/npm-update-rails-runtime-contract.mjs"
|
|
927
936
|
],
|
|
@@ -929,8 +938,9 @@
|
|
|
929
938
|
"children": []
|
|
930
939
|
},
|
|
931
940
|
"lib/npm-update-prepare.mjs": {
|
|
932
|
-
"sha256": "
|
|
941
|
+
"sha256": "f3a73f543898f7946e28e4ec8788eddb88b736a22d7bfdeed67dbb2456fd9796",
|
|
933
942
|
"staticImports": [
|
|
943
|
+
"lib/automation-provenance-contract.mjs",
|
|
934
944
|
"lib/github-attestation-verifier.mjs",
|
|
935
945
|
"lib/npm-update-bun.mjs",
|
|
936
946
|
"lib/npm-update-contract.mjs",
|
|
@@ -1056,7 +1066,7 @@
|
|
|
1056
1066
|
"children": []
|
|
1057
1067
|
},
|
|
1058
1068
|
"lib/npm-update-rails-runtime-contract.mjs": {
|
|
1059
|
-
"sha256": "
|
|
1069
|
+
"sha256": "5eb49f0cb4db244b387c119c0121ab81f4bb3f4621b263ab33885c09af04a1e9",
|
|
1060
1070
|
"staticImports": [
|
|
1061
1071
|
"lib/automation-provenance-contract.mjs",
|
|
1062
1072
|
"lib/github-attestation-verifier.mjs",
|
|
@@ -1165,8 +1175,9 @@
|
|
|
1165
1175
|
"children": []
|
|
1166
1176
|
},
|
|
1167
1177
|
"lib/npm-update-supersession.mjs": {
|
|
1168
|
-
"sha256": "
|
|
1178
|
+
"sha256": "c03d8282e3a3b9102937b1b4214c8189d6f166ae54c12a1bff0e2c03acbe18a5",
|
|
1169
1179
|
"staticImports": [
|
|
1180
|
+
"lib/automation-provenance-contract.mjs",
|
|
1170
1181
|
"lib/github-attestation-verifier.mjs",
|
|
1171
1182
|
"lib/npm-update-cancel-origin.mjs",
|
|
1172
1183
|
"lib/npm-update-cancellation-proof.mjs",
|
|
@@ -1323,7 +1334,7 @@
|
|
|
1323
1334
|
"children": []
|
|
1324
1335
|
},
|
|
1325
1336
|
"lisa-automation-provenance.mjs": {
|
|
1326
|
-
"sha256": "
|
|
1337
|
+
"sha256": "e77233323bf99c9a02a2ea42a07e07c065536645769c76e2e1f7ee49e9b1bb8a",
|
|
1327
1338
|
"staticImports": [
|
|
1328
1339
|
"lib/automation-provenance-contract.mjs",
|
|
1329
1340
|
"lib/automation-provenance-local.mjs",
|
|
@@ -1383,7 +1394,7 @@
|
|
|
1383
1394
|
"children": []
|
|
1384
1395
|
},
|
|
1385
1396
|
"lisa-npm-updater.mjs": {
|
|
1386
|
-
"sha256": "
|
|
1397
|
+
"sha256": "47615b9af49392489c33bd4983a7454b488e651d46c6a85b2e15caf47c327214",
|
|
1387
1398
|
"staticImports": [
|
|
1388
1399
|
"lib/github-attestation-verifier.mjs",
|
|
1389
1400
|
"lib/invoked-as-script.mjs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA2jFjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA89EjC,CAAC"}
|