toolcraft 0.0.92 → 0.0.94

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.
Files changed (123) hide show
  1. package/README.md +74 -4
  2. package/composition.json +1 -6
  3. package/dist/agent-defs.d.ts +1 -0
  4. package/dist/agent-defs.js +1 -0
  5. package/dist/agent-human-in-loop.d.ts +1 -0
  6. package/dist/agent-human-in-loop.js +1 -0
  7. package/dist/agent-mcp-config.d.ts +1 -0
  8. package/dist/agent-mcp-config.js +1 -0
  9. package/dist/auth-store.d.ts +1 -0
  10. package/dist/auth-store.js +1 -0
  11. package/dist/cli.d.ts +4 -1
  12. package/dist/cli.js +23 -64
  13. package/dist/composition.json +1 -6
  14. package/dist/config-mutations.d.ts +1 -0
  15. package/dist/config-mutations.js +1 -0
  16. package/dist/frontmatter.d.ts +1 -0
  17. package/dist/frontmatter.js +1 -0
  18. package/dist/human-in-loop/gate.d.ts +5 -1
  19. package/dist/human-in-loop/gate.js +10 -8
  20. package/dist/human-in-loop/runner.js +1 -28
  21. package/dist/mcp.d.ts +4 -1
  22. package/dist/mcp.js +8 -51
  23. package/dist/process-runner.d.ts +1 -0
  24. package/dist/process-runner.js +1 -0
  25. package/dist/runtime/io.d.ts +5 -0
  26. package/dist/runtime/io.js +50 -0
  27. package/dist/sdk.d.ts +12 -8
  28. package/dist/sdk.js +7 -52
  29. package/dist/task-list.d.ts +1 -0
  30. package/dist/task-list.js +1 -0
  31. package/dist/testing/fakes.d.ts +20 -0
  32. package/dist/testing/fakes.js +83 -0
  33. package/dist/testing/fixtures.d.ts +8 -0
  34. package/dist/testing/fixtures.js +248 -0
  35. package/dist/testing/harness.d.ts +76 -0
  36. package/dist/testing/harness.js +391 -0
  37. package/dist/testing/index.d.ts +4 -0
  38. package/dist/testing/index.js +3 -0
  39. package/dist/testing/memory-fs.d.ts +11 -0
  40. package/dist/testing/memory-fs.js +61 -0
  41. package/dist/testing/parity.d.ts +25 -0
  42. package/dist/testing/parity.js +384 -0
  43. package/dist/testing/render-capture.d.ts +6 -0
  44. package/dist/testing/render-capture.js +54 -0
  45. package/dist/tiny-mcp-client.d.ts +1 -0
  46. package/dist/tiny-mcp-client.js +1 -0
  47. package/node_modules/@poe-code/agent-defs/package.json +9 -3
  48. package/node_modules/@poe-code/agent-human-in-loop/README.md +12 -2
  49. package/node_modules/@poe-code/agent-human-in-loop/package.json +8 -2
  50. package/node_modules/@poe-code/agent-mcp-config/README.md +7 -7
  51. package/node_modules/@poe-code/agent-mcp-config/package.json +8 -2
  52. package/node_modules/@poe-code/config-mutations/README.md +8 -8
  53. package/node_modules/@poe-code/config-mutations/package.json +8 -2
  54. package/node_modules/@poe-code/frontmatter/README.md +2 -2
  55. package/node_modules/@poe-code/frontmatter/package.json +8 -2
  56. package/node_modules/@poe-code/process-runner/README.md +1 -1
  57. package/node_modules/@poe-code/process-runner/package.json +8 -2
  58. package/node_modules/@poe-code/task-list/README.md +15 -3
  59. package/node_modules/@poe-code/task-list/package.json +8 -2
  60. package/node_modules/auth-store/README.md +15 -0
  61. package/node_modules/auth-store/package.json +3 -2
  62. package/node_modules/tiny-mcp-client/.turbo/turbo-build.log +1 -1
  63. package/node_modules/tiny-mcp-client/README.md +36 -36
  64. package/node_modules/tiny-mcp-client/dist/index.d.ts +660 -2
  65. package/node_modules/tiny-mcp-client/dist/index.js +3870 -1
  66. package/node_modules/tiny-mcp-client/package.json +8 -2
  67. package/node_modules/tiny-mcp-client/scripts/build.mjs +63 -0
  68. package/node_modules/toolcraft-design/README.md +8 -4
  69. package/node_modules/toolcraft-design/dist/dashboard/terminal.js +48 -6
  70. package/node_modules/toolcraft-design/dist/explorer/actions.d.ts +4 -0
  71. package/node_modules/toolcraft-design/dist/explorer/actions.js +1 -0
  72. package/node_modules/toolcraft-design/dist/explorer/events.d.ts +4 -0
  73. package/node_modules/toolcraft-design/dist/explorer/reducer.js +52 -4
  74. package/node_modules/toolcraft-design/dist/explorer/render/list.js +47 -20
  75. package/node_modules/toolcraft-design/dist/explorer/render/modal.js +13 -1
  76. package/node_modules/toolcraft-design/dist/explorer/render/test-fixtures.js +1 -1
  77. package/node_modules/toolcraft-design/dist/explorer/runtime.js +3 -0
  78. package/node_modules/toolcraft-design/dist/explorer/state.d.ts +9 -0
  79. package/node_modules/toolcraft-design/package.json +3 -2
  80. package/package.json +44 -6
  81. package/node_modules/mcp-oauth/LICENSE +0 -21
  82. package/node_modules/mcp-oauth/README.md +0 -31
  83. package/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +0 -14
  84. package/node_modules/mcp-oauth/dist/client/auth-store-session-store.js +0 -169
  85. package/node_modules/mcp-oauth/dist/client/authorization-state.d.ts +0 -8
  86. package/node_modules/mcp-oauth/dist/client/authorization-state.js +0 -47
  87. package/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.d.ts +0 -3
  88. package/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +0 -627
  89. package/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +0 -20
  90. package/node_modules/mcp-oauth/dist/client/loopback-authorization.js +0 -207
  91. package/node_modules/mcp-oauth/dist/client/pkce.d.ts +0 -2
  92. package/node_modules/mcp-oauth/dist/client/pkce.js +0 -7
  93. package/node_modules/mcp-oauth/dist/client/token-endpoint.d.ts +0 -40
  94. package/node_modules/mcp-oauth/dist/client/token-endpoint.js +0 -164
  95. package/node_modules/mcp-oauth/dist/client/types.d.ts +0 -113
  96. package/node_modules/mcp-oauth/dist/client/types.js +0 -1
  97. package/node_modules/mcp-oauth/dist/index.d.ts +0 -10
  98. package/node_modules/mcp-oauth/dist/index.js +0 -7
  99. package/node_modules/mcp-oauth/dist/resource-indicator.d.ts +0 -1
  100. package/node_modules/mcp-oauth/dist/resource-indicator.js +0 -11
  101. package/node_modules/mcp-oauth/dist/server/jwks-token-verifier.d.ts +0 -28
  102. package/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +0 -304
  103. package/node_modules/mcp-oauth/dist/types.compile-check.d.ts +0 -1
  104. package/node_modules/mcp-oauth/dist/types.compile-check.js +0 -22
  105. package/node_modules/mcp-oauth/package.json +0 -32
  106. package/node_modules/tiny-mcp-client/dist/internal.d.ts +0 -556
  107. package/node_modules/tiny-mcp-client/dist/internal.js +0 -2688
  108. package/node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.d.ts +0 -1
  109. package/node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.js +0 -37
  110. package/node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.d.ts +0 -1
  111. package/node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.js +0 -50
  112. package/node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.d.ts +0 -1
  113. package/node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.js +0 -50
  114. package/node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.d.ts +0 -1
  115. package/node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.js +0 -51
  116. package/node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.d.ts +0 -1
  117. package/node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.js +0 -99
  118. package/node_modules/tiny-mcp-client/dist/mcp-transport-types.compile-check.d.ts +0 -1
  119. package/node_modules/tiny-mcp-client/dist/mcp-transport-types.compile-check.js +0 -56
  120. package/node_modules/tiny-mcp-client/dist/mcp-utility-types.compile-check.d.ts +0 -1
  121. package/node_modules/tiny-mcp-client/dist/mcp-utility-types.compile-check.js +0 -145
  122. package/node_modules/tiny-mcp-client/dist/oauth-discovery.d.ts +0 -24
  123. package/node_modules/tiny-mcp-client/dist/oauth-discovery.js +0 -382
