canary-test-cli 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * The main `canary` command -- faithful commander port of `agent/cli.py`
3
- * (`app`), the culmination of the CLI wave. Mounts the already-ported sub-apps
4
- * (`guardian`, `history`, `analyze`) plus the inline `skills` / `workflow` /
5
- * `company-knowledge` sub-apps, and the ~15 top-level commands. Additive: the
6
- * Python `agent.cli:app` stays the shipping entry point until a later cutover.
2
+ * The main `canary` command -- the commander CLI, culmination of the CLI wave.
3
+ * Mounts the sub-apps (`guardian`, `history`, `analyze`) plus the inline
4
+ * `skills` / `workflow` / `company-knowledge` sub-apps, and the ~15 top-level
5
+ * commands. This is the sole shipping entry point (the Python engine was
6
+ * retired in the v6 cutover).
7
7
  *
8
8
  * Conventions follow `guardian/cli.ts` (see `cli-common.ts`): a
9
9
  * {@link createCanaryCommand} factory wired to an injectable {@link MainDeps},
@@ -1,20 +1,23 @@
1
1
  /**
2
2
  * Framework Registry — queries the collection of supported testing frameworks.
3
3
  *
4
- * Faithful TypeScript port of `agent/core/framework_registry.py`. Reads the same
5
- * `agent/frameworks/registry.json` the Python engine uses. The default path is
6
- * resolved relative to this file (../../.. → repo root, then agent/frameworks).
4
+ * Reads the framework catalog from `data/frameworks/registry.json`, resolved
5
+ * relative to this module. The source-of-truth lives at
6
+ * `ts/src/data/frameworks/registry.json`; `scripts/copy-data.mjs` mirrors it to
7
+ * `dist/data/` after `tsc`, and the offset `../data/frameworks/registry.json` is
8
+ * stable across all three runtimes: vitest (from `src/core/`), the dev CLI (from
9
+ * `dist/core/`), and the shipped npm bundle (from `dist/engine/core/`).
7
10
  */
8
11
  import { readFileSync } from 'node:fs';
9
12
  import { dirname, resolve } from 'node:path';
10
13
  import { fileURLToPath } from 'node:url';
11
14
  import { def } from '../util/coalesce.js';
12
15
  import { scaffoldableFrameworks } from './scaffolder.js';
13
- /** Default registry path: <repo>/agent/frameworks/registry.json. */
16
+ /** Default registry path: `<module dir>/../data/frameworks/registry.json`. */
14
17
  export function defaultRegistryPath() {
15
18
  const here = dirname(fileURLToPath(import.meta.url));
16
- // here = ts/src/core → repo root is three levels up.
17
- return resolve(here, '..', '..', '..', 'agent', 'frameworks', 'registry.json');
19
+ // here = <core>sibling data/ dir (src/data in vitest, dist/data at runtime).
20
+ return resolve(here, '..', 'data', 'frameworks', 'registry.json');
18
21
  }
19
22
  export class FrameworkRegistry {
20
23
  frameworks;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canary-test-cli",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Canary — AI-powered test automation agent",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,8 +36,7 @@
36
36
  },
37
37
  "files": [
38
38
  "bin/canary.js",
39
- "dist/",
40
- "agent/frameworks/registry.json"
39
+ "dist/"
41
40
  ],
42
41
  "dependencies": {
43
42
  "@modelcontextprotocol/sdk": "^1.30.0",