@codyswann/lisa 4.23.13 → 4.23.15
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/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +5 -0
- package/dist/core/lisa.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 +2 -1
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +3 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +28 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +28 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +28 -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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +28 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +28 -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-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-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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-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-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-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-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/src/base/skills/lisa-secrets-access/scripts/providers.mjs +28 -1
|
@@ -303,13 +303,40 @@ export function normalizeRows(
|
|
|
303
303
|
return out;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Apply the reviewed `secrets.require` allowlist to the ordinary provider view.
|
|
308
|
+
*
|
|
309
|
+
* Omitted `require` keeps the provider grant as the boundary. Once a project
|
|
310
|
+
* names a required set, every other visible record is outside that project's
|
|
311
|
+
* declared need and must not resolve or materialize. Missing required names are
|
|
312
|
+
* refused here rather than becoming a smaller, apparently successful view.
|
|
313
|
+
* @param {Map<string, {value: string, note: string, id: string|null}>} selected Provider rows after grant narrowing.
|
|
314
|
+
* @param {string[]|null|undefined} required Exact required names, or no project allowlist.
|
|
315
|
+
* @returns {Map<string, {value: string, note: string, id: string|null}>} The declared provider view.
|
|
316
|
+
*/
|
|
317
|
+
export function selectRequired(selected, required) {
|
|
318
|
+
if (required === null || required === undefined) return selected;
|
|
319
|
+
|
|
320
|
+
const missing = required.filter(name => !selected.has(name));
|
|
321
|
+
if (missing.length > 0) {
|
|
322
|
+
throw new Error(
|
|
323
|
+
`required secret${missing.length === 1 ? "" : "s"} not found: ` +
|
|
324
|
+
`${missing.join(", ")}.\n` +
|
|
325
|
+
`Check the provider grant, secrets.narrow, and the exact names in ` +
|
|
326
|
+
`secrets.require.`
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return new Map(required.map(name => [name, selected.get(name)]));
|
|
331
|
+
}
|
|
332
|
+
|
|
306
333
|
/**
|
|
307
334
|
* Read and select in one step — the normal entry point for consumers.
|
|
308
335
|
* @param {object} cfg Resolved configuration.
|
|
309
336
|
* @returns {Map<string, {value: string, note: string, id: string|null}>} Selected secrets.
|
|
310
337
|
*/
|
|
311
338
|
export function fetchAll(cfg) {
|
|
312
|
-
return normalizeRows(fetchRaw(cfg), cfg.narrow);
|
|
339
|
+
return selectRequired(normalizeRows(fetchRaw(cfg), cfg.narrow), cfg.require);
|
|
313
340
|
}
|
|
314
341
|
|
|
315
342
|
/**
|