@@ -32,7 +32,7 @@ Low-level process execution abstraction. Single interface for launching processe
32
32
  - `extraArgs`: additional runtime arguments.
33
33
  - `containerName`: optional container name prefix.
34
34
 
35
- ## Environment variables
35
+ ## Environment Variables
36
36
 
37
37
  This package exposes no environment variables.
38
38
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@poe-code/process-runner",
3
3
  "version": "0.0.1",
4
- "license": "MIT",
5
4
  "private": true,
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -27,8 +27,14 @@
27
27
  "lint": "cd ../.. && eslint packages/process-runner/src --ext ts && tsc -p packages/process-runner/tsconfig.json --noEmit"
28
28
  },
29
29
  "files": [
30
- "dist"
30
+ "dist",
31
+ "LICENSE"
31
32
  ],
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/poe-platform/poe-code.git",
36
+ "directory": "packages/process-runner"
37
+ },
32
38
  "dependencies": {
33
39
  "ignore": "^5.3.2"
34
40
  }
@@ -46,7 +46,7 @@ interface EventDef<TState extends string = string> {
46
46
 
47
47
  Pass a custom machine with `openTaskList({ stateMachine })`. If omitted, the package uses `defaultStateMachine`, whose event names are `plan`, `start`, `complete`, and `archive`.
48
48
 
49
- ## Options
49
+ ## Configuration Options
50
50
 
51
51
  | Option | Type | Default | Behavior |
52
52
  | ----------------- | ---------------------------------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------- |
@@ -59,7 +59,7 @@ Pass a custom machine with `openTaskList({ stateMachine })`. If omitted, the pac
59
59
  | `fs` | `TaskListFs` | `node:fs/promises` adapter | Injectable filesystem, primarily for tests. |
60
60
  | `stateMachine` | `StateMachineDef` | `defaultStateMachine` | Overrides the task lifecycle used by `create`, `fire`, `canFire`, and `events`. |
61
61
 
62
- ## Env vars
62
+ ## Environment Variables
63
63
 
64
64
  | Env var | Behavior |
65
65
  | --------- | --------------------------------------------------------------- |
@@ -231,7 +231,7 @@ interface SyncGhProjectReport extends VerifyGhProjectReport {
231
231
  }
232
232
  ```
233
233
 
234
- The CLI exposes the same verification and provisioning flow:
234
+ The root CLI exposes verification, provisioning, and task mutation commands:
235
235
 
236
236
  ```sh
237
237
  poe-code tasks verify <list> --workflow ./WORKFLOW.md --repo octo-org/octo-repo --project octo-org/7 --states queued,agent-running,human-review,done,failed,archived --json
@@ -249,6 +249,18 @@ poe-code tasks sync <list> --workflow ./WORKFLOW.md --repo octo-org/octo-repo --
249
249
  | `--json` | `verify`, `sync` | Prints the report as JSON. |
250
250
  | `--yes` | `sync` | Confirms non-interactive provisioning. |
251
251
 
252
+ Additional task backend commands:
253
+
254
+ | Command | Purpose |
255
+ | --------------------------------------- | ----------------------------------------------------- |
256
+ | `poe-code tasks move` | Move tasks between workflow-configured backends. |
257
+ | `poe-code tasks import` | Import Markdown task files into a configured backend. |
258
+ | `poe-code tasks get <id>` | Read one task. |
259
+ | `poe-code tasks set <id>` | Update one task. |
260
+ | `poe-code tasks set-state <id> <state>` | Set one task's state. |
261
+ | `poe-code tasks next <id>` | Advance one task to the next workflow state. |
262
+ | `poe-code tasks comment <id>` | Add a task comment when the backend supports it. |
263
+
252
264
  The `Status` field name and option names are matched case-sensitively. The field must be named `Status`, and required option names must match exactly. For example, `status` is treated as a missing field, and `Done` is treated as missing when the required state is `done`.
253
265
 
254
266
  In v1, if sync creates a new GitHub Project v2 board, the CLI prints the new project number and does not rewrite `WORKFLOW.md`. The operator must update `WORKFLOW.md` by hand with the printed `<owner>/<number>`.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@poe-code/task-list",
3
3
  "version": "0.0.1",
4
- "license": "MIT",
5
4
  "private": true,
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -18,8 +18,14 @@
18
18
  "test:unit": "cd ../.. && vitest run packages/task-list/src"
19
19
  },
