toolcraft 0.0.87 → 0.0.88
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/README.md +26 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -445,6 +445,32 @@ Pattern for adopting toolcraft incrementally:
|
|
|
445
445
|
|
|
446
446
|
If you have an existing MCP server you want to keep running, use the MCP proxy: a `defineGroup` with an `mcp` field pulls its tools into your tree without rewriting them.
|
|
447
447
|
|
|
448
|
+
## Standalone Bundles
|
|
449
|
+
|
|
450
|
+
Toolcraft supports standalone ESM CLI bundles built with esbuild `0.28.1`. The release workflow builds and starts the same recipe on Node.js `18.18.0`, `20`, `22`, and `24`. Use `node18` as the compilation target so one artifact runs across those supported runtimes.
|
|
451
|
+
|
|
452
|
+
Install the supported bundler with `npm install --save-dev esbuild@0.28.1`.
|
|
453
|
+
|
|
454
|
+
```js
|
|
455
|
+
import { build } from "esbuild";
|
|
456
|
+
|
|
457
|
+
await build({
|
|
458
|
+
entryPoints: ["src/cli.ts"],
|
|
459
|
+
outfile: "dist/cli.js",
|
|
460
|
+
bundle: true,
|
|
461
|
+
format: "esm",
|
|
462
|
+
platform: "node",
|
|
463
|
+
target: "node18",
|
|
464
|
+
splitting: false,
|
|
465
|
+
sourcemap: "external",
|
|
466
|
+
sourcesContent: true
|
|
467
|
+
});
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
Import the command definitions from `toolcraft` and the CLI runner from `toolcraft/cli`. A command tree that does not configure MCP proxies, process runners, or human-in-loop gates leaves those optional integrations out of the bundle.
|
|
471
|
+
|
|
472
|
+
esbuild records dependency paths relative to the build layout. A standalone install can produce `node_modules/toolcraft/...`, while a hoisted workspace can produce `../../node_modules/toolcraft/...` in module-label comments and source-map `sources`. For layout-independent artifacts, canonicalize every dependency path by keeping the substring from the first `node_modules/` segment onward. Parse the source map as JSON and apply the same operation to each string in `sources`; do not modify application source paths. Serialize the map, then hash or publish the canonical bundle and map.
|
|
473
|
+
|
|
448
474
|
## Environment variables
|
|
449
475
|
|
|
450
476
|
- `TOOLCRAFT_MCP_REFRESH` — MCP proxy cache refresh (`unset` = use cache, `1`/`true` = refresh all, comma-separated names = refresh those).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.88",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"postpack": "node ../../scripts/manage-bundled-workspace-deps.mjs cleanup . toolcraft-design @poe-code/frontmatter @poe-code/agent-mcp-config @poe-code/agent-human-in-loop @poe-code/task-list @poe-code/agent-defs @poe-code/config-mutations @poe-code/process-runner tiny-mcp-client mcp-oauth auth-store"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"toolcraft-schema": "0.0.
|
|
59
|
+
"toolcraft-schema": "0.0.88",
|
|
60
60
|
"commander": "^13.1.0",
|
|
61
61
|
"fast-string-width": "^3.0.2",
|
|
62
62
|
"fast-wrap-ansi": "^0.2.0",
|