@otwld/workflow-cli 0.1.32 → 0.1.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otwld/workflow-cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,2 +1,2 @@
1
1
  /** Dependency remediation, collaboration and publication are owned by the agent. */
2
- export declare const auditPrompt = "You own this repository's dependency-audit PR and developer communication.\nRead AGENTS.md and relevant domain contexts first. Use pnpm only.\nUse gh and Git normally; GitHub access is configured. Never print credentials.\nRead the supplied audit report. A technical audit error is not evidence of a\nvulnerability: investigate it and report a diagnosis rather than invent a fix.\nFind the existing open audit PR (including older automation/pnpm-audit-* branches)\nand read its description, comments, checks and latest commits. Honor the pause\nlabel. Otherwise check out its current branch and preserve human contributions.\nIf there is no existing PR, create automation/pnpm-audit from the current default\nbranch. Configure Git identity from the authenticated GitHub account when needed\nand use gh auth setup-git to authenticate pushes. Never force-push, rewrite history,\nreset away human work, reopen closed PRs, merge or close a PR automatically.\nInstall repository dependencies before working. Progress from the smallest\nsufficient patch/update through minor upgrades, majors or package replacement.\nNew packages and source/configuration/test migrations are allowed when necessary.\nKeep changes focused. Do not hide findings through audit exceptions, higher audit\nthresholds, disabled CI, removed tests or weakened assertions. Preserve contracts.\nLook for related Renovate PRs and link useful ones; their existence does not block\nyour work. Use judgment rather than a title-matching rule.\nRun focused checks useful for your changes, including pnpm audit. The ordinary PR\nCI owns complete validation; do not duplicate the full CI or wait for it to finish.\nCommit and push useful changes even if the correction is incomplete or checks fail.\nCreate a regular non-draft PR, or update the existing one. Its body must retain the\nsupplied audit marker and explain the changes, broader migrations and limitations.\nOn every attempt, publish context and check results as a PR comment including the\nexact execution URL, even if you made no new commit. Read previous feedback before\nretrying. If the audit was already fixed on the PR, report that and preserve it.\nIf there is no useful change and no PR, create or update one open diagnostic issue\nidentified by the audit marker. Include the execution URL and actionable findings.\nIf a useful unpublished change remains near the deadline, prioritize committing,\npushing and opening/updating its PR over further investigation. A timeout does not\nmake the patch invalid. Finish with a response summarizing changes, checks,\nremaining findings and the PR or issue URL. Never merge automatically.\n";
2
+ export declare const auditPrompt = "You own this repository's dependency-audit PR and developer communication.\nRead AGENTS.md and relevant domain contexts first. Use pnpm only.\nUse gh and Git normally; GitHub access is configured. Never print credentials.\nRead the supplied audit report. A technical audit error is not evidence of a\nvulnerability: investigate it and report a diagnosis rather than invent a fix.\nFind the existing open audit PR (including older automation/pnpm-audit-* branches)\nand read its description, comments, checks and latest commits. Honor the pause\nlabel. Otherwise check out its current branch and preserve human contributions.\nIf there is no existing PR, create automation/pnpm-audit from the current default\nbranch. Configure Git identity from the authenticated GitHub account when needed\nand use gh auth setup-git to authenticate pushes. Never force-push, rewrite history,\nreset away human work, reopen closed PRs, merge or close a PR automatically.\nInstall repository dependencies before working. Progress from the smallest\nsufficient patch/update through minor upgrades, majors or package replacement.\nNew packages and source/configuration/test migrations are allowed when necessary.\nKeep changes focused. Never raise audit thresholds, disable CI, remove tests or\nweaken assertions. Preserve repository contracts.\nOn EVERY attempt, review ALL existing audit exceptions, including manual entries,\nlegacy settings and exceptions on the existing PR. Inspect the effective pnpm\nconfiguration after checking out that PR; the supplied snapshot is only a starting\npoint. Never silently activate legacy settings ignored by this pnpm version.\nVerify each ignored advisory against current registry releases and its upstream\nsecurity advisory. Check the installed dependency paths with exceptions temporarily\nremoved in an isolated copy/configuration so a green filtered audit is not proof\nof a fix. Report each exception as removed, retained with evidence, or unverified.\nWhen a corrected version is published, attempt the update/migration and remove the\nexception in the SAME change once the fix is verified. Remove obsolete exceptions\nwhen an unfiltered check proves the affected dependency is no longer present.\nIf migration or verification is incomplete, retain an existing exception with an\nexplicit diagnosis. Do not silently skip exceptions when the budget expires.\nA NEW exception is allowed ONLY after confirming that NO published version fixes\nthat advisory. Verify both the registry releases and the upstream advisory; cite\nversions and sources. A breaking major, failed checks, exhausted budget, missing\nnetwork access or uncertainty does NOT justify a new exception. Prefer actual\nfixes first; do not add a permanent fork solely to make the audit green.\nAdd only the exact GHSA to pnpm's supported ignore list, following the repository's\nexisting configuration. Keep a short reason and source link beside the entry.\nDo not ignore an entire package, severity level, registry failure or all unfixable\nadvisories. Reuse that configuration as the sole durable exception inventory;\ndo not introduce a second tracking file. Put the detailed evidence and current\nreview in the PR/comment or existing diagnostic issue. Do not create commits just\nto refresh review dates when the exception and evidence are otherwise unchanged.\nLook for related Renovate PRs and link useful ones; their existence does not block\nyour work. Use judgment rather than a title-matching rule.\nRun focused checks useful for your changes, including pnpm audit. The ordinary PR\nCI owns complete validation; do not duplicate the full CI or wait for it to finish.\nCommit and push useful changes even if the correction is incomplete or checks fail.\nCreate a regular non-draft PR, or update the existing one. Its body must retain the\nsupplied audit marker and explain the changes, broader migrations and limitations.\nOn every attempt, publish context and check results as a PR comment including the\nexact execution URL, even if you made no new commit. Read previous feedback before\nretrying. If the audit is green on the PR, still review all exceptions before reporting no further work.\nIf there is no useful change and no PR, create or update one open diagnostic issue\nidentified by the audit marker. Include the execution URL and actionable findings.\nIf a useful unpublished change remains near the deadline, prioritize committing,\npushing and opening/updating its PR over further investigation. A timeout does not\nmake the patch invalid. Finish with a response summarizing changes, checks,\nremaining findings and the PR or issue URL. Never merge automatically.\n";
@@ -14,8 +14,33 @@ reset away human work, reopen closed PRs, merge or close a PR automatically.
14
14
  Install repository dependencies before working. Progress from the smallest