20
20
  "files": [
21
- "dist"
21
+ "dist",
22
+ "LICENSE"
22
23
  ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/poe-platform/poe-code.git",
27
+ "directory": "packages/task-list"
28
+ },
23
29
  "dependencies": {
24
30
  "yaml": "*"
25
31
  }
@@ -45,3 +45,18 @@ await store.delete();
45
45
 
46
46
  - Uses the `security` CLI (`add-generic-password`, `find-generic-password`, `delete-generic-password`)
47
47
  - Configurable service and account names
48
+
49
+ ## Configuration Options
50
+
51
+ `createSecretStore()` accepts:
52
+
53
+ - `backendEnvVar`: optional env var name that selects `file` or `keychain`.
54
+ - `fileStore.salt`: application-specific encryption salt.
55
+ - `fileStore.defaultDirectory`: default credential directory.
56
+ - `fileStore.defaultFileName`: encrypted file name.
57
+ - `keychainStore.service`: macOS Keychain service name.
58
+ - `keychainStore.account`: macOS Keychain account name.
59
+
60
+ ## Environment Variables
61
+
62
+ This package reads only the caller-selected `backendEnvVar`. It does not define a fixed public env var.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "auth-store",
3
3
  "version": "0.0.1",
4
- "license": "MIT",
5
4
  "private": true,
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -16,7 +16,8 @@
16
16
  "build": "node ../../scripts/guard-package-dist.mjs && tsc"
