agentic-workflow-manager 9.11.1 → 9.11.2

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.
@@ -156,7 +156,6 @@ function spliceGenerated(markdown, generated) {
156
156
  exports.DOC_PATH = path_1.default.join(__dirname, '..', '..', 'docs', 'support-matrix.md');
157
157
  /* istanbul ignore next — entrypoint de CLI, ejercitado por el test via las funciones puras */
158
158
  if (require.main === module) {
159
- // eslint-disable-next-line @typescript-eslint/no-var-requires
160
159
  const fs = require('fs');
161
160
  const current = fs.readFileSync(exports.DOC_PATH, 'utf-8');
162
161
  fs.writeFileSync(exports.DOC_PATH, spliceGenerated(current, renderProviderTables()), 'utf-8');
@@ -40,7 +40,6 @@ const defaultDeps = {
40
40
  applyInstallPlan: install_transaction_1.applyInstallPlan,
41
41
  resyncInstalledHooks: resync_1.resyncInstalledHooks,
42
42
  offerSelfUpdate: async (mode) => {
43
- // eslint-disable-next-line @typescript-eslint/no-var-requires
44
43
  const { offerSelfUpdate: real } = require('../core/update-check');
45
44
  await real({ mode });
46
45
  },
@@ -77,7 +77,6 @@ describe('runExport (engine end-to-end)', () => {
77
77
  // La lectura sale exclusivamente de roots: un root vacío no resuelve nada.
78
78
  // Control negativo real: contentRoots() (el fallback al registry instalado)
79
79
  // no debe invocarse en absoluto cuando opts.roots viene dado explícitamente.
80
- // eslint-disable-next-line @typescript-eslint/no-var-requires
81
80
  const registries = require('../../../src/core/registries');
82
81
  const spy = jest.spyOn(registries, 'contentRoots');
83
82
  const empty = fs_1.default.mkdtempSync(path_1.default.join(os_1.default.tmpdir(), 'awm-empty-root-'));
@@ -7,7 +7,6 @@ const fs_1 = __importDefault(require("fs"));
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const os_1 = __importDefault(require("os"));
9
9
  const pack_1 = require("../../../src/core/export/pack");
10
- // eslint-disable-next-line @typescript-eslint/no-var-requires
11
10
  const childProcess = require('child_process');
12
11
  const okZip = (cwd, zipName) => {
13
12
  fs_1.default.writeFileSync(path_1.default.join(cwd, zipName), 'fake-zip');
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const child_process_1 = require("child_process");
7
+ const path_1 = __importDefault(require("path"));
8
+ // #171: the lint gate linted 14 files — all js/mjs — and exited 0 on a
9
+ // TypeScript CLI. `eslint.config.awm.mjs` imports a project config that does
10
+ // not exist, swallows the failure, and its remaining objects declare no
11
+ // `files`, so eslint's default universe (js/mjs/cjs) left every .ts out.
12
+ //
13
+ // The gate was green for months and the `lint` sensor certified on it, which
14
+ // `plan admit --verify-sensors` then consumes as the unattended handoff gate.
15
+ //
16
+ // This asserts on the SET OF FILES LINTED, never on the exit code. An exit-code
17
+ // assertion is exactly what let this survive: a lint that examines nothing
18
+ // exits 0.
19
+ const CLI_ROOT = path_1.default.resolve(__dirname, '../..');
20
+ /** One eslint run for the whole suite. Invoked through node against eslint's own
21
+ * js entrypoint rather than `npx`: on Windows `npx` resolves to `npx.cmd`, and
22
+ * `execFileSync` cannot execute a `.cmd` without a shell — the exact trap this
23
+ * repo already documents in tests/integration/published-doctor-evidence.e2e.test.ts,
24
+ * and the one this test hit on both Windows legs of its first CI run. Going
25
+ * through `process.execPath` needs no shell, so no argument escaping either. */
26
+ function lint() {
27
+ const raw = (0, child_process_1.execFileSync)(process.execPath, [
28
+ path_1.default.join(CLI_ROOT, 'node_modules', 'eslint', 'bin', 'eslint.js'),
29
+ '.', '--config', 'eslint.config.awm.mjs', '--format', 'json',
30
+ ], { cwd: CLI_ROOT, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 });
31
+ return JSON.parse(raw);
32
+ }
33
+ describe('the lint gate covers TypeScript (#171)', () => {
34
+ jest.setTimeout(10 * 60_000);
35
+ const results = lint();
36
+ const files = results.map(entry => entry.filePath);
37
+ const typescript = files.filter(file => file.endsWith('.ts'));
38
+ test('lints the TypeScript sources, not only the js/mjs tooling', () => {
39
+ // A floor, not a lock: adding sources must not fail this.
40
+ expect(typescript.length).toBeGreaterThan(400);
41
+ expect(typescript.some(file => file.includes(`${path_1.default.sep}src${path_1.default.sep}`))).toBe(true);
42
+ expect(typescript.some(file => file.includes(`${path_1.default.sep}tests${path_1.default.sep}`))).toBe(true);
43
+ });
44
+ test('lints this very file, so the assertion cannot be vacuous', () => {
45
+ expect(files).toContain(path_1.default.join(CLI_ROOT, 'tests', 'structural', 'lint-covers-typescript.test.ts'));
46
+ });
47
+ test('reports no unresolved rule references', () => {
48
+ // Four stale `eslint-disable @typescript-eslint/no-var-requires` comments
49
+ // survived precisely because .ts was never linted: eslint errors on a rule
50
+ // it cannot resolve, and nobody ever saw it. A new one must fail here
51
+ // rather than wait for the next person to turn the gate on.
52
+ const unresolved = results.flatMap(entry => entry.messages.filter(m => /Definition for rule .* was not found/.test(m.message))
53
+ .map(m => `${entry.filePath}: ${m.message}`));
54
+ expect(unresolved).toEqual([]);
55
+ });
56
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-workflow-manager",
3
- "version": "9.11.1",
3
+ "version": "9.11.2",
4
4
  "main": "dist/src/index.js",
5
5
  "bin": {
6
6
  "awm": "./dist/src/index.js"
@@ -59,6 +59,7 @@
59
59
  "@types/js-yaml": "4.0.9",
60
60
  "@types/node": "^25.3.0",
61
61
  "@types/semver": "^7.7.1",
62
+ "@typescript-eslint/parser": "^8.70.0",
62
63
  "dependency-cruiser": "16.10.4",
63
64
  "eslint": "10.8.1",
64
65
  "jest": "^30.2.0",
Binary file
Binary file