15
15
  sufficient patch/update through minor upgrades, majors or package replacement.
16
16
  New packages and source/configuration/test migrations are allowed when necessary.
17
- Keep changes focused. Do not hide findings through audit exceptions, higher audit
18
- thresholds, disabled CI, removed tests or weakened assertions. Preserve contracts.
17
+ Keep changes focused. Never raise audit thresholds, disable CI, remove tests or
18
+ weaken assertions. Preserve repository contracts.
19
+ On EVERY attempt, review ALL existing audit exceptions, including manual entries,
20
+ legacy settings and exceptions on the existing PR. Inspect the effective pnpm
21
+ configuration after checking out that PR; the supplied snapshot is only a starting
22
+ point. Never silently activate legacy settings ignored by this pnpm version.
23
+ Verify each ignored advisory against current registry releases and its upstream
24
+ security advisory. Check the installed dependency paths with exceptions temporarily
25
+ removed in an isolated copy/configuration so a green filtered audit is not proof
26
+ of a fix. Report each exception as removed, retained with evidence, or unverified.
27
+ When a corrected version is published, attempt the update/migration and remove the
28
+ exception in the SAME change once the fix is verified. Remove obsolete exceptions
29
+ when an unfiltered check proves the affected dependency is no longer present.
30
+ If migration or verification is incomplete, retain an existing exception with an
31
+ explicit diagnosis. Do not silently skip exceptions when the budget expires.
32
+ A NEW exception is allowed ONLY after confirming that NO published version fixes
33
+ that advisory. Verify both the registry releases and the upstream advisory; cite
34
+ versions and sources. A breaking major, failed checks, exhausted budget, missing
35
+ network access or uncertainty does NOT justify a new exception. Prefer actual
36
+ fixes first; do not add a permanent fork solely to make the audit green.
37
+ Add only the exact GHSA to pnpm's supported ignore list, following the repository's
38
+ existing configuration. Keep a short reason and source link beside the entry.
39
+ Do not ignore an entire package, severity level, registry failure or all unfixable
40
+ advisories. Reuse that configuration as the sole durable exception inventory;
41
+ do not introduce a second tracking file. Put the detailed evidence and current
42
+ review in the PR/comment or existing diagnostic issue. Do not create commits just
43
+ to refresh review dates when the exception and evidence are otherwise unchanged.
19
44
  Look for related Renovate PRs and link useful ones; their existence does not block