17
17
  },
18
18
  "files": [
19
- "dist"
19
+ "dist",
20
+ "LICENSE"
20
21
  ],
21
22
  "repository": {
22
23
  "type": "git",
@@ -3,5 +3,5 @@ npm warn Unknown project config "package-manager-strict". This will stop working
3
3
  npm warn Unknown project config "prefer-workspace-packages". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
4
4
 
5
5
  > tiny-mcp-client@0.1.0 build
6
- > node ../../scripts/guard-package-dist.mjs && tsc
6
+ > node scripts/build.mjs
7
7
 
@@ -8,7 +8,7 @@
8
8
  import { HttpTransport, McpClient } from "tiny-mcp-client";
9
9
 
10
10
  const client = new McpClient({
11
- clientInfo: { name: "demo", version: "0.1.0" },
11
+ clientInfo: { name: "demo", version: "0.1.0" }
12
12
  });
13
13
 
14
14
  await client.connect(new HttpTransport({ url: "http://127.0.0.1:3000/mcp" }));
@@ -16,7 +16,7 @@ const tools = await client.listTools();
16
16
  console.log(tools);
17
17
  const result = await client.callTool({
18
18
  name: "search",
19
- arguments: { query: "typed outputs" },
19
+ arguments: { query: "typed outputs" }
20
20
  });
21
21
  console.log(result.structuredContent);
22
22
  await client.close();
@@ -26,11 +26,11 @@ await client.close();
26
26
 
27
27
  ## Transports
28
28
 
29
- | Transport | Description |
30
- |-----------|-------------|
31
- | `StdioTransport` | Spawns an MCP server process and communicates over stdio. |
32
- | `HttpTransport` | Connects to streamable HTTP MCP endpoints, including session IDs, SSE GET streams, and session termination. |
33
- | `createInMemoryTransportPair()` | Creates paired streams for in-process tests. |
29
+ | Transport | Description |
30
+ | ------------------------------- | ----------------------------------------------------------------------------------------------------------- |
31
+ | `StdioTransport` | Spawns an MCP server process and communicates over stdio. |
32
+ | `HttpTransport` | Connects to streamable HTTP MCP endpoints, including session IDs, SSE GET streams, and session termination. |
33
+ | `createInMemoryTransportPair()` | Creates paired streams for in-process tests. |
34
34
 
35
35
  ## OAuth HTTP support
36
36
 
@@ -46,16 +46,16 @@ const transport = new HttpTransport({
46
46
  client: {
47
47
  mode: "dynamic",
48
48
  metadata: {
49
- clientName: "tiny-client",
50
- },
49
+ clientName: "tiny-client"
50
+ }
51
51
  },
52
52
  browser: {
53
53
  openBrowser: async (url) => {
54
54
  console.log(`Open ${url}`);
55
- },
56
- },
57
- }),
58
- },
55
+ }
56
+ }
57
+ })
58
+ }
59
59
  });
