diff --git a/.agents/pm/history/pm-graph-yuzr.jsonl b/.agents/pm/history/pm-graph-yuzr.jsonl new file mode 100644 index 0000000..8548f59 --- /dev/null +++ b/.agents/pm/history/pm-graph-yuzr.jsonl @@ -0,0 +1,9 @@ +{"hash_algorithm":"sha256","ts":"2026-09-22T05:08:23.357Z","author":"pi-agent","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.3:cloud","agent_model_source":"environment","agent_instance":"00bb699c302e69b09b8e86f3","agent_provenance":{"model":{"value":"glm-5.3:cloud","source":"environment"},"effort":null,"role":{"value":"implementer","source":"argv"},"topic":null},"op":"create","patch":[{"op":"add","path":"/metadata/id","value":"pm-graph-yuzr"},{"op":"add","path":"/metadata/title","value":"Certify pm CLI 2026.9.21 and move onto the canonical pm-ops merge-driver, lint and duplication gates"},{"op":"add","path":"/metadata/description","value":"Adopt pm CLI 2026.9.21, pin @unbrained/pm-cli 2026.9.21 / pm-changelog / pm-ops exactly, absorb open Dependabot PRs, replace the vendored merge-driver prepare hook with the thin pm-ops/merge-driver launcher, add the canonical lint (pm-ops/eslint) and duplication (pm-ops/jscpd) gates with zero findings, fix the ~81 'any' type sites against real neo4j-driver types, and wire CI to require merge drivers. Companion epic pm-cli-website-5s6z."},{"op":"add","path":"/metadata/type","value":"Task"},{"op":"add","path":"/metadata/status","value":"open"},{"op":"add","path":"/metadata/priority","value":1},{"op":"add","path":"/metadata/tags","value":["certify","multi-agent","pm-cli-2026.9.21","quality"]},{"op":"add","path":"/metadata/created_at","value":"2026-09-22T05:08:23.357Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-09-22T05:08:23.357Z"},{"op":"add","path":"/metadata/author","value":"pi-agent"},{"op":"add","path":"/metadata/acceptance_criteria","value":"All three devDependency pins exact and verified in package.json + package-lock.json; npm run lint and npm run duplication exit 0 with 0 findings; pm health --strict-exit --require-merge-drivers exits 0; npm run release:check exits 0"}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"476fa1ddbbe9df9624d533f42e693f5d6402cfd768581c0e9121f05ff3fdc636","item_hash_version":3,"message":"","event_class":"substantive","record_hash_version":1,"record_hash":"dc3d65e90659ca33caf0d934a5e7b0af7073412570d9693c6284d47aabaaedb2"} +{"hash_algorithm":"sha256","ts":"2026-09-22T05:08:26.655Z","author":"pi-agent","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.3:cloud","agent_model_source":"environment","agent_instance":"00bb699c302e69b09b8e86f3","agent_provenance":{"model":{"value":"glm-5.3:cloud","source":"environment"},"effort":null,"role":{"value":"implementer","source":"argv"},"topic":null},"op":"claim","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-09-22T05:08:26.655Z"},{"op":"add","path":"/metadata/assignee","value":"pi-agent"},{"op":"add","path":"/metadata/claim_principal","value":"pi-agent"}],"before_hash":"476fa1ddbbe9df9624d533f42e693f5d6402cfd768581c0e9121f05ff3fdc636","after_hash":"47e1b7677fb6724e2118cb4beadf1f20f7f5c7cf6651bf744b350ab96d6687c5","item_hash_version":3,"event_class":"substantive","record_hash_version":1,"record_hash":"e1cfb6a41291e35c339b719cf1655909d10f76f0756820696c0aa4c87f5a30cd"} +{"hash_algorithm":"sha256","ts":"2026-09-22T05:08:27.576Z","author":"pi-agent","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.3:cloud","agent_model_source":"environment","agent_instance":"00bb699c302e69b09b8e86f3","agent_provenance":{"model":{"value":"glm-5.3:cloud","source":"environment"},"effort":null,"role":{"value":"implementer","source":"argv"},"topic":null},"op":"update","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-09-22T05:08:27.576Z"},{"op":"replace","path":"/metadata/status","value":"in_progress"}],"before_hash":"47e1b7677fb6724e2118cb4beadf1f20f7f5c7cf6651bf744b350ab96d6687c5","after_hash":"8b8a3110985701caa469ba87d3ee7f1c467d5be7a5ba5ba9f535b15d3ea56896","item_hash_version":3,"event_class":"substantive","record_hash_version":1,"record_hash":"47ab356d2af497843a855a18030721d6106c84b1aa701b2b81cc41e082a3be2e"} +{"hash_algorithm":"sha256","ts":"2026-09-22T05:09:44.627Z","author":"pi-agent","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.3:cloud","agent_model_source":"environment","agent_instance":"00bb699c302e69b09b8e86f3","agent_provenance":{"model":{"value":"glm-5.3:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"comment_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-09-22T05:09:44.627Z"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-09-22T05:09:44.627Z","author":"pi-agent","text":"Baseline measured with canonical pm-ops 2026.9.18 gates run directly (launchers not yet created): lint 86 errors (83 no-restricted-syntax explicit-any, 1 no-duplicate-imports in test/impact-command.test.ts:16 area, 2 require-atomic-updates in src/index.ts); duplication 6.22% duplicated lines (789/12675), 44 sources, 80 clone pairs, threshold 0. Findings concentrated in test/*.test.ts and src/index.ts. Pins verified: @unbrained/pm-cli 2026.9.21, pm-changelog 2026.9.18, pm-ops 2026.9.18 in package.json + package-lock.json; @types/node lockfile 26.6.1 (Dependabot #107 landed exactly, range ^26.2.0 restored); codeql-action SHAs bumped per #111."}]}],"before_hash":"8b8a3110985701caa469ba87d3ee7f1c467d5be7a5ba5ba9f535b15d3ea56896","after_hash":"a7afcaa41582eb9b1a3d969b40154aa4e176b1f1bf82f3b29e029648b26a307c","item_hash_version":3,"event_class":"substantive","record_hash_version":1,"record_hash":"3485a183856127d94373d5d9badfe334109af901bbf1d5a05153b894f141cacc"} +{"hash_algorithm":"sha256","ts":"2026-09-23T00:03:36.230Z","author":"pi-glm-pm-graph","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.2:cloud","agent_model_source":"environment","agent_instance":"bbe3833f6765fc35cafe0956","agent_provenance":{"model":{"value":"glm-5.2:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"comment_add","patch":[{"op":"add","path":"/metadata/comments/1","value":{"created_at":"2026-09-23T00:03:36.230Z","author":"pi-glm-pm-graph","text":"Duplication gate reduced from 5.6% to 0% (74 to 0 clone pairs) by extracting shared helpers into test/helpers.ts (withNeo4jQueryTest, withCommandWorkspace, setupChainWorkspace, setupCycleWorkspace, setupBareWorkspace, activateWithRecording, captureStdoutThrow, expectCommandError, expectCommandErrorMulti, expectExporterReject, runExportRaw, createChain, synthNode/synthRel/synthGraph, NEO4J_FAIL_ENV, setNeo4jTestEnv, applyEnv, CmdResult/CommandError types). src/index.ts: extracted unwrapNeo4jInteger (toNumber+readNumberProperty), nodeLabelParts (renderDot+renderPlantuml), orderedNodeSet+collectBidirectionalEdges (impactSubgraph+impactSubgraphFromNodeSet), loadShapedAnalytics (cycles+critical-path+topo-sort), wrapCommandError (export catch blocks). Added docstrings to 8 type aliases and 3 functions. Lint exit 0, duplication 0%, release:check exit 0 (287 tests, coverage 100/100/100), pm health --strict-exit exit 0."}},{"op":"replace","path":"/metadata/updated_at","value":"2026-09-23T00:03:36.230Z"}],"before_hash":"a7afcaa41582eb9b1a3d969b40154aa4e176b1f1bf82f3b29e029648b26a307c","after_hash":"be2afbf55096a869843418ebdf4c7dfdaff0d2ebe6e86403b40a2f918aab11c9","item_hash_version":3,"event_class":"substantive","record_hash_version":1,"record_hash":"7c33ca5606fbc6b07aa3693060d46f64654bb653c2a414a779a32a41a0b6eea8"} +{"hash_algorithm":"sha256","ts":"2026-09-23T00:03:39.691Z","author":"pi-glm-pm-graph","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.2:cloud","agent_model_source":"environment","agent_instance":"bbe3833f6765fc35cafe0956","agent_provenance":{"model":{"value":"glm-5.2:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"files_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-09-23T00:03:39.691Z"},{"op":"add","path":"/metadata/files","value":[{"path":"test/helpers.ts","scope":"project"}]}],"before_hash":"be2afbf55096a869843418ebdf4c7dfdaff0d2ebe6e86403b40a2f918aab11c9","after_hash":"6661ef592892fe85aab5d25500076964c9f4d778fa77aee95d6863001ace25ab","item_hash_version":3,"event_class":"maintenance","record_hash_version":1,"record_hash":"7783a7a35429a231995ae6c8586e7465973346347955c894a6ecb5c44a6eff76"} +{"hash_algorithm":"sha256","ts":"2026-09-23T00:03:40.281Z","author":"pi-glm-pm-graph","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.2:cloud","agent_model_source":"environment","agent_instance":"bbe3833f6765fc35cafe0956","agent_provenance":{"model":{"value":"glm-5.2:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"files_add","patch":[{"op":"replace","path":"/metadata/files/0/path","value":"src/index.ts"},{"op":"add","path":"/metadata/files/1","value":{"path":"test/helpers.ts","scope":"project"}},{"op":"replace","path":"/metadata/updated_at","value":"2026-09-23T00:03:40.281Z"}],"before_hash":"6661ef592892fe85aab5d25500076964c9f4d778fa77aee95d6863001ace25ab","after_hash":"c99589e85bc84860c4d0a60336ed9ffdfbd089809e2b63abab00f397e8f6c6a9","item_hash_version":3,"event_class":"maintenance","record_hash_version":1,"record_hash":"c2be4e53758a79302454cb0f73c1d93c80a4b11d9a69bf25c606fce34dd7b15f"} +{"hash_algorithm":"sha256","ts":"2026-09-23T00:03:40.850Z","author":"pi-glm-pm-graph","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.2:cloud","agent_model_source":"environment","agent_instance":"bbe3833f6765fc35cafe0956","agent_provenance":{"model":{"value":"glm-5.2:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"files_add","patch":[{"op":"replace","path":"/metadata/files/1/path","value":"test/command-surface.test.ts"},{"op":"add","path":"/metadata/files/2","value":{"path":"test/helpers.ts","scope":"project"}},{"op":"replace","path":"/metadata/updated_at","value":"2026-09-23T00:03:40.850Z"}],"before_hash":"c99589e85bc84860c4d0a60336ed9ffdfbd089809e2b63abab00f397e8f6c6a9","after_hash":"3651dfd3dd8fba35585afc263a502521dfece40a852d6498556021ef4fd1a250","item_hash_version":3,"event_class":"maintenance","record_hash_version":1,"record_hash":"8761eeda51670806fe0d215aff53c42a51fb374807153f7e11feb10eb047148a"} +{"hash_algorithm":"sha256","ts":"2026-09-23T00:03:44.244Z","author":"pi-glm-pm-graph","author_source":"asserted","agent_harness":"pi","agent_model":"glm-5.2:cloud","agent_model_source":"environment","agent_instance":"bbe3833f6765fc35cafe0956","agent_provenance":{"model":{"value":"glm-5.2:cloud","source":"environment"},"effort":null,"role":null,"topic":null},"op":"tests_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-09-23T00:03:44.244Z"},{"op":"add","path":"/metadata/tests","value":[{"command":"npm run release:check","scope":"project","provenance":{"author":"pi-glm-pm-graph","created_at":"2026-09-23T00:03:44.219Z","source_kind":"local_mutation","source_ref":"pm-cli-2026-9-21-canonical-pm-ops-gates"}}]}],"before_hash":"3651dfd3dd8fba35585afc263a502521dfece40a852d6498556021ef4fd1a250","after_hash":"f081632a526100b2a8e7c5034bec9a7cd00e2c0d260174a68b5132d079cecf43","item_hash_version":3,"event_class":"maintenance","record_hash_version":1,"record_hash":"61ff3342399198dee7cffb24dbf07f6e42920a7f4670e6a8153b608be980d731"} diff --git a/.agents/pm/tasks/pm-graph-yuzr.toon b/.agents/pm/tasks/pm-graph-yuzr.toon new file mode 100644 index 0000000..2d437cc --- /dev/null +++ b/.agents/pm/tasks/pm-graph-yuzr.toon @@ -0,0 +1,23 @@ +id: pm-graph-yuzr +title: "Certify pm CLI 2026.9.21 and move onto the canonical pm-ops merge-driver, lint and duplication gates" +description: "Adopt pm CLI 2026.9.21, pin @unbrained/pm-cli 2026.9.21 / pm-changelog / pm-ops exactly, absorb open Dependabot PRs, replace the vendored merge-driver prepare hook with the thin pm-ops/merge-driver launcher, add the canonical lint (pm-ops/eslint) and duplication (pm-ops/jscpd) gates with zero findings, fix the ~81 'any' type sites against real neo4j-driver types, and wire CI to require merge drivers. Companion epic pm-cli-website-5s6z." +type: Task +status: in_progress +priority: 1 +tags[4]: certify,multi-agent,pm-cli-2026.9.21,quality +created_at: "2026-09-22T05:08:23.357Z" +updated_at: "2026-09-23T00:03:44.244Z" +assignee: pi-agent +claim_principal: pi-agent +author: pi-agent +acceptance_criteria: "All three devDependency pins exact and verified in package.json + package-lock.json; npm run lint and npm run duplication exit 0 with 0 findings; pm health --strict-exit --require-merge-drivers exits 0; npm run release:check exits 0" +comments[2]{created_at,author,text}: + "2026-09-22T05:09:44.627Z",pi-agent,"Baseline measured with canonical pm-ops 2026.9.18 gates run directly (launchers not yet created): lint 86 errors (83 no-restricted-syntax explicit-any, 1 no-duplicate-imports in test/impact-command.test.ts:16 area, 2 require-atomic-updates in src/index.ts); duplication 6.22% duplicated lines (789/12675), 44 sources, 80 clone pairs, threshold 0. Findings concentrated in test/*.test.ts and src/index.ts. Pins verified: @unbrained/pm-cli 2026.9.21, pm-changelog 2026.9.18, pm-ops 2026.9.18 in package.json + package-lock.json; @types/node lockfile 26.6.1 (Dependabot #107 landed exactly, range ^26.2.0 restored); codeql-action SHAs bumped per #111." + "2026-09-23T00:03:36.230Z",pi-glm-pm-graph,"Duplication gate reduced from 5.6% to 0% (74 to 0 clone pairs) by extracting shared helpers into test/helpers.ts (withNeo4jQueryTest, withCommandWorkspace, setupChainWorkspace, setupCycleWorkspace, setupBareWorkspace, activateWithRecording, captureStdoutThrow, expectCommandError, expectCommandErrorMulti, expectExporterReject, runExportRaw, createChain, synthNode/synthRel/synthGraph, NEO4J_FAIL_ENV, setNeo4jTestEnv, applyEnv, CmdResult/CommandError types). src/index.ts: extracted unwrapNeo4jInteger (toNumber+readNumberProperty), nodeLabelParts (renderDot+renderPlantuml), orderedNodeSet+collectBidirectionalEdges (impactSubgraph+impactSubgraphFromNodeSet), loadShapedAnalytics (cycles+critical-path+topo-sort), wrapCommandError (export catch blocks). Added docstrings to 8 type aliases and 3 functions. Lint exit 0, duplication 0%, release:check exit 0 (287 tests, coverage 100/100/100), pm health --strict-exit exit 0." +files[3]{path,scope}: + src/index.ts,project + test/command-surface.test.ts,project + test/helpers.ts,project +tests[1]{command,scope,provenance{author,created_at,source_kind,source_ref}}: + "npm run release:check",project,pi-glm-pm-graph,"2026-09-23T00:03:44.219Z",local_mutation,pm-cli-2026-9-21-canonical-pm-ops-gates +body: "" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7d721c..e10074f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,11 +75,17 @@ jobs: # # `--strict-exit` is load-bearing: non-strict health may report findings while # still exiting successfully. - timeout --signal=TERM --kill-after=10s 120s ./node_modules/.bin/pm health --strict-exit + timeout --signal=TERM --kill-after=10s 120s ./node_modules/.bin/pm health --strict-exit --require-merge-drivers - name: Type check run: npm run typecheck + - name: Lint with the canonical fleet policy + run: npm run lint + + - name: Duplication gate + run: npm run duplication + - name: Build and verify committed output is current shell: bash run: | @@ -157,10 +163,14 @@ jobs: node-version: 22 cache: npm - # npm ci runs the production prepare lifecycle through cmd.exe before the - # adversarial fixture below exercises spaces and percent-delimited paths. + # npm ci runs the production prepare lifecycle (the thin launcher over + # pm-ops/merge-driver) through cmd.exe, and the health check below fails + # unless that run registered the drivers .gitattributes declares. - name: Install dependencies and merge drivers run: npm ci + - name: Verify the prepare lifecycle registered the merge drivers + run: npx pm health --strict-exit --require-merge-drivers + - name: Exercise the real Windows command parser run: node --test test/windows-prepare.integration.ts diff --git a/README.md b/README.md index 1fd781a..c5e9bcf 100644 --- a/README.md +++ b/README.md @@ -491,9 +491,12 @@ This package supports GitHub, npm, and Bun-compatible installs. Publication rema This repo tracks its project management in `.agents/pm/` and ships a committed `.gitattributes` that maps those tracker artifacts to pm-cli's field-aware Git merge drivers, so concurrent-branch tracker edits merge cleanly instead of hard-conflicting. The driver definitions live in per-clone -Git config; `npm install` / `npm ci` wires them automatically via the `prepare` script (an erasable TypeScript Node guard, `scripts/prepare-merge-driver.ts`: it runs -`pm merge install` only when the `pm` CLI is on `PATH`, and no-ops cleanly otherwise so -production / `--omit=dev` installs are not broken; being Node-based it behaves identically +Git config; `npm install` / `npm ci` wires them automatically via the `prepare` script (a thin TypeScript +launcher, `scripts/prepare-merge-driver.ts`, over the canonical `pm-ops/merge-driver` export: it runs +`pm merge install` only when the `pm` CLI is on `PATH`, and no-ops cleanly when `pm` is absent. +Registry installs of this package never run `prepare`; a production install of a clone +(`npm ci --omit=dev`) omits `pm-ops` too, so it must pass `--ignore-scripts` (the guarded launcher is +tracked as companion item pm-cli-website-xy19); being Node-based it behaves identically on POSIX shells and Windows `cmd.exe`). To (re)run manually: `npm run merge:install`. After merging a branch that touched `.agents/pm/`, reconcile any residual history-hash drift with diff --git a/dist/index.d.ts b/dist/index.d.ts index 738f029..2611556 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,5 +1,6 @@ import { type Exporter } from "@unbrained/pm-cli/sdk"; -type CommandContext = { +/** Context passed to extension command handlers by the pm CLI host. */ +export type CommandContext = { command?: string; args?: string[]; cwd?: string; @@ -9,13 +10,15 @@ type CommandContext = { options?: Record; global?: Record; }; -type ExtensionCommandArgumentDefinition = { +/** Definition of a positional argument accepted by an extension command. */ +export type ExtensionCommandArgumentDefinition = { name: string; required?: boolean; variadic?: boolean; description?: string; }; -type RegisterCommand = { +/** Shape of a command registered by an extension via `registerCommand`. */ +export type RegisterCommand = { name: string; description: string; run: (context: CommandContext) => Promise; @@ -24,7 +27,8 @@ type RegisterCommand = { examples?: string[]; failure_hints?: string[]; }; -type ServiceOverrideContext = { +/** Context passed to a service-override callback by the pm CLI host. */ +export type ServiceOverrideContext = { service: string; command?: string; args?: string[]; @@ -33,23 +37,27 @@ type ServiceOverrideContext = { pm_root?: string; payload?: unknown; }; -type ExtensionApi = { +/** API surface the pm CLI host exposes to extensions for registration. */ +export type ExtensionApi = { registerCommand(command: RegisterCommand): void; registerExporter(name: string, exporter: Exporter): void; registerService(service: "output_format" | "error_format" | "help_format" | "lock_acquire" | "lock_release" | "history_append" | "item_store_write" | "item_store_delete" | "context_relevance", override: (context: ServiceOverrideContext) => unknown): void; }; -type GraphNode = { +/** A node in the workspace dependency graph (an item or a facet). */ +export type GraphNode = { id: string; labels: string[]; properties: Record; }; -type GraphRelationship = { +/** A directed relationship between two graph nodes. */ +export type GraphRelationship = { from: string; to: string; type: string; properties: Record; }; -type Graph = { +/** The full workspace dependency graph: nodes, relationships, and metadata. */ +export type Graph = { generatedAt: string; workspace: string; projectKey: string; @@ -228,14 +236,9 @@ export declare function cyclesSubgraph(graph: Graph, cycles: string[][]): Graph; */ export declare function mapImpactDirection(logical: string): "incoming" | "outgoing" | "both"; /** - * Build the impact subgraph for the canonical `pm graph impact` result: the - * root node plus every node on every returned `path` (affected items and their - * intermediate hops) and the structural edges along those paths. Each - * consecutive path pair contributes both `u->v` and `v->u` candidate edge - * keys; `projectSubgraph` keeps only the keys that match a real structural - * relationship in the source graph, so the traversal direction of the path - * (which differs between `incoming`/`outgoing`) never fabricates edges. The - * root is always the first node so diagrams anchor on it. + * Build the impact subgraph from canonical traversal paths: the root plus + * all path nodes, with bidirectional edges between consecutive path nodes + * that exist in the source graph. The root always anchors the diagram. */ export declare function impactSubgraph(graph: Graph, rootId: string, affected: Array<{ id: string; @@ -340,13 +343,8 @@ export declare function explainItem(graph: Graph, id: string): ExplainReport | n */ export declare function analyzeGraph(graph: Graph, topN?: number): AnalyzeReport; /** - * Extension entry point: register the graph commands and output service. - * - * Registers an `output_format` service override that unwraps the raw-string - * marker a `pm-graph export` result carries, so the host renders the document - * verbatim instead of re-encoding it; the override defers (`{ handled: false }`) - * for every other command so default rendering is untouched. Then registers - * each pm-graph command (ping, export, …) against the host API. + * Register every pm-graph command, exporter, and service override with the + * pm CLI host. Called once at extension load time. */ export declare function activate(api: ExtensionApi): void; declare const _default: { diff --git a/dist/index.js b/dist/index.js index 1179632..e637218 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,5 +1,6 @@ import { spawnSync } from "node:child_process"; import { existsSync, statSync, writeFileSync } from "node:fs"; +import { createRequire } from "node:module"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { listAllItemMetadata, resolveImplicitPmRoot, } from "@unbrained/pm-cli/sdk"; @@ -30,6 +31,17 @@ class CommandError extends Error { } const __dirname = path.dirname(fileURLToPath(import.meta.url)); const packageRoot = path.resolve(__dirname, ".."); +/** + * Re-throw a `CommandError` as-is, or wrap any other error in a + * `CommandError` with the given prefix and exit code. Prevents losing the + * original typed exit code when a handler already threw a `CommandError`. + */ +function wrapCommandError(err, prefix, exitCode = EXIT_CODE.GENERIC_FAILURE) { + if (err instanceof CommandError) + return err; + const msg = err instanceof Error ? err.message : String(err); + return new CommandError(`${prefix}: ${msg}`, exitCode); +} // Exact flag tokens the `pm-graph query`/`neighbors` handlers strip from their // variadic positional args (these commands read `--json` manually, so the host // leaves it in `context.args`). Matched exactly — never by dash-prefix — so all @@ -39,6 +51,11 @@ const packageRoot = path.resolve(__dirname, ".."); // not valid Cypher); the documented usage quotes the whole query into one arg. const QUERY_FLAG_TOKENS = new Set(["--json", "--help"]); let neo4jApi = null; +// Lazy CommonJS-style resolution of `neo4j-driver` from this module's own +// location. `require` keeps the resolution at call time (a top-level import +// would make the whole extension unresolvable when a git-URL install shipped +// without the driver) while satisfying the fleet's no-dynamic-imports policy. +const requireNeo4j = createRequire(import.meta.url); // --------------------------------------------------------------------------- // Helpers // --------------------------------------------------------------------------- @@ -84,25 +101,30 @@ function neo4jMissingMessage() { return `Neo4j is not configured. Set ${missing.join(", ")} before using this command.`; } /** - * Lazily load the `neo4j-driver` module, installing it on demand. + * Lazily resolve the `neo4j-driver` module, installing it on demand. * - * Returns the cached module (`neo4jApi`) once resolved, so repeated commands - * pay the import cost once. A first import that fails is treated as a missing - * optional dependency rather than a hard failure: `npm install --omit=dev` is - * run in {@link packageRoot} and the import retried, so a git-URL install that + * Resolution happens at call time through `requireNeo4j`, so repeated commands + * pay the resolution cost once (the resolved API is cached in `neo4jApi`). A + * first resolution that fails is treated as a missing optional dependency + * rather than a hard failure: `npm install --omit=dev` is run in + * {@link packageRoot} and the resolution retried, so a git-URL install that * shipped without the driver can still self-repair. A failed install throws an - * error that carries both the install exit code and the original import error. + * error that carries both the install exit code and the original resolution + * error. + * + * The result is assigned to `neo4jApi` exactly once, after every failure path + * has been ruled out, so no intermediate await can observe or clobber a stale + * cache value. * * @returns The resolved neo4j-driver module API. - * @throws {Error} When the driver cannot be imported and cannot be installed. + * @throws {Error} When the driver cannot be resolved and cannot be installed. */ async function loadNeo4j() { if (neo4jApi) return neo4jApi; + let resolved; try { - const mod = await import("neo4j-driver"); - neo4jApi = (mod.default ?? mod); - return neo4jApi; + resolved = resolveNeo4jModule(); } catch (err) { console.error("Installing pm-graph Neo4j runtime dependency..."); @@ -117,10 +139,26 @@ async function loadNeo4j() { const msg = err instanceof Error ? err.message : String(err); throw new Error(`Neo4j driver is not installed and npm install --omit=dev failed with exit code ${install.status ?? "unknown"}. (${msg})`); } - const mod = await import("neo4j-driver"); - neo4jApi = (mod.default ?? mod); - return neo4jApi; + resolved = resolveNeo4jModule(); } + neo4jApi = resolved; + return resolved; +} +/** + * Resolve the `neo4j-driver` module and normalize its export shape. + * + * `require` of the CommonJS build returns the `module.exports` API object + * directly, while `require` of an ECMAScript module (the shape the test + * fixtures and any future ESM-only driver build serve) returns the module + * namespace, where the API sits behind `default`. Accepting both keeps the + * interop contract identical to the previous dynamic-import behaviour. + * + * @returns The neo4j-driver module API. + * @throws Whatever module resolution throws when the driver is absent. + */ +function resolveNeo4jModule() { + const mod = requireNeo4j("neo4j-driver"); + return (mod.default ?? mod); } /** * Produce a user-friendly error message for Neo4j connection failures. @@ -296,13 +334,20 @@ function toPlain(value) { * or count never have to special-case a missing value, at the cost of a bogus * zero for genuinely malformed input. */ -function toNumber(value) { +/** + * Unwrap a Neo4j Integer (object exposing `toNumber`) to a native number, + * or return a native number as-is. Returns `null` for anything else. + */ +function unwrapNeo4jInteger(value) { if (typeof value === "number") return value; if (value && typeof value === "object" && "toNumber" in value && typeof value.toNumber === "function") { return value.toNumber(); } - return 0; + return null; +} +function toNumber(value) { + return unwrapNeo4jInteger(value) ?? 0; } // --------------------------------------------------------------------------- // PM CLI interaction @@ -1001,6 +1046,28 @@ function mermaidLabel(s) { function mermaidId(id) { return "n_" + id.replace(/[^A-Za-z0-9_]/g, "_"); } +/** + * Read a node's display title, falling back to its id when the property is + * absent or not a non-empty string. + */ +function nodeTitle(node) { + return typeof node.properties.title === "string" && node.properties.title + ? String(node.properties.title) + : node.id; +} +/** Read a node's status as a string, or `""` when absent or non-string. */ +function nodeStatus(node) { + return typeof node.properties.status === "string" ? node.properties.status : ""; +} +/** + * Build the single-line `title [id] (status)` label the diagram renderers + * share. The status suffix is omitted entirely for status-less nodes. + */ +function diagramLabel(node) { + const title = nodeTitle(node); + const status = nodeStatus(node); + return status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; +} /** * Render a graph as a Mermaid `graph TD` document. * @@ -1013,12 +1080,7 @@ function mermaidId(id) { function renderMermaid(graph) { const lines = ["graph TD"]; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; - const label = status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; - lines.push(` ${mermaidId(node.id)}["${mermaidLabel(label)}"]`); + lines.push(` ${mermaidId(node.id)}["${mermaidLabel(diagramLabel(node))}"]`); } if (graph.relationships.length > 0) lines.push(""); @@ -1041,13 +1103,19 @@ function dotEscape(s) { * id and label is run through {@link dotEscape} so a quote or backslash in an * item title cannot break out of the attribute. */ +/** Extract the title and status strings from a graph node's properties. */ +function nodeLabelParts(node) { + const title = typeof node.properties.title === "string" && node.properties.title + ? String(node.properties.title) + : node.id; + const status = typeof node.properties.status === "string" ? node.properties.status : ""; + return { title, status }; +} +/** Render a graph as a Graphviz DOT digraph with left-to-right ranking. */ function renderDot(graph) { const lines = ["digraph pm_graph {", " rankdir=LR;", ' node [shape=box, style=rounded];']; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; + const { title, status } = nodeLabelParts(node); // Build the second line first, then join with the DOT line-break directive // "\n" AFTER escaping so dotEscape does not double-escape the backslash. const second = status ? `[${node.id}] ${status}` : `[${node.id}]`; @@ -1151,10 +1219,7 @@ function plantumlLabel(s) { export function renderPlantuml(graph) { const lines = ["@startuml", "left to right direction"]; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; + const { title, status } = nodeLabelParts(node); const label = status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; lines.push(`object "${plantumlLabel(label)}" as ${plantumlAlias(node.id)}`); } @@ -1674,37 +1739,62 @@ export function mapImpactDirection(logical) { * (which differs between `incoming`/`outgoing`) never fabricates edges. The * root is always the first node so diagrams anchor on it. */ -export function impactSubgraph(graph, rootId, affected) { - const nodeOrder = []; - const seenNode = new Set(); - const addNode = (id) => { - if (!seenNode.has(id)) { - seenNode.add(id); - nodeOrder.push(id); +/** + * Build an ordered, de-duplicated node list anchored at `rootId`, followed + * by `rest` in order. Returns the ordered list and a `Set` for membership + * checks. Used by both impact subgraph builders. + */ +function orderedNodeSet(rootId, rest = []) { + const order = []; + const seen = new Set(); + const add = (id) => { + if (!seen.has(id)) { + seen.add(id); + order.push(id); } }; - addNode(rootId); + add(rootId); + for (const id of rest) + add(id); + return { order, set: seen }; +} +/** + * Collect de-duplicated bidirectional edge keys from a list of node-id paths. + * Each consecutive pair in a path contributes both `u->v` and `v->u` keys. + */ +function collectBidirectionalEdges(paths) { const edgeKeys = []; - const seenEdge = new Set(); - const addEdge = (u, v) => { - const key = `${u}->${v}`; - if (!seenEdge.has(key)) { - seenEdge.add(key); - edgeKeys.push(key); + const seen = new Set(); + for (const path of paths) { + for (let i = 0; i < path.length - 1; i++) { + for (const key of [`${path[i]}->${path[i + 1]}`, `${path[i + 1]}->${path[i]}`]) { + if (!seen.has(key)) { + seen.add(key); + edgeKeys.push(key); + } + } } - }; + } + return edgeKeys; +} +/** + * Build the impact subgraph from canonical traversal paths: the root plus + * all path nodes, with bidirectional edges between consecutive path nodes + * that exist in the source graph. The root always anchors the diagram. + */ +export function impactSubgraph(graph, rootId, affected) { + const paths = []; + const allNodeIds = []; for (const row of affected) { const rawPath = Array.isArray(row.path) && row.path.length > 0 ? row.path : [rootId, row.id]; // Defensive: ensure the path starts at the root so the root anchors the // diagram even when the engine omits it. const path = rawPath[0] === rootId ? rawPath : [rootId, ...rawPath]; - for (const id of path) - addNode(id); - for (let i = 0; i < path.length - 1; i++) { - addEdge(path[i], path[i + 1]); - addEdge(path[i + 1], path[i]); - } + paths.push(path); + allNodeIds.push(...path); } + const { order: nodeOrder } = orderedNodeSet(rootId, allNodeIds); + const edgeKeys = collectBidirectionalEdges(paths); return projectSubgraph(graph, nodeOrder, edgeKeys); } /** @@ -1715,19 +1805,7 @@ export function impactSubgraph(graph, rootId, affected) { * requested. Mirrors `impactSubgraph`'s node anchoring (root first). */ export function impactSubgraphFromNodeSet(graph, rootId, nodeIds) { - const nodeOrder = []; - const seenNode = new Set(); - const addNode = (id) => { - if (!seenNode.has(id)) { - seenNode.add(id); - nodeOrder.push(id); - } - }; - addNode(rootId); - for (const id of nodeIds) - if (id !== rootId) - addNode(id); - const set = new Set(nodeOrder); + const { order: nodeOrder, set } = orderedNodeSet(rootId, nodeIds.filter((id) => id !== rootId)); const edgeKeys = []; for (const e of structuralEdges(graph)) { if (set.has(e.from) && set.has(e.to)) @@ -1756,16 +1834,7 @@ function readStringProperty(properties, key) { * the missing case to zero for summing. */ function readNumberProperty(properties, key) { - const value = properties[key]; - if (typeof value === "number") - return value; - if (value && - typeof value === "object" && - "toNumber" in value && - typeof value.toNumber === "function") { - return value.toNumber(); - } - return null; + return unwrapNeo4jInteger(properties[key]); } function itemTitle(node, fallbackId) { if (!node) @@ -2235,6 +2304,23 @@ function argsHaveFlag(args, longName) { * for every other command so default rendering is untouched. Then registers * each pm-graph command (ping, export, …) against the host API. */ +/** + * Load and shape the analytics graph for a command context, returning the + * parsed flags, graph, structural edges, and sorted item ids. Shared by the + * cycles, critical-path, and topo-sort handlers to avoid repeating the + * four-line load sequence. + */ +async function loadShapedAnalytics(context) { + const flags = parseAnalyticsFlags(context.args ?? []); + const graph = await shapedAnalyticsGraph(context, flags); + const edges = structuralEdges(graph); + const items = [...itemNodeIds(graph)].sort(); + return { flags, graph, edges, items }; +} +/** + * Register every pm-graph command, exporter, and service override with the + * pm CLI host. Called once at extension load time. + */ export function activate(api) { // The `pm-graph export --format ` handler renders the graph into a // raw offline format (cypher | mermaid | dot | json | graphml | plantuml) @@ -2378,11 +2464,7 @@ export function activate(api) { }; } catch (err) { - // Preserve an already-typed CommandError (and its exit code) instead of flattening. - if (err instanceof CommandError) - throw err; - const msg = err instanceof Error ? err.message : String(err); - throw new CommandError(`Export failed: ${msg}`, EXIT_CODE.GENERIC_FAILURE); + throw wrapCommandError(err, "Export failed", EXIT_CODE.GENERIC_FAILURE); } } if (rawFormat === null || rawFormat.trim().length === 0) { @@ -2418,11 +2500,7 @@ export function activate(api) { }; } catch (err) { - // Preserve an already-typed CommandError (and its exit code) instead of flattening. - if (err instanceof CommandError) - throw err; - const msg = err instanceof Error ? err.message : String(err); - throw new CommandError(`Export failed: ${msg}`, EXIT_CODE.GENERIC_FAILURE); + throw wrapCommandError(err, "Export failed", EXIT_CODE.GENERIC_FAILURE); } }, }); @@ -2776,10 +2854,7 @@ export function activate(api) { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { flags, graph, edges, items } = await loadShapedAnalytics(context); const cycles = findCycles(items, edges); if (cycles.length > 0) { if (flags.format !== "text") { @@ -2863,10 +2938,7 @@ export function activate(api) { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { flags, graph, edges, items } = await loadShapedAnalytics(context); const chain = longestChain(items, edges); if (flags.format !== "text") { const diagram = renderAnalysisDiagram(flags.format, criticalPathSubgraph(graph, chain)); @@ -2899,10 +2971,7 @@ export function activate(api) { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { edges, items } = await loadShapedAnalytics(context); const { order, cycleNodes } = topoSort(items, edges); if (cycleNodes.length > 0) { // Surface the actual cycle path(s) among the unresolved nodes for context. diff --git a/dist/index.js.map b/dist/index.js.map index 83b1d0d..ea74551 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GAKtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAA4B,MAAM,6BAA6B,CAAC;AAEjF,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,8EAA8E;AAC9E,iBAAiB;AACjB,8EAA8E;AAE9E,yEAAyE;AACzE,6EAA6E;AAC7E,+EAA+E;AAC/E,+EAA+E;AAC/E,2EAA2E;AAC3E,+EAA+E;AAC/E,+EAA+E;AAC/E,MAAM,SAAS,GAAG;IAChB,eAAe,EAAE,CAAC;IAClB,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,CAAC;CACJ,CAAC;AAEX,MAAM,YAAa,SAAQ,KAAK;I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AAC;YACf,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC9C,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC;YACpD,OAAO,CAAC,KAAK,CACX,uBAAuB,KAAK,CAAC,KAAK,CAAC,MAAM,aAAa,KAAK,CAAC,aAAa,CAAC,MAAM,eAAe,MAAM,OAAO,YAAY,EAAE,CAC3H,CAAC;YACF,OAAO;gBACL,EAAE,EAAE,IAAI;gBACR,MAAM;gBACN,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;gBACzB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM;gBACzC,IAAI,EAAE,YAAY;aACnB,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACpB,OAAO;YACL,EAAE,EAAE,IAAI;YACR,MAAM;YACN,KAAK;YACL,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YAC9C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;YACzB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM;YACzC,MAAM;SACP,CAAC;IACJ,CAAC,CAAC;IAEF,GAAG,CAAC,gBAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAED,eAAe,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 8c9f5d4..dad130c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,13 @@ "neo4j-driver": "^6.2.0" }, "devDependencies": { + "@babel/eslint-parser": "^8.0.5", + "@babel/plugin-syntax-typescript": "^8.0.3", "@types/node": "^26.2.0", - "@unbrained/pm-cli": "2026.9.17", + "@unbrained/pm-cli": "2026.9.21", + "eslint": "^10.10.0", + "fast-glob": "^3.3.3", + "jscpd": "^4.3.0", "pm-changelog": "2026.9.18", "pm-ops": "2026.9.18", "typescript": "^7.0.2" @@ -25,1124 +30,3478 @@ "@unbrained/pm-cli": ">=2026.8.7" } }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/@babel/code-frame": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-8.0.6.tgz", + "integrity": "sha512-uMHhvmDmwFiLuiozaoRYTZHqMFuu3fem/X9JY78lohAuLoh8LSGGC8JqUzo2cVuBsBxkjMZNk56CE7ock8Xxkw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@babel/helper-validator-identifier": "^8.0.6", + "js-tokens": "^10.0.0" }, "engines": { - "node": ">= 8" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "node_modules/@babel/compat-data": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-8.0.5.tgz", + "integrity": "sha512-YLsYoQMvL8l8WrGpN3Zj7O1wK5LEBN+cQtux7BcuHyxIXve724XG+zuJ1n3U1cUweRtTzQOA4IHbuQw3N34SZw==", "dev": true, "license": "MIT", + "peer": true, "engines": { - "node": ">= 8" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "node_modules/@babel/core": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-8.0.6.tgz", + "integrity": "sha512-5zwYt1V4ji3mXKKRIAkohSJ29WepxNwxQi+7y7P5AcVPh1dcxnZBU2cfxHnPwS+u9+lZnXPsv30TQaF2xg+Tfg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "@babel/code-frame": "^8.0.6", + "@babel/generator": "^8.0.6", + "@babel/helper-compilation-targets": "^8.0.6", + "@babel/helpers": "^8.0.5", + "@babel/parser": "^8.0.6", + "@babel/template": "^8.0.0", + "@babel/traverse": "^8.0.6", + "@babel/types": "^8.0.6", + "@types/gensync": "^1.0.5", + "convert-source-map": "^2.0.0", + "empathic": "^2.0.1", + "gensync": "^1.0.0-beta.2", + "import-meta-resolve": "^4.2.0", + "json5": "^2.2.3", + "obug": "^2.1.1", + "verkit": "^0.3.2" }, "engines": { - "node": ">= 8" - } - }, - "node_modules/@opentelemetry/api": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz", - "integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8.0.0" + "node": "^22.18.0 || >=24.11.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "node_modules/@opentelemetry/api-logs": { - "version": "0.220.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.220.0.tgz", - "integrity": "sha512-CmVa4ImJ+ynfrPMNaAXHET6Bhb44SwzmfyVJFq9ni2jgXJR/l7C6gfVFddNmHP+ZOkP9cf4f9DBe68qVLTHc9w==", + "node_modules/@babel/eslint-parser": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-8.0.6.tgz", + "integrity": "sha512-mXx93HLovamLnDDLQ4i48gm4HHtaoqJrbMAuJqrMfpCGJkJ5M4sXhRgKGTrxykg1P8tAN5myrJxsRZuMuTq+OQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "@opentelemetry/api": "^1.3.0" + "eslint-scope": "^9.1.0", + "eslint-visitor-keys": "^5.0.0", + "verkit": "^0.3.2" }, "engines": { - "node": ">=8.0.0" + "node": "^22.18.0 || >=24.11.0" + }, + "peerDependencies": { + "@babel/core": "^8.0.0", + "eslint": "^9.0.0 || ^10.0.0" } }, - "node_modules/@opentelemetry/core": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.11.0.tgz", - "integrity": "sha512-7YP44XH0tV6+Mb54x2YGf84i7yi+31MBZlE8JwvozkxyTvXbSp10X7cI7YE49ChJ3shMJoBmCJF3+1QFBJctGA==", + "node_modules/@babel/generator": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-8.0.6.tgz", + "integrity": "sha512-/pcanjdRsonCexCuxgGD8fKnBLLzk2i9uM4kmcmGyyev2R5YDs+rafMYZ89RvaGY1mW8T7C5au0TyYaEeHBGng==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "peer": true, "dependencies": { - "@opentelemetry/semantic-conventions": "^1.29.0" + "@babel/parser": "^8.0.6", + "@babel/types": "^8.0.6", + "@jridgewell/gen-mapping": "0.4.0-beta.0", + "@jridgewell/trace-mapping": "^0.3.31", + "@types/jsesc": "^2.5.0", + "jsesc": "^3.0.2" }, "engines": { - "node": "^18.19.0 || >=20.6.0" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@opentelemetry/instrumentation": { - "version": "0.220.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.220.0.tgz", - "integrity": "sha512-xQx3E2WxP1mDvKzxLxX+CTCtNLa560YJZ3087qYHerl2YmiKpv7AH+dAy7vmx+eVrZ5BwhfWUAVoKOoxCNHcpw==", + "node_modules/@babel/helper-compilation-targets": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-8.0.6.tgz", + "integrity": "sha512-HTrtZ4+iA0+kzdbCgvdSk1U4pEl3BvpGnlUbualCGNbrVhhQvhgBzurTUmqpWyvyHbWYWaIfdx2mOlL9LJjsew==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "peer": true, "dependencies": { - "@opentelemetry/api-logs": "0.220.0", - "import-in-the-middle": "^3.0.0", - "require-in-the-middle": "^8.0.0" + "@babel/compat-data": "^8.0.5", + "@babel/helper-validator-option": "^8.0.0", + "browserslist": "^4.24.0", + "flru": "1.0.2", + "verkit": "^0.3.2" }, "engines": { - "node": "^18.19.0 || >=20.6.0" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.3.0" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@opentelemetry/resources": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.11.0.tgz", - "integrity": "sha512-Ie7+8q8MDF4FAEQCKVMTx3ReUvxiIAgIiiW3c9JdmP8+HMcDy20puT+AHjexnExgnbvBxjQ9fjkFDWrikJ2jQA==", + "node_modules/@babel/helper-globals": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-8.0.6.tgz", + "integrity": "sha512-OdnA/N52LhzFpeUuVz5YGuSWjc7TPHiFmVYZbPlSgExocO2GwbxVpSni9MVs5wwW+wZ4kPuwBEBN9pIPDYz1mA==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@opentelemetry/core": "2.11.0", - "@opentelemetry/semantic-conventions": "^1.29.0" - }, + "license": "MIT", + "peer": true, "engines": { - "node": "^18.19.0 || >=20.6.0" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.10.0" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@opentelemetry/sdk-trace": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace/-/sdk-trace-2.11.0.tgz", - "integrity": "sha512-fFnTqGm8/G73GQVnxYi7LXa1ZVYEUvgL6XI1LpvV0bPC7WQ/ZGgKxCSl8FnlZBKto9JHHEFTO6s6CUpvvtwFrA==", + "node_modules/@babel/helper-plugin-utils": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-8.0.1.tgz", + "integrity": "sha512-3PKFgjTyPlhFhorfP+SjKQxLViIL++zWjFOO4hGriYU+Bsm983DxEM1JmDRJVWXV0O9npu+xXRqz7Pbd3mh70g==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@opentelemetry/core": "2.11.0", - "@opentelemetry/resources": "2.11.0", - "@opentelemetry/semantic-conventions": "^1.29.0" - }, + "license": "MIT", "engines": { - "node": "^18.19.0 || >=20.6.0" + "node": "^22.18.0 || >=24.11.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.10.0" + "@babel/core": "^8.0.0" } }, - "node_modules/@opentelemetry/sdk-trace-base": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.11.0.tgz", - "integrity": "sha512-H19x/TX/LZdqiYOjM7fqtSxwlplC5pgelavqbQdHbhdq0q/AI/TGkM2dfGuuynTXmJPeF2HoZVoPDu+TGoW78A==", + "node_modules/@babel/helper-string-parser": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.6.tgz", + "integrity": "sha512-+6HYEBnsDRZHJtUTAEfMQd0zMDqdFHS7C+5vAsEZqBUr3vEMWOWlHJ0Jz1gS8jJIlCvLsuA6ivmeoqzH936YcA==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@opentelemetry/core": "2.11.0", - "@opentelemetry/resources": "2.11.0", - "@opentelemetry/sdk-trace": "2.11.0", - "@opentelemetry/semantic-conventions": "^1.29.0" - }, + "license": "MIT", + "peer": true, "engines": { - "node": "^18.19.0 || >=20.6.0" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.10.0" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.43.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.43.0.tgz", - "integrity": "sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==", + "node_modules/@babel/helper-validator-identifier": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz", + "integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "peer": true, "engines": { - "node": ">=14" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@sentry/conventions": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.16.0.tgz", - "integrity": "sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ==", + "node_modules/@babel/helper-validator-option": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-8.0.0.tgz", + "integrity": "sha512-U4Dybxh4WESWHt5XhBeExi4DrY0/DNK1aHpQbsrQXCUbFHuMweT0TpLEWKvaraV2Y6fS+ZXunsZ8zIuZIgvF2Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { - "node": ">=14" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@sentry/core": { - "version": "10.74.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.74.0.tgz", - "integrity": "sha512-u9rY8vcZfktccwm6LznfCZlqP5C9A+p76r4/pFS1grqpuTO0m21Cl8rosnlESrDGP/Xd9tfr91rWYk0jPH8jeQ==", + "node_modules/@babel/helpers": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-8.0.5.tgz", + "integrity": "sha512-fQtPOXjYOYv85PIdwotp2TJGVYOycX0PQq+l844fFAxOULtBy8BVF35GyeueX0r4KvDthqPH5xAI1clQPk/2uA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@sentry/conventions": "^0.16.0" + "@babel/template": "^8.0.0", + "@babel/types": "^8.0.5" }, "engines": { - "node": ">=18" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@sentry/node": { - "version": "10.74.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-10.74.0.tgz", - "integrity": "sha512-u1wsarTOWHn9CCev81Da5T4IQHZgdcosXRfX2+4DMII/lVJMBYesKixTQuMwXexjVG2+pkf16zTmgjZDa+75jA==", + "node_modules/@babel/parser": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.6.tgz", + "integrity": "sha512-LpGDIYJAzc3Y3PT9x+FxBrGYu2PlWxLmyN7SwPTzaX0LSwEmFJBsRnPBqmaXF2r1v+Zhz6lNiEJ+7yKtM5+Ugg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@opentelemetry/api": "^1.9.1", - "@opentelemetry/instrumentation": "^0.220.0", - "@opentelemetry/sdk-trace-base": "^2.9.0", - "@sentry/conventions": "^0.16.0", - "@sentry/core": "10.74.0", - "@sentry/node-core": "10.74.0", - "@sentry/opentelemetry": "10.74.0", - "@sentry/server-utils": "10.74.0", - "import-in-the-middle": "^3.0.0" + "@babel/types": "^8.0.6" + }, + "bin": { + "parser": "bin/babel-parser.js" }, "engines": { - "node": ">=18" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@sentry/node-core": { - "version": "10.74.0", - "resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-10.74.0.tgz", - "integrity": "sha512-btgZXcGmkOGgojbxHo/gfGiyqYpzC9E8zVR78Q3MtM6Xnemk9gwJiQlhNmEX/FM+C36WBRPZrdcZcnMaJhbfJw==", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-8.0.3.tgz", + "integrity": "sha512-jmTPwps7oSQSZaV1SxkQ3C12UWyufGysGc5OzDpZzvPAIX4mO7dJT3hoqkWVrSImvkcMiknir1iLN1SNV/CZzg==", "dev": true, "license": "MIT", "dependencies": { - "@sentry/conventions": "^0.16.0", - "@sentry/core": "10.74.0", - "@sentry/opentelemetry": "10.74.0", - "import-in-the-middle": "^3.0.0" + "@babel/helper-plugin-utils": "^8.0.1" }, "engines": { - "node": ">=18" + "node": "^22.18.0 || >=24.11.0" }, "peerDependencies": { - "@opentelemetry/api": "^1.9.0", - "@opentelemetry/core": "^1.30.1 || ^2.1.0", - "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <1", - "@opentelemetry/instrumentation": ">=0.57.1 <1", - "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - }, - "@opentelemetry/core": { - "optional": true - }, - "@opentelemetry/exporter-trace-otlp-http": { - "optional": true - }, - "@opentelemetry/instrumentation": { - "optional": true - }, - "@opentelemetry/sdk-trace-base": { - "optional": true - } + "@babel/core": "^8.0.0" } }, - "node_modules/@sentry/opentelemetry": { - "version": "10.74.0", - "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-10.74.0.tgz", - "integrity": "sha512-ua5mt0NDBfye+/ACKjAw9Ad2i+y42lOLvhxXZepZXjszblMz80MEsIZflMB7uLZUCTNH7MbZN8tlzCy8KsJKmQ==", + "node_modules/@babel/template": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-8.0.0.tgz", + "integrity": "sha512-eAD0QW/AlbamBbw0FeGiwasbCVPq5ncW0HNVyLP3B9czqLyh4gvw+5JTSNt6le9+ziAU7mqDZsKTHf3jTb4chQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@sentry/conventions": "^0.16.0", - "@sentry/core": "10.74.0" + "@babel/code-frame": "^8.0.0", + "@babel/parser": "^8.0.0", + "@babel/types": "^8.0.0" }, "engines": { - "node": ">=18" + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/@babel/traverse": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-8.0.6.tgz", + "integrity": "sha512-ilYV+qLStGzSKLipJlETdvdtpK3rAuwfCmCoGKv15MU4EoeIuLkespSNoNLFGOPSciEHx9TLWtN5mv0fz5w5mQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^8.0.6", + "@babel/generator": "^8.0.6", + "@babel/helper-globals": "^8.0.6", + "@babel/parser": "^8.0.6", + "@babel/template": "^8.0.0", + "@babel/types": "^8.0.6", + "obug": "^2.1.1" }, - "peerDependencies": { - "@opentelemetry/api": "^1.9.0", - "@opentelemetry/core": "^1.30.1 || ^2.1.0", - "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" + "engines": { + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@sentry/server-utils": { - "version": "10.74.0", - "resolved": "https://registry.npmjs.org/@sentry/server-utils/-/server-utils-10.74.0.tgz", - "integrity": "sha512-AHmPIGE8yVRyywpZRhAkm/H0cHTgsQSPhFZFbaeQLcYHFE/eOP9bAMh8Nj/Apr7WMagFXYHd04tR/63BxtLgKw==", + "node_modules/@babel/types": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.6.tgz", + "integrity": "sha512-c+xgSWboV2pdwXP67BUWDVRHi2BO5Q3KwxyFVs7taVTY+fsK47/L51ZXQoV9rozHJDNHvJ4v4WEsI/IlxV2l2A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@sentry/conventions": "^0.16.0", - "@sentry/core": "10.74.0" + "@babel/helper-string-parser": "^8.0.6", + "@babel/helper-validator-identifier": "^8.0.6" }, "engines": { - "node": ">=18" + "node": "^22.18.0 || >=24.11.0" } }, - "node_modules/@toon-format/toon": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@toon-format/toon/-/toon-4.1.1.tgz", - "integrity": "sha512-SGCkS7IjVpwRmGPgnY8ENKpAf0EdAnZDOQkvFW0d2cgOpdn9FEFl7sTgryESyypXrWr0YajHGpwsAUX4zw9ZvA==", + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } }, - "node_modules/@types/node": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.2.tgz", - "integrity": "sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g==", + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~8.9.0" + "hashery": "^1.5.1", + "keyv": "^5.6.0" } }, - "node_modules/@typescript/typescript-aix-ppc64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", - "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", - "cpu": [ - "ppc64" - ], + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "optional": true, - "os": [ - "aix" - ], "engines": { - "node": ">=16.20.0" + "node": ">=0.1.90" } }, - "node_modules/@typescript/typescript-darwin-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", - "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", - "cpu": [ - "arm64" - ], + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, "engines": { - "node": ">=16.20.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@typescript/typescript-darwin-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", - "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", - "cpu": [ - "x64" - ], + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], "engines": { - "node": ">=16.20.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@typescript/typescript-freebsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", - "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", - "cpu": [ - "arm64" - ], + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], + "license": "MIT", "engines": { - "node": ">=16.20.0" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@typescript/typescript-freebsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", - "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", - "cpu": [ - "x64" - ], + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, "engines": { - "node": ">=16.20.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@typescript/typescript-linux-arm": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", - "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", - "cpu": [ - "arm" - ], + "node_modules/@eslint/config-helpers": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@eslint/core": "^1.2.1" + }, "engines": { - "node": ">=16.20.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@typescript/typescript-linux-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", - "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", - "cpu": [ - "arm64" - ], + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@types/json-schema": "^7.0.15" + }, "engines": { - "node": ">=16.20.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@typescript/typescript-linux-loong64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", - "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", - "cpu": [ - "loong64" - ], + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=16.20.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@typescript/typescript-linux-mips64el": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", - "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", - "cpu": [ - "mips64el" - ], + "node_modules/@eslint/plugin-kit": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, "engines": { - "node": ">=16.20.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@typescript/typescript-linux-ppc64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", - "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", - "cpu": [ - "ppc64" - ], + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@humanfs/types": "^0.15.0" + }, "engines": { - "node": ">=16.20.0" + "node": ">=18.18.0" } }, - "node_modules/@typescript/typescript-linux-riscv64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", - "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", - "cpu": [ - "riscv64" - ], + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, "engines": { - "node": ">=16.20.0" + "node": ">=18.18.0" } }, - "node_modules/@typescript/typescript-linux-s390x": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", - "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", - "cpu": [ - "s390x" - ], + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=16.20.0" + "node": ">=18.18.0" } }, - "node_modules/@typescript/typescript-linux-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", - "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", - "cpu": [ - "x64" - ], + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=16.20.0" + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@typescript/typescript-netbsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", - "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", - "cpu": [ - "arm64" - ], + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "dev": true, "license": "Apache-2.0", - "optional": true, - "os": [ - "netbsd" - ], "engines": { - "node": ">=16.20.0" + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@typescript/typescript-netbsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", - "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", - "cpu": [ - "x64" - ], + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "netbsd" - ], + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, "engines": { - "node": ">=16.20.0" + "node": ">=18.0.0" } }, - "node_modules/@typescript/typescript-openbsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", - "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", - "cpu": [ - "arm64" - ], + "node_modules/@jridgewell/gen-mapping": { + "version": "0.4.0-beta.0", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.4.0-beta.0.tgz", + "integrity": "sha512-JdGNkbE4GlNPYQhM0L95fBQr7ctLZJ276QXQLTad4t1oSdnnCI3fDq9DW3BqYAWv8Wc3+HS+4Gsii1oPMCfz1w==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=16.20.0" + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0-beta.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@typescript/typescript-openbsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", - "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", - "cpu": [ - "x64" - ], + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "openbsd" - ], + "license": "MIT", + "peer": true, "engines": { - "node": ">=16.20.0" + "node": ">=6.0.0" } }, - "node_modules/@typescript/typescript-sunos-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", - "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", - "cpu": [ - "x64" - ], + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=16.20.0" + "license": "MIT", + "peer": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@typescript/typescript-win32-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", - "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", - "cpu": [ - "arm64" - ], + "node_modules/@jscpd/badge-reporter": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@jscpd/badge-reporter/-/badge-reporter-4.2.5.tgz", + "integrity": "sha512-ktXrjPeRaRyUDktxTroSA2/w5sshXpQplWkUuq/e6XqEpKBSbGEnwZLIaegSijOrMwIcCXPQ9k4feXIz5eVJNA==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=16.20.0" + "license": "MIT", + "dependencies": { + "badgen": "^3.2.3", + "colors": "^1.4.0", + "fs-extra": "^11.2.0" } }, - "node_modules/@typescript/typescript-win32-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", - "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", - "cpu": [ - "x64" - ], + "node_modules/@jscpd/core": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@jscpd/core/-/core-4.2.5.tgz", + "integrity": "sha512-Esf2deHxaoNEjePwf2jqP6Urzj+BAOsJVPFLbnnSsV+q7rLNMcn0UEEoKBXIOOt4qMkrkhl9DfwpMyPPOr6GkQ==", "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=16.20.0" + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.1" } }, - "node_modules/@unbrained/pm-cli": { - "version": "2026.9.17", - "resolved": "https://registry.npmjs.org/@unbrained/pm-cli/-/pm-cli-2026.9.17.tgz", - "integrity": "sha512-o8fTLNJmTJFSH56g3bPdlknY0DR+X/THI1QspBi35vbFHYkNO3GdbsI5A/U1r5em5Ra7iX44d7t8Dz6IKhjL7w==", + "node_modules/@jscpd/finder": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@jscpd/finder/-/finder-4.3.0.tgz", + "integrity": "sha512-MnEUyier0D6P9zRIhAlBoyJUV8BYT6d5FDZuhR7X23FdZAgdMV8yaRRO1Q1EveK9/ReA6WVHT1HE8F15rij71A==", "dev": true, "license": "MIT", "dependencies": { - "@sentry/node": "10.74.0", - "@toon-format/toon": "^4.1.1", - "@types/node": ">=22", - "commander": "^15.0.0", - "fast-glob": "^3.3.3", - "fast-json-patch": "^3.1.1", - "npm-package-arg": "^13.0.2", - "tar": "7.5.22", - "yaml": "^2.9.1" + "@jscpd/core": "4.2.5", + "@jscpd/tokenizer": "4.2.6", + "blamer": "^1.0.6", + "bytes": "^3.1.2", + "cli-table3": "^0.6.5", + "colors": "^1.4.0", + "fast-glob": "^3.3.2", + "fs-extra": "^11.3.6", + "markdown-table": "^2.0.0", + "pug": "^3.0.4" + } + }, + "node_modules/@jscpd/html-reporter": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@jscpd/html-reporter/-/html-reporter-4.2.5.tgz", + "integrity": "sha512-zMMIKbvi43dMgeNeHXlHQy1ovf+KJrzNlUubaBvCAVatqP23ksW8d3fmsevIQG9mMMTH0D1xOz+SxUn1FREOPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "colors": "1.4.0", + "fs-extra": "^11.2.0", + "pug": "^3.0.4" + } + }, + "node_modules/@jscpd/tokenizer": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/@jscpd/tokenizer/-/tokenizer-4.2.6.tgz", + "integrity": "sha512-/eyFjINWLs2mrBTU4H681bs855r5oRyl1O3mZxcd7TpL1JIG85a7pps0RkRPAe9c/2KcjVCc82HbhOz86M0n5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jscpd/core": "4.2.5", + "spark-md5": "^3.0.2" + } + }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz", + "integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.220.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.220.0.tgz", + "integrity": "sha512-CmVa4ImJ+ynfrPMNaAXHET6Bhb44SwzmfyVJFq9ni2jgXJR/l7C6gfVFddNmHP+ZOkP9cf4f9DBe68qVLTHc9w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.11.0.tgz", + "integrity": "sha512-7YP44XH0tV6+Mb54x2YGf84i7yi+31MBZlE8JwvozkxyTvXbSp10X7cI7YE49ChJ3shMJoBmCJF3+1QFBJctGA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/instrumentation": { + "version": "0.220.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.220.0.tgz", + "integrity": "sha512-xQx3E2WxP1mDvKzxLxX+CTCtNLa560YJZ3087qYHerl2YmiKpv7AH+dAy7vmx+eVrZ5BwhfWUAVoKOoxCNHcpw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.220.0", + "import-in-the-middle": "^3.0.0", + "require-in-the-middle": "^8.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.11.0.tgz", + "integrity": "sha512-Ie7+8q8MDF4FAEQCKVMTx3ReUvxiIAgIiiW3c9JdmP8+HMcDy20puT+AHjexnExgnbvBxjQ9fjkFDWrikJ2jQA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.11.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace/-/sdk-trace-2.11.0.tgz", + "integrity": "sha512-fFnTqGm8/G73GQVnxYi7LXa1ZVYEUvgL6XI1LpvV0bPC7WQ/ZGgKxCSl8FnlZBKto9JHHEFTO6s6CUpvvtwFrA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.11.0", + "@opentelemetry/resources": "2.11.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.11.0.tgz", + "integrity": "sha512-H19x/TX/LZdqiYOjM7fqtSxwlplC5pgelavqbQdHbhdq0q/AI/TGkM2dfGuuynTXmJPeF2HoZVoPDu+TGoW78A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.11.0", + "@opentelemetry/resources": "2.11.0", + "@opentelemetry/sdk-trace": "2.11.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.43.0.tgz", + "integrity": "sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@sentry/conventions": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.16.0.tgz", + "integrity": "sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@sentry/core": { + "version": "10.75.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.75.0.tgz", + "integrity": "sha512-5wDQpQqjJ6RHdPR+z6Q+47XlwoxRKBv0yyB0LKHqL/1azPOQbR+nllyLmmQDcoJpaksuLSmLA1q6hFX7gjDT2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/node": { + "version": "10.75.0", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-10.75.0.tgz", + "integrity": "sha512-XdYW+SEiscQnuugh1hMldfnHurmleKSTSDqgfro6Y1yd7s0r2csnZ5/SEYxIeL4lSl1QXg1lIA1pBmAXjcdnKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@opentelemetry/api": "^1.9.1", + "@opentelemetry/instrumentation": "^0.220.0", + "@opentelemetry/sdk-trace-base": "^2.9.0", + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.75.0", + "@sentry/node-core": "10.75.0", + "@sentry/opentelemetry": "10.75.0", + "@sentry/server-utils": "10.75.0", + "import-in-the-middle": "^3.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/node-core": { + "version": "10.75.0", + "resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-10.75.0.tgz", + "integrity": "sha512-+E3KSX1oMqhpWQ23hj6NblIVUzLy3T2oceU7DfMX1s1ar+npaQZxR5K0/cMGcQgS1LLm8Jqwqo/lrZlKTCDm5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.75.0", + "@sentry/opentelemetry": "10.75.0", + "import-in-the-middle": "^3.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0", + "@opentelemetry/core": "^1.30.1 || ^2.1.0", + "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <1", + "@opentelemetry/instrumentation": ">=0.57.1 <1", + "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@opentelemetry/core": { + "optional": true + }, + "@opentelemetry/exporter-trace-otlp-http": { + "optional": true + }, + "@opentelemetry/instrumentation": { + "optional": true + }, + "@opentelemetry/sdk-trace-base": { + "optional": true + } + } + }, + "node_modules/@sentry/opentelemetry": { + "version": "10.75.0", + "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-10.75.0.tgz", + "integrity": "sha512-reJoMtuHMuaiztoDVoaeitc22eHlTAvz2qpFhibWyzukJlF8oXB+o8EvDN9mmDDMedU89c//cXRcnPBlJvUxcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.75.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0", + "@opentelemetry/core": "^1.30.1 || ^2.1.0", + "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" + } + }, + "node_modules/@sentry/server-utils": { + "version": "10.75.0", + "resolved": "https://registry.npmjs.org/@sentry/server-utils/-/server-utils-10.75.0.tgz", + "integrity": "sha512-7fIa9vFGNzB13hmxl8Sip3xImSkqpc4wETzuQ7CLzVOwPvwI6y/gVEm0pxRhtJSq8SzfOp26eJWl80u8v78Osg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.75.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@toon-format/toon": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@toon-format/toon/-/toon-4.1.1.tgz", + "integrity": "sha512-SGCkS7IjVpwRmGPgnY8ENKpAf0EdAnZDOQkvFW0d2cgOpdn9FEFl7sTgryESyypXrWr0YajHGpwsAUX4zw9ZvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/gensync": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/gensync/-/gensync-1.0.5.tgz", + "integrity": "sha512-MbsRCT7mTikHwKZ0X+LVUTLRrZZRLipTuXEO9qOYO+zmjMVk81axyClMROf6uoPD9MRVu46bx8zoR0Ad9q3NAg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/jsesc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@types/jsesc/-/jsesc-2.5.1.tgz", + "integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.6.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.1.tgz", + "integrity": "sha512-VqGJBMCtdhqkBUCcBLvywI0NJ+KLuVzgNnlBUNFOQjqVxzo2lxLUNg1DSey8+u2u6ktswSAxg+s68QLzWHNOuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/sarif": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@types/sarif/-/sarif-2.1.7.tgz", + "integrity": "sha512-kRz0VEkJqWLf1LLVN4pT1cg1Z9wAuvI6L97V3m2f5B76Tg8d413ddvLBPTEHAZJlnn4XSvu0FkZtViCQGVyrXQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@unbrained/pm-cli": { + "version": "2026.9.21", + "resolved": "https://registry.npmjs.org/@unbrained/pm-cli/-/pm-cli-2026.9.21.tgz", + "integrity": "sha512-HPgGm/pU81Avtty9lVYqYh0jxKzNyQjHnvwQrRjSYNHaVQeJ3xNM/VV9i0CCPL0zLxRjdriYj/PnNDIMC2Ur2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/node": "10.75.0", + "@toon-format/toon": "^4.1.1", + "@types/node": ">=22", + "commander": "^15.0.0", + "fast-glob": "^3.3.3", + "fast-json-patch": "^3.1.1", + "npm-package-arg": "^13.0.2", + "tar": "7.5.22", + "yaml": "^2.9.1" + }, + "bin": { + "pm": "dist/cli.js", + "pm-cli": "dist/cli.js", + "pm-mcp": "dist/mcp/server.js", + "pm-mcp-http": "dist/mcp/http-server.js" + }, + "engines": { + "node": ">=22.18.0" + } + }, + "node_modules/acorn": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true, + "license": "MIT" + }, + "node_modules/assert-never": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/assert-never/-/assert-never-1.4.0.tgz", + "integrity": "sha512-5oJg84os6NMQNl27T9LnZkvvqzvAnHu03ShCnoj6bsJwS7L8AO4lf+C/XjK/nvzEqQB744moC6V128RucQd1jA==", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-walk": { + "version": "3.0.0-canary-5", + "resolved": "https://registry.npmjs.org/babel-walk/-/babel-walk-3.0.0-canary-5.tgz", + "integrity": "sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.9.6" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/babel-walk/node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/babel-walk/node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/babel-walk/node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/badgen": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/badgen/-/badgen-3.3.2.tgz", + "integrity": "sha512-fbQwK9norfdzbdsoPwbLIAmgBXDGEme3jeIyqPAH7o6vp9lmuLHS7uXULvOiQ6XnMLkYNG4gDjILf74hgtTAug==", + "dev": true, + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.25", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.25.tgz", + "integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/blamer": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/blamer/-/blamer-1.0.7.tgz", + "integrity": "sha512-GbBStl/EVlSWkiJQBZps3H1iARBrC7vt++Jb/TTmCNu/jZ04VW7tSN1nScbFXBUy1AN+jzeL7Zep9sbQxLhXKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^4.0.0", + "which": "^2.0.2" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.29.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz", + "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.11.23", + "caniuse-lite": "^1.0.30001810", + "electron-to-chromium": "^1.5.427", + "node-releases": "^2.0.55", + "update-browserslist-db": "^1.3.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001810", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", + "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0", + "peer": true + }, + "node_modules/character-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/character-parser/-/character-parser-2.2.0.tgz", + "integrity": "sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-regex": "^1.0.3" + } + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/cjs-module-lexer": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.1.tgz", + "integrity": "sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/cli-table3": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", + "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/commander": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/constantinople": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/constantinople/-/constantinople-4.0.1.tgz", + "integrity": "sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.6.0", + "@babel/types": "^7.6.1" + } + }, + "node_modules/constantinople/node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/constantinople/node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/constantinople/node_modules/@babel/parser": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/constantinople/node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/doctypes": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz", + "integrity": "sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.434", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.434.tgz", + "integrity": "sha512-7EeFW9OLf1NN9NKQP9xdOE/XKqjxv7JDPP6AEAkHli11+Fae1OaLoNuAf13hQv1PPNtuES0pLQSPk2+fS3s8ww==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/empathic": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.1.0.tgz", + "integrity": "sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-module-lexer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-3.0.2.tgz", + "integrity": "sha512-BuIB67FngDSyQ/dpQNOZybwdEBDUGJQvOqwWr4ha/ufYiqzuEwPkKO2zLhRAgay28tStRIHUeWmszZAJo3GCOg==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.11.0.tgz", + "integrity": "sha512-P7a6UEEqb9G95MYAtqkmsTbVXIYyzIfl6NGOIJk162PaahFxFyeGcrlXYFSiagECg4sEm8IseJdZBKR3rx6MsQ==", + "dev": true, + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "11.1.5 || >11.1.6 <12", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-patch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", + "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" + }, + "node_modules/flru": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/flru/-/flru-1.0.2.tgz", + "integrity": "sha512-kWyh8ADvHBFz6ua5xYOPnUroZTT/bwWfrCeL0Wj1dzG4/YOmOcfJ99W8dOVyyynJN35rZ9aCOtHChqQovV7yog==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/fs-extra": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz", + "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/hosted-git-info": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", + "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^11.1.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-in-the-middle": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.5.1.tgz", + "integrity": "sha512-mPKuL8bPQzecui2KK6Gb+M8JvJoHnhS1FeYGa22QopBmlevF5F0FE6ued/B5EgHDeIoMTONIpDWWFKUPOG0DBQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "cjs-module-lexer": "^2.2.0", + "es-module-lexer": "^3.0.2", + "module-details-from-path": "^1.0.4" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-core-module": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", + "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-expression": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz", + "integrity": "sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^7.1.1", + "object-assign": "^4.1.1" + } + }, + "node_modules/is-expression/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-stringify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/js-stringify/-/js-stringify-1.0.2.tgz", + "integrity": "sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-tokens": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", + "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/jscpd": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/jscpd/-/jscpd-4.3.0.tgz", + "integrity": "sha512-yUqcHy/USHvzFamS6Loo49MCSW0Dc+4RL6ELH+Un9o2/jRSQbs9+a5hjfFceV2d3Zgv1opv5PXJ0eZ3fEQdjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jscpd/badge-reporter": "4.2.5", + "@jscpd/core": "4.2.5", + "@jscpd/finder": "4.3.0", + "@jscpd/html-reporter": "4.2.5", + "@jscpd/tokenizer": "4.2.6", + "colors": "^1.4.0", + "commander": "^15.0.0", + "fs-extra": "^11.3.6", + "jscpd-sarif-reporter": "4.2.5" + }, + "bin": { + "jscpd": "bin/jscpd" + } + }, + "node_modules/jscpd-sarif-reporter": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/jscpd-sarif-reporter/-/jscpd-sarif-reporter-4.2.5.tgz", + "integrity": "sha512-O8LcM9grAS5yO5x1Q0yegYaYcUX//IEBEyvzGFSYCeo1YzHbMnAI6EK7oTrwD+7Csjvfg9m8B8G7OOxzcSlr9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "colors": "^1.4.0", + "fs-extra": "^11.2.0", + "node-sarif-builder": "^4.1.0" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jstransformer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/jstransformer/-/jstransformer-1.0.0.tgz", + "integrity": "sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-promise": "^2.0.0", + "promise": "^7.0.1" + } + }, + "node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" }, - "bin": { - "pm": "dist/cli.js", - "pm-cli": "dist/cli.js", - "pm-mcp": "dist/mcp/server.js", - "pm-mcp-http": "dist/mcp/http-server.js" + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" }, "engines": { - "node": ">=22.18.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/markdown-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz", + "integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "repeat-string": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, "license": "MIT" }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "license": "MIT", "dependencies": { - "fill-range": "^7.1.1" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">=8" + "node": ">=8.6" } }, - "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", "dev": true, "license": "BlueOak-1.0.0", "engines": { - "node": ">=18" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/cjs-module-lexer": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.1.tgz", - "integrity": "sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==", + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/module-details-from-path": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", "dev": true, "license": "MIT" }, - "node_modules/commander": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", - "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/neo4j-driver": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/neo4j-driver/-/neo4j-driver-6.2.0.tgz", + "integrity": "sha512-9W/Tk7EyjZHtv87NFpqoIbl0mlQx8bX8phUFzAM9xmeJrRpGDvqkpdQzc11DjwzywQCdhifaZPSvokSnAp7YTg==", + "license": "Apache-2.0", + "dependencies": { + "neo4j-driver-bolt-connection": "6.2.0", + "neo4j-driver-core": "6.2.0", + "rxjs": "^7.8.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/neo4j-driver-bolt-connection": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-6.2.0.tgz", + "integrity": "sha512-SEnFSBfumleDxmDAZKkjXxZ5LgL2iZSTx08sO+qXX45ZKaxZJOcg9oxwoXACXZ1RbIq3XbDfHU8I5tExanYEOA==", + "license": "Apache-2.0", + "dependencies": { + "buffer": "^6.0.3", + "neo4j-driver-core": "6.2.0", + "string_decoder": "^1.3.0" + } + }, + "node_modules/neo4j-driver-core": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/neo4j-driver-core/-/neo4j-driver-core-6.2.0.tgz", + "integrity": "sha512-U8PSdvDECWmCgSWyhqNNVzMONXFHWPcTd5gqi12+EDxxt0aETA0m+XCXf9H7q6qQXdisc40rUJEOcVQOu6peEA==", + "license": "Apache-2.0" + }, + "node_modules/node-releases": { + "version": "2.0.56", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz", + "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==", "dev": true, "license": "MIT", + "peer": true, "engines": { - "node": ">=22.12.0" + "node": ">=18" } }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "node_modules/node-sarif-builder": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/node-sarif-builder/-/node-sarif-builder-4.1.0.tgz", + "integrity": "sha512-IWqZF6u0EI/07HTBm+zZ+MgXgWl09dnSJRGaDCPBSlOqilDcx6pj3Mpb3HvPN8V2Gr+ISw7ZrMsL7STWs1F++w==", "dev": true, "license": "MIT", "dependencies": { - "ms": "^2.1.3" + "@types/sarif": "^2.1.7", + "fs-extra": "^11.1.1" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">=20" } }, - "node_modules/es-module-lexer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-3.0.2.tgz", - "integrity": "sha512-BuIB67FngDSyQ/dpQNOZybwdEBDUGJQvOqwWr4ha/ufYiqzuEwPkKO2zLhRAgay28tStRIHUeWmszZAJo3GCOg==", + "node_modules/npm-package-arg": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-13.0.2.tgz", + "integrity": "sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA==", "dev": true, - "license": "MIT" + "license": "ISC", + "dependencies": { + "hosted-git-info": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^7.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" + "path-key": "^3.0.0" }, "engines": { - "node": ">=8.6.0" + "node": ">=8" } }, - "node_modules/fast-json-patch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", - "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==", + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "node_modules/obug": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", + "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "license": "ISC", "dependencies": { - "reusify": "^1.0.4" + "wrappy": "1" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "license": "MIT", "dependencies": { - "to-regex-range": "^5.0.1" + "mimic-fn": "^2.1.0" }, "engines": { - "node": ">=8" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "is-glob": "^4.0.1" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { - "node": ">= 6" + "node": ">= 0.8.0" } }, - "node_modules/hosted-git-info": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", - "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "lru-cache": "^11.1.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": "^20.17.0 || >=22.9.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/import-in-the-middle": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.5.1.tgz", - "integrity": "sha512-mPKuL8bPQzecui2KK6Gb+M8JvJoHnhS1FeYGa22QopBmlevF5F0FE6ued/B5EgHDeIoMTONIpDWWFKUPOG0DBQ==", + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "cjs-module-lexer": "^2.2.0", - "es-module-lexer": "^3.0.2", - "module-details-from-path": "^1.0.4" + "p-limit": "^3.0.2" }, "engines": { - "node": ">=18" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.12.0" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "node_modules/pm-changelog": { + "version": "2026.9.18", + "resolved": "https://registry.npmjs.org/pm-changelog/-/pm-changelog-2026.9.18.tgz", + "integrity": "sha512-UJekN8TZUk/Q9Ri7pMl+EEtPqaGG5ePs/3/hS5JCx7w78dZAamfH7lUA+wUjJtoyKzLMX3XxTkCWpe61CquXdg==", "dev": true, - "license": "BlueOak-1.0.0", + "license": "MIT", + "bin": { + "pm-changelog": "dist/cli.js" + }, "engines": { - "node": "20 || >=22" + "node": ">=22.18.0" + }, + "peerDependencies": { + "@unbrained/pm-cli": ">=2026.8.20" } }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "node_modules/pm-ops": { + "version": "2026.9.18", + "resolved": "https://registry.npmjs.org/pm-ops/-/pm-ops-2026.9.18.tgz", + "integrity": "sha512-x4KWL0Y9y6Sz2Hw9LDJmZPoZmbruKJ1x9Z9QCq2/W/yAG5Lujl5HiyrE9Er6Ne7gKFWJp3kxywYqUWDnLHEyMQ==", "dev": true, "license": "MIT", + "dependencies": { + "@toon-format/toon": "^4.1.0", + "typescript": "7.0.2" + }, "engines": { - "node": ">= 8" + "node": ">=22.18.0" + }, + "peerDependencies": { + "@babel/eslint-parser": "^8.0.5", + "@babel/plugin-syntax-typescript": "^8.0.3", + "@unbrained/pm-cli": ">=2026.8.20", + "eslint": "^10.10.0", + "fast-glob": "^3.3.3", + "jscpd": "^4.3.0" + }, + "peerDependenciesMeta": { + "@babel/eslint-parser": { + "optional": true + }, + "@babel/plugin-syntax-typescript": { + "optional": true + }, + "eslint": { + "optional": true + }, + "fast-glob": { + "optional": true + }, + "jscpd": { + "optional": true + } } }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, "engines": { - "node": ">=8.6" + "node": ">= 0.8.0" } }, - "node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "node_modules/proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", "dev": true, - "license": "BlueOak-1.0.0", + "license": "ISC", "engines": { - "node": ">=16 || 14 >=14.17" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/minizlib": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", - "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "node_modules/promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "dev": true, "license": "MIT", "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" + "asap": "~2.0.3" } }, - "node_modules/module-details-from-path": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", - "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", + "node_modules/pug": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pug/-/pug-3.0.4.tgz", + "integrity": "sha512-kFfq5mMzrS7+wrl5pLJzZEzemx34OQ0w4SARfhy/3yxTlhbstsudDwJzhf1hP02yHzbjoVMSXUj/Sz6RNfMyXg==", "dev": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "pug-code-gen": "^3.0.4", + "pug-filters": "^4.0.0", + "pug-lexer": "^5.0.1", + "pug-linker": "^4.0.0", + "pug-load": "^3.0.0", + "pug-parser": "^6.0.0", + "pug-runtime": "^3.0.1", + "pug-strip-comments": "^2.0.0" + } }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "node_modules/pug-attrs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pug-attrs/-/pug-attrs-3.0.0.tgz", + "integrity": "sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==", + "dev": true, + "license": "MIT", + "dependencies": { + "constantinople": "^4.0.1", + "js-stringify": "^1.0.2", + "pug-runtime": "^3.0.0" + } + }, + "node_modules/pug-code-gen": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-3.0.4.tgz", + "integrity": "sha512-6okWYIKdasTyXICyEtvobmTZAVX57JkzgzIi4iRJlin8kmhG+Xry2dsus+Mun/nGCn6F2U49haHI5mkELXB14g==", + "dev": true, + "license": "MIT", + "dependencies": { + "constantinople": "^4.0.1", + "doctypes": "^1.1.0", + "js-stringify": "^1.0.2", + "pug-attrs": "^3.0.0", + "pug-error": "^2.1.0", + "pug-runtime": "^3.0.1", + "void-elements": "^3.1.0", + "with": "^7.0.0" + } + }, + "node_modules/pug-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pug-error/-/pug-error-2.1.0.tgz", + "integrity": "sha512-lv7sU9e5Jk8IeUheHata6/UThZ7RK2jnaaNztxfPYUY+VxZyk/ePVaNZ/vwmH8WqGvDz3LrNYt/+gA55NDg6Pg==", "dev": true, "license": "MIT" }, - "node_modules/neo4j-driver": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/neo4j-driver/-/neo4j-driver-6.2.0.tgz", - "integrity": "sha512-9W/Tk7EyjZHtv87NFpqoIbl0mlQx8bX8phUFzAM9xmeJrRpGDvqkpdQzc11DjwzywQCdhifaZPSvokSnAp7YTg==", - "license": "Apache-2.0", + "node_modules/pug-filters": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pug-filters/-/pug-filters-4.0.0.tgz", + "integrity": "sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A==", + "dev": true, + "license": "MIT", "dependencies": { - "neo4j-driver-bolt-connection": "6.2.0", - "neo4j-driver-core": "6.2.0", - "rxjs": "^7.8.2" - }, - "engines": { - "node": ">=18.0.0" + "constantinople": "^4.0.1", + "jstransformer": "1.0.0", + "pug-error": "^2.0.0", + "pug-walk": "^2.0.0", + "resolve": "^1.15.1" } }, - "node_modules/neo4j-driver-bolt-connection": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-6.2.0.tgz", - "integrity": "sha512-SEnFSBfumleDxmDAZKkjXxZ5LgL2iZSTx08sO+qXX45ZKaxZJOcg9oxwoXACXZ1RbIq3XbDfHU8I5tExanYEOA==", - "license": "Apache-2.0", + "node_modules/pug-lexer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-5.0.1.tgz", + "integrity": "sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==", + "dev": true, + "license": "MIT", "dependencies": { - "buffer": "^6.0.3", - "neo4j-driver-core": "6.2.0", - "string_decoder": "^1.3.0" + "character-parser": "^2.2.0", + "is-expression": "^4.0.0", + "pug-error": "^2.0.0" } }, - "node_modules/neo4j-driver-core": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/neo4j-driver-core/-/neo4j-driver-core-6.2.0.tgz", - "integrity": "sha512-U8PSdvDECWmCgSWyhqNNVzMONXFHWPcTd5gqi12+EDxxt0aETA0m+XCXf9H7q6qQXdisc40rUJEOcVQOu6peEA==", - "license": "Apache-2.0" + "node_modules/pug-linker": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pug-linker/-/pug-linker-4.0.0.tgz", + "integrity": "sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "pug-error": "^2.0.0", + "pug-walk": "^2.0.0" + } + }, + "node_modules/pug-load": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pug-load/-/pug-load-3.0.0.tgz", + "integrity": "sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.1", + "pug-walk": "^2.0.0" + } + }, + "node_modules/pug-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-6.0.0.tgz", + "integrity": "sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "pug-error": "^2.0.0", + "token-stream": "1.0.0" + } }, - "node_modules/npm-package-arg": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-13.0.2.tgz", - "integrity": "sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA==", + "node_modules/pug-runtime": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/pug-runtime/-/pug-runtime-3.0.1.tgz", + "integrity": "sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg==", "dev": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/pug-strip-comments": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz", + "integrity": "sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==", + "dev": true, + "license": "MIT", "dependencies": { - "hosted-git-info": "^9.0.0", - "proc-log": "^6.0.0", - "semver": "^7.3.5", - "validate-npm-package-name": "^7.0.0" - }, - "engines": { - "node": "^20.17.0 || >=22.9.0" + "pug-error": "^2.0.0" } }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "node_modules/pug-walk": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pug-walk/-/pug-walk-2.0.0.tgz", + "integrity": "sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", + "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, - "node_modules/pm-changelog": { - "version": "2026.9.18", - "resolved": "https://registry.npmjs.org/pm-changelog/-/pm-changelog-2026.9.18.tgz", - "integrity": "sha512-UJekN8TZUk/Q9Ri7pMl+EEtPqaGG5ePs/3/hS5JCx7w78dZAamfH7lUA+wUjJtoyKzLMX3XxTkCWpe61CquXdg==", + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "license": "MIT", - "bin": { - "pm-changelog": "dist/cli.js" - }, "engines": { - "node": ">=22.18.0" - }, - "peerDependencies": { - "@unbrained/pm-cli": ">=2026.8.20" + "node": ">=6" } }, - "node_modules/pm-ops": { - "version": "2026.9.18", - "resolved": "https://registry.npmjs.org/pm-ops/-/pm-ops-2026.9.18.tgz", - "integrity": "sha512-x4KWL0Y9y6Sz2Hw9LDJmZPoZmbruKJ1x9Z9QCq2/W/yAG5Lujl5HiyrE9Er6Ne7gKFWJp3kxywYqUWDnLHEyMQ==", + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", "dev": true, "license": "MIT", "dependencies": { - "@toon-format/toon": "^4.1.0", - "typescript": "7.0.2" + "hookified": "^2.1.1" }, "engines": { - "node": ">=22.18.0" - }, - "peerDependencies": { - "@babel/eslint-parser": "^8.0.5", - "@babel/plugin-syntax-typescript": "^8.0.3", - "@unbrained/pm-cli": ">=2026.8.20", - "eslint": "^10.10.0", - "fast-glob": "^3.3.3", - "jscpd": "^4.3.0" - }, - "peerDependenciesMeta": { - "@babel/eslint-parser": { - "optional": true - }, - "@babel/plugin-syntax-typescript": { - "optional": true - }, - "eslint": { - "optional": true - }, - "fast-glob": { - "optional": true - }, - "jscpd": { - "optional": true - } + "node": ">=20" } }, - "node_modules/proc-log": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", - "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", "dev": true, - "license": "ISC", - "engines": { - "node": "^20.17.0 || >=22.9.0" - } + "license": "MIT" }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -1165,6 +3524,16 @@ ], "license": "MIT" }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, "node_modules/require-in-the-middle": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-8.0.1.tgz", @@ -1179,6 +3548,28 @@ "node": ">=9.3.0 || >=8.10.0 <9.0.0" } }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/reusify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", @@ -1256,6 +3647,43 @@ "node": ">=10" } }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/spark-md5": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spark-md5/-/spark-md5-3.0.2.tgz", + "integrity": "sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw==", + "dev": true, + "license": "(WTFPL OR MIT)" + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -1265,6 +3693,57 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/tar": { "version": "7.5.22", "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", @@ -1295,12 +3774,32 @@ "node": ">=8.0" } }, + "node_modules/token-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz", + "integrity": "sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==", + "dev": true, + "license": "MIT" + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/typescript": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", @@ -1343,6 +3842,58 @@ "dev": true, "license": "MIT" }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", + "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/validate-npm-package-name": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-7.0.2.tgz", @@ -1353,6 +3904,128 @@ "node": "^20.17.0 || >=22.9.0" } }, + "node_modules/verkit": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.3.2.tgz", + "integrity": "sha512-zj/ob3UsvJGN0whEAKFp53REA5X66hvffVqoCtVQAakJKnKlH+/PcOfMoFwIG/o4rElqLv/ycAFlx8ZlXUorCg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/void-elements": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", + "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/with": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/with/-/with-7.0.2.tgz", + "integrity": "sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.9.6", + "@babel/types": "^7.9.6", + "assert-never": "^1.2.1", + "babel-walk": "3.0.0-canary-5" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/with/node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/with/node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/with/node_modules/@babel/parser": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/with/node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, "node_modules/yallist": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", @@ -1378,6 +4051,19 @@ "funding": { "url": "https://github.com/sponsors/eemeli" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 5d9c18d..a13f1d2 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "build:test": "tsc -p tsconfig.test.json", "typecheck": "tsc --noEmit", "prepare": "node scripts/prepare-merge-driver.ts", + "lint": "node scripts/lint.ts", + "duplication": "node scripts/duplication-gate.ts", "check": "npm run typecheck", "docstring": "node scripts/docstring-gate.ts", "audit:prod": "node --input-type=module -e \"import { spawnSync } from 'node:child_process'; import { devNull } from 'node:os'; const env = { ...process.env, npm_config_userconfig: devNull, NPM_CONFIG_USERCONFIG: devNull }; for (const key of Object.keys(env)) if (key.toLowerCase() === 'npm_config_allow_scripts') delete env[key]; const win = process.platform === 'win32'; const r = spawnSync(win ? 'npm.cmd' : 'npm', ['audit', '--omit=dev', '--ignore-scripts'], { stdio: 'inherit', env, shell: win }); process.exit(r.status ?? 1);\"", @@ -15,7 +17,7 @@ "changelog": "pm-changelog --pm-root .agents/pm --mode prepend --output CHANGELOG.md --release-version-from-package --date-from-version --since-previous-tag --until-release-tag --item-url-base https://github.com/unbraind/pm-graph/blob/main/.agents/pm --respect-item-release --pm-arg=--output-budget --pm-arg=unbounded --pm-arg=--output-limit --pm-arg=unbounded", "changelog:full": "pm-changelog --pm-root .agents/pm --mode replace --output CHANGELOG.md --all-release-tags --release-version-from-package --date-from-version --item-url-base https://github.com/unbraind/pm-graph/blob/main/.agents/pm --respect-item-release --pm-arg=--output-budget --pm-arg=unbounded --pm-arg=--output-limit --pm-arg=unbounded", "changelog:check": "pm-changelog --pm-root .agents/pm --mode replace --output CHANGELOG.md --all-release-tags --release-version-from-package --date-from-version --item-url-base https://github.com/unbraind/pm-graph/blob/main/.agents/pm --respect-item-release --check --pm-arg=--output-budget --pm-arg=unbounded --pm-arg=--output-limit --pm-arg=unbounded", - "release:check": "npm run typecheck && npm run build && npm run docstring && npm run coverage && npm run audit:prod && npm run pack:dry-run && npm run changelog:check && npm run verify:release-publish-attestation && npm run verify:release-changelog-date", + "release:check": "npm run typecheck && npm run lint && npm run duplication && npm run build && npm run docstring && npm run coverage && npm run audit:prod && npm run pack:dry-run && npm run changelog:check && npm run verify:release-publish-attestation && npm run verify:release-changelog-date", "prepack": "npm run build", "test": "npm run build && npm run build:test && node --test test/*.test.ts", "prepublishOnly": "npm run release:check", @@ -29,8 +31,13 @@ "neo4j-driver": "^6.2.0" }, "devDependencies": { + "@babel/eslint-parser": "^8.0.5", + "@babel/plugin-syntax-typescript": "^8.0.3", "@types/node": "^26.2.0", - "@unbrained/pm-cli": "2026.9.17", + "@unbrained/pm-cli": "2026.9.21", + "eslint": "^10.10.0", + "fast-glob": "^3.3.3", + "jscpd": "^4.3.0", "pm-changelog": "2026.9.18", "pm-ops": "2026.9.18", "typescript": "^7.0.2" @@ -115,5 +122,9 @@ "functions": 100 }, "ignore": [] + }, + "duplicationGate": { + "threshold": 0, + "minTokens": 50 } } diff --git a/scripts/duplication-gate.ts b/scripts/duplication-gate.ts new file mode 100644 index 0000000..e3c0094 --- /dev/null +++ b/scripts/duplication-gate.ts @@ -0,0 +1,6 @@ +/** + * Duplication gate: a thin launcher over the canonical jscpd gate in `pm-ops/duplication`. + */ +import { runDuplicationGate } from "pm-ops/duplication"; + +await runDuplicationGate(); \ No newline at end of file diff --git a/scripts/lint.ts b/scripts/lint.ts new file mode 100644 index 0000000..513808c --- /dev/null +++ b/scripts/lint.ts @@ -0,0 +1,6 @@ +/** + * Lint gate: a thin launcher over the canonical fleet ESLint policy in `pm-ops/eslint`. + */ +import { runLintGate } from "pm-ops/eslint"; + +process.exitCode = await runLintGate(); \ No newline at end of file diff --git a/scripts/prepare-merge-driver.ts b/scripts/prepare-merge-driver.ts index b044e9a..5ac0834 100644 --- a/scripts/prepare-merge-driver.ts +++ b/scripts/prepare-merge-driver.ts @@ -1,166 +1,10 @@ /** - * Installs pm's field-aware Git merge drivers during package preparation. + * npm `prepare` hook that installs pm's field-aware Git merge drivers. * - * Consumer installs may omit development dependencies and therefore have no - * `pm` executable. That absence is an intentional no-op. Once `pm` resolves, - * however, a failed installation is surfaced instead of silently leaving the - * clone without conflict-safe project-management history. + * Git never clones `.git/config`, so every clone must register the drivers that + * `.gitattributes` declares. The canonical implementation lives in + * `pm-ops/merge-driver`; this file stays a thin launcher over it. */ +import { runPrepareMergeDriver } from "pm-ops/merge-driver"; -import { spawnSync } from "node:child_process"; -import { accessSync, constants, realpathSync, statSync } from "node:fs"; -import { posix, resolve, win32 } from "node:path"; -import { fileURLToPath } from "node:url"; - -/** Process fields needed to distinguish success, absence, and failure. */ -interface CommandResult { - readonly error?: Error; - readonly status: number | null; -} - -/** Injectable process boundary used by deterministic unit tests. */ -type CommandRunner = ( - command: string, - args: string[], - options: { - readonly env?: NodeJS.ProcessEnv; - readonly shell: boolean; - readonly stdio: "inherit"; - readonly windowsVerbatimArguments?: boolean; - }, -) => CommandResult; - -/** Injectable filesystem boundary used while resolving a command candidate. */ -type CandidateVerifier = (candidate: string, platform: NodeJS.Platform) => boolean; - -/** - * Determines whether a PATH candidate is executable on the selected platform. - * - * @param candidate - Candidate path produced from PATH and PATHEXT. - * @param platform - Platform whose executable rules should be applied. - * @returns Whether the candidate is a regular executable command file. - */ -function isExecutableFile(candidate: string, platform: NodeJS.Platform): boolean { - try { - if (!statSync(candidate).isFile()) { - return false; - } - if (platform === "win32") { - return true; - } - accessSync(candidate, constants.X_OK); - return true; - } catch { - return false; - } -} - -/** - * Resolves the first executable `pm` command on PATH without executing it. - * - * Empty POSIX PATH entries mean the current directory. Windows ignores empty - * entries, accepts quoted directories, and derives command suffixes from - * PATHEXT. Looking up the command first preserves the important distinction - * between an absent optional development dependency and a present broken CLI. - * - * @param pathValue - Platform-delimited PATH value. - * @param pathExtValue - Windows PATHEXT value. - * @param platform - Platform whose path rules should be used. - * @param verifyCandidate - Filesystem boundary used to validate candidates. - * @returns The first executable command path, or `undefined` when absent. - */ -export function resolvePmCommand( - pathValue = process.env.PATH ?? "", - pathExtValue = process.env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD", - platform: NodeJS.Platform = process.platform, - verifyCandidate: CandidateVerifier = isExecutableFile, -): string | undefined { - const windows = platform === "win32"; - const pathApi = windows ? win32 : posix; - const directories = pathValue - .split(pathApi.delimiter) - .map((directory) => windows - && directory.length >= 2 - && directory.startsWith('"') - && directory.endsWith('"') - ? directory.slice(1, -1) - : directory === "" && !windows ? "." : directory) - .filter((directory) => directory.length > 0); - const extensions = windows - ? (pathExtValue || ".COM;.EXE;.BAT;.CMD") - .split(";") - .map((extension) => extension.trim()) - .filter((extension) => extension.length > 0) - .map((extension) => extension.startsWith(".") ? extension : `.${extension}`) - : [""]; - - for (const directory of directories) { - for (const extension of extensions) { - const candidate = pathApi.join(directory, `pm${extension}`); - if (verifyCandidate(candidate, platform)) { - return candidate; - } - } - } - return undefined; -} - -/** - * Runs `pm merge install` and returns the lifecycle exit code. - * - * @param runner - Synchronous process boundary. - * @param platform - Runtime platform used for command dispatch. - * @param resolveCommand - PATH lookup boundary. - * @returns Zero when pm is absent or succeeds; otherwise its failure status. - */ -export function installMergeDrivers( - runner: CommandRunner = spawnSync, - platform: NodeJS.Platform = process.platform, - resolveCommand: () => string | undefined = resolvePmCommand, -): number { - const executable = resolveCommand(); - if (!executable) { - return 0; - } - const result = platform === "win32" - ? runner( - "cmd.exe", - ["/d", "/v:off", "/s", "/c", '""%PM_GRAPH_PM_SHIM%" merge install"'], - { - env: { ...process.env, PM_GRAPH_PM_SHIM: executable }, - shell: false, - stdio: "inherit", - windowsVerbatimArguments: true, - }, - ) - : runner(executable, ["merge", "install"], { - shell: false, - stdio: "inherit", - }); - if (result.error) { - throw result.error; - } - return result.status ?? 1; -} - -/** - * Runs the lifecycle only when Node invoked this module as its main script. - * - * @param argv - Process arguments used to identify the entry module. - * @param runner - Process boundary forwarded to the installer. - * @returns Lifecycle exit code, or `undefined` when imported. - */ -export function runScriptEntry( - argv: readonly string[] = process.argv, - runner: CommandRunner = spawnSync, -): number | undefined { - if (!argv[1]) { - return undefined; - } - if (realpathSync(resolve(argv[1])) !== realpathSync(fileURLToPath(import.meta.url))) { - return undefined; - } - return installMergeDrivers(runner); -} - -process.exitCode = runScriptEntry() ?? process.exitCode; +process.exitCode = runPrepareMergeDriver(); \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 917f4fa..8c7124a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import { spawnSync } from "node:child_process"; import { existsSync, statSync, writeFileSync } from "node:fs"; +import { createRequire } from "node:module"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { @@ -42,6 +43,17 @@ class CommandError extends Error { const __dirname = path.dirname(fileURLToPath(import.meta.url)); const packageRoot = path.resolve(__dirname, ".."); +/** + * Re-throw a `CommandError` as-is, or wrap any other error in a + * `CommandError` with the given prefix and exit code. Prevents losing the + * original typed exit code when a handler already threw a `CommandError`. + */ +function wrapCommandError(err: unknown, prefix: string, exitCode: number = EXIT_CODE.GENERIC_FAILURE): CommandError { + if (err instanceof CommandError) return err; + const msg = err instanceof Error ? err.message : String(err); + return new CommandError(`${prefix}: ${msg}`, exitCode); +} + // Exact flag tokens the `pm-graph query`/`neighbors` handlers strip from their // variadic positional args (these commands read `--json` manually, so the host // leaves it in `context.args`). Matched exactly — never by dash-prefix — so all @@ -73,7 +85,14 @@ type Neo4jDriver = { let neo4jApi: Neo4jApi | null = null; -type CommandContext = { +// Lazy CommonJS-style resolution of `neo4j-driver` from this module's own +// location. `require` keeps the resolution at call time (a top-level import +// would make the whole extension unresolvable when a git-URL install shipped +// without the driver) while satisfying the fleet's no-dynamic-imports policy. +const requireNeo4j = createRequire(import.meta.url); + +/** Context passed to extension command handlers by the pm CLI host. */ +export type CommandContext = { command?: string; args?: string[]; cwd?: string; @@ -84,14 +103,16 @@ type CommandContext = { global?: Record; }; -type ExtensionCommandArgumentDefinition = { +/** Definition of a positional argument accepted by an extension command. */ +export type ExtensionCommandArgumentDefinition = { name: string; required?: boolean; variadic?: boolean; description?: string; }; -type RegisterCommand = { +/** Shape of a command registered by an extension via `registerCommand`. */ +export type RegisterCommand = { name: string; description: string; run: (context: CommandContext) => Promise; @@ -101,7 +122,8 @@ type RegisterCommand = { failure_hints?: string[]; }; -type ServiceOverrideContext = { +/** Context passed to a service-override callback by the pm CLI host. */ +export type ServiceOverrideContext = { service: string; command?: string; args?: string[]; @@ -111,27 +133,31 @@ type ServiceOverrideContext = { payload?: unknown; }; -type ExtensionApi = { +/** API surface the pm CLI host exposes to extensions for registration. */ +export type ExtensionApi = { registerCommand(command: RegisterCommand): void; registerExporter(name: string, exporter: Exporter): void; registerService(service: "output_format" | "error_format" | "help_format" | "lock_acquire" | "lock_release" | "history_append" | "item_store_write" | "item_store_delete" | "context_relevance", override: (context: ServiceOverrideContext) => unknown): void; }; -type GraphNode = { +/** A node in the workspace dependency graph (an item or a facet). */ +export type GraphNode = { id: string; labels: string[]; properties: Record; }; -type GraphRelationship = { +/** A directed relationship between two graph nodes. */ +export type GraphRelationship = { from: string; to: string; type: string; properties: Record; }; -type Graph = { +/** The full workspace dependency graph: nodes, relationships, and metadata. */ +export type Graph = { generatedAt: string; workspace: string; projectKey: string; @@ -186,24 +212,29 @@ function neo4jMissingMessage(): string { } /** - * Lazily load the `neo4j-driver` module, installing it on demand. + * Lazily resolve the `neo4j-driver` module, installing it on demand. * - * Returns the cached module (`neo4jApi`) once resolved, so repeated commands - * pay the import cost once. A first import that fails is treated as a missing - * optional dependency rather than a hard failure: `npm install --omit=dev` is - * run in {@link packageRoot} and the import retried, so a git-URL install that + * Resolution happens at call time through `requireNeo4j`, so repeated commands + * pay the resolution cost once (the resolved API is cached in `neo4jApi`). A + * first resolution that fails is treated as a missing optional dependency + * rather than a hard failure: `npm install --omit=dev` is run in + * {@link packageRoot} and the resolution retried, so a git-URL install that * shipped without the driver can still self-repair. A failed install throws an - * error that carries both the install exit code and the original import error. + * error that carries both the install exit code and the original resolution + * error. + * + * The result is assigned to `neo4jApi` exactly once, after every failure path + * has been ruled out, so no intermediate await can observe or clobber a stale + * cache value. * * @returns The resolved neo4j-driver module API. - * @throws {Error} When the driver cannot be imported and cannot be installed. + * @throws {Error} When the driver cannot be resolved and cannot be installed. */ async function loadNeo4j(): Promise { if (neo4jApi) return neo4jApi; + let resolved: Neo4jApi; try { - const mod = await import("neo4j-driver"); - neo4jApi = ((mod as { default?: Neo4jApi }).default ?? mod) as Neo4jApi; - return neo4jApi; + resolved = resolveNeo4jModule(); } catch (err: unknown) { console.error("Installing pm-graph Neo4j runtime dependency..."); const install = spawnSync("npm", ["install", "--omit=dev"], { @@ -218,10 +249,27 @@ async function loadNeo4j(): Promise { `Neo4j driver is not installed and npm install --omit=dev failed with exit code ${install.status ?? "unknown"}. (${msg})`, ); } - const mod = await import("neo4j-driver"); - neo4jApi = ((mod as { default?: Neo4jApi }).default ?? mod) as Neo4jApi; - return neo4jApi; + resolved = resolveNeo4jModule(); } + neo4jApi = resolved; + return resolved; +} + +/** + * Resolve the `neo4j-driver` module and normalize its export shape. + * + * `require` of the CommonJS build returns the `module.exports` API object + * directly, while `require` of an ECMAScript module (the shape the test + * fixtures and any future ESM-only driver build serve) returns the module + * namespace, where the API sits behind `default`. Accepting both keeps the + * interop contract identical to the previous dynamic-import behaviour. + * + * @returns The neo4j-driver module API. + * @throws Whatever module resolution throws when the driver is absent. + */ +function resolveNeo4jModule(): Neo4jApi { + const mod: unknown = requireNeo4j("neo4j-driver"); + return ((mod as { readonly default?: Neo4jApi }).default ?? mod) as Neo4jApi; } /** @@ -429,12 +477,20 @@ function toPlain(value: unknown): unknown { * or count never have to special-case a missing value, at the cost of a bogus * zero for genuinely malformed input. */ -function toNumber(value: unknown): number { +/** + * Unwrap a Neo4j Integer (object exposing `toNumber`) to a native number, + * or return a native number as-is. Returns `null` for anything else. + */ +function unwrapNeo4jInteger(value: unknown): number | null { if (typeof value === "number") return value; if (value && typeof value === "object" && "toNumber" in value && typeof (value as { toNumber?: unknown }).toNumber === "function") { return (value as { toNumber: () => number }).toNumber(); } - return 0; + return null; +} + +function toNumber(value: unknown): number { + return unwrapNeo4jInteger(value) ?? 0; } // --------------------------------------------------------------------------- @@ -1219,6 +1275,31 @@ function mermaidId(id: string): string { return "n_" + id.replace(/[^A-Za-z0-9_]/g, "_"); } +/** + * Read a node's display title, falling back to its id when the property is + * absent or not a non-empty string. + */ +function nodeTitle(node: GraphNode): string { + return typeof node.properties.title === "string" && node.properties.title + ? String(node.properties.title) + : node.id; +} + +/** Read a node's status as a string, or `""` when absent or non-string. */ +function nodeStatus(node: GraphNode): string { + return typeof node.properties.status === "string" ? node.properties.status : ""; +} + +/** + * Build the single-line `title [id] (status)` label the diagram renderers + * share. The status suffix is omitted entirely for status-less nodes. + */ +function diagramLabel(node: GraphNode): string { + const title = nodeTitle(node); + const status = nodeStatus(node); + return status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; +} + /** * Render a graph as a Mermaid `graph TD` document. * @@ -1231,12 +1312,7 @@ function mermaidId(id: string): string { function renderMermaid(graph: Graph): string { const lines: string[] = ["graph TD"]; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; - const label = status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; - lines.push(` ${mermaidId(node.id)}["${mermaidLabel(label)}"]`); + lines.push(` ${mermaidId(node.id)}["${mermaidLabel(diagramLabel(node))}"]`); } if (graph.relationships.length > 0) lines.push(""); for (const rel of graph.relationships) { @@ -1260,13 +1336,20 @@ function dotEscape(s: string): string { * id and label is run through {@link dotEscape} so a quote or backslash in an * item title cannot break out of the attribute. */ +/** Extract the title and status strings from a graph node's properties. */ +function nodeLabelParts(node: GraphNode): { title: string; status: string } { + const title = typeof node.properties.title === "string" && node.properties.title + ? String(node.properties.title) + : node.id; + const status = typeof node.properties.status === "string" ? node.properties.status : ""; + return { title, status }; +} + +/** Render a graph as a Graphviz DOT digraph with left-to-right ranking. */ function renderDot(graph: Graph): string { const lines: string[] = ["digraph pm_graph {", " rankdir=LR;", ' node [shape=box, style=rounded];']; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; + const { title, status } = nodeLabelParts(node); // Build the second line first, then join with the DOT line-break directive // "\n" AFTER escaping so dotEscape does not double-escape the backslash. const second = status ? `[${node.id}] ${status}` : `[${node.id}]`; @@ -1378,10 +1461,7 @@ function plantumlLabel(s: string): string { export function renderPlantuml(graph: Graph): string { const lines: string[] = ["@startuml", "left to right direction"]; for (const node of graph.nodes) { - const title = typeof node.properties.title === "string" && node.properties.title - ? String(node.properties.title) - : node.id; - const status = typeof node.properties.status === "string" ? node.properties.status : ""; + const { title, status } = nodeLabelParts(node); const label = status ? `${title} [${node.id}] (${status})` : `${title} [${node.id}]`; lines.push(`object "${plantumlLabel(label)}" as ${plantumlAlias(node.id)}`); } @@ -1931,40 +2011,67 @@ export function mapImpactDirection(logical: string): "incoming" | "outgoing" | " * (which differs between `incoming`/`outgoing`) never fabricates edges. The * root is always the first node so diagrams anchor on it. */ +/** + * Build an ordered, de-duplicated node list anchored at `rootId`, followed + * by `rest` in order. Returns the ordered list and a `Set` for membership + * checks. Used by both impact subgraph builders. + */ +function orderedNodeSet(rootId: string, rest: string[] = []): { order: string[]; set: Set } { + const order: string[] = []; + const seen = new Set(); + const add = (id: string): void => { + if (!seen.has(id)) { + seen.add(id); + order.push(id); + } + }; + add(rootId); + for (const id of rest) add(id); + return { order, set: seen }; +} + +/** + * Collect de-duplicated bidirectional edge keys from a list of node-id paths. + * Each consecutive pair in a path contributes both `u->v` and `v->u` keys. + */ +function collectBidirectionalEdges(paths: string[][]): string[] { + const edgeKeys: string[] = []; + const seen = new Set(); + for (const path of paths) { + for (let i = 0; i < path.length - 1; i++) { + for (const key of [`${path[i]}->${path[i + 1]}`, `${path[i + 1]}->${path[i]}`]) { + if (!seen.has(key)) { + seen.add(key); + edgeKeys.push(key); + } + } + } + } + return edgeKeys; +} + +/** + * Build the impact subgraph from canonical traversal paths: the root plus + * all path nodes, with bidirectional edges between consecutive path nodes + * that exist in the source graph. The root always anchors the diagram. + */ export function impactSubgraph( graph: Graph, rootId: string, affected: Array<{ id: string; distance?: number; path?: string[] }>, ): Graph { - const nodeOrder: string[] = []; - const seenNode = new Set(); - const addNode = (id: string): void => { - if (!seenNode.has(id)) { - seenNode.add(id); - nodeOrder.push(id); - } - }; - addNode(rootId); - const edgeKeys: string[] = []; - const seenEdge = new Set(); - const addEdge = (u: string, v: string): void => { - const key = `${u}->${v}`; - if (!seenEdge.has(key)) { - seenEdge.add(key); - edgeKeys.push(key); - } - }; + const paths: string[][] = []; + const allNodeIds: string[] = []; for (const row of affected) { const rawPath = Array.isArray(row.path) && row.path.length > 0 ? row.path : [rootId, row.id]; // Defensive: ensure the path starts at the root so the root anchors the // diagram even when the engine omits it. const path = rawPath[0] === rootId ? rawPath : [rootId, ...rawPath]; - for (const id of path) addNode(id); - for (let i = 0; i < path.length - 1; i++) { - addEdge(path[i], path[i + 1]); - addEdge(path[i + 1], path[i]); - } + paths.push(path); + allNodeIds.push(...path); } + const { order: nodeOrder } = orderedNodeSet(rootId, allNodeIds); + const edgeKeys = collectBidirectionalEdges(paths); return projectSubgraph(graph, nodeOrder, edgeKeys); } @@ -1980,17 +2087,7 @@ export function impactSubgraphFromNodeSet( rootId: string, nodeIds: string[], ): Graph { - const nodeOrder: string[] = []; - const seenNode = new Set(); - const addNode = (id: string): void => { - if (!seenNode.has(id)) { - seenNode.add(id); - nodeOrder.push(id); - } - }; - addNode(rootId); - for (const id of nodeIds) if (id !== rootId) addNode(id); - const set = new Set(nodeOrder); + const { order: nodeOrder, set } = orderedNodeSet(rootId, nodeIds.filter((id) => id !== rootId)); const edgeKeys: string[] = []; for (const e of structuralEdges(graph)) { if (set.has(e.from) && set.has(e.to)) edgeKeys.push(`${e.from}->${e.to}`); @@ -2093,17 +2190,7 @@ function readNumberProperty( properties: Record, key: string, ): number | null { - const value = properties[key]; - if (typeof value === "number") return value; - if ( - value && - typeof value === "object" && - "toNumber" in value && - typeof (value as { toNumber?: unknown }).toNumber === "function" - ) { - return (value as { toNumber: () => number }).toNumber(); - } - return null; + return unwrapNeo4jInteger(properties[key]); } function itemTitle(node: GraphNode | undefined, fallbackId: string): string { @@ -2662,6 +2749,29 @@ function argsHaveFlag(args: string[], longName: string): boolean { * for every other command so default rendering is untouched. Then registers * each pm-graph command (ping, export, …) against the host API. */ +/** + * Load and shape the analytics graph for a command context, returning the + * parsed flags, graph, structural edges, and sorted item ids. Shared by the + * cycles, critical-path, and topo-sort handlers to avoid repeating the + * four-line load sequence. + */ +async function loadShapedAnalytics(context: CommandContext): Promise<{ + flags: AnalyticsFlags; + graph: Graph; + edges: StructuralEdge[]; + items: string[]; +}> { + const flags = parseAnalyticsFlags(context.args ?? []); + const graph = await shapedAnalyticsGraph(context, flags); + const edges = structuralEdges(graph); + const items = [...itemNodeIds(graph)].sort(); + return { flags, graph, edges, items }; +} + +/** + * Register every pm-graph command, exporter, and service override with the + * pm CLI host. Called once at extension load time. + */ export function activate(api: ExtensionApi): void { // The `pm-graph export --format ` handler renders the graph into a // raw offline format (cypher | mermaid | dot | json | graphml | plantuml) @@ -2818,10 +2928,7 @@ export function activate(api: ExtensionApi): void { graph: await buildGraph(), }; } catch (err: unknown) { - // Preserve an already-typed CommandError (and its exit code) instead of flattening. - if (err instanceof CommandError) throw err; - const msg = err instanceof Error ? err.message : String(err); - throw new CommandError(`Export failed: ${msg}`, EXIT_CODE.GENERIC_FAILURE); + throw wrapCommandError(err, "Export failed", EXIT_CODE.GENERIC_FAILURE); } } @@ -2864,10 +2971,7 @@ export function activate(api: ExtensionApi): void { relationships: graph.relationships.length, }; } catch (err: unknown) { - // Preserve an already-typed CommandError (and its exit code) instead of flattening. - if (err instanceof CommandError) throw err; - const msg = err instanceof Error ? err.message : String(err); - throw new CommandError(`Export failed: ${msg}`, EXIT_CODE.GENERIC_FAILURE); + throw wrapCommandError(err, "Export failed", EXIT_CODE.GENERIC_FAILURE); } }, }); @@ -3277,10 +3381,7 @@ export function activate(api: ExtensionApi): void { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { flags, graph, edges, items } = await loadShapedAnalytics(context); const cycles = findCycles(items, edges); if (cycles.length > 0) { if (flags.format !== "text") { @@ -3376,10 +3477,7 @@ export function activate(api: ExtensionApi): void { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { flags, graph, edges, items } = await loadShapedAnalytics(context); const chain = longestChain(items, edges); if (flags.format !== "text") { const diagram = renderAnalysisDiagram(flags.format, criticalPathSubgraph(graph, chain)); @@ -3415,10 +3513,7 @@ export function activate(api: ExtensionApi): void { }, }; } - const flags = parseAnalyticsFlags(context.args ?? []); - const graph = await shapedAnalyticsGraph(context, flags); - const edges = structuralEdges(graph); - const items = [...itemNodeIds(graph)].sort(); + const { edges, items } = await loadShapedAnalytics(context); const { order, cycleNodes } = topoSort(items, edges); if (cycleNodes.length > 0) { // Surface the actual cycle path(s) among the unresolved nodes for context. diff --git a/test/analytics.test.ts b/test/analytics.test.ts index ed06aa4..5580f50 100644 --- a/test/analytics.test.ts +++ b/test/analytics.test.ts @@ -23,7 +23,10 @@ import { mapImpactDirection, impactSubgraph, impactSubgraphFromNodeSet, + type Graph, + type GraphNode, } from "../src/index.ts"; +import { synthNode as node, synthGraph, synthRel as rel } from "./helpers.ts"; // The renderers and analytics helpers are exported from the compiled module. // We import the renderExport-backed formats indirectly by exercising the @@ -104,24 +107,17 @@ test("longestChain is cycle-safe (terminates, no infinite loop)", () => { // --- analyzeGraph integration over a synthetic Graph ---------------------- -function node(id: string, extra: Record = {}) { - return { id, labels: ["PmItem"], properties: { id, title: id, type: "Task", status: "open", ...extra } }; -} -function rel(from: string, to: string, type: string) { - return { from, to, type, properties: {} }; -} +/** Timestamp shared by the synthetic graphs in this file. */ +const GRAPH_TS = "2026-06-02T00:00:00.000Z"; -const syntheticGraph = { - generatedAt: "2026-06-02T00:00:00.000Z", - workspace: "/tmp/ws", - projectKey: "ws", - nodes: [ +const syntheticGraph: Graph = synthGraph( + [ node("A"), node("B"), node("C"), node("D"), node("E"), node("F"), node("O"), // facet node should be ignored by analytics { id: "status:open", labels: ["PmFacet", "Status"], properties: { id: "status:open", title: "open" } }, ], - relationships: [ + [ rel("B", "A", "BLOCKED_BY"), rel("C", "B", "BLOCKED_BY"), rel("D", "C", "BLOCKED_BY"), @@ -131,10 +127,11 @@ const syntheticGraph = { rel("A", "status:open", "HAS_STATUS"), rel("B", "tag:backend", "TAGGED_WITH"), ], -}; + GRAPH_TS, +); test("analyzeGraph computes the expected health metrics", () => { - const report = analyzeGraph(syntheticGraph as any); + const report = analyzeGraph(syntheticGraph); assert.strictEqual(report.itemCount, 7, "7 PmItem nodes (facet excluded)"); assert.strictEqual(report.structuralEdgeCount, 5, "5 structural edges (facet/tag excluded)"); assert.strictEqual(report.cycleCount, 1, "one cycle E<->F"); @@ -154,7 +151,7 @@ test("analyzeGraph computes the expected health metrics", () => { }); test("analyzeGraph ignores facet/tag edges entirely", () => { - const report = analyzeGraph(syntheticGraph as any); + const report = analyzeGraph(syntheticGraph); // If facet edges leaked in, A would gain an outgoing edge (to status:open) // and structuralEdgeCount would be 7 instead of 5. assert.strictEqual(report.structuralEdgeCount, 5); @@ -162,7 +159,7 @@ test("analyzeGraph ignores facet/tag edges entirely", () => { }); test("explainItem reports blockers/dependents/impact for an acyclic item", () => { - const report = explainItem(syntheticGraph as any, "B"); + const report = explainItem(syntheticGraph, "B"); assert.ok(report, "item should be explainable"); assert.strictEqual(report!.id, "B"); assert.deepStrictEqual(report!.blockers.map((n) => n.id), ["A"]); @@ -175,7 +172,7 @@ test("explainItem reports blockers/dependents/impact for an acyclic item", () => }); test("explainItem reports cycle participation for a cyclic item", () => { - const report = explainItem(syntheticGraph as any, "E"); + const report = explainItem(syntheticGraph, "E"); assert.ok(report, "item should be explainable"); assert.strictEqual(report!.inCycle, true); assert.strictEqual(report!.cycleCount, 1); @@ -185,12 +182,12 @@ test("explainItem reports cycle participation for a cyclic item", () => { }); test("explainItem returns null for unknown item ids", () => { - assert.strictEqual(explainItem(syntheticGraph as any, "missing-id"), null); + assert.strictEqual(explainItem(syntheticGraph, "missing-id"), null); }); // --- renderers ------------------------------------------------------------ -const renderGraph = { +const renderGraph: Graph = { generatedAt: "2026-06-02T00:00:00.000Z", workspace: "/tmp/ws", projectKey: "ws", @@ -202,7 +199,7 @@ const renderGraph = { }; test("renderGraphml emits valid, escaped GraphML", () => { - const xml = renderGraphml(renderGraph as any); + const xml = renderGraphml(renderGraph); assert.ok(xml.startsWith(' { }); test("renderPlantuml emits a valid @startuml block", () => { - const uml = renderPlantuml(renderGraph as any); + const uml = renderPlantuml(renderGraph); assert.ok(uml.startsWith("@startuml"), "starts with @startuml"); assert.ok(uml.trim().endsWith("@enduml"), "ends with @enduml"); assert.ok(uml.includes("object "), "declares objects"); @@ -291,7 +288,7 @@ test("dependencyDepths is cycle-safe", () => { }); test("analyzeGraph exposes maxDepth and depthByItem", () => { - const report = analyzeGraph(syntheticGraph as any); + const report = analyzeGraph(syntheticGraph); // chain D->C->B->A gives maxDepth 3 (D), and depthByItem sorted deepest-first. assert.strictEqual(report.maxDepth, 3, "D sits 3 edges from leaf A"); assert.strictEqual(report.depthByItem[0].id, "D"); @@ -324,16 +321,13 @@ test("criticalConnectors finds articulation points and bridge edges in the undir // A graph with a 4-node dependency chain D->C->B->A, a separate E<->F cycle, // an orphan O, and facet/tag noise that must never leak into the subgraphs. -const diagramGraph = { - generatedAt: "2026-06-02T00:00:00.000Z", - workspace: "/tmp/ws", - projectKey: "ws", - nodes: [ +const diagramGraph: Graph = synthGraph( + [ node("A"), node("B"), node("C"), node("D"), node("E"), node("F"), node("O"), { id: "status:open", labels: ["PmFacet", "Status"], properties: { id: "status:open", title: "open" } }, ], - relationships: [ + [ rel("D", "C", "BLOCKED_BY"), rel("C", "B", "BLOCKED_BY"), rel("B", "A", "BLOCKED_BY"), @@ -342,25 +336,26 @@ const diagramGraph = { rel("A", "status:open", "HAS_STATUS"), rel("B", "tag:backend", "TAGGED_WITH"), ], -}; + GRAPH_TS, +); test("criticalPathSubgraph contains exactly the chain nodes and connecting edges", () => { const chain = longestChain(["A", "B", "C", "D"], chainEdges); // D,C,B,A - const sub = criticalPathSubgraph(diagramGraph as any, chain); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["D", "C", "B", "A"]); + const sub = criticalPathSubgraph(diagramGraph, chain); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["D", "C", "B", "A"]); assert.strictEqual(sub.relationships.length, 3, "three consecutive chain edges"); for (const r of sub.relationships) { assert.strictEqual(r.type, "BLOCKED_BY"); } // No cycle node, orphan, or facet node may appear. for (const id of ["E", "F", "O", "status:open"]) { - assert.ok(!sub.nodes.some((n: any) => n.id === id), `${id} excluded`); + assert.ok(!sub.nodes.some((n) => n.id === id), `${id} excluded`); } }); test("critical-path --format mermaid emits a mermaid graph with exactly the chain nodes", () => { const chain = longestChain(["A", "B", "C", "D"], chainEdges); - const out = renderAnalysisDiagram("mermaid", criticalPathSubgraph(diagramGraph as any, chain)); + const out = renderAnalysisDiagram("mermaid", criticalPathSubgraph(diagramGraph, chain)); assert.ok(out.startsWith("graph TD"), "is a mermaid graph"); for (const id of ["A", "B", "C", "D"]) { assert.ok(out.includes(`n_${id}[`), `chain node ${id} present`); @@ -380,18 +375,18 @@ test("critical-path --format mermaid emits a mermaid graph with exactly the chai test("cyclesSubgraph contains only cycle-participating nodes and edges", () => { const edges = [...chainEdges, ...cycleEdges]; const cycles = findCycles(["A", "B", "C", "D", "E", "F"], edges); - const sub = cyclesSubgraph(diagramGraph as any, cycles); - assert.deepStrictEqual([...sub.nodes.map((n: any) => n.id)].sort(), ["E", "F"]); + const sub = cyclesSubgraph(diagramGraph, cycles); + assert.deepStrictEqual([...sub.nodes.map((n) => n.id)].sort(), ["E", "F"]); assert.strictEqual(sub.relationships.length, 2, "the two edges around the E<->F cycle"); for (const id of ["A", "B", "C", "D", "O", "status:open"]) { - assert.ok(!sub.nodes.some((n: any) => n.id === id), `${id} excluded`); + assert.ok(!sub.nodes.some((n) => n.id === id), `${id} excluded`); } }); test("cycles --format graphml emits only the cycle-participating nodes/edges", () => { const edges = [...chainEdges, ...cycleEdges]; const cycles = findCycles(["A", "B", "C", "D", "E", "F"], edges); - const xml = renderAnalysisDiagram("graphml", cyclesSubgraph(diagramGraph as any, cycles)); + const xml = renderAnalysisDiagram("graphml", cyclesSubgraph(diagramGraph, cycles)); assert.ok(xml.startsWith('') && xml.includes(''), "both cycle nodes present"); for (const id of ["A", "B", "C", "D", "O"]) { @@ -405,22 +400,22 @@ test("cycles --format graphml emits only the cycle-participating nodes/edges", ( test("projectSubgraph never invents edges absent from the source graph", () => { // Ask for an edge key (A->D) that does not exist among structural edges. - const sub = projectSubgraph(diagramGraph as any, ["A", "D"], ["A->D"]); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A", "D"]); + const sub = projectSubgraph(diagramGraph, ["A", "D"], ["A->D"]); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A", "D"]); assert.strictEqual(sub.relationships.length, 0, "no fabricated edge"); }); test("renderAnalysisDiagram on the chain subgraph equals renderGraphml of the same subgraph (renderer reuse)", () => { const chain = longestChain(["A", "B", "C", "D"], chainEdges); - const sub = criticalPathSubgraph(diagramGraph as any, chain); - assert.strictEqual(renderAnalysisDiagram("graphml", sub), renderGraphml(sub as any)); + const sub = criticalPathSubgraph(diagramGraph, chain); + assert.strictEqual(renderAnalysisDiagram("graphml", sub), renderGraphml(sub)); }); // --- --format dot (Graphviz) for analysis diagrams ------------------------- test("critical-path --format dot emits a Graphviz digraph with exactly the chain nodes", () => { const chain = longestChain(["A", "B", "C", "D"], chainEdges); - const out = renderAnalysisDiagram("dot", criticalPathSubgraph(diagramGraph as any, chain)); + const out = renderAnalysisDiagram("dot", criticalPathSubgraph(diagramGraph, chain)); assert.ok(out.startsWith("digraph pm_graph {"), "is a Graphviz digraph"); assert.ok(out.trim().endsWith("}"), "closes the digraph"); for (const id of ["A", "B", "C", "D"]) { @@ -441,7 +436,7 @@ test("critical-path --format dot emits a Graphviz digraph with exactly the chain test("cycles --format dot emits only the cycle-participating nodes/edges as a digraph", () => { const edges = [...chainEdges, ...cycleEdges]; const cycles = findCycles(["A", "B", "C", "D", "E", "F"], edges); - const out = renderAnalysisDiagram("dot", cyclesSubgraph(diagramGraph as any, cycles)); + const out = renderAnalysisDiagram("dot", cyclesSubgraph(diagramGraph, cycles)); assert.ok(out.startsWith("digraph pm_graph {"), "is a Graphviz digraph"); assert.ok(out.includes('"E" [label=') && out.includes('"F" [label='), "both cycle nodes present"); for (const id of ["A", "B", "C", "D", "O"]) { @@ -456,7 +451,7 @@ test("cycles --format dot emits only the cycle-participating nodes/edges as a di test("renderAnalysisDiagram dot output is structurally distinct from mermaid and graphml", () => { const chain = longestChain(["A", "B", "C", "D"], chainEdges); - const sub = criticalPathSubgraph(diagramGraph as any, chain); + const sub = criticalPathSubgraph(diagramGraph, chain); const dot = renderAnalysisDiagram("dot", sub); const mermaid = renderAnalysisDiagram("mermaid", sub); const graphml = renderAnalysisDiagram("graphml", sub); @@ -516,39 +511,39 @@ test("parseNodeFilter rejects malformed terms and unsupported keys", () => { }); test("matchesNodeFilter keeps non-PmItem nodes and respects AND/OR semantics", () => { - const item = (id: string, extra: Record = {}) => ({ + const item = (id: string, extra: Record = {}): GraphNode => ({ id, labels: ["PmItem"], properties: { id, title: id, type: "Task", status: "open", ...extra }, }); - const facet = { id: "status:open", labels: ["PmFacet", "Status"], properties: { id: "status:open", title: "open" } }; + const facet: GraphNode = { id: "status:open", labels: ["PmFacet", "Status"], properties: { id: "status:open", title: "open" } }; // Empty filter: everything survives. - assert.strictEqual(matchesNodeFilter(item("A") as any, []), true); - assert.strictEqual(matchesNodeFilter(facet as any, []), true); + assert.strictEqual(matchesNodeFilter(item("A"), []), true); + assert.strictEqual(matchesNodeFilter(facet, []), true); // Single entry: PmItem matching type survives, non-matching drops. - assert.strictEqual(matchesNodeFilter(item("A") as any, parseNodeFilter(["type=Task"])), true); - assert.strictEqual(matchesNodeFilter(item("A", { type: "Epic" }) as any, parseNodeFilter(["type=Task"])), false); + assert.strictEqual(matchesNodeFilter(item("A"), parseNodeFilter(["type=Task"])), true); + assert.strictEqual(matchesNodeFilter(item("A", { type: "Epic" }), parseNodeFilter(["type=Task"])), false); // Comma-list is OR within a key. - assert.strictEqual(matchesNodeFilter(item("A", { type: "Epic" }) as any, parseNodeFilter(["type=Task,Epic"])), true); + assert.strictEqual(matchesNodeFilter(item("A", { type: "Epic" }), parseNodeFilter(["type=Task,Epic"])), true); // Multiple entries are AND across keys. assert.strictEqual( - matchesNodeFilter(item("A") as any, parseNodeFilter(["type=Task", "status=open"])), + matchesNodeFilter(item("A"), parseNodeFilter(["type=Task", "status=open"])), true, ); assert.strictEqual( - matchesNodeFilter(item("A", { status: "done" }) as any, parseNodeFilter(["type=Task", "status=open"])), + matchesNodeFilter(item("A", { status: "done" }), parseNodeFilter(["type=Task", "status=open"])), false, ); // Non-PmItem nodes always survive the filter. - assert.strictEqual(matchesNodeFilter(facet as any, parseNodeFilter(["type=Task"])), true); + assert.strictEqual(matchesNodeFilter(facet, parseNodeFilter(["type=Task"])), true); // Matching is case-insensitive on the property value. - assert.strictEqual(matchesNodeFilter(item("A", { status: "Open" }) as any, parseNodeFilter(["status=open"])), true); + assert.strictEqual(matchesNodeFilter(item("A", { status: "Open" }), parseNodeFilter(["status=open"])), true); }); // --- mapImpactDirection (downstream -> incoming canonical mapping) ------- @@ -599,20 +594,18 @@ test("parseAnalyticsFlags treats --format json as the text default (no diagram)" // A graph with a 3-node chain C -> B -> A (C blocked_by B, B blocked_by A) so // the downstream dependents of A are B and C, plus a disconnected orphan O. -const impactGraph = { - generatedAt: "2026-06-02T00:00:00.000Z", - workspace: "/tmp/ws", - projectKey: "ws", - nodes: [ +const impactGraph: Graph = synthGraph( + [ node("A"), node("B"), node("C"), node("O"), { id: "status:open", labels: ["PmFacet", "Status"], properties: { id: "status:open", title: "open" } }, ], - relationships: [ + [ rel("B", "A", "BLOCKED_BY"), rel("C", "B", "BLOCKED_BY"), rel("A", "status:open", "HAS_STATUS"), ], -}; + GRAPH_TS, +); test("impactSubgraph includes the root, all path nodes, and the connecting structural edges", () => { // Canonical incoming (downstream) traversal of A: affected B (path [A,B]) and @@ -621,36 +614,34 @@ test("impactSubgraph includes the root, all path nodes, and the connecting struc { id: "B", distance: 1, path: ["A", "B"] }, { id: "C", distance: 2, path: ["A", "B", "C"] }, ]; - const sub = impactSubgraph(impactGraph as any, "A", affected); + const sub = impactSubgraph(impactGraph, "A", affected); // Root first, then affected/path nodes in first-seen order; no orphan/facet. - assert.deepStrictEqual([...sub.nodes.map((n: any) => n.id)], ["A", "B", "C"]); + assert.deepStrictEqual([...sub.nodes.map((n) => n.id)], ["A", "B", "C"]); assert.strictEqual(sub.relationships.length, 2, "exactly the two chain edges in their real direction"); assert.deepStrictEqual( - sub.relationships.map((r: any) => `${r.from}->${r.to}`), + sub.relationships.map((r) => `${r.from}->${r.to}`), ["B->A", "C->B"], "edges retain the real structural direction (item -> blocker)", ); }); test("impactSubgraph anchors the root even when the engine omits it from a path", () => { - const sub = impactSubgraph(impactGraph as any, "A", [{ id: "B", distance: 1, path: ["B"] }]); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A", "B"]); - assert.strictEqual(sub.relationships.length, 1); - assert.strictEqual(sub.relationships[0].from, "B"); - assert.strictEqual(sub.relationships[0].to, "A"); + const sub = impactSubgraph(impactGraph, "A", [{ id: "B", distance: 1, path: ["B"] }]); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A", "B"]); + assert.deepStrictEqual(sub.relationships.map((r) => `${r.from}->${r.to}`), ["B->A"]); }); test("impactSubgraph never invents edges absent from the source graph", () => { // Path claims an A->C edge that does not exist structurally; only the real // B->A edge survives because both directions are offered and filtered. - const sub = impactSubgraph(impactGraph as any, "A", [{ id: "C", distance: 2, path: ["A", "C"] }]); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A", "C"]); + const sub = impactSubgraph(impactGraph, "A", [{ id: "C", distance: 2, path: ["A", "C"] }]); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A", "C"]); assert.strictEqual(sub.relationships.length, 0, "no fabricated A->C edge"); }); test("impactSubgraph with an empty affected set yields just the root node", () => { - const sub = impactSubgraph(impactGraph as any, "A", []); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A"]); + const sub = impactSubgraph(impactGraph, "A", []); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A"]); assert.strictEqual(sub.relationships.length, 0); }); @@ -659,18 +650,18 @@ test("impactSubgraph with an empty affected set yields just the root node", () = test("impactSubgraphFromNodeSet keeps all structural edges among the impact node set", () => { // Fallback for downstream impact of A: impacted = [B, C]; node set {A,B,C}; // both structural edges (B->A, C->B) lie inside the set, the facet edge does not. - const sub = impactSubgraphFromNodeSet(impactGraph as any, "A", ["B", "C"]); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A", "B", "C"]); + const sub = impactSubgraphFromNodeSet(impactGraph, "A", ["B", "C"]); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A", "B", "C"]); assert.deepStrictEqual( - sub.relationships.map((r: any) => `${r.from}->${r.to}`), + sub.relationships.map((r) => `${r.from}->${r.to}`), ["B->A", "C->B"], ); }); test("impactSubgraphFromNodeSet excludes edges with an endpoint outside the set", () => { // Only B is impacted; C->B has an endpoint (C) outside {A,B}, so it is dropped. - const sub = impactSubgraphFromNodeSet(impactGraph as any, "A", ["B"]); - assert.deepStrictEqual(sub.nodes.map((n: any) => n.id), ["A", "B"]); + const sub = impactSubgraphFromNodeSet(impactGraph, "A", ["B"]); + assert.deepStrictEqual(sub.nodes.map((n) => n.id), ["A", "B"]); assert.strictEqual(sub.relationships.length, 1); assert.strictEqual(`${sub.relationships[0].from}->${sub.relationships[0].to}`, "B->A"); }); @@ -682,7 +673,7 @@ test("impactSubgraph rendered as mermaid contains the root and affected node ids { id: "B", distance: 1, path: ["A", "B"] }, { id: "C", distance: 2, path: ["A", "B", "C"] }, ]; - const out = renderAnalysisDiagram("mermaid", impactSubgraph(impactGraph as any, "A", affected)); + const out = renderAnalysisDiagram("mermaid", impactSubgraph(impactGraph, "A", affected)); assert.ok(out.startsWith("graph TD"), "is a mermaid graph"); for (const id of ["A", "B", "C"]) { assert.ok(out.includes(`n_${id}[`), `impact node ${id} present`); diff --git a/test/command-surface.test.ts b/test/command-surface.test.ts index ad13f63..e6dcddd 100644 --- a/test/command-surface.test.ts +++ b/test/command-surface.test.ts @@ -15,114 +15,53 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { execFileSync, spawnSync } from "node:child_process"; -import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; +import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import path from "node:path"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -/** Shape of the result returned by `harness.runCommand`. */ -type CmdResult = { - handled: boolean; - result: unknown; - warnings: string[]; - errorMessage?: string; -}; - -/** - * Shape of a {@link CommandError} propagated (thrown) by the dispatch engine - * when a handler throws an error carrying a numeric `exitCode`. The pm-graph - * extension mirrors the SDK EXIT_CODE contract: 1 = GENERIC_FAILURE, - * 2 = USAGE, 3 = NOT_FOUND. - */ -type CommandError = Error & { exitCode: number }; - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - -/** Capture console.log output produced while running `fn`. */ -async function captureStdout(fn: () => Promise): Promise<{ result: unknown; stdout: string }> { - const original = console.log; - let buffer = ""; - console.log = (...parts: unknown[]) => { - buffer += parts.map(String).join(" ") + "\n"; - }; - try { - const result = await fn(); - return { result, stdout: buffer }; - } finally { - console.log = original; - } -} - -/** Create a fresh pm workspace and return its path. */ -function freshWorkspace(): string { - return mkdtempSync(path.join(tmpdir(), "pmg-cmd-")); -} - -/** Run `pm` in a workspace and return stdout. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -/** Create a task item and return its id. */ -function createItem(cwd: string, title: string, blockedBy?: string): string { - const args = ["create", "Task", title, "--json"]; - if (blockedBy) args.push("--blocked-by", blockedBy); - const out = pm(cwd, args); - const created = JSON.parse(out) as { id?: string; item?: { id: string } }; - return (created.item?.id ?? created.id) as string; -} - -/** Create the SDK test harness bound to the pm-graph extension. */ -async function makeHarness(pmRoot: string) { - return createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); -} +import { + type CmdResult, + type CommandError, + NEO4J_FAIL_ENV, + applyEnv, + captureStdout, + createChain, + createItem, + expectCommandError, + expectCommandErrorMulti, + expectExporterReject, + freshWorkspace, + makeHarness, + pm, + pmAvailable, + restoreEnv, + runExportRaw, + withCommandWorkspace, +} from "./helpers.ts"; // --------------------------------------------------------------------------- // ping command // --------------------------------------------------------------------------- test("ping returns extension version and Neo4j status (not configured)", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph ping", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { + const res = await harness.runCommand({ command: "pm-graph ping", pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { ok: boolean; version: string; neo4jConfigured: boolean; source: string }; assert.equal(result.ok, true); assert.equal(result.source, "pm-graph"); assert.equal(result.neo4jConfigured, false, "Neo4j not configured by default"); assert.ok(typeof result.version === "string", "version present"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("ping --help returns usage text", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph ping", args: ["--help"], pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { + const res = await harness.runCommand({ command: "pm-graph ping", args: ["--help"], pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { usage: string; description: string }; assert.ok(typeof result.usage === "string"); assert.ok(result.usage.includes("pm-graph ping")); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // The status help `output` map documents what each response field means, so every @@ -136,11 +75,8 @@ test("ping --help returns usage text", { skip: !pmAvailable }, async () => { // is deliberate: pinning the string would fail on any harmless copy edit, while // this catches precisely the regression that automation can reintroduce. test("status --help documents its output fields as descriptions, not values", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph status", args: ["--help"], pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { + const res = await harness.runCommand({ command: "pm-graph status", args: ["--help"], pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { output: Record }; assert.ok(result.output, "status help exposes an output map"); @@ -160,9 +96,7 @@ test("status --help documents its output fields as descriptions, not values", { ); } assert.match(result.output.version, /version/i, "the version field describes itself"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // Guards the other half of the same defect. The help text above is only stable if @@ -238,106 +172,57 @@ test("the release version rewrite cannot match anything in this package's source // --------------------------------------------------------------------------- test("export --format cypher emits parameterized Cypher statements", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ - command: "pm-graph export", - args: ["--format", "cypher"], - pmRoot: path.join(ws, ".agents", "pm"), - }) as CmdResult; - // The export command wraps the rendered payload in __pmGraphRawOutput for the - // host's output-format override to unwrap; the test harness returns that - // wrapper verbatim, so the real Cypher text lives here rather than on stdout. - const r = res.result as { __pmGraphRawOutput: string; format: string; nodes: number }; - const raw = r.__pmGraphRawOutput; + const raw = await runExportRaw(harness, pmRoot, "cypher"); assert.ok(raw.includes("MERGE (n:PmGraphNode {projectKey: $projectKey"), "real parameterized MERGE clause"); assert.ok(raw.includes("$projectKey"), "projectKey bound as a Cypher parameter"); assert.ok(raw.includes("DETACH DELETE"), "per-project cleanup statement present"); - assert.equal(r.format, "cypher"); - assert.ok(r.nodes > 0, "at least one node exported"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --format plantuml emits a @startuml block", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ - command: "pm-graph export", - args: ["--format", "plantuml"], - pmRoot: path.join(ws, ".agents", "pm"), - }) as CmdResult; - const raw = (res.result as { __pmGraphRawOutput: string }).__pmGraphRawOutput; + const raw = await runExportRaw(harness, pmRoot, "plantuml"); assert.ok(raw.startsWith("@startuml"), "PlantUML block starts with @startuml"); assert.ok(raw.includes("left to right direction"), "PlantUML direction directive"); assert.ok(raw.includes("object \""), "real PlantUML object declaration"); assert.ok(raw.trim().endsWith("@enduml"), "PlantUML block ends with @enduml"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --format dot emits a Graphviz digraph", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ - command: "pm-graph export", - args: ["--format", "dot"], - pmRoot: path.join(ws, ".agents", "pm"), - }) as CmdResult; - const raw = (res.result as { __pmGraphRawOutput: string }).__pmGraphRawOutput; + const raw = await runExportRaw(harness, pmRoot, "dot"); assert.ok(raw.startsWith("digraph pm_graph {"), "real Graphviz digraph header"); assert.ok(raw.includes("rankdir=LR;"), "rankdir directive present"); assert.ok(raw.includes('[shape=box, style=rounded];'), "node style declaration present"); assert.ok(raw.trim().endsWith("}"), "digraph closes with a brace"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --format graphml emits valid GraphML XML", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ - command: "pm-graph export", - args: ["--format", "graphml"], - pmRoot: path.join(ws, ".agents", "pm"), - }) as CmdResult; - const raw = (res.result as { __pmGraphRawOutput: string }).__pmGraphRawOutput; + const raw = await runExportRaw(harness, pmRoot, "graphml"); assert.ok(raw.startsWith(''), "node title data element present"); assert.ok(raw.includes(""), "graphml root closes"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --output writes the rendered format to a file", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); const outFile = path.join(ws, "graph.json"); const res = await harness.runCommand({ command: "pm-graph export", args: ["--format", "json", "--output", outFile], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { ok: boolean; file: string; format: string }; @@ -347,48 +232,38 @@ test("export --output writes the rendered format to a file", { skip: !pmAvailabl const written = readFileSync(outFile, "utf-8"); const parsed = JSON.parse(written) as { graph: { nodes: unknown[] } }; assert.ok(Array.isArray(parsed.graph?.nodes), "written file is valid JSON graph"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --edges tags keeps only TAGGED_WITH edges", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const a = createItem(ws, "Alpha"); createItem(ws, "Beta", a); // Add a tag to Alpha so a TAGGED_WITH edge exists alongside the structural // BLOCKED_BY edge (Beta -> Alpha) and the facet edges (HAS_TYPE/HAS_STATUS). pm(ws, ["update", a, "--tags", "backend"]); - const harness = await makeHarness(ws); const res = await harness.runCommand({ command: "pm-graph export", args: ["--format", "mermaid", "--edges", "tags"], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; const raw = (res.result as { __pmGraphRawOutput: string }).__pmGraphRawOutput; assert.ok(raw.includes("TAGGED_WITH"), "tag edge kept by --edges tags"); // deps (BLOCKED_BY) and facets (HAS_TYPE/HAS_STATUS) are dropped by the // tags filter, so none of their relationship labels survive in the output. assert.doesNotMatch(raw, /BLOCKED_BY|HAS_TYPE|HAS_STATUS/, "structural and facet edges dropped"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("export --root restricts to the neighborhood of a node", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const a = createItem(ws, "Alpha"); const b = createItem(ws, "Beta", a); const gamma = createItem(ws, "Gamma"); // disconnected from Alpha/Beta - const harness = await makeHarness(ws); const res = await harness.runCommand({ command: "pm-graph export", args: ["--json", "--root", a], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; const result = res.result as { ok: boolean; graph: { nodes: Array<{ id: string }> } }; const ids = result.graph.nodes.filter((n) => n.id.startsWith("pm-")).map((n) => n.id); @@ -408,7 +283,7 @@ test("export --root restricts to the neighborhood of a node", { skip: !pmAvailab const depsOnly = await harness.runCommand({ command: "pm-graph export", args: ["--json", "--root", a, "--edges", "deps"], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; const depsIds = (depsOnly.result as { graph: { nodes: Array<{ id: string }> } }) .graph.nodes.filter((n) => n.id.startsWith("pm-")).map((n) => n.id); @@ -417,9 +292,7 @@ test("export --root restricts to the neighborhood of a node", { skip: !pmAvailab [a, b].sort(), "with --edges deps the neighborhood is exactly the root and its dependency neighbor", ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -427,22 +300,17 @@ test("export --root restricts to the neighborhood of a node", { skip: !pmAvailab // --------------------------------------------------------------------------- test("cypher command returns statement count matching node+relationship count", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const a = createItem(ws, "Alpha"); createItem(ws, "Beta", a); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph cypher", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + const res = await harness.runCommand({ command: "pm-graph cypher", pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { ok: boolean; graph: { nodes: number; relationships: number }; statements: unknown[] }; assert.equal(result.ok, true); assert.ok(result.graph.nodes > 0, "node count reported"); // 1 DELETE + N node MERGEs + R relationship MERGEs assert.strictEqual(result.statements.length, 1 + result.graph.nodes + result.graph.relationships); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -450,39 +318,30 @@ test("cypher command returns statement count matching node+relationship count", // --------------------------------------------------------------------------- test("topo-sort returns a valid order on an acyclic workspace", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - createItem(ws, "Gamma", b); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph topo-sort", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; - assert.equal(res.handled, true); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { + const { a, b, c } = createChain(ws); + const res = await harness.runCommand({ command: "pm-graph topo-sort", pmRoot }) as CmdResult; + assert.ok(res.handled); const result = res.result as { ok: boolean; order: string[]; cyclic: boolean; count: number }; assert.equal(result.ok, true); assert.equal(result.cyclic, false); assert.strictEqual(result.count, result.order.length); // Alpha (the blocker) must come before Beta, which must come before Gamma. assert.ok(result.order.indexOf(a) < result.order.indexOf(b), "blocker before dependent"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + assert.ok(result.order.indexOf(b) < result.order.indexOf(c), "dependent before its own dependent"); + }); }); test("topo-sort exits non-zero on a dependency cycle", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const x = createItem(ws, "X"); const y = createItem(ws, "Y", x); pm(ws, ["update", x, "--blocked-by", y]); // X <-> Y cycle - const harness = await makeHarness(ws); // A handler that throws a numeric-exitCode CommandError propagates the throw // through the dispatch engine (matching runtime non-zero-exit semantics), so // assert on the real thrown error's shape rather than a returned field. await assert.rejects( - () => harness.runCommand({ command: "pm-graph topo-sort", pmRoot: path.join(ws, ".agents", "pm") }), + () => harness.runCommand({ command: "pm-graph topo-sort", pmRoot }), (err: CommandError) => { assert.ok(err instanceof Error, "a real error is thrown"); assert.strictEqual(err.exitCode, 1, "cyclic graph exits with code 1 (GENERIC_FAILURE)"); @@ -490,9 +349,7 @@ test("topo-sort exits non-zero on a dependency cycle", { skip: !pmAvailable }, a return true; }, ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -500,60 +357,37 @@ test("topo-sort exits non-zero on a dependency cycle", { skip: !pmAvailable }, a // --------------------------------------------------------------------------- test("path with missing positionals returns a USAGE error", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { await assert.rejects( - () => harness.runCommand({ command: "pm-graph path", args: ["only-one"], pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Usage: pm pm-graph path/); - return true; - }, + () => harness.runCommand({ command: "pm-graph path", args: ["only-one"], pmRoot }), + expectCommandError(2, /Usage: pm pm-graph path/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("path with no positionals returns a USAGE error", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { await assert.rejects( - () => harness.runCommand({ command: "pm-graph path", pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Usage: pm pm-graph path/); - return true; - }, + () => harness.runCommand({ command: "pm-graph path", pmRoot }), + expectCommandError(2, /Usage: pm pm-graph path/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("path reports found:false when no directed path exists", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); // B blocked by A, so edge B->A - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { + const from = createItem(ws, "Alpha"); + const to = createItem(ws, "Beta", from); // B blocked by A, so edge B->A const res = await harness.runCommand({ command: "pm-graph path", - args: [a, b], // from A to B: no directed path (A is the blocker, not B) - pmRoot: path.join(ws, ".agents", "pm"), + args: [from, to], // from A to B: no directed path (A is the blocker, not B) + pmRoot, }) as CmdResult; const result = res.result as { ok: boolean; found: boolean; path: string[] | null; length: number | null }; assert.equal(result.found, false, "no directed path from blocker to dependent"); assert.strictEqual(result.path, null); assert.strictEqual(result.length, null); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -561,35 +395,23 @@ test("path reports found:false when no directed path exists", { skip: !pmAvailab // --------------------------------------------------------------------------- test("explain with missing id returns a USAGE error", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { await assert.rejects( - () => harness.runCommand({ command: "pm-graph explain", pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Usage: pm pm-graph explain/); - return true; - }, + () => harness.runCommand({ command: "pm-graph explain", pmRoot }), + expectCommandError(2, /Usage: pm pm-graph explain/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("explain with unknown id returns a NOT_FOUND error with suggestions", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const alpha = createItem(ws, "Alpha"); - const harness = await makeHarness(ws); // A non-prefix substring of a real item id fails every resolution path // (exact, case-insensitive, prefix) but still matches the suggestion scorer // (the id contains the probe), so the error genuinely carries a hint. const probe = alpha.slice(1); await assert.rejects( - () => harness.runCommand({ command: "pm-graph explain", args: [probe], pmRoot: path.join(ws, ".agents", "pm") }), + () => harness.runCommand({ command: "pm-graph explain", args: [probe], pmRoot }), (err: CommandError) => { assert.strictEqual(err.exitCode, 3, "NOT_FOUND exit code"); assert.match(err.message, /was not found in the workspace graph/); @@ -597,9 +419,7 @@ test("explain with unknown id returns a NOT_FOUND error with suggestions", { ski return true; }, ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -607,26 +427,20 @@ test("explain with unknown id returns a NOT_FOUND error with suggestions", { ski // --------------------------------------------------------------------------- test("analyze --root restricts the report to the root neighborhood", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { + const root = createItem(ws, "Alpha"); + createItem(ws, "Beta", root); createItem(ws, "Solo"); // disconnected - const harness = await makeHarness(ws); const res = await harness.runCommand({ command: "pm-graph analyze", - args: ["--root", a, "--json"], - pmRoot: path.join(ws, ".agents", "pm"), + args: ["--root", root, "--json"], + pmRoot, }) as CmdResult; const result = res.result as { ok: boolean; itemCount: number }; assert.equal(result.ok, true); - // Neighborhood of A includes A and B (1 hop) but not Solo. - assert.ok(result.itemCount <= 2, "Solo excluded from the neighborhood"); - assert.ok(result.itemCount >= 1, "at least the root is present"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + // Neighborhood of Alpha is exactly Alpha and Beta (1 hop); Solo is excluded. + assert.strictEqual(result.itemCount, 2, "root plus its one-hop dependent, without Solo"); + }); }); // --------------------------------------------------------------------------- @@ -634,20 +448,15 @@ test("analyze --root restricts the report to the root neighborhood", { skip: !pm // --------------------------------------------------------------------------- test("cycles on an acyclic workspace returns cycleCount 0 and exits 0", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph cycles", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + const res = await harness.runCommand({ command: "pm-graph cycles", pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { ok: boolean; cycleCount: number; cycles: unknown[] }; assert.equal(result.ok, true); assert.equal(result.cycleCount, 0); assert.deepStrictEqual(result.cycles, []); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -655,22 +464,17 @@ test("cycles on an acyclic workspace returns cycleCount 0 and exits 0", { skip: // --------------------------------------------------------------------------- test("status with Neo4j not configured returns the local item count", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); createItem(ws, "Beta"); - const harness = await makeHarness(ws); - const res = await harness.runCommand({ command: "pm-graph status", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + const res = await harness.runCommand({ command: "pm-graph status", pmRoot }) as CmdResult; assert.equal(res.handled, true); const result = res.result as { ok: boolean; neo4jConfigured: boolean; localItemCount: number; projectKey: string; version: string }; assert.equal(result.ok, true); assert.equal(result.neo4jConfigured, false); assert.equal(result.localItemCount, 2, "two items counted locally"); assert.ok(typeof result.version === "string"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -679,29 +483,17 @@ test("status with Neo4j not configured returns the local item count", { skip: !p // --------------------------------------------------------------------------- test("query with Neo4j env vars set reaches the connection-error path", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { // Point the driver at a closed local port and cap its connect/retry budgets // so the connection attempt fails in well under a second instead of waiting // out the driver's 30s transaction-retry default against an absent host. - const env = { - ...process.env, - NEO4J_URI: "bolt://127.0.0.1:9", - NEO4J_USER: "test", - NEO4J_PASSWORD: "test", - NEO4J_CONNECTION_TIMEOUT_MS: "300", - NEO4J_MAX_RETRY_MS: "0", - }; - const originalEnv = { ...process.env }; - Object.assign(process.env, env); + const originalEnv = applyEnv(NEO4J_FAIL_ENV); try { const start = Date.now(); const res = await harness.runCommand({ command: "pm-graph query", args: ["MATCH (n) RETURN n LIMIT 1"], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; const elapsed = Date.now() - start; assert.ok(elapsed < 5000, `connection error reached quickly (took ${elapsed}ms)`); @@ -714,96 +506,60 @@ test("query with Neo4j env vars set reaches the connection-error path", { skip: ); } } finally { - // Restore env - for (const k of Object.keys(process.env)) { - if (!(k in originalEnv)) delete process.env[k]; - } - Object.assign(process.env, originalEnv); + restoreEnv(originalEnv); } - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("sync with Neo4j env vars set reaches the connection-error path", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const env = { ...process.env, NEO4J_URI: "bolt://127.0.0.1:9", NEO4J_USER: "test", NEO4J_PASSWORD: "test", NEO4J_CONNECTION_TIMEOUT_MS: "300", NEO4J_MAX_RETRY_MS: "0" }; - const originalEnv = { ...process.env }; - Object.assign(process.env, env); + const originalEnv = applyEnv(NEO4J_FAIL_ENV); try { - const res = await harness.runCommand({ command: "pm-graph sync", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; + const res = await harness.runCommand({ command: "pm-graph sync", pmRoot }) as CmdResult; assert.ok(res.errorMessage || !res.handled, "sync connection failure surfaces an error"); if (res.errorMessage) { assert.ok(/not reachable|connection/i.test(res.errorMessage), `friendly error: ${res.errorMessage}`); } } finally { - for (const k of Object.keys(process.env)) { - if (!(k in originalEnv)) delete process.env[k]; - } - Object.assign(process.env, originalEnv); + restoreEnv(originalEnv); } - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("neighbors with Neo4j env vars set reaches the connection-error path", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - const env = { ...process.env, NEO4J_URI: "bolt://127.0.0.1:9", NEO4J_USER: "test", NEO4J_PASSWORD: "test", NEO4J_CONNECTION_TIMEOUT_MS: "300", NEO4J_MAX_RETRY_MS: "0" }; - const originalEnv = { ...process.env }; - Object.assign(process.env, env); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { + const originalEnv = applyEnv(NEO4J_FAIL_ENV); try { const res = await harness.runCommand({ command: "pm-graph neighbors", args: ["TASK-1"], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }) as CmdResult; assert.ok(res.errorMessage || !res.handled, "neighbors connection failure surfaces an error"); if (res.errorMessage) { assert.ok(/not reachable|connection/i.test(res.errorMessage), `friendly error: ${res.errorMessage}`); } } finally { - for (const k of Object.keys(process.env)) { - if (!(k in originalEnv)) delete process.env[k]; - } - Object.assign(process.env, originalEnv); + restoreEnv(originalEnv); } - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("status with Neo4j env vars set reaches the connection-error path", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); - const env = { ...process.env, NEO4J_URI: "bolt://127.0.0.1:9", NEO4J_USER: "test", NEO4J_PASSWORD: "test", NEO4J_CONNECTION_TIMEOUT_MS: "300", NEO4J_MAX_RETRY_MS: "0" }; - const originalEnv = { ...process.env }; - Object.assign(process.env, env); + const originalEnv = applyEnv(NEO4J_FAIL_ENV); try { - const res = await harness.runCommand({ command: "pm-graph status", pmRoot: path.join(ws, ".agents", "pm") }) as CmdResult; - assert.ok(res.errorMessage || !res.handled, "status connection failure surfaces an error"); - if (res.errorMessage) { - assert.ok(/not reachable|connection/i.test(res.errorMessage), `friendly error: ${res.errorMessage}`); + const outcome = await harness.runCommand({ command: "pm-graph status", pmRoot }) as CmdResult; + assert.ok(!outcome.handled || outcome.errorMessage, "status connection failure surfaces an error"); + if (outcome.errorMessage) { + assert.ok(/not reachable|connection/i.test(outcome.errorMessage), `friendly error: ${outcome.errorMessage}`); } } finally { - for (const k of Object.keys(process.env)) { - if (!(k in originalEnv)) delete process.env[k]; - } - Object.assign(process.env, originalEnv); + restoreEnv(originalEnv); } - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -811,107 +567,53 @@ test("status with Neo4j env vars set reaches the connection-error path", { skip: // --------------------------------------------------------------------------- test("graph-export exporter renders JSON graph format via the SDK dispatch", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); const { stdout } = await captureStdout(async () => harness.runExporter({ exporter: "graph-export", options: { format: "json" }, - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }), ); const parsed = JSON.parse(stdout) as { graph: { nodes: unknown[] } }; assert.ok(Array.isArray(parsed.graph?.nodes), "exporter emits valid JSON graph"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("graph-export exporter rejects an invalid --format", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "svg" }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Unknown --format "svg"/); - assert.match(err.message, /cypher \| mermaid \| dot \| json \| graphml \| plantuml/, "valid formats listed"); - return true; - }, - ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + await expectExporterReject({ format: "svg" }, 2, /Unknown --format "svg"/, [/cypher \| mermaid \| dot \| json \| graphml \| plantuml/, "valid formats listed"]); }); test("graph-export exporter rejects an invalid --edges value", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "json", edges: "bogus" }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Unknown --edges "bogus"/); - assert.match(err.message, /deps \| tags \| all/, "valid edges listed"); - return true; - }, - ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + await expectExporterReject({ format: "json", edges: "bogus" }, 2, /Unknown --edges "bogus"/, [/deps \| tags \| all/, "valid edges listed"]); }); // --------------------------------------------------------------------------- // query destructive-keyword guard — rejects before any Neo4j connection // --------------------------------------------------------------------------- test("query rejects a destructive Cypher keyword with a USAGE error", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { // No Neo4j env required: the destructive-keyword guard runs before the // driver is created, so this is fast and exercises a real safety feature. await assert.rejects( () => harness.runCommand({ command: "pm-graph query", args: ["CREATE (n {x: 1})"], - pmRoot: path.join(ws, ".agents", "pm"), + pmRoot, }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Blocked destructive Cypher keyword "CREATE"/); - assert.match(err.message, /Only read-only queries/, "read-only guidance present"); - return true; - }, + expectCommandErrorMulti(2, /Blocked destructive Cypher keyword "CREATE"/, [/Only read-only queries/, "read-only guidance present"]), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("query rejects an empty query with a USAGE error", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { await assert.rejects( - () => harness.runCommand({ command: "pm-graph query", args: ["--json"], pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Usage: pm pm-graph query/); - return true; - }, + () => harness.runCommand({ command: "pm-graph query", args: ["--json"], pmRoot }), + expectCommandError(2, /Usage: pm pm-graph query/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); // --------------------------------------------------------------------------- @@ -919,97 +621,46 @@ test("query rejects an empty query with a USAGE error", { skip: !pmAvailable }, // --------------------------------------------------------------------------- test("graph-export exporter rejects --depth without --root", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "json", depth: 2 }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /--depth requires --root/); - return true; - }, - ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + await expectExporterReject({ format: "json", depth: 2 }, 2, /--depth requires --root/); }); test("graph-export exporter rejects a non-integer --depth", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const root = createItem(ws, "Root"); - const harness = await makeHarness(ws); await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "json", root, depth: "abc" }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /Invalid --depth "abc"/); - return true; - }, + () => harness.runExporter({ exporter: "graph-export", options: { format: "json", root, depth: "abc" }, pmRoot }), + expectCommandError(2, /Invalid --depth "abc"/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("graph-export exporter rejects an unknown --root node", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { createItem(ws, "Alpha"); - const harness = await makeHarness(ws); await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "json", root: "does-not-exist" }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 3, "NOT_FOUND exit code"); - assert.match(err.message, /--root node "does-not-exist" was not found/); - return true; - }, + () => harness.runExporter({ exporter: "graph-export", options: { format: "json", root: "does-not-exist" }, pmRoot }), + expectCommandError(3, /--root node "does-not-exist" was not found/), ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("graph-export exporter rejects an empty --output path", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); - const harness = await makeHarness(ws); - await assert.rejects( - () => harness.runExporter({ exporter: "graph-export", options: { format: "json", output: " " }, pmRoot: path.join(ws, ".agents", "pm") }), - (err: CommandError) => { - assert.strictEqual(err.exitCode, 2, "USAGE exit code"); - assert.match(err.message, /--output requires a file path/); - return true; - }, - ); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + await expectExporterReject({ format: "json", output: " " }, 2, /--output requires a file path/); }); test("graph-export exporter applies a valid --root and --depth neighborhood", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); - try { - pm(ws, ["init"]); + await withCommandWorkspace("pmg-cmd-", async ({ ws, harness, pmRoot }) => { const a = createItem(ws, "Alpha"); createItem(ws, "Beta", a); // neighbour of Alpha createItem(ws, "Solo"); // disconnected - const harness = await makeHarness(ws); const { stdout } = await captureStdout(async () => - harness.runExporter({ exporter: "graph-export", options: { format: "json", root: a, depth: 1 }, pmRoot: path.join(ws, ".agents", "pm") }), + harness.runExporter({ exporter: "graph-export", options: { format: "json", root: a, depth: 1 }, pmRoot }), ); const parsed = JSON.parse(stdout) as { graph: { nodes: Array<{ id: string }> } }; const itemIds = parsed.graph.nodes.filter((n) => n.id.startsWith("pm-")).map((n) => n.id); assert.ok(itemIds.includes(a), "root retained"); assert.ok(!itemIds.includes("Solo"), "disconnected node excluded by neighborhood depth"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + }); }); test("an invalid explicit tracker root fails with a USAGE exit rather than an empty graph", { skip: !pmAvailable }, async () => { @@ -1019,9 +670,9 @@ test("an invalid explicit tracker root fails with a USAGE exit rather than an em // report a confident empty graph and exit 0, where the removed `pm list-all` // shell-out exited non-zero. An empty answer for a bad input is worse than a // failure, because nothing downstream can detect it. - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-cmd-"); try { - const harness = await makeHarness(ws); + const harness = await makeHarness(); const notATracker = path.join(ws, "tracker-is-a-file"); writeFileSync(notATracker, "not a tracker\n"); diff --git a/test/coverage-gaps.test.ts b/test/coverage-gaps.test.ts index 7ccc4e7..3e9933a 100644 --- a/test/coverage-gaps.test.ts +++ b/test/coverage-gaps.test.ts @@ -5,18 +5,19 @@ * below so handlers run without a Bolt server. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-fake-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-fake-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; import { describe, test } from "node:test"; -import { createExtensionTestHarness, runRegisteredServiceOverrideForTest } from "@unbrained/pm-cli/sdk/testing"; +import { runRegisteredServiceOverrideForTest } from "@unbrained/pm-cli/sdk/testing"; import { explainItem, @@ -30,7 +31,15 @@ import { renderGraphml, shortestPath, } from "../src/index.ts"; -import extension from "../src/index.ts"; +import { + type CmdResult, + type CommandError, + captureStdout, + makeHarness, + pm, + pmAvailable, + restoreEnv, +} from "./helpers.ts"; import { fakeInteger, fakeNode, @@ -47,62 +56,16 @@ import { wasFakeNeo4jClosed, } from "./fixtures/neo4j-fake.ts"; -type CmdResult = { - handled: boolean; - result: unknown; - warnings: string[]; - errorMessage?: string; -}; - -type CommandError = Error & { exitCode: number }; - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - -async function captureStdout(fn: () => Promise): Promise<{ result: unknown; stdout: string }> { - const original = console.log; - let buffer = ""; - console.log = (...parts: unknown[]) => { - buffer += parts.map(String).join(" ") + "\n"; - }; - try { - const result = await fn(); - return { result, stdout: buffer }; - } finally { - console.log = original; - } -} - -function freshWorkspace(): string { - return mkdtempSync(path.join(tmpdir(), "pm-graph-")); -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function createItem(cwd: string, title: string, extra: string[] = []): string { +/** Create a task item with extra CLI args and return its id. */ +function createItemWithExtra(cwd: string, title: string, extra: string[] = []): string { const out = pm(cwd, ["create", "Task", title, "--json", ...extra]); const created = JSON.parse(out) as { id?: string; item?: { id: string } }; return (created.item?.id ?? created.id) as string; } -async function makeHarness() { - return createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); -} - -function restoreEnv(original: NodeJS.ProcessEnv): void { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); +/** Create a fresh workspace with the pm-graph- prefix. */ +function freshWorkspace(): string { + return mkdtempSync(path.join(tmpdir(), "pm-graph-")); } function setNeo4jEnv(overrides: Record = {}): NodeJS.ProcessEnv { @@ -353,9 +316,9 @@ test("export flag errors and --output writing cover the remaining branches", { s const ws = freshWorkspace(); try { pm(ws, ["init"]); - const alpha = createItem(ws, "Alpha", ["--tags", "backend", "--assignee", "ada", "--sprint", "s1", "--release", "r1"]); - createItem(ws, "Beta", ["--parent", alpha, "--blocked-by", alpha, "--tags", " ,core"]); - createItem(ws, "External", ["--dep", "id=external-target,kind=blocks", "--allow-unresolved-deps"]); + const alpha = createItemWithExtra(ws, "Alpha", ["--tags", "backend", "--assignee", "ada", "--sprint", "s1", "--release", "r1"]); + createItemWithExtra(ws, "Beta", ["--parent", alpha, "--blocked-by", alpha, "--tags", " ,core"]); + createItemWithExtra(ws, "External", ["--dep", "id=external-target,kind=blocks", "--allow-unresolved-deps"]); const alphaFile = path.join(ws, ".agents", "pm", "tasks", `${alpha}.toon`); writeFileSync(alphaFile, `${readFileSync(alphaFile, "utf-8")}\ndeps[1]{foo}:\n bar\n`); const harness = await makeHarness(); @@ -522,7 +485,7 @@ test("impact wraps a failure while resolving the canonical graph engine", { skip const ws = freshWorkspace(); try { pm(ws, ["init"]); - const id = createItem(ws, "Alpha"); + const id = createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const impactHandler = harness.activation.commands.handlers.find((entry) => entry.command === "pm-graph impact"); assert.ok(impactHandler); @@ -555,7 +518,7 @@ test("graph-export exporter writes files, filters, and rejects empty output", { const ws = freshWorkspace(); try { pm(ws, ["init"]); - const alpha = createItem(ws, "Alpha"); + const alpha = createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); const outFile = path.join(ws, "export.dot"); @@ -618,7 +581,7 @@ test("custom .pm tracker root still exports and names the parent workspace", { s const ws = freshWorkspace(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const hidden = path.join(ws, ".pm"); mkdirSync(hidden, { recursive: true }); writeFileSync(path.join(hidden, "settings.json"), readFileSync(path.join(ws, ".agents", "pm", "settings.json"), "utf-8")); @@ -640,8 +603,8 @@ test("cypher, neighbors, query, and explain remaining error surfaces", { skip: ! const ws = freshWorkspace(); try { pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", ["--blocked-by", a]); + const a = createItemWithExtra(ws, "Alpha"); + const b = createItemWithExtra(ws, "Beta", ["--blocked-by", a]); pm(ws, ["update", a, "--blocked-by", b]); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); @@ -723,7 +686,7 @@ describe("neo4j command success and friendly errors", { concurrency: 1, skip: !p resetFakeNeo4j(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); @@ -777,7 +740,7 @@ describe("neo4j command success and friendly errors", { concurrency: 1, skip: !p resetFakeNeo4j(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); @@ -891,7 +854,7 @@ describe("neo4j command success and friendly errors", { concurrency: 1, skip: !p const original = setNeo4jEnv(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); for (const closeMode of ["session", "driver"] as const) { @@ -967,7 +930,7 @@ test("neighbors returns center+edges and the empty-node message", async () => { resetFakeNeo4j(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); @@ -1095,7 +1058,7 @@ test("registered handlers support omitted optional context fields", { skip: !pmA const ws = freshWorkspace(); try { pm(ws, ["init"]); - createItem(ws, "Alpha"); + createItemWithExtra(ws, "Alpha"); const harness = await makeHarness(); const tracker = path.join(ws, ".agents", "pm"); for (const entry of harness.activation.commands.handlers) { diff --git a/test/diagram-commands.test.ts b/test/diagram-commands.test.ts index 8c9a7f5..1f51e29 100644 --- a/test/diagram-commands.test.ts +++ b/test/diagram-commands.test.ts @@ -1,11 +1,22 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { execFileSync } from "node:child_process"; import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; -import extension from "../src/index.ts"; +import { captureStdout, captureStdoutThrow, collectHandlers, createItem, pm, pmAvailable, setupBareWorkspace, setupChainWorkspace, setupCycleWorkspace, type Handler } from "./helpers.ts"; + +/** Run a cycles --format command, assert it throws and returns captured stdout. */ +async function assertCycleFormatThrows(run: Handler, ws: string, format: string): Promise { + const outcome = await captureStdoutThrow(() => run({ cwd: ws, args: ["--format", format] })); + assert.notStrictEqual(outcome.error, undefined, "cycles still exits non-zero (CI-gating preserved)"); + assert.match( + String(outcome.error instanceof Error ? outcome.error.message : outcome.error), + /dependency cycle/i, + "still reports the cycle", + ); + return outcome.stdout; +} // Integration tests that drive the REAL registered command handlers // (critical-path / cycles) against a throwaway pm workspace, so we exercise the @@ -14,75 +25,15 @@ import extension from "../src/index.ts"; // unchanged. The deterministic subgraph/renderer assertions live in // analytics.test.ts; here we confirm the command surface. -type Handler = (ctx: any) => Promise; - -function collectHandlers(): Map { - const handlers = new Map(); - const api = { - registerCommand: (cmd: { name: string; run: Handler }) => handlers.set(cmd.name, cmd.run), - registerExporter: () => {}, - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: () => {}, - }; - extension.activate(api as any); - return handlers; -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function createItem(cwd: string, title: string, blockedBy?: string): string { - const args = ["create", "Task", title, "--json"]; - if (blockedBy) args.push("--blocked-by", blockedBy); - const out = pm(cwd, args); - const created = JSON.parse(out) as { id?: string; item?: { id: string } }; - return (created.item?.id ?? created.id) as string; -} - -/** Capture console.log output produced while running `fn`. */ -async function captureStdout(fn: () => Promise): Promise<{ result: unknown; stdout: string }> { - const original = console.log; - let buffer = ""; - console.log = (...parts: unknown[]) => { - buffer += parts.map(String).join(" ") + "\n"; - }; - try { - const result = await fn(); - return { result, stdout: buffer }; - } finally { - console.log = original; - } -} - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - test("critical-path --format mermaid prints a diagram and keeps the result object", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-cp-")); + const { ws, a, b, c, run } = setupChainWorkspace("pmg-cp-", "pm-graph critical-path"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - const c = createItem(ws, "Gamma", b); - const handlers = collectHandlers(); - const run = handlers.get("pm-graph critical-path")!; - // text default: byte-identical to the no-flag result, no stdout diagram. const baseline = await captureStdout(() => run({ cwd: ws, args: [] })); const explicitText = await captureStdout(() => run({ cwd: ws, args: ["--format", "text"] })); assert.deepStrictEqual(explicitText.result, baseline.result, "--format text === no --format"); assert.strictEqual(baseline.stdout, "", "text default prints no diagram"); - const chain = (baseline.result as any).path as string[]; + const chain = (baseline.result as { path: string[] }).path; assert.deepStrictEqual(chain, [c, b, a], "chain is the full dependency chain"); // mermaid: prints a mermaid diagram containing exactly the chain nodes. @@ -91,38 +42,17 @@ test("critical-path --format mermaid prints a diagram and keeps the result objec for (const id of chain) { assert.ok(mermaid.stdout.includes(`n_${id.replace(/[^A-Za-z0-9_]/g, "_")}[`), `chain node ${id} present`); } - assert.strictEqual((mermaid.result as any).format, "mermaid"); - assert.deepStrictEqual((mermaid.result as any).path, chain, "path unchanged under mermaid"); + assert.strictEqual((mermaid.result as { format: string }).format, "mermaid"); + assert.deepStrictEqual((mermaid.result as { path: string[] }).path, chain, "path unchanged under mermaid"); } finally { rmSync(ws, { recursive: true, force: true }); } }); test("cycles --format graphml prints the cycle subgraph then exits non-zero", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-cy-")); + const { ws, x, y, run } = setupCycleWorkspace("pmg-cy-"); try { - pm(ws, ["init"]); - // Build a real 2-node cycle: X blocked-by Y, then add Y blocked-by X. - const x = createItem(ws, "X"); - const y = createItem(ws, "Y", x); - pm(ws, ["update", x, "--blocked-by", y]); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph cycles")!; - - let threw = false; - let captured = ""; - const original = console.log; - console.log = (...parts: unknown[]) => { captured += parts.map(String).join(" ") + "\n"; }; - try { - await run({ cwd: ws, args: ["--format", "graphml"] }); - } catch (err: any) { - threw = true; - assert.match(String(err?.message ?? err), /dependency cycle/i, "still reports the cycle"); - } finally { - console.log = original; - } - assert.ok(threw, "cycles still exits non-zero (CI-gating preserved)"); + const captured = await assertCycleFormatThrows(run, ws, "graphml"); assert.ok(captured.startsWith('`) && captured.includes(``), "both cycle nodes present"); const edgeCount = (captured.match(/ { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-bad-")); + const { ws, run } = setupBareWorkspace("pmg-bad-", "pm-graph critical-path"); try { - pm(ws, ["init"]); - const handlers = collectHandlers(); - const run = handlers.get("pm-graph critical-path")!; await assert.rejects( () => run({ cwd: ws, args: ["--format", "svg"] }), /Invalid --format "svg"/, @@ -149,16 +76,9 @@ test("critical-path rejects an invalid --format value cleanly", { skip: !pmAvail }); test("critical-path --format dot prints a Graphviz digraph and keeps the result object", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-dot-")); + const { ws, a, b, c, run } = setupChainWorkspace("pmg-dot-", "pm-graph critical-path"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - const c = createItem(ws, "Gamma", b); - const handlers = collectHandlers(); - const run = handlers.get("pm-graph critical-path")!; - - const chain = (await run({ cwd: ws, args: [] }) as any).path as string[]; + const chain = (await run({ cwd: ws, args: [] }) as { path: string[] }).path; assert.deepStrictEqual(chain, [c, b, a], "baseline chain is the full dependency chain"); const dot = await captureStdout(() => run({ cwd: ws, args: ["--format", "dot"] })); @@ -167,38 +87,18 @@ test("critical-path --format dot prints a Graphviz digraph and keeps the result for (const id of chain) { assert.ok(dot.stdout.includes(`"${id}" [label=`), `chain node ${id} present in dot`); } - assert.strictEqual((dot.result as any).format, "dot"); - assert.deepStrictEqual((dot.result as any).path, chain, "path unchanged under dot"); - assert.ok((dot.result as any).diagram, "diagram field populated"); + assert.strictEqual((dot.result as { format: string }).format, "dot"); + assert.deepStrictEqual((dot.result as { path: string[] }).path, chain, "path unchanged under dot"); + assert.ok((dot.result as { diagram: string }).diagram, "diagram field populated"); } finally { rmSync(ws, { recursive: true, force: true }); } }); test("cycles --format dot prints the cycle subgraph then exits non-zero", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-cydot-")); + const { ws, x, y, run } = setupCycleWorkspace("pmg-cydot-"); try { - pm(ws, ["init"]); - const x = createItem(ws, "X"); - const y = createItem(ws, "Y", x); - pm(ws, ["update", x, "--blocked-by", y]); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph cycles")!; - - let threw = false; - let captured = ""; - const original = console.log; - console.log = (...parts: unknown[]) => { captured += parts.map(String).join(" ") + "\n"; }; - try { - await run({ cwd: ws, args: ["--format", "dot"] }); - } catch (err: any) { - threw = true; - assert.match(String(err?.message ?? err), /dependency cycle/i, "still reports the cycle"); - } finally { - console.log = original; - } - assert.ok(threw, "cycles still exits non-zero (CI-gating preserved)"); + const captured = await assertCycleFormatThrows(run, ws, "dot"); assert.ok(captured.startsWith("digraph pm_graph {"), "Graphviz digraph printed before throwing"); assert.ok(captured.includes(`"${x}"`) && captured.includes(`"${y}"`), "both cycle nodes present"); const edgeCount = (captured.match(/->/g) ?? []).length; @@ -213,15 +113,15 @@ test("analyze --filter type=... scopes the report to matching item types", { ski try { pm(ws, ["init"]); const t1 = createItem(ws, "Task One"); - const t2 = createItem(ws, "Task Two", t1); + createItem(ws, "Task Two", t1); pm(ws, ["create", "Epic", "Epic One", "--json"]); // an Epic, not a Task const handlers = collectHandlers(); const run = handlers.get("pm-graph analyze")!; - const all = (await run({ cwd: ws, args: [] }) as any) as { itemCount: number }; + const all = (await run({ cwd: ws, args: [] })) as { ok: boolean; itemCount: number }; assert.strictEqual(all.itemCount, 3, "three items total (2 Tasks + 1 Epic)"); - const filtered = (await run({ cwd: ws, args: ["--filter", "type=Task"] }) as any) as { itemCount: number }; + const filtered = (await run({ cwd: ws, args: ["--filter", "type=Task"] })) as { ok: boolean; itemCount: number }; assert.strictEqual(filtered.itemCount, 2, "only the two Task items survive --filter type=Task"); } finally { rmSync(ws, { recursive: true, force: true }); @@ -240,16 +140,17 @@ test("analyze --filter status=... scopes the report and AND-combines with type", const run = handlers.get("pm-graph analyze")!; // default: closed Beta dropped, only Alpha remains. - const baseline = (await run({ cwd: ws, args: [] }) as any) as { itemCount: number }; + const baseline = (await run({ cwd: ws, args: [] })) as { ok: boolean; itemCount: number }; assert.strictEqual(baseline.itemCount, 1, "closed item excluded by default"); // --include-closed: both items present. - const withClosed = (await run({ cwd: ws, args: ["--include-closed"] }) as any) as { itemCount: number }; + const withClosed = (await run({ cwd: ws, args: ["--include-closed"] })) as { ok: boolean; itemCount: number }; assert.strictEqual(withClosed.itemCount, 2, "closed item retained with --include-closed"); // --filter status=open AND --include-closed: closed Beta is retained by // --include-closed but then dropped by the status filter, leaving Alpha only. - const statusFiltered = (await run({ cwd: ws, args: ["--include-closed", "--filter", "status=open"] }) as any) as { + const statusFiltered = (await run({ cwd: ws, args: ["--include-closed", "--filter", "status=open"] })) as { + ok: boolean; itemCount: number; }; assert.strictEqual(statusFiltered.itemCount, 1, "status filter drops the closed item even with --include-closed"); @@ -259,11 +160,8 @@ test("analyze --filter status=... scopes the report and AND-combines with type", }); test("critical-path --filter rejects a malformed filter with a USAGE error", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-badfilt-")); + const { ws, run } = setupBareWorkspace("pmg-badfilt-", "pm-graph critical-path"); try { - pm(ws, ["init"]); - const handlers = collectHandlers(); - const run = handlers.get("pm-graph critical-path")!; await assert.rejects( () => run({ cwd: ws, args: ["--filter", "priority=high"] }), /Invalid --filter key "priority"/, diff --git a/test/edge-cases.test.ts b/test/edge-cases.test.ts index d421ab9..b37c839 100644 --- a/test/edge-cases.test.ts +++ b/test/edge-cases.test.ts @@ -32,26 +32,10 @@ import { cyclesSubgraph, criticalPathSubgraph, } from "../src/index.ts"; +import { synthNode as node, synthGraph as graph, synthRel as rel } from "./helpers.ts"; type Edge = { from: string; to: string; type: string }; -// Reusable node/relationship builders for synthetic graphs. -function node(id: string, extra: Record = {}) { - return { id, labels: ["PmItem"], properties: { id, title: id, type: "Task", status: "open", ...extra } }; -} -function rel(from: string, to: string, type: string) { - return { from, to, type, properties: {} }; -} -function graph(nodes: ReturnType[], rels: ReturnType[]) { - return { - generatedAt: "2026-01-01T00:00:00.000Z", - workspace: "/tmp/ws", - projectKey: "ws", - nodes, - relationships: rels, - }; -} - // --------------------------------------------------------------------------- // Empty and single-node graphs // --------------------------------------------------------------------------- diff --git a/test/explain-command.test.ts b/test/explain-command.test.ts index c54a453..835bcfc 100644 --- a/test/explain-command.test.ts +++ b/test/explain-command.test.ts @@ -1,13 +1,10 @@ import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; import test from "node:test"; -import extension from "../src/index.ts"; - -type Handler = (ctx: { cwd?: string; args?: string[] }) => Promise; +import { collectHandlers, createItem, pm, pmAvailable } from "./helpers.ts"; type ExplainResult = { ok: boolean; @@ -21,42 +18,6 @@ type ExplainResult = { cycleCount: number; }; -function collectHandlers(): Map { - const handlers = new Map(); - const api = { - registerCommand: (cmd: { name: string; run: Handler }) => handlers.set(cmd.name, cmd.run), - registerExporter: () => {}, - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: () => {}, - }; - extension.activate(api as any); - return handlers; -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function createItem(cwd: string, title: string, blockedBy?: string): string { - const args = ["create", "Task", title, "--json"]; - if (blockedBy) args.push("--blocked-by", blockedBy); - const out = pm(cwd, args); - const created = JSON.parse(out) as { id?: string; item?: { id: string } }; - return (created.item?.id ?? created.id) as string; -} - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - test("explain command returns blockers, dependents, and chain from one item", { skip: !pmAvailable }, async () => { const ws = mkdtempSync(path.join(tmpdir(), "pmg-explain-")); try { diff --git a/test/export-and-contract.test.ts b/test/export-and-contract.test.ts index 72ffcd1..f7ddb7f 100644 --- a/test/export-and-contract.test.ts +++ b/test/export-and-contract.test.ts @@ -1,14 +1,13 @@ import assert from "node:assert/strict"; import test from "node:test"; import { spawnSync } from "node:child_process"; -import { mkdtempSync, rmSync } from "node:fs"; -import { tmpdir } from "node:os"; +import { rmSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; -import { createExtensionTestHarness, runRegisteredServiceOverrideForTest } from "@unbrained/pm-cli/sdk/testing"; +import { runRegisteredServiceOverrideForTest } from "@unbrained/pm-cli/sdk/testing"; -import extension from "../src/index.ts"; +import { activateWithRecording, freshWorkspace, makeHarness } from "./helpers.ts"; // Resolve this file's directory without relying on the CommonJS `__dirname`, // which is undefined in ES modules (referencing it throws on Node versions @@ -36,10 +35,7 @@ function pm(cwd: string, args: string[]): { status: number; stdout: string; stde const pmProbe = spawnSync("pm", ["--version"], { encoding: "utf-8" }); const pmAvailable = !pmProbe.error && pmProbe.status === 0; -function freshWorkspace(): string { - return mkdtempSync(path.join(tmpdir(), "pmg-contract-")); -} - +/** Initialise a workspace and install the locally-built pm-graph extension. */ function ensureExtension(ws: string): void { // Initialise the tracker then install the locally-built pm-graph from this // repo into the throwaway workspace. @@ -53,29 +49,35 @@ function ensureExtension(ws: string): void { assert.equal(install.status, 0, `pm install failed: ${install.stdout}\n${install.stderr}`); } +/** Run a pm-graph command against a fresh workspace with the extension installed. */ +function runContractCommand(args: string[]): { status: number; stdout: string; stderr: string } { + const ws = freshWorkspace("pmg-contract-"); + try { + ensureExtension(ws); + return pm(ws, args); + } finally { + rmSync(ws, { recursive: true, force: true }); + } +} + +/** Assert a command result reaches Neo4j-not-configured, not a contract rejection. */ +function assertNeo4jNotConfigured(res: { status: number; stdout: string; stderr: string }): void { + assert.equal(res.status, 2, "uses the expected configuration/usage exit code"); + const combined = res.stdout + res.stderr; + assert.match(combined, /Neo4j is not configured/, "reaches the Neo4j error"); + assert.doesNotMatch(combined, /Too many arguments/, "NOT a contract/usage rejection"); +} + // Smoke-check the module still registers the expected handlers + the service // override (so the test harness catches a regression in activate() wiring). test("activate registers the export handler and the output_format service override", () => { - const commands = new Map(); - const services: string[] = []; - const api = { - registerCommand: (cmd: { name: string }) => commands.set(cmd.name, cmd), - registerExporter: () => {}, - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: (service: string) => services.push(service), - }; - extension.activate(api as any); + const { commands, services } = activateWithRecording(); assert.ok(commands.has("pm-graph export"), "export command registered"); assert.ok(services.includes("output_format"), "output_format service override registered"); }); test("export --format json writes valid JSON to stdout (G2)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const res = pm(ws, ["pm-graph", "export", "--format", "json"]); @@ -92,7 +94,7 @@ test("export --format json writes valid JSON to stdout (G2)", { skip: !pmAvailab }); test("export default (no --format) is unchanged: TOON ok:true summary (G2 regression guard)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const res = pm(ws, ["pm-graph", "export"]); @@ -104,7 +106,7 @@ test("export default (no --format) is unchanged: TOON ok:true summary (G2 regres }); test("export --json is unchanged: JSON {ok, graph} envelope (G2 regression guard)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const res = pm(ws, ["pm-graph", "export", "--json"]); @@ -118,7 +120,7 @@ test("export --json is unchanged: JSON {ok, graph} envelope (G2 regression guard }); test("export --format mermaid writes a raw mermaid diagram to stdout (G2 bonus)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const res = pm(ws, ["pm-graph", "export", "--format", "mermaid"]); @@ -131,7 +133,7 @@ test("export --format mermaid writes a raw mermaid diagram to stdout (G2 bonus)" }); test("export --format exits non-zero with a USAGE error (G2)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const res = pm(ws, ["pm-graph", "export", "--format", "svg"]); @@ -144,44 +146,18 @@ test("export --format exits non-zero with a USAGE error (G2)", { skip: }); test("neighbors reaches Neo4j-not-configured, not a contract rejection (G1)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "neighbors", "TASK-42"]); - assert.equal(res.status, 2, "uses the expected configuration/usage exit code"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Neo4j is not configured/, "reaches the clear Neo4j error"); - assert.doesNotMatch(combined, /Too many arguments/, "NOT a contract/usage rejection"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + assertNeo4jNotConfigured(runContractCommand(["pm-graph", "neighbors", "TASK-42"])); }); test("sync classifies missing Neo4j configuration as expected usage", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "sync"]); - assert.equal(res.status, 2, "uses the expected configuration/usage exit code"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Neo4j is not configured/, "reaches the shared Neo4j configuration guard"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + const res = runContractCommand(["pm-graph", "sync"]); + assert.equal(res.status, 2, "uses the expected configuration/usage exit code"); + const combined = res.stdout + res.stderr; + assert.match(combined, /Neo4j is not configured/, "reaches the shared Neo4j configuration guard"); }); test('query "" reaches Neo4j-not-configured, not a contract rejection (G1)', { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "query", "MATCH (n) RETURN n LIMIT 5"]); - assert.equal(res.status, 2, "uses the expected configuration/usage exit code"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Neo4j is not configured/, "reaches the clear Neo4j error"); - assert.doesNotMatch(combined, /Too many arguments/, "NOT a contract/usage rejection"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + assertNeo4jNotConfigured(runContractCommand(["pm-graph", "query", "MATCH (n) RETURN n LIMIT 5"])); }); test('query with Cypher dash tokens (quoted, single arg) is not dropped or misread as a flag', { skip: !pmAvailable }, () => { @@ -189,48 +165,30 @@ test('query with Cypher dash tokens (quoted, single arg) is not dropped or misre // applies. Guards that a query containing dash tokens that resemble flags // (`-h` unary minus, `--` undirected relationship) reaches Neo4j rather than // being treated as --help or having tokens dropped. - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "query", "MATCH (a) -- (b) WITH 1 AS h RETURN -h"]); - assert.equal(res.status, 2, "uses the expected configuration/usage exit code (no Neo4j configured)"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Neo4j is not configured/, "reaches Neo4j rather than a help screen"); - assert.doesNotMatch(combined, /Usage: pm pm-graph query/, "was not misread as --help"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + const res = runContractCommand(["pm-graph", "query", "MATCH (a) -- (b) WITH 1 AS h RETURN -h"]); + assert.equal(res.status, 2, "uses the expected configuration/usage exit code (no Neo4j configured)"); + const combined = res.stdout + res.stderr; + assert.match(combined, /Neo4j is not configured/, "reaches Neo4j rather than a help screen"); + assert.doesNotMatch(combined, /Usage: pm pm-graph query/, "was not misread as --help"); }); test("neighbors with no arg is rejected by the contract layer (G1 regression guard)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "neighbors"]); - assert.notEqual(res.status, 0, "exits non-zero"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Missing required argument node-id/, "contract enforces the required positional"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + const res = runContractCommand(["pm-graph", "neighbors"]); + assert.notEqual(res.status, 0, "exits non-zero"); + const combined = res.stdout + res.stderr; + assert.match(combined, /Missing required argument node-id/, "contract enforces the required positional"); }); test("query with a destructive cypher surfaces the blocked-keyword error (G1 regression guard)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); - try { - ensureExtension(ws); - const res = pm(ws, ["pm-graph", "query", "CREATE (n) RETURN n"]); - assert.notEqual(res.status, 0, "exits non-zero"); - const combined = res.stdout + res.stderr; - assert.match(combined, /Blocked destructive Cypher keyword "CREATE"/, "destructive keyword blocked cleanly"); - assert.doesNotMatch(combined, /Too many arguments/, "not a contract rejection"); - } finally { - rmSync(ws, { recursive: true, force: true }); - } + const res = runContractCommand(["pm-graph", "query", "CREATE (n) RETURN n"]); + assert.notEqual(res.status, 0, "exits non-zero"); + const combined = res.stdout + res.stderr; + assert.match(combined, /Blocked destructive Cypher keyword "CREATE"/, "destructive keyword blocked cleanly"); + assert.doesNotMatch(combined, /Too many arguments/, "not a contract rejection"); }); test("path/impact still accept positionals through the contract layer (G1 sibling guard)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const pathRes = pm(ws, ["pm-graph", "path", "pm-1", "pm-2"]); @@ -254,25 +212,13 @@ test("path/impact still accept positionals through the contract layer (G1 siblin // --------------------------------------------------------------------------- test("exporter adapter is registered as graph-export (core `pm graph` collision guard)", () => { - const exporters: string[] = []; - const api = { - registerCommand: () => {}, - registerExporter: (name: string) => exporters.push(name), - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: () => {}, - }; - extension.activate(api as any); + const { exporters } = activateWithRecording(); assert.ok(exporters.includes("graph-export"), "graph-export adapter registered"); assert.ok(!exporters.includes("graph"), 'legacy "graph" adapter no longer registered (pm-cli 2026.7.18 owns `pm graph`)'); }); test("export shaping: --edges deps drops facet edges on the canonical command", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const a = pm(ws, ["create", "task", "alpha", "--json"]); @@ -301,7 +247,7 @@ test("export shaping: --edges deps drops facet edges on the canonical command", }); test("export shaping: invalid --edges and --output without --format are USAGE errors", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { ensureExtension(ws); const badEdges = pm(ws, ["pm-graph", "export", "--edges", "everything"]); @@ -336,7 +282,7 @@ test("export shaping: invalid --edges and --output without --format are USAGE er }); test("analytics honour a custom tracker path via pm_root (--pm-path fix)", { skip: !pmAvailable }, () => { - const ws = freshWorkspace(); + const ws = freshWorkspace("pmg-contract-"); try { const init = pm(ws, ["init", "--pm-path", ".pmx"]); assert.equal(init.status, 0, `pm init --pm-path failed: ${init.stdout}\n${init.stderr}`); @@ -374,10 +320,7 @@ test("analytics honour a custom tracker path via pm_root (--pm-path fix)", { ski // --------------------------------------------------------------------------- test("output_format override declines payloads without the pm-graph raw marker", async () => { - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); + const harness = await makeHarness(); assert.deepEqual(harness.activation.failed, [], "activation must not fail"); harness.assertServiceOverride({ name: "output_format" }); @@ -394,10 +337,7 @@ test("output_format override declines payloads without the pm-graph raw marker", }); test("output_format override claims a pm-graph raw-output payload verbatim", async () => { - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); + const harness = await makeHarness(); const raw = '{"nodes":[],"edges":[]}'; const outcome = await runRegisteredServiceOverrideForTest(harness.activation.services, { service: "output_format", diff --git a/test/fixtures/neo4j-default-loader.ts b/test/fixtures/neo4j-default-loader.ts index e0c0670..7807f8d 100644 --- a/test/fixtures/neo4j-default-loader.ts +++ b/test/fixtures/neo4j-default-loader.ts @@ -1,13 +1,11 @@ /** Resolve the Neo4j package to its default-export fixture. */ +import type { ResolveHookSync } from "node:module"; + const defaultUrl = new URL("./neo4j-fake-default.ts", import.meta.url).href; /** Resolve only the Neo4j package through the default-export fixture. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") return { url: defaultUrl, shortCircuit: true }; return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-empty-error-loader.ts b/test/fixtures/neo4j-empty-error-loader.ts index 3e3cf4e..fcdc389 100644 --- a/test/fixtures/neo4j-empty-error-loader.ts +++ b/test/fixtures/neo4j-empty-error-loader.ts @@ -1,13 +1,11 @@ /** Resolve Neo4j to a module that rejects with an empty-message Error. */ +import type { ResolveHookSync } from "node:module"; + const emptyErrorUrl = new URL("./neo4j-empty-error.ts", import.meta.url).href; /** Resolve only the Neo4j package through the empty-message fixture. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") return { url: emptyErrorUrl, shortCircuit: true }; return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-fake-loader.ts b/test/fixtures/neo4j-fake-loader.ts index 94b59ab..3c259dd 100644 --- a/test/fixtures/neo4j-fake-loader.ts +++ b/test/fixtures/neo4j-fake-loader.ts @@ -1,27 +1,25 @@ /** - * ESM resolve hook that redirects `neo4j-driver` to the in-process fake. + * Sync resolve hook that redirects `neo4j-driver` to the in-process fake. * * Registered from coverage tests that need the Neo4j success and error-mapping * paths without opening a Bolt socket. */ +import type { ResolveHookSync } from "node:module"; + const fakeUrl = new URL("./neo4j-fake-named.ts", import.meta.url).href; /** * Resolve `neo4j-driver` to {@link fakeUrl}; pass every other specifier through. * * @param specifier - Module specifier being resolved. - * @param context - Resolver context from Node's ESM loader. + * @param context - Resolver context from Node's module hooks. * @param nextResolve - Next hook in the chain. * @returns The resolved module URL, short-circuited for the fake. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") { return { url: fakeUrl, shortCircuit: true }; } return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-nonerror-loader.ts b/test/fixtures/neo4j-nonerror-loader.ts index 99d25cd..f5eff98 100644 --- a/test/fixtures/neo4j-nonerror-loader.ts +++ b/test/fixtures/neo4j-nonerror-loader.ts @@ -1,13 +1,11 @@ -/** Resolve Neo4j to a module that rejects dynamic import with a non-Error value. */ +/** Resolve Neo4j to a module that rejects resolution with a non-Error value. */ + +import type { ResolveHookSync } from "node:module"; const nonErrorUrl = new URL("./neo4j-nonerror.ts", import.meta.url).href; /** Resolve only the Neo4j package through the non-Error fixture. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") return { url: nonErrorUrl, shortCircuit: true }; return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-retry-default-loader.ts b/test/fixtures/neo4j-retry-default-loader.ts index e29b00a..363de01 100644 --- a/test/fixtures/neo4j-retry-default-loader.ts +++ b/test/fixtures/neo4j-retry-default-loader.ts @@ -1,18 +1,16 @@ -/** Fail the first Neo4j import, then return the default-export fixture on retry. */ +/** Fail the first Neo4j resolution, then return the default-export fixture on retry. */ + +import type { ResolveHookSync } from "node:module"; const defaultUrl = new URL("./neo4j-fake-default.ts", import.meta.url).href; let attempts = 0; -/** Resolve Neo4j through one failed import followed by a default-export retry. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +/** Resolve Neo4j through one failed resolution followed by a default-export retry. */ +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") { attempts++; if (attempts === 1) throw new Error("Cannot find module neo4j-driver"); return { url: defaultUrl, shortCircuit: true }; } return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-retry-named-loader.ts b/test/fixtures/neo4j-retry-named-loader.ts index da76dbe..9ca636b 100644 --- a/test/fixtures/neo4j-retry-named-loader.ts +++ b/test/fixtures/neo4j-retry-named-loader.ts @@ -1,18 +1,16 @@ -/** Fail the first Neo4j import, then return the named-only ESM fixture. */ +/** Fail the first Neo4j resolution, then return the named-only ESM fixture. */ + +import type { ResolveHookSync } from "node:module"; const namedUrl = new URL("./neo4j-fake-named.ts", import.meta.url).href; let attempts = 0; -/** Resolve Neo4j through one failed import followed by the named-only retry. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +/** Resolve Neo4j through one failed resolution followed by the named-only retry. */ +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") { attempts++; if (attempts === 1) throw new Error("Cannot find module neo4j-driver"); return { url: namedUrl, shortCircuit: true }; } return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/fixtures/neo4j-throw-loader.ts b/test/fixtures/neo4j-throw-loader.ts index c5be209..84749be 100644 --- a/test/fixtures/neo4j-throw-loader.ts +++ b/test/fixtures/neo4j-throw-loader.ts @@ -1,6 +1,6 @@ /** - * ESM resolve hook that fails `neo4j-driver` imports so `loadNeo4j`'s install - * fallback can run in-process. + * Sync resolve hook that fails `neo4j-driver` resolution so `loadNeo4j`'s + * install fallback can run in-process. * * Mode is read from `globalThis.__pmGraphNeo4jLoaderMode`: * - `throw-error` (default): throw an Error @@ -8,24 +8,30 @@ * - `pass`: defer to the real specifier (retry-after-install success) */ -type LoaderMode = "throw-error" | "throw-string" | "throw-nonerror-eval" | "default" | "pass" | "throw-then-pass" | "throw-then-default"; +import type { ResolveHookSync } from "node:module"; + +type LoaderMode = + | "throw-error" + | "throw-string" + | "throw-nonerror-eval" + | "default" + | "pass" + | "throw-then-pass" + | "throw-then-default"; /** * Fail or pass `neo4j-driver` according to the test-controlled loader mode. * * @param specifier - Module specifier being resolved. - * @param context - Resolver context from Node's ESM loader. + * @param context - Resolver context from Node's module hooks. * @param nextResolve - Next hook in the chain. * @returns The resolved module URL when the mode is `pass`. */ -export async function resolve( - specifier: string, - context: Record, - nextResolve: (specifier: string, context: Record) => Promise<{ url: string }>, -): Promise<{ url: string; shortCircuit?: boolean }> { +export const resolve: ResolveHookSync = (specifier, context, nextResolve) => { if (specifier === "neo4j-driver") { const g = globalThis as typeof globalThis & { __pmGraphNeo4jLoaderMode?: LoaderMode }; - const mode = (process.env.PM_GRAPH_NEO4J_LOADER_MODE as LoaderMode | undefined) ?? g.__pmGraphNeo4jLoaderMode ?? "throw-error"; + const mode = (process.env.PM_GRAPH_NEO4J_LOADER_MODE as LoaderMode | undefined) ?? + g.__pmGraphNeo4jLoaderMode ?? "throw-error"; if (mode === "pass") return nextResolve(specifier, context); if (mode === "default") { return { url: new URL("./neo4j-fake-default.ts", import.meta.url).href, shortCircuit: true }; @@ -48,4 +54,4 @@ export async function resolve( throw new Error("Cannot find module neo4j-driver"); } return nextResolve(specifier, context); -} +}; \ No newline at end of file diff --git a/test/helpers.ts b/test/helpers.ts new file mode 100644 index 0000000..29a74ae --- /dev/null +++ b/test/helpers.ts @@ -0,0 +1,427 @@ +/** + * Shared test helpers for pm-graph integration tests. + * + * Extracted from the per-file copies in id-resolution, impact-command, + * diagram-commands, explain-command, command-surface, coverage-gaps, and + * the neo4j-* test files to eliminate cross-file duplication. + */ + +import assert from "node:assert/strict"; +import { execFileSync } from "node:child_process"; +import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; +import { tmpdir } from "node:os"; +import path from "node:path"; + +import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; +import type { ExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; + +import extension, { + type CommandContext, + type ExtensionApi, + type Graph, + type GraphNode, + type GraphRelationship, +} from "../src/index.ts"; + +export type Handler = (ctx: CommandContext) => Promise; + +/** Standard result shape returned by the SDK harness `runCommand`. */ +export type CmdResult = { + handled: boolean; + result: unknown; + warnings: string[]; + errorMessage?: string; +}; + +/** Error thrown by handlers with a numeric exit code (1=GENERIC, 2=USAGE, 3=NOT_FOUND). */ +export type CommandError = Error & { exitCode: number }; + +/** + * Neo4j connection env vars pointing at a dead local port with fast-fail + * timeouts, used by the command-surface connection-error tests. + */ +export const NEO4J_FAIL_ENV: Readonly> = Object.freeze({ + NEO4J_URI: "bolt://127.0.0.1:9", + NEO4J_USER: "test", + NEO4J_PASSWORD: "test", + NEO4J_CONNECTION_TIMEOUT_MS: "300", + NEO4J_MAX_RETRY_MS: "0", +}); + +/** + * Set the standard Neo4j connection env vars (dead port, `neo4j`/`secret` + * credentials) used by the neo4j-* import-fallback and retry test files. + */ +export function setNeo4jTestEnv(): void { + process.env.NEO4J_URI = "bolt://127.0.0.1:9"; + process.env.NEO4J_USER = "neo4j"; + process.env.NEO4J_PASSWORD = "secret"; +} + +/** + * Apply `overrides` on top of `process.env`, returning a snapshot for later + * restoration via {@link restoreEnv}. + */ +export function applyEnv(overrides: Record): NodeJS.ProcessEnv { + const original = { ...process.env }; + Object.assign(process.env, overrides); + return original; +} + +/** + * Build a synthetic {@link GraphNode} with `PmItem` labels and default + * `Task`/`open` properties, optionally merged with `extra` properties. + */ +export function synthNode(id: string, extra: Record = {}): GraphNode { + return { id, labels: ["PmItem"], properties: { id, title: id, type: "Task", status: "open", ...extra } }; +} + +/** Build a synthetic {@link GraphRelationship} with empty properties. */ +export function synthRel(from: string, to: string, type: string): GraphRelationship { + return { from, to, type, properties: {} }; +} + +/** + * Build a synthetic {@link Graph} from arrays of nodes and relationships, + * with a deterministic timestamp and workspace key. + */ +export function synthGraph( + nodes: GraphNode[], + relationships: GraphRelationship[], + timestamp: string = "2026-01-01T00:00:00.000Z", +): Graph { + return { generatedAt: timestamp, workspace: "/tmp/ws", projectKey: "ws", nodes, relationships }; +} + +/** Whether `pm` is available on PATH. */ +let pmAvailable = true; +try { + execFileSync("pm", ["--version"], { encoding: "utf-8" }); +} catch { + pmAvailable = false; +} +export { pmAvailable }; + +/** Run the real pm CLI against a workspace and return stdout. */ +export function pm(cwd: string, args: string[]): string { + return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); +} + +/** Create a fresh temporary pm workspace and return its path. */ +export function freshWorkspace(prefix: string = "pmg-"): string { + return mkdtempSync(path.join(tmpdir(), prefix)); +} + +/** Create a task item and return its id. */ +export function createItem(cwd: string, title: string, blockedBy?: string): string { + const args = ["create", "Task", title, "--json"]; + if (blockedBy) args.push("--blocked-by", blockedBy); + const out = pm(cwd, args); + const created = JSON.parse(out) as { id?: string; item?: { id: string } }; + return (created.item?.id ?? created.id) as string; +} + +/** Capture console.log output produced while running `fn`. */ +export async function captureStdout(fn: () => Promise): Promise<{ result: unknown; stdout: string }> { + const original = console.log; + let buffer = ""; + console.log = (...parts: unknown[]) => { + buffer += parts.map(String).join(" ") + "\n"; + }; + try { + const result = await fn(); + return { result, stdout: buffer }; + } finally { + console.log = original; + } +} + +/** + * Capture console.log output from `fn` which is expected to throw. Returns + * the captured stdout and the thrown error (or `undefined` if `fn` did not + * throw). Used by cycle-command tests that assert on diagram output printed + * before a non-zero exit. + */ +export async function captureStdoutThrow(fn: () => Promise): Promise<{ stdout: string; error: unknown }> { + const original = console.log; + let buffer = ""; + console.log = (...parts: unknown[]) => { + buffer += parts.map(String).join(" ") + "\n"; + }; + try { + await fn(); + return { stdout: buffer, error: undefined }; + } catch (error: unknown) { + return { stdout: buffer, error }; + } finally { + console.log = original; + } +} + +/** + * Activate the extension with a recording API double that captures all + * command, exporter, and service registrations. Used by tests that need to + * inspect what was registered (not just dispatch handlers). + */ +export function activateWithRecording(): { + commands: Map; + services: string[]; + exporters: string[]; +} { + const commands = new Map(); + const services: string[] = []; + const exporters: string[] = []; + const api = { + registerCommand: (cmd: { name: string; run: Handler }) => commands.set(cmd.name, cmd.run), + registerExporter: (name: string) => exporters.push(name), + registerImporter: () => {}, + registerHook: () => {}, + registerSchema: () => {}, + registerRenderer: () => {}, + registerSearchProvider: () => {}, + registerPreflight: () => {}, + registerService: (name: string) => services.push(name), + }; + extension.activate(api as ExtensionApi); + return { commands, services, exporters }; +} + +/** + * Register the pm-graph extension with a hand-rolled API double that records + * command handlers, so tests can dispatch them directly. + */ +export function collectHandlers(): Map { + return activateWithRecording().commands; +} + +/** Create the SDK test harness bound to the pm-graph extension. */ +export async function makeHarness(): Promise { + return createExtensionTestHarness(extension, { + name: "pm-graph", + capabilities: ["commands", "importers", "services"], + }); +} + +/** Restore process.env to a snapshot after mutating it in a test. */ +export function restoreEnv(original: NodeJS.ProcessEnv): void { + for (const key of Object.keys(process.env)) { + if (!(key in original)) delete process.env[key]; + } + Object.assign(process.env, original); +} + +/** + * Create a fake `npm` executable in a temporary directory that exits with the + * given code (or sends SIGTERM to itself when `mode` is `"signal"`). + * + * Returns the directory path — set `process.env.PATH` to it so the next + * `spawnSync("npm", ...)` call picks up the fake. + */ +export function fakeNpmDir(mode: number | "signal", prefix: string = "pm-graph-npm-"): string { + const dir = mkdtempSync(path.join(tmpdir(), prefix)); + const bin = path.join(dir, "npm"); + const script = mode === "signal" ? "#!/bin/sh\nkill -TERM $$\n" : `#!/bin/sh\nexit ${mode}\n`; + writeFileSync(bin, script, { mode: 0o755 }); + chmodSync(bin, 0o755); + return dir; +} + +/** + * Set up a workspace with a 3-item blocked-by chain (Alpha <- Beta <- Gamma) + * and return the workspace, ids, and the requested command handler. + */ +export function setupChainWorkspace(prefix: string, handlerName: string): { + ws: string; + a: string; + b: string; + c: string; + run: Handler; +} { + const ws = freshWorkspace(prefix); + pm(ws, ["init"]); + const a = createItem(ws, "Alpha"); + const b = createItem(ws, "Beta", a); + const c = createItem(ws, "Gamma", b); + const run = collectHandlers().get(handlerName)!; + return { ws, a, b, c, run }; +} + +/** + * Set up a workspace with a 2-node dependency cycle (X <-> Y) and return the + * workspace, ids, and the `pm-graph cycles` handler. + */ +export function setupCycleWorkspace(prefix: string): { + ws: string; + x: string; + y: string; + run: Handler; +} { + const ws = freshWorkspace(prefix); + pm(ws, ["init"]); + const x = createItem(ws, "X"); + const y = createItem(ws, "Y", x); + pm(ws, ["update", x, "--blocked-by", y]); + const run = collectHandlers().get("pm-graph cycles")!; + return { ws, x, y, run }; +} + +/** + * Set up a bare workspace (init only) and return the workspace and the + * requested command handler. Used by tests that only need a handler without + * any items. + */ +export function setupBareWorkspace(prefix: string, handlerName: string): { + ws: string; + run: Handler; +} { + const ws = freshWorkspace(prefix); + pm(ws, ["init"]); + const run = collectHandlers().get(handlerName)!; + return { ws, run }; +} + +/** + * Set up a fresh workspace (init + harness) and run `fn` with the workspace, + * harness, and pm-root path. Cleans up the workspace afterwards. Used by the + * command-surface tests to eliminate repeated workspace/harness boilerplate. + */ +export async function withCommandWorkspace( + prefix: string, + fn: (ctx: { ws: string; harness: ExtensionTestHarness; pmRoot: string }) => Promise, +): Promise { + const ws = freshWorkspace(prefix); + try { + pm(ws, ["init"]); + const harness = await makeHarness(); + const pmRoot = path.join(ws, ".agents", "pm"); + return await fn({ ws, harness, pmRoot }); + } finally { + rmSync(ws, { recursive: true, force: true }); + } +} + +/** Run `pm-graph export --format ` and return the raw output string. */ +export async function runExportRaw(harness: ExtensionTestHarness, pmRoot: string, format: string): Promise { + const res = await harness.runCommand({ + command: "pm-graph export", + args: ["--format", format], + pmRoot, + }) as CmdResult; + return (res.result as { __pmGraphRawOutput: string }).__pmGraphRawOutput; +} + +/** Create a 3-item chain (Alpha <- Beta <- Gamma) and return the ids. */ +export function createChain(ws: string): { a: string; b: string; c: string } { + const a = createItem(ws, "Alpha"); + const b = createItem(ws, "Beta", a); + const c = createItem(ws, "Gamma", b); + return { a, b, c }; +} + +/** + * Assert that a `graph-export` exporter call with the given options rejects + * with a `CommandError` matching the exit code and message patterns. + */ +export async function expectExporterReject( + options: Record, + exitCode: number, + ...patterns: Array +): Promise { + await withCommandWorkspace("pmg-cmd-", async ({ harness, pmRoot }) => { + await assert.rejects( + () => harness.runExporter({ exporter: "graph-export", options, pmRoot }), + expectCommandErrorMulti(exitCode, ...patterns), + ); + }); +} + +/** + * Assert that a promise rejects with a `CommandError` whose `exitCode` and + * `message` match the given values. Returns a matcher function suitable for + * `assert.rejects`. + */ +export function expectCommandError( + exitCode: number, + messagePattern: RegExp, +): (err: CommandError) => boolean { + return (err: CommandError) => { + assert.strictEqual(err.exitCode, exitCode); + assert.match(err.message, messagePattern); + return true; + }; +} + +/** + * Like {@link expectCommandError} but checks multiple message patterns. Each + * pattern is either a bare `RegExp` or a `[RegExp, string]` tuple where the + * string is the assertion message. + */ +export function expectCommandErrorMulti( + exitCode: number, + ...patterns: Array +): (err: CommandError) => boolean { + return (err: CommandError) => { + assert.strictEqual(err.exitCode, exitCode); + for (const p of patterns) { + if (Array.isArray(p)) assert.match(err.message, p[0], p[1]); + else assert.match(err.message, p); + } + return true; + }; +} + +/** Recursively remove a set of temporary directories. */ +export function cleanupDirs(dirs: Set): void { + for (const dir of dirs) rmSync(dir, { recursive: true, force: true }); + dirs.clear(); +} + +/** + * Result shape from a Neo4j query command run through the test harness. + */ +type Neo4jQueryResult = { handled: boolean; errorMessage?: string }; + +/** + * Set up a throwaway workspace, optionally install a fake `npm` on `PATH`, + * set the standard Neo4j test env vars, run `pm-graph query`, invoke `fn` + * with the result, and clean up — eliminating boilerplate duplication across + * the neo4j-* import and retry test files. + * + * @param prefix Temporary directory prefix for the workspace. + * @param npmExitCode When non-null, a fake `npm` exiting with this code is + * placed on `PATH` before the query runs. `null` skips the install + * fallback (the driver is expected to load directly). + * @param extraEnv Additional env vars to set beyond the standard test set. + * @param fn Assertion callback receiving the command result. + */ +export async function withNeo4jQueryTest( + prefix: string, + npmExitCode: number | null, + extraEnv: Record | undefined, + fn: (result: Neo4jQueryResult) => Promise | void, +): Promise { + const fakeNpmDirs = new Set(); + const ws = freshWorkspace(prefix); + const original = { ...process.env }; + try { + pm(ws, ["init"]); + if (npmExitCode !== null) { + const dir = fakeNpmDir(npmExitCode, `${prefix}-npm-`); + fakeNpmDirs.add(dir); + process.env.PATH = dir; + } + setNeo4jTestEnv(); + if (extraEnv) Object.assign(process.env, extraEnv); + const harness = await makeHarness(); + const result = await harness.runCommand({ + command: "pm-graph query", + args: ["MATCH (n) RETURN n"], + pmRoot: path.join(ws, ".agents", "pm"), + }) as Neo4jQueryResult; + await fn(result); + } finally { + restoreEnv(original); + for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); + rmSync(ws, { recursive: true, force: true }); + } +} \ No newline at end of file diff --git a/test/id-resolution.test.ts b/test/id-resolution.test.ts index 5787a00..9b297f5 100644 --- a/test/id-resolution.test.ts +++ b/test/id-resolution.test.ts @@ -1,42 +1,10 @@ import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; import test from "node:test"; -import extension from "../src/index.ts"; - -type Handler = (ctx: { cwd?: string; args?: string[] }) => Promise; - -function collectHandlers(): Map { - const handlers = new Map(); - const api = { - registerCommand: (cmd: { name: string; run: Handler }) => handlers.set(cmd.name, cmd.run), - registerExporter: () => {}, - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: () => {}, - }; - extension.activate(api as any); - return handlers; -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function createItem(cwd: string, title: string, blockedBy?: string): string { - const args = ["create", "Task", title, "--json"]; - if (blockedBy) args.push("--blocked-by", blockedBy); - const out = pm(cwd, args); - const created = JSON.parse(out) as { id?: string; item?: { id: string } }; - return (created.item?.id ?? created.id) as string; -} +import { collectHandlers, createItem, pm, pmAvailable } from "./helpers.ts"; function uniqueNonExactPrefix(id: string, allIds: string[]): string | null { for (let len = 1; len < id.length; len++) { @@ -49,13 +17,6 @@ function uniqueNonExactPrefix(id: string, allIds: string[]): string | null { return null; } -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - /** * Upper bound on setup attempts before the chain builder gives up. * diff --git a/test/impact-command.test.ts b/test/impact-command.test.ts index d1fcc2e..03232bb 100644 --- a/test/impact-command.test.ts +++ b/test/impact-command.test.ts @@ -5,7 +5,7 @@ import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; -import extension from "../src/index.ts"; +import { captureStdout, collectHandlers, createItem, pm, pmAvailable, setupBareWorkspace, setupChainWorkspace } from "./helpers.ts"; // Integration tests that drive the REAL registered `pm-graph impact` handler // against a throwaway pm workspace, exercising the full path: flag parsing -> @@ -13,61 +13,19 @@ import extension from "../src/index.ts"; // legacy fallback) -> result shaping / diagram rendering. Mirrors the // diagram-commands.test.ts / explain-command.test.ts harness style. -type Handler = (ctx: any) => Promise; +type ImpactResult = { + ok: boolean; + id: string; + count: number; + impacted: string[]; + direction?: string; + affected?: Array<{ id: string; distance: number; path: string[] }>; + truncated?: boolean; + engine: string; + format?: string; + diagram?: string; +}; -function collectHandlers(): Map { - const handlers = new Map(); - const api = { - registerCommand: (cmd: { name: string; run: Handler }) => handlers.set(cmd.name, cmd.run), - registerExporter: () => {}, - registerImporter: () => {}, - registerHook: () => {}, - registerSchema: () => {}, - registerRenderer: () => {}, - registerSearchProvider: () => {}, - registerPreflight: () => {}, - registerService: () => {}, - }; - extension.activate(api as any); - return handlers; -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function createItem(cwd: string, title: string, blockedBy?: string): string { - const args = ["create", "Task", title, "--json"]; - if (blockedBy) args.push("--blocked-by", blockedBy); - const out = pm(cwd, args); - const created = JSON.parse(out) as { id?: string; item?: { id: string } }; - return (created.item?.id ?? created.id) as string; -} - -/** Capture console.log output produced while running `fn`. */ -async function captureStdout(fn: () => Promise): Promise<{ result: unknown; stdout: string }> { - const original = console.log; - let buffer = ""; - console.log = (...parts: unknown[]) => { - buffer += parts.map(String).join(" ") + "\n"; - }; - try { - const result = await fn(); - return { result, stdout: buffer }; - } finally { - console.log = original; - } -} - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - -// Detect the canonical `pm graph impact` engine so upstream/both assertions -// can skip gracefully on older pm-cli (the command itself falls back). let pmGraphImpactAvailable = false; if (pmAvailable) { try { @@ -79,18 +37,9 @@ if (pmAvailable) { } test("impact returns downstream dependents with affected distance/path rows (canonical engine)", { skip: !pmAvailable || !pmGraphImpactAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-")); + const { ws, a, b, c, run } = setupChainWorkspace("pmg-impact-", "pm-graph impact"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - const c = createItem(ws, "Gamma", b); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact"); - assert.ok(run, "impact command should be registered"); - - const result = (await run!({ cwd: ws, args: [a, "--json"] })) as { + const result = (await run({ cwd: ws, args: [a, "--json"] })) as { ok: boolean; id: string; count: number; @@ -121,16 +70,9 @@ test("impact returns downstream dependents with affected distance/path rows (can }); test("impact back-compat shape is preserved for --format json --direction downstream", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-bc-")); + const { ws, a, run } = setupChainWorkspace("pmg-impact-bc-", "pm-graph impact"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - createItem(ws, "Gamma", b); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact")!; - const result = (await run!({ cwd: ws, args: [a, "--direction", "downstream", "--format", "json"] })) as any; + const result = (await run({ cwd: ws, args: [a, "--direction", "downstream", "--format", "json"] })) as ImpactResult; // Core back-compat fields keep their shape and meaning. assert.strictEqual(result.ok, true); assert.strictEqual(result.id, a); @@ -157,14 +99,14 @@ test("impact --filter restricts the canonical result set (post-filter engine par const run = handlers.get("pm-graph impact")!; // Unfiltered: both direct dependents are impacted, via the canonical engine. - const all = (await run!({ cwd: ws, args: [a, "--format", "json"] })) as any; + const all = (await run({ cwd: ws, args: [a, "--format", "json"] })) as ImpactResult; assert.ok(all.impacted.includes(b) && all.impacted.includes(c), "both dependents present unfiltered"); assert.strictEqual(all.engine, "core-graph"); // --filter type=task post-filters the canonical affected set to Tasks only, // proving the presentation flags now apply on the canonical path (previously // they were silently ignored there). - const filtered = (await run!({ cwd: ws, args: [a, "--filter", "type=task", "--format", "json"] })) as any; + const filtered = (await run({ cwd: ws, args: [a, "--filter", "type=task", "--format", "json"] })) as ImpactResult; assert.ok(filtered.impacted.includes(b), "Task dependent kept under --filter type=task"); assert.ok(!filtered.impacted.includes(c), "Issue dependent removed under --filter type=task"); assert.strictEqual(filtered.count, filtered.impacted.length, "count === impacted.length under filter"); @@ -189,7 +131,7 @@ test("impact --filter drops endpoints reachable only through a filtered-out inte const run = handlers.get("pm-graph impact")!; // Unfiltered downstream impact of A includes B and the transitive C. - const all = (await run!({ cwd: ws, args: [a, "--format", "json"] })) as any; + const all = (await run({ cwd: ws, args: [a, "--format", "json"] })) as ImpactResult; assert.ok(all.impacted.includes(b) && all.impacted.includes(c), "B and transitive C impacted unfiltered"); // --filter type=task removes the Issue intermediary B. The fallback removes @@ -197,7 +139,7 @@ test("impact --filter drops endpoints reachable only through a filtered-out inte // even though C itself is a Task. The canonical path validates each row's // full explaining path against the shaped set to reproduce this exactly, so // both engines agree that only-through-a-filtered-node endpoints drop out. - const filtered = (await run!({ cwd: ws, args: [a, "--filter", "type=task", "--format", "json"] })) as any; + const filtered = (await run({ cwd: ws, args: [a, "--filter", "type=task", "--format", "json"] })) as ImpactResult; assert.ok(!filtered.impacted.includes(b), "filtered-out Issue intermediary B absent"); assert.ok(!filtered.impacted.includes(c), "Task C reachable only via filtered B is not impacted"); assert.strictEqual(filtered.count, filtered.impacted.length, "count === impacted.length"); @@ -219,14 +161,14 @@ test("impact --include-closed routes to the shaped-graph fallback and rejects no // --include-closed cannot be honored by the canonical engine (active-only, // no closed switch), so it is routed to the shaped-graph fallback. - const inc = (await run!({ cwd: ws, args: [a, "--include-closed", "--format", "json"] })) as any; + const inc = (await run({ cwd: ws, args: [a, "--include-closed", "--format", "json"] })) as ImpactResult; assert.strictEqual(inc.engine, "fallback", "--include-closed routes to the shaped-graph fallback"); assert.strictEqual(inc.count, inc.impacted.length, "count === impacted.length (--include-closed fallback)"); // The fallback expresses only downstream; upstream/both must fail loudly // with an accurate reason (not the older-pm-cli message). await assert.rejects( - () => run!({ cwd: ws, args: [a, "--include-closed", "--direction", "upstream"] }) as Promise, + () => run({ cwd: ws, args: [a, "--include-closed", "--direction", "upstream"] }) as Promise, /include-closed[\s\S]*downstream/i, "--include-closed + upstream rejected with a clear message", ); @@ -236,39 +178,25 @@ test("impact --include-closed routes to the shaped-graph fallback and rejects no }); test("impact --format mermaid prints a diagram containing the root and affected node ids", { skip: !pmAvailable || !pmGraphImpactAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-mermaid-")); + const { ws, a, b, c, run } = setupChainWorkspace("pmg-impact-mermaid-", "pm-graph impact"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - const c = createItem(ws, "Gamma", b); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact")!; - const { result, stdout } = await captureStdout(() => run!({ cwd: ws, args: [a, "--format", "mermaid"] })); + const { result, stdout } = await captureStdout(() => run({ cwd: ws, args: [a, "--format", "mermaid"] })); assert.ok(stdout.startsWith("graph TD"), "mermaid diagram printed on stdout"); for (const id of [a, b, c]) { assert.ok(stdout.includes(`n_${id.replace(/[^A-Za-z0-9_]/g, "_")}[`), `impact node ${id} present in mermaid`); } - assert.strictEqual((result as any).format, "mermaid"); - assert.ok(typeof (result as any).diagram === "string", "diagram field populated"); - assert.strictEqual((result as any).engine, "core-graph"); + assert.strictEqual((result as ImpactResult).format, "mermaid"); + assert.ok(typeof (result as ImpactResult).diagram === "string", "diagram field populated"); + assert.strictEqual((result as ImpactResult).engine, "core-graph"); } finally { rmSync(ws, { recursive: true, force: true }); } }); test("impact --direction upstream reaches prerequisites (canonical engine)", { skip: !pmAvailable || !pmGraphImpactAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-up-")); + const { ws, a, b, c, run } = setupChainWorkspace("pmg-impact-up-", "pm-graph impact"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - const c = createItem(ws, "Gamma", b); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact")!; - const result = (await run!({ cwd: ws, args: [c, "--direction", "upstream", "--json"] })) as any; + const result = (await run({ cwd: ws, args: [c, "--direction", "upstream", "--json"] })) as ImpactResult; assert.strictEqual(result.direction, "upstream"); assert.strictEqual(result.engine, "core-graph"); // Upstream of C = its blockers A and B, sorted. @@ -279,16 +207,9 @@ test("impact --direction upstream reaches prerequisites (canonical engine)", { s }); test("impact --depth caps the traversal depth", { skip: !pmAvailable || !pmGraphImpactAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-depth-")); + const { ws, a, b, run } = setupChainWorkspace("pmg-impact-depth-", "pm-graph impact"); try { - pm(ws, ["init"]); - const a = createItem(ws, "Alpha"); - const b = createItem(ws, "Beta", a); - createItem(ws, "Gamma", b); - - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact")!; - const result = (await run!({ cwd: ws, args: [a, "--depth", "1", "--json"] })) as any; + const result = (await run({ cwd: ws, args: [a, "--depth", "1", "--json"] })) as ImpactResult; // depth 1 from A: only the immediate dependent B (not the depth-2 C). assert.deepStrictEqual(result.impacted, [b]); assert.strictEqual(result.truncated, true); @@ -298,14 +219,10 @@ test("impact --depth caps the traversal depth", { skip: !pmAvailable || !pmGraph }); test("impact validates missing positional id", { skip: !pmAvailable }, async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pmg-impact-usage-")); + const { ws, run } = setupBareWorkspace("pmg-impact-usage-", "pm-graph impact"); try { - pm(ws, ["init"]); - const handlers = collectHandlers(); - const run = handlers.get("pm-graph impact"); - assert.ok(run, "impact command should be registered"); await assert.rejects( - () => run!({ cwd: ws, args: [] }), + () => run({ cwd: ws, args: [] }), /Usage: pm pm-graph impact /, "missing id should return a usage error", ); @@ -322,7 +239,7 @@ test("impact rejects an invalid --direction value", { skip: !pmAvailable }, asyn const handlers = collectHandlers(); const run = handlers.get("pm-graph impact")!; await assert.rejects( - () => run!({ cwd: ws, args: [a, "--direction", "sideways"] }), + () => run({ cwd: ws, args: [a, "--direction", "sideways"] }), /Invalid --direction "sideways"/, "unknown direction is rejected with a USAGE error", ); diff --git a/test/neo4j-default-import.test.ts b/test/neo4j-default-import.test.ts index 269aac6..1130b49 100644 --- a/test/neo4j-default-import.test.ts +++ b/test/neo4j-default-import.test.ts @@ -1,52 +1,25 @@ /** Covers the default-export shape returned by a dynamic Neo4j import. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-default-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-default-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { mkdtempSync, rmSync } from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -/** Run the real pm CLI against a temporary tracker. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} +import { withNeo4jQueryTest } from "./helpers.ts"; test("loadNeo4j accepts a default-exported driver module", async (t) => { - const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-default-")); - const original = { ...process.env }; - try { - pm(ws, ["init"]); - process.env.NEO4J_URI = "bolt://127.0.0.1:9"; - process.env.NEO4J_USER = "neo4j"; - process.env.NEO4J_PASSWORD = "secret"; - process.env.NEO4J_CONNECTION_TIMEOUT_MS = "200"; - process.env.NEO4J_MAX_RETRY_MS = "0"; - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); - const result = (await harness.runCommand({ - command: "pm-graph query", - args: ["MATCH (n) RETURN n"], - pmRoot: path.join(ws, ".agents", "pm"), - })) as { handled: boolean; errorMessage?: string }; - assert.equal(result.errorMessage, undefined); - assert.equal(result.handled, true); - } finally { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); - rmSync(ws, { recursive: true, force: true }); - } + await withNeo4jQueryTest( + "pm-graph-default-", + null, + { NEO4J_CONNECTION_TIMEOUT_MS: "200", NEO4J_MAX_RETRY_MS: "0" }, + (result) => { + assert.equal(result.errorMessage, undefined); + assert.equal(result.handled, true); + }, + ); t.diagnostic("default-export Neo4j fixture exercised"); -}); +}); \ No newline at end of file diff --git a/test/neo4j-empty-error.test.ts b/test/neo4j-empty-error.test.ts index c29656d..d7d821f 100644 --- a/test/neo4j-empty-error.test.ts +++ b/test/neo4j-empty-error.test.ts @@ -1,63 +1,18 @@ /** Covers an Error-shaped Neo4j import rejection with no message. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-empty-error-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-empty-error-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -const fakeNpmDirs = new Set(); - -/** Create an npm executable that reports a failed install. */ -function fakeNpm(): string { - const dir = mkdtempSync(path.join(tmpdir(), "pm-graph-empty-error-npm-")); - fakeNpmDirs.add(dir); - const bin = path.join(dir, "npm"); - writeFileSync(bin, "#!/bin/sh\nexit 1\n", { mode: 0o755 }); - chmodSync(bin, 0o755); - return dir; -} - -/** Run the real pm CLI against a temporary tracker. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} +import { withNeo4jQueryTest } from "./helpers.ts"; test("loadNeo4j handles an Error import rejection without a message", async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-empty-error-")); - const original = { ...process.env }; - try { - pm(ws, ["init"]); - process.env.PATH = fakeNpm(); - process.env.NEO4J_URI = "bolt://127.0.0.1:9"; - process.env.NEO4J_USER = "neo4j"; - process.env.NEO4J_PASSWORD = "secret"; - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); - const result = (await harness.runCommand({ - command: "pm-graph query", - args: ["MATCH (n) RETURN n"], - pmRoot: path.join(ws, ".agents", "pm"), - })) as { errorMessage?: string }; + await withNeo4jQueryTest("pm-graph-empty-error-", 1, undefined, (result) => { assert.match(String(result.errorMessage), /npm install --omit=dev failed with exit code 1/); - } finally { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); - for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); - fakeNpmDirs.clear(); - rmSync(ws, { recursive: true, force: true }); - } -}); + }); +}); \ No newline at end of file diff --git a/test/neo4j-install-fallback.test.ts b/test/neo4j-install-fallback.test.ts index 4d61ab4..99457bc 100644 --- a/test/neo4j-install-fallback.test.ts +++ b/test/neo4j-install-fallback.test.ts @@ -3,66 +3,27 @@ * unresolvable in this worker, then controlling `npm` on PATH. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-throw-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-throw-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; +import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -type CommandError = Error & { exitCode?: number }; - -let pmAvailable = true; -try { - execFileSync("pm", ["--version"], { encoding: "utf-8" }); -} catch { - pmAvailable = false; -} - -const fakeNpmDirs = new Set(); - -function freshWorkspace(): string { - return mkdtempSync(path.join(tmpdir(), "pm-graph-")); -} - -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} - -function writeFakeNpm(mode: number | "signal"): string { - const dir = mkdtempSync(path.join(tmpdir(), "pm-graph-npm-")); - fakeNpmDirs.add(dir); - const bin = path.join(dir, "npm"); - const script = mode === "signal" ? "#!/bin/sh\nkill -TERM $$\n" : `#!/bin/sh\nexit ${mode}\n`; - writeFileSync(bin, script, { mode: 0o755 }); - chmodSync(bin, 0o755); - return dir; -} - -function restoreEnv(original: NodeJS.ProcessEnv): void { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); -} +import { fakeNpmDir, makeHarness, pm, pmAvailable, restoreEnv } from "./helpers.ts"; test("loadNeo4j install fallback covers spawn failure, non-zero npm, and signals", { skip: !pmAvailable }, async () => { - const ws = freshWorkspace(); + const fakeNpmDirs = new Set(); + const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-")); const original = { ...process.env }; try { pm(ws, ["init"]); - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); + const harness = await makeHarness(); const pmRoot = path.join(ws, ".agents", "pm"); process.env.NEO4J_URI = "bolt://127.0.0.1:9"; process.env.NEO4J_USER = "neo4j"; @@ -70,8 +31,9 @@ test("loadNeo4j install fallback covers spawn failure, non-zero npm, and signals process.env.NEO4J_CONNECTION_TIMEOUT_MS = "200"; process.env.NEO4J_MAX_RETRY_MS = "0"; - const failBin = writeFakeNpm(1); - process.env.PATH = failBin; + const failDir = fakeNpmDir(1, "pm-graph-npm-"); + fakeNpmDirs.add(failDir); + process.env.PATH = failDir; const failedInstall = (await harness.runCommand({ command: "pm-graph query", args: ["MATCH (n) RETURN n"], @@ -87,8 +49,9 @@ test("loadNeo4j install fallback covers spawn failure, non-zero npm, and signals })) as { errorMessage?: string }; assert.match(String(missingNpm.errorMessage), /ENOENT|not found|npm/i); - const signalBin = writeFakeNpm("signal"); - process.env.PATH = signalBin; + const signalDir = fakeNpmDir("signal", "pm-graph-npm-"); + fakeNpmDirs.add(signalDir); + process.env.PATH = signalDir; const signaledInstall = (await harness.runCommand({ command: "pm-graph query", args: ["MATCH (n) RETURN n"], @@ -99,7 +62,6 @@ test("loadNeo4j install fallback covers spawn failure, non-zero npm, and signals } finally { restoreEnv(original); for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); - fakeNpmDirs.clear(); rmSync(ws, { recursive: true, force: true }); } -}); +}); \ No newline at end of file diff --git a/test/neo4j-nonerror-import.test.ts b/test/neo4j-nonerror-import.test.ts index 4c1a638..3688515 100644 --- a/test/neo4j-nonerror-import.test.ts +++ b/test/neo4j-nonerror-import.test.ts @@ -1,66 +1,20 @@ /** Covers non-Error rejection formatting from a dynamic Neo4j import. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-nonerror-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-nonerror-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -const fakeNpmDirs = new Set(); - -/** Create an npm executable that returns a deterministic install status. */ -function fakeNpm(exitCode: number): string { - const dir = mkdtempSync(path.join(tmpdir(), "pm-graph-nonerror-npm-")); - fakeNpmDirs.add(dir); - const bin = path.join(dir, "npm"); - writeFileSync(bin, `#!/bin/sh\nexit ${exitCode}\n`, { mode: 0o755 }); - chmodSync(bin, 0o755); - return dir; -} - -/** Run the real pm CLI against a temporary tracker. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} +import { withNeo4jQueryTest } from "./helpers.ts"; test("loadNeo4j stringifies a non-Error import rejection", async (t) => { - const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-nonerror-")); - const original = { ...process.env }; - try { - pm(ws, ["init"]); - const npmDir = fakeNpm(1); - process.env.PATH = npmDir; - process.env.NEO4J_URI = "bolt://127.0.0.1:9"; - process.env.NEO4J_USER = "neo4j"; - process.env.NEO4J_PASSWORD = "secret"; - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); - const result = (await harness.runCommand({ - command: "pm-graph query", - args: ["MATCH (n) RETURN n"], - pmRoot: path.join(ws, ".agents", "pm"), - })) as { errorMessage?: string }; + await withNeo4jQueryTest("pm-graph-nonerror-", 1, undefined, (result) => { assert.match(String(result.errorMessage), /neo4j-driver missing/); assert.match(String(result.errorMessage), /npm install --omit=dev failed/); - t.diagnostic("non-Error import rejection exercised"); - } finally { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); - for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); - fakeNpmDirs.clear(); - rmSync(ws, { recursive: true, force: true }); - } -}); + }); + t.diagnostic("non-Error import rejection exercised"); +}); \ No newline at end of file diff --git a/test/neo4j-retry-default.test.ts b/test/neo4j-retry-default.test.ts index 895f5cb..ea53296 100644 --- a/test/neo4j-retry-default.test.ts +++ b/test/neo4j-retry-default.test.ts @@ -1,65 +1,20 @@ /** Covers the successful second dynamic import after npm install fallback. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-retry-default-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-retry-default-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -const fakeNpmDirs = new Set(); - -/** Create an npm executable that reports a successful install. */ -function fakeNpm(): string { - const dir = mkdtempSync(path.join(tmpdir(), "pm-graph-retry-npm-")); - fakeNpmDirs.add(dir); - const bin = path.join(dir, "npm"); - writeFileSync(bin, "#!/bin/sh\nexit 0\n", { mode: 0o755 }); - chmodSync(bin, 0o755); - return dir; -} - -/** Run the real pm CLI against a temporary tracker. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} +import { withNeo4jQueryTest } from "./helpers.ts"; test("loadNeo4j retries with a default-exported driver after install", async (t) => { - const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-retry-")); - const original = { ...process.env }; - try { - pm(ws, ["init"]); - process.env.PATH = fakeNpm(); - process.env.NEO4J_URI = "bolt://127.0.0.1:9"; - process.env.NEO4J_USER = "neo4j"; - process.env.NEO4J_PASSWORD = "secret"; - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); - const result = (await harness.runCommand({ - command: "pm-graph query", - args: ["MATCH (n) RETURN n"], - pmRoot: path.join(ws, ".agents", "pm"), - })) as { handled: boolean; errorMessage?: string }; + await withNeo4jQueryTest("pm-graph-retry-", 0, undefined, (result) => { assert.equal(result.errorMessage, undefined); assert.equal(result.handled, true); - t.diagnostic("retry default-export import exercised"); - } finally { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); - for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); - fakeNpmDirs.clear(); - rmSync(ws, { recursive: true, force: true }); - } -}); + }); + t.diagnostic("retry default-export import exercised"); +}); \ No newline at end of file diff --git a/test/neo4j-retry-named.test.ts b/test/neo4j-retry-named.test.ts index e743050..2f24d66 100644 --- a/test/neo4j-retry-named.test.ts +++ b/test/neo4j-retry-named.test.ts @@ -1,64 +1,19 @@ /** Covers the named-export module shape on the post-install dynamic retry. */ -import { register } from "node:module"; +import { registerHooks } from "node:module"; -register("./fixtures/neo4j-retry-named-loader.ts", import.meta.url); +import { resolve as resolveNeo4j } from "./fixtures/neo4j-retry-named-loader.ts"; + +registerHooks({ resolve: resolveNeo4j }); import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; import test from "node:test"; -import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing"; - -import extension from "../src/index.ts"; - -const fakeNpmDirs = new Set(); - -/** Create an npm executable that reports a successful install. */ -function fakeNpm(): string { - const dir = mkdtempSync(path.join(tmpdir(), "pm-graph-retry-named-npm-")); - fakeNpmDirs.add(dir); - const bin = path.join(dir, "npm"); - writeFileSync(bin, "#!/bin/sh\nexit 0\n", { mode: 0o755 }); - chmodSync(bin, 0o755); - return dir; -} - -/** Run the real pm CLI against a temporary tracker. */ -function pm(cwd: string, args: string[]): string { - return execFileSync("pm", args, { cwd, encoding: "utf-8", maxBuffer: 20 * 1024 * 1024 }); -} +import { withNeo4jQueryTest } from "./helpers.ts"; test("loadNeo4j retries with a named-exported driver after install", async () => { - const ws = mkdtempSync(path.join(tmpdir(), "pm-graph-retry-named-")); - const original = { ...process.env }; - try { - pm(ws, ["init"]); - process.env.PATH = fakeNpm(); - process.env.NEO4J_URI = "bolt://127.0.0.1:9"; - process.env.NEO4J_USER = "neo4j"; - process.env.NEO4J_PASSWORD = "secret"; - const harness = await createExtensionTestHarness(extension, { - name: "pm-graph", - capabilities: ["commands", "importers", "services"], - }); - const result = (await harness.runCommand({ - command: "pm-graph query", - args: ["MATCH (n) RETURN n"], - pmRoot: path.join(ws, ".agents", "pm"), - })) as { handled: boolean; errorMessage?: string }; + await withNeo4jQueryTest("pm-graph-retry-named-", 0, undefined, (result) => { assert.equal(result.errorMessage, undefined); assert.equal(result.handled, true); - } finally { - for (const key of Object.keys(process.env)) { - if (!(key in original)) delete process.env[key]; - } - Object.assign(process.env, original); - for (const dir of fakeNpmDirs) rmSync(dir, { recursive: true, force: true }); - fakeNpmDirs.clear(); - rmSync(ws, { recursive: true, force: true }); - } -}); + }); +}); \ No newline at end of file diff --git a/test/prepare-merge-driver.test.ts b/test/prepare-merge-driver.test.ts index 74de556..bcb1230 100644 --- a/test/prepare-merge-driver.test.ts +++ b/test/prepare-merge-driver.test.ts @@ -1,214 +1,11 @@ -/** Tests the TypeScript-only, fail-loud merge-driver lifecycle. */ - +/** Tests the thin `prepare` launcher over the canonical `pm-ops/merge-driver`. */ import assert from "node:assert/strict"; -import { chmodSync, mkdtempSync, mkdirSync, realpathSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import { join, win32 } from "node:path"; import test from "node:test"; -import { fileURLToPath } from "node:url"; - -import { - installMergeDrivers, - resolvePmCommand, - runScriptEntry, -} from "../scripts/prepare-merge-driver.ts"; - -/** Direct-entry path used without creating a subprocess. */ -const SCRIPT_PATH = realpathSync( - fileURLToPath(new URL("../scripts/prepare-merge-driver.ts", import.meta.url)), -); - -test("POSIX resolver preserves shell PATH semantics and filesystem checks", (t) => { - const directory = mkdtempSync(join(tmpdir(), "pm-graph-prepare-")); - const executable = join(directory, "pm"); - writeFileSync(executable, "#!/bin/sh\n"); - chmodSync(executable, 0o755); - t.after(() => rmSync(directory, { recursive: true, force: true })); - - assert.strictEqual(resolvePmCommand(`/missing:${directory}`, "", "linux"), executable); - assert.strictEqual(resolvePmCommand(`${directory}:`, "", "linux"), executable); -}); - -test("POSIX resolver rejects missing, non-executable, and directory candidates", (t) => { - const root = mkdtempSync(join(tmpdir(), "pm-graph-reject-")); - const fileDirectory = join(root, "file"); - const directoryDirectory = join(root, "directory"); - mkdirSync(fileDirectory); - mkdirSync(directoryDirectory); - writeFileSync(join(fileDirectory, "pm"), "not executable"); - mkdirSync(join(directoryDirectory, "pm")); - t.after(() => rmSync(root, { recursive: true, force: true })); - - assert.strictEqual( - resolvePmCommand(`${join(root, "missing")}:${fileDirectory}:${directoryDirectory}`, "", "linux"), - undefined, - ); -}); - -test("Windows resolver handles quoted PATH entries and normalized extensions", () => { - const inspected: Array<[string, NodeJS.Platform]> = []; - const command = resolvePmCommand( - '"C:\\Program Files\\pm";C:\\fallback;', - " EXE ;.CMD", - "win32", - (candidate, platform) => { - inspected.push([candidate, platform]); - return candidate === "C:\\Program Files\\pm\\pm.CMD"; - }, - ); - - assert.strictEqual(command, "C:\\Program Files\\pm\\pm.CMD"); - assert.deepStrictEqual(inspected, [ - ["C:\\Program Files\\pm\\pm.EXE", "win32"], - ["C:\\Program Files\\pm\\pm.CMD", "win32"], - ]); -}); - -test("Windows resolver uses PATHEXT defaults and ignores empty PATH entries", () => { - const inspected: string[] = []; - assert.strictEqual(resolvePmCommand( - ";C:\\bin;", - "", - "win32", - (candidate) => { - inspected.push(candidate); - return false; - }, - ), undefined); - assert.deepStrictEqual(inspected, [ - "C:\\bin\\pm.COM", - "C:\\bin\\pm.EXE", - "C:\\bin\\pm.BAT", - "C:\\bin\\pm.CMD", - ]); -}); - -test("POSIX resolver uses target-platform path operations", () => { - const inspected: string[] = []; - assert.strictEqual(resolvePmCommand( - "/first:/second", - "", - "linux", - (candidate) => { - inspected.push(candidate); - return false; - }, - ), undefined); - assert.deepStrictEqual(inspected, ["/first/pm", "/second/pm"]); -}); - -test("Windows resolver verifies a real shim with its default filesystem boundary", (t) => { - const directory = `pm-graph-windows-${process.pid}-${Date.now()}`; - const candidate = win32.join(directory, "pm.CMD"); - mkdirSync(directory); - writeFileSync(candidate, ""); - t.after(() => { - rmSync(candidate, { force: true }); - rmSync(directory, { recursive: true, force: true }); - }); - - assert.strictEqual(resolvePmCommand(directory, ".CMD", "win32"), candidate); -}); - -test("resolver verifies real and missing commands with its default filesystem boundary", (t) => { - const directory = mkdtempSync(join(tmpdir(), "pm-graph-resolver-")); - const windows = process.platform === "win32"; - const candidate = join(directory, windows ? "pm.CMD" : "pm"); - writeFileSync(candidate, ""); - if (!windows) { - chmodSync(candidate, 0o755); - } - t.after(() => { - rmSync(directory, { recursive: true, force: true }); - }); - - assert.strictEqual( - resolvePmCommand(directory, windows ? ".CMD" : "", process.platform), - candidate, - ); - assert.strictEqual( - resolvePmCommand(`${directory}-missing`, windows ? ".CMD" : "", process.platform), - undefined, - ); -}); - -test("resolver reads process defaults and tolerates a missing PATH", (t) => { - const pathValue = process.env.PATH; - delete process.env.PATH; - t.after(() => { - if (pathValue === undefined) { - delete process.env.PATH; - } else { - process.env.PATH = pathValue; - } - }); - - assert.strictEqual(resolvePmCommand(undefined, undefined, "linux", () => false), undefined); -}); - -test("installer executes the resolved POSIX command without a shell", () => { - const calls: unknown[][] = []; - const code = installMergeDrivers((...args) => { - calls.push(args); - return { status: 0 }; - }, "linux", () => "/opt/pm/bin/pm"); - - assert.strictEqual(code, 0); - assert.deepStrictEqual(calls, [[ - "/opt/pm/bin/pm", - ["merge", "install"], - { shell: false, stdio: "inherit" }, - ]]); -}); - -test("installer protects Windows shim paths from cmd expansion", () => { - const calls: unknown[][] = []; - const code = installMergeDrivers((...args) => { - calls.push(args); - return { status: 0 }; - }, "win32", () => "C:\\Program Files\\npm-%USERNAME%\\pm.CMD"); - - assert.strictEqual(code, 0); - assert.deepStrictEqual(calls, [[ - "cmd.exe", - ["/d", "/v:off", "/s", "/c", '""%PM_GRAPH_PM_SHIM%" merge install"'], - { - env: { ...process.env, PM_GRAPH_PM_SHIM: "C:\\Program Files\\npm-%USERNAME%\\pm.CMD" }, - shell: false, - stdio: "inherit", - windowsVerbatimArguments: true, - }, - ]]); -}); - -test("installer distinguishes absence and execution failures", () => { - let ran = false; - assert.strictEqual(installMergeDrivers(() => { - ran = true; - return { status: 0 }; - }, "linux", () => undefined), 0); - assert.strictEqual(ran, false); - const error = new Error("broken executable"); - assert.throws( - () => installMergeDrivers(() => ({ error, status: null }), "linux", () => "/bin/pm"), - error, - ); - assert.strictEqual( - installMergeDrivers(() => ({ status: 17 }), "linux", () => "/bin/pm"), - 17, - ); - assert.strictEqual( - installMergeDrivers(() => ({ status: null }), "linux", () => "/bin/pm"), - 1, - ); -}); +// Importing the launcher executes it (it is the prepare hook). Absent `pm` is a supported +// 0-exit state and a clean `pm merge install` is 0, so only a broken CLI fails this. +import "../scripts/prepare-merge-driver.ts"; -test("entry guard declines imports and runs the main script", () => { - assert.strictEqual(runScriptEntry(["node"]), undefined); - assert.strictEqual(runScriptEntry(["node", import.meta.dirname]), undefined); - assert.strictEqual( - runScriptEntry(["node", SCRIPT_PATH], () => ({ status: 0 })), - 0, - ); -}); +test("the prepare launcher delegates to the canonical pm-ops merge-driver export", () => { + assert.strictEqual(process.exitCode, 0); +}); \ No newline at end of file diff --git a/test/smoke.test.ts b/test/smoke.test.ts index 9b43070..3b61dda 100644 --- a/test/smoke.test.ts +++ b/test/smoke.test.ts @@ -1,7 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import extension from "../src/index.ts"; +import extension, { type ExtensionApi } from "../src/index.ts"; test("extension has required shape", () => { assert.ok(extension, "module should export a default value"); @@ -23,7 +23,7 @@ test("extension registers at least one capability", () => { registerPreflight: () => { registered.push("preflight"); }, registerService: () => { registered.push("service"); }, }; - extension.activate(api as any); + extension.activate(api as ExtensionApi); assert.ok(registered.length > 0, `extension should register at least one capability, got: ${JSON.stringify(registered)}`); assert.ok(registered.includes("exporter"), "extension should register the graph exporter"); }); diff --git a/test/verify-release-changelog-date.test.ts b/test/verify-release-changelog-date.test.ts index a497d3e..d7e9952 100644 --- a/test/verify-release-changelog-date.test.ts +++ b/test/verify-release-changelog-date.test.ts @@ -24,7 +24,6 @@ import { joinContinuations, generateHeading, isMainInvocation, - main, runIfMain, report, resolveGenerator, diff --git a/test/windows-prepare.integration.ts b/test/windows-prepare.integration.ts index 99fb822..e73b2c2 100644 --- a/test/windows-prepare.integration.ts +++ b/test/windows-prepare.integration.ts @@ -1,4 +1,13 @@ -/** Exercises the production lifecycle through a real Windows command parser. */ +/** + * Exercises the canonical merge-driver installer through a real Windows + * command parser. + * + * The vendored installer this test used to cover was replaced by the thin + * launcher over `pm-ops/merge-driver`, so the adversarial path property moves + * with it: a `pm.cmd` shim in a directory whose name holds spaces and a literal + * `%USERNAME%` must still be dispatched through cmd.exe without expansion or + * splitting. Runs only on the Windows CI job. + */ import assert from "node:assert/strict"; import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; @@ -6,25 +15,16 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { installMergeDrivers } from "../scripts/prepare-merge-driver.ts"; +import { runPrepareMergeDriver } from "pm-ops/merge-driver"; test("Windows dispatch survives spaces and literal percent-delimited path segments", (t) => { assert.strictEqual(process.platform, "win32"); const directory = mkdtempSync(join(tmpdir(), "pm graph %USERNAME% ")); - const shim = join(directory, "pm.cmd"); const marker = join(directory, "installed.txt"); - const previousMarker = process.env.PM_GRAPH_TEST_MARKER; - writeFileSync(shim, '@echo off\r\n> "%PM_GRAPH_TEST_MARKER%" echo installed\r\n'); - process.env.PM_GRAPH_TEST_MARKER = marker; - t.after(() => { - if (previousMarker === undefined) { - delete process.env.PM_GRAPH_TEST_MARKER; - } else { - process.env.PM_GRAPH_TEST_MARKER = previousMarker; - } - rmSync(directory, { recursive: true, force: true }); - }); + writeFileSync(join(directory, "pm.cmd"), '@echo off\r\n> "%PM_GRAPH_TEST_MARKER%" echo %*\r\n'); + t.after(() => rmSync(directory, { recursive: true, force: true })); - assert.strictEqual(installMergeDrivers(undefined, "win32", () => shim), 0); - assert.strictEqual(readFileSync(marker, "utf8").trim(), "installed"); + const environment = { ...process.env, PATH: directory, PM_GRAPH_TEST_MARKER: marker }; + assert.strictEqual(runPrepareMergeDriver(environment, "win32"), 0); + assert.strictEqual(readFileSync(marker, "utf8").trim(), "merge install"); });