20
45
  your work. Use judgment rather than a title-matching rule.
21
46
  Run focused checks useful for your changes, including pnpm audit. The ordinary PR
@@ -25,7 +50,7 @@ Create a regular non-draft PR, or update the existing one. Its body must retain
25
50
  supplied audit marker and explain the changes, broader migrations and limitations.
26
51
  On every attempt, publish context and check results as a PR comment including the
27
52
  exact execution URL, even if you made no new commit. Read previous feedback before
28
- retrying. If the audit was already fixed on the PR, report that and preserve it.
53
+ retrying. If the audit is green on the PR, still review all exceptions before reporting no further work.
29
54
  If there is no useful change and no PR, create or update one open diagnostic issue
30
55
  identified by the audit marker. Include the execution URL and actionable findings.
31
56
  If a useful unpublished change remains near the deadline, prioritize committing,
@@ -1 +1 @@
1
- {"version":3,"file":"audit-prompt.js","sourceRoot":"","sources":["../../../../apps/workflow-cli/src/audit-prompt.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1B,CAAC"}
1
+ {"version":3,"file":"audit-prompt.js","sourceRoot":"","sources":["../../../../apps/workflow-cli/src/audit-prompt.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1B,CAAC"}
package/src/audit.d.ts CHANGED
@@ -7,6 +7,12 @@ export declare function audit(): {
7
7
  status: 'clean' | 'vulnerable';
8
8
  report: unknown;
9
9
  };
10
+ /**
11
+ * Snapshot only audit exceptions, without collecting registry credentials.
12
+ * @param cwd - Consumer workspace whose effective pnpm settings are inspected.
13
+ * @returns Effective exception settings and legacy manifest entries for agent review.
14
+ */
15
+ export declare function auditExceptions(cwd?: string): Record<string, unknown>;
10
16
  /**
11
17
  * Prepare one prompt-driven mission, or ensure its developer-facing diagnosis.
12
18
  * @param phase - Prepare or report.
package/src/audit.js CHANGED
@@ -2,7 +2,7 @@ import { execFileSync, spawnSync } from 'node:child_process';
2
2
  import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync, } from 'node:fs';
3
3
  import { join, resolve } from 'node:path';
4
4
  import { executable } from './executable.js';
5
- import { classifyAudit } from './audit-policy.js';
5
+ import { classifyAudit, record } from './audit-policy.js';
6
6
  import { auditPrompt } from './audit-prompt.js';
7
7
  import { auditMarker, auditPauseLabel, auditPull, auditRunUrl, ensureAuditDiagnostic, } from './audit-github.js';
8
8
  /**
@@ -28,6 +28,38 @@ export function audit() {
28
28
  }
29
29
  return { status, report };
30
30
  }
31
+ /**
32
+ * Snapshot only audit exceptions, without collecting registry credentials.
33
+ * @param cwd - Consumer workspace whose effective pnpm settings are inspected.
34
+ * @returns Effective exception settings and legacy manifest entries for agent review.
35
+ */
36
+ export function auditExceptions(cwd = process.cwd()) {
37
+ const exceptions = {};
38
+ for (const key of ['auditConfig', 'audit']) {
39
+ const text = execFileSync(executable('pnpm'), ['config', 'get', key, '--json'], {
40
+ cwd,
41
+ encoding: 'utf8',
42
+ maxBuffer: 1024 * 1024,
43
+ stdio: ['ignore', 'pipe', 'pipe'],
44
+ }).trim();
45
+ const config = text && text !== 'undefined' ? JSON.parse(text) : {};
46
+ collectExceptions(exceptions, `Effective pnpm ${key}`, config);
47
+ }
48
+ const path = join(cwd, 'package.json');
49
+ if (existsSync(path)) {
50
+ const manifest = record(JSON.parse(readFileSync(path, 'utf8')));
51
+ const legacy = record(manifest['pnpm'] || {})['auditConfig'];
52
+ collectExceptions(exceptions, 'package.json pnpm.auditConfig (legacy; may be inactive)', legacy);
53
+ }
54
+ return exceptions;
55
+ }
56
+ function collectExceptions(exceptions, source, config) {
57
+ const entries = Object.entries(record(config || {})).filter(([key, value]) => key.startsWith('ignore') &&
58
+ (Array.isArray(value) ? value.length > 0 : Boolean(value)));
59
+ if (entries.length) {
60
+ exceptions[source] = Object.fromEntries(entries);
61
+ }
62
+ }
31
63
  /**
32
64
  * Prepare one prompt-driven mission, or ensure its developer-facing diagnosis.
33
65
  * @param phase - Prepare or report.
@@ -52,7 +84,9 @@ export async function runAuditCommand(phase, env) {
52
84
  return;
53
85
  }
54
86
  let status;
87
+ let exceptions = {};
55
88
  try {
89
+ exceptions = auditExceptions();
56
90
  const result = audit();
57
91
  status = result.status;
58
92
  writeFileSync(join(directory, 'audit.json'), JSON.stringify(result.report, null, 2));
@@ -61,13 +95,16 @@ export async function runAuditCommand(phase, env) {
61
95
  status = 'technical-error';
62
96
  writeFileSync(join(directory, 'audit.json'), JSON.stringify({ error: String(error) }));
63
97
  }
64
- output(env, 'status', status);
98
+ const review = status === 'clean' && (Object.keys(exceptions).length > 0 || Boolean(pull));
99
+ output(env, 'status', review ? 'review' : status);
65
100
  const context = `\n\nExecution context (applies also to a custom prompt):
66
101
  Repository: ${env.GITHUB_REPOSITORY}
67
102
  Default branch: ${env.DEFAULT_BRANCH}
68
103
  Mission budget: ${env.CODEX_TIMEOUT_MINUTES || 20} minutes
69
104
  Initial audit: ${status}
70
105
  Audit report: ${join(directory, 'audit.json')}
106
+ Audit exceptions to investigate (read-only snapshot, not a second registry):
107
+ ${JSON.stringify(exceptions, null, 2)}
71
108
  Execution URL: ${auditRunUrl(env)}
72
109
  Audit marker for PR/diagnostic bodies: ${auditMarker}
73
110
  Pause label: ${auditPauseLabel}
package/src/audit.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../apps/workflow-cli/src/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,WAAW,EACX,eAAe,EACf,SAAS,EACT,WAAW,EACX,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,MAAM,UAAU,KAAK;IACnB,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;QAChE,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;KAC5B,CAAC,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