60
60
  ```
61
61
 
@@ -67,38 +67,38 @@ You can also call `discoverOAuthMetadata(resourceUrl, options)` directly, or ins
67
67
  - `createInMemoryTransportPair()` is useful for fast unit tests without opening sockets or spawning processes.
68
68
  - JSON-RPC error constants are exported for assertions: `ERROR_PARSE`, `ERROR_INVALID_REQUEST`, `ERROR_METHOD_NOT_FOUND`, `ERROR_INVALID_PARAMS`, and `ERROR_INTERNAL`.
69
69
 
70
- ## Config options
70
+ ## Configuration Options
71
71
 
72
72
  ### `McpClientOptions`
73
73
 
74
- | Option | Type | Description |
75
- |--------|------|-------------|
76
- | `clientInfo` | `{ name: string; version: string }` | Required client identity sent during initialize. |
77
- | `capabilities` | `ClientCapabilities` | Optional MCP client capabilities. |
78
- | `onToolsChanged`, `onResourcesChanged`, `onPromptsChanged` | callbacks | Optional notification handlers. |
79
- | `onResourceUpdated`, `onLog`, `onProgress` | callbacks | Optional resource/log/progress handlers. |
80
- | `onSamplingRequest`, `onRootsList` | callbacks | Optional server-to-client request handlers. |
74
+ | Option | Type | Description |
75
+ | ---------------------------------------------------------- | ----------------------------------- | ------------------------------------------------ |
76
+ | `clientInfo` | `{ name: string; version: string }` | Required client identity sent during initialize. |
77
+ | `capabilities` | `ClientCapabilities` | Optional MCP client capabilities. |
78
+ | `onToolsChanged`, `onResourcesChanged`, `onPromptsChanged` | callbacks | Optional notification handlers. |
79
+ | `onResourceUpdated`, `onLog`, `onProgress` | callbacks | Optional resource/log/progress handlers. |
80
+ | `onSamplingRequest`, `onRootsList` | callbacks | Optional server-to-client request handlers. |
81
81
 
82
82
  ### `HttpTransportOptions`
83
83
 
84
- | Option | Type | Description |
85
- |--------|------|-------------|
86
- | `url` | `string` | MCP HTTP endpoint URL. |
87
- | `headers` | `HeadersInit` | Static headers added to requests. |
88
- | `fetch` | `(input, init?) => Promise<Response>` | Custom fetch implementation. |
89
- | `oauth` | `OAuthClientProviderOptions` | Enables OAuth authorization handling. |
90
- | `oauthDiscoveryCache` | `OAuthDiscoveryCache` | Optional shared metadata cache. |
84
+ | Option | Type | Description |
85
+ | --------------------- | ------------------------------------- | ------------------------------------- |
86
+ | `url` | `string` | MCP HTTP endpoint URL. |
87
+ | `headers` | `HeadersInit` | Static headers added to requests. |
88
+ | `fetch` | `(input, init?) => Promise<Response>` | Custom fetch implementation. |
89
+ | `oauth` | `OAuthClientProviderOptions` | Enables OAuth authorization handling. |
90
+ | `oauthDiscoveryCache` | `OAuthDiscoveryCache` | Optional shared metadata cache. |
91
91
 
92
92
  ### `StdioTransportOptions`
93
93
 
94
- | Option | Type | Description |
95
- |--------|------|-------------|
96
- | `command` | `string` | Server executable. |
97
- | `args` | `string[]` | Server args. |
98
- | `cwd` | `string` | Server working directory. |
99
- | `env` | `NodeJS.ProcessEnv` | Server environment. |
100
- | `spawn` | `StdioSpawn` | Custom spawn function for tests. |
94
+ | Option | Type | Description |
95
+ | --------- | ------------------- | -------------------------------- |
96
+ | `command` | `string` | Server executable. |
97
+ | `args` | `string[]` | Server args. |
98
+ | `cwd` | `string` | Server working directory. |
99
+ | `env` | `NodeJS.ProcessEnv` | Server environment. |
100
+ | `spawn` | `StdioSpawn` | Custom spawn function for tests. |
101
101
 
102
- ## Environment variables
102
+ ## Environment Variables
103
103
 
104
104
  This package does not expose public environment variables. Pass process environment explicitly through `StdioTransportOptions.env` when a spawned MCP server needs it.