@smithers-orchestrator/cli 0.16.4 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/src/workflow-pack.js +41 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithers-orchestrator/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.6",
|
|
4
4
|
"description": "Smithers command-line interface, TUI, MCP server, and local workflow tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"picocolors": "^1.1.1",
|
|
33
33
|
"react": "^19.2.5",
|
|
34
34
|
"zod": "^4.3.6",
|
|
35
|
-
"@smithers-orchestrator/agents": "0.16.
|
|
36
|
-
"@smithers-orchestrator/db": "0.16.
|
|
37
|
-
"@smithers-orchestrator/
|
|
38
|
-
"@smithers-orchestrator/
|
|
39
|
-
"@smithers-orchestrator/
|
|
40
|
-
"@smithers-orchestrator/
|
|
41
|
-
"@smithers-orchestrator/
|
|
42
|
-
"smithers-orchestrator": "0.16.
|
|
43
|
-
"
|
|
44
|
-
"@smithers-orchestrator/
|
|
35
|
+
"@smithers-orchestrator/agents": "0.16.6",
|
|
36
|
+
"@smithers-orchestrator/db": "0.16.6",
|
|
37
|
+
"@smithers-orchestrator/driver": "0.16.6",
|
|
38
|
+
"@smithers-orchestrator/errors": "0.16.6",
|
|
39
|
+
"@smithers-orchestrator/components": "0.16.6",
|
|
40
|
+
"@smithers-orchestrator/observability": "0.16.6",
|
|
41
|
+
"@smithers-orchestrator/scheduler": "0.16.6",
|
|
42
|
+
"@smithers-orchestrator/time-travel": "0.16.6",
|
|
43
|
+
"smithers-orchestrator": "0.16.6",
|
|
44
|
+
"@smithers-orchestrator/server": "0.16.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/bun": "latest",
|
package/src/workflow-pack.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { generateAgentsTs } from "./agent-detection.js";
|
|
4
5
|
/**
|
|
5
6
|
* @typedef {{ force?: boolean; rootDir?: string; }} InitOptions
|
|
@@ -41,18 +42,50 @@ function readPackageVersion(path, fallback) {
|
|
|
41
42
|
return fallback;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Resolve `<spec>/package.json` via Node's module resolution (from this file's
|
|
47
|
+
* location) and return its `version`. Uses `import.meta.resolve` so it works
|
|
48
|
+
* whether the CLI is running from the monorepo checkout (deps under
|
|
49
|
+
* `apps/cli/node_modules/`) or installed flat under a user's project
|
|
50
|
+
* `node_modules/`. Falls back to the pin bundled at release time when the
|
|
51
|
+
* package isn't installed in the user's project (typical for devDep-only
|
|
52
|
+
* specs like `typescript` and `@types/*`).
|
|
53
|
+
*
|
|
54
|
+
* @param {string} spec
|
|
55
|
+
* @param {string} fallback
|
|
56
|
+
*/
|
|
57
|
+
function resolveDependencyVersion(spec, fallback) {
|
|
58
|
+
try {
|
|
59
|
+
const url = import.meta.resolve(`${spec}/package.json`);
|
|
60
|
+
return readPackageVersion(fileURLToPath(url), fallback);
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return fallback;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Pins shipped with this release for devDep-only specs that won't be in the
|
|
68
|
+
* user's `node_modules` after `bunx smithers-orchestrator@latest init`. Bump
|
|
69
|
+
* these when updating the monorepo's root devDependencies.
|
|
70
|
+
*/
|
|
71
|
+
const BUNDLED_VERSION_PINS = {
|
|
72
|
+
zod: "4.3.6",
|
|
73
|
+
typescript: "5.9.3",
|
|
74
|
+
reactTypes: "19.2.14",
|
|
75
|
+
reactDomTypes: "19.2.3",
|
|
76
|
+
mdxTypes: "2.0.13",
|
|
77
|
+
};
|
|
44
78
|
/**
|
|
45
79
|
* @returns {DependencyVersions}
|
|
46
80
|
*/
|
|
47
81
|
function readDependencyVersions() {
|
|
48
|
-
const nodeModulesRoot = new URL("../../../node_modules/", import.meta.url).pathname;
|
|
49
82
|
return {
|
|
50
|
-
smithersVersion: readPackageVersion(new URL("
|
|
51
|
-
zodVersion:
|
|
52
|
-
typescriptVersion:
|
|
53
|
-
reactTypesVersion:
|
|
54
|
-
reactDomTypesVersion:
|
|
55
|
-
mdxTypesVersion:
|
|
83
|
+
smithersVersion: readPackageVersion(fileURLToPath(new URL("../package.json", import.meta.url)), "0.0.0"),
|
|
84
|
+
zodVersion: resolveDependencyVersion("zod", BUNDLED_VERSION_PINS.zod),
|
|
85
|
+
typescriptVersion: resolveDependencyVersion("typescript", BUNDLED_VERSION_PINS.typescript),
|
|
86
|
+
reactTypesVersion: resolveDependencyVersion("@types/react", BUNDLED_VERSION_PINS.reactTypes),
|
|
87
|
+
reactDomTypesVersion: resolveDependencyVersion("@types/react-dom", BUNDLED_VERSION_PINS.reactDomTypes),
|
|
88
|
+
mdxTypesVersion: resolveDependencyVersion("@types/mdx", BUNDLED_VERSION_PINS.mdxTypes),
|
|
56
89
|
};
|
|
57
90
|
}
|
|
58
91
|
/**
|
|
@@ -70,6 +103,7 @@ function renderPackageJson(versions) {
|
|
|
70
103
|
"workflow:implement": "smithers workflow implement",
|
|
71
104
|
},
|
|
72
105
|
dependencies: {
|
|
106
|
+
skills: "github:mattpocock/skills",
|
|
73
107
|
"smithers-orchestrator": "latest",
|
|
74
108
|
zod: versions.zodVersion,
|
|
75
109
|
},
|