toolcraft 0.0.122 → 0.0.124
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/composition.json +2 -2
- package/dist/composition.json +2 -2
- package/node_modules/@poe-code/task-list/dist/backends/markdown-dir.js +1 -6
- package/node_modules/@poe-code/task-list/dist/backends/yaml-file.js +1 -8
- package/node_modules/@poe-code/task-list/dist/schema/ids.d.ts +2 -0
- package/node_modules/@poe-code/task-list/dist/schema/ids.js +6 -0
- package/node_modules/@poe-code/task-list/package.json +1 -1
- package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
- package/node_modules/toolcraft-schema/package.json +1 -1
- package/package.json +2 -2
- package/node_modules/@poe-code/task-list/dist/schema/store.schema.json +0 -32
- package/node_modules/@poe-code/task-list/dist/schema/task.schema.json +0 -33
package/composition.json
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "toolcraft",
|
|
106
|
-
"version": "0.0.
|
|
106
|
+
"version": "0.0.124",
|
|
107
107
|
"license": "MIT"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft-schema",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.124",
|
|
117
117
|
"license": "MIT"
|
|
118
118
|
},
|
|
119
119
|
{
|
package/dist/composition.json
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "toolcraft",
|
|
106
|
-
"version": "0.0.
|
|
106
|
+
"version": "0.0.124",
|
|
107
107
|
"license": "MIT"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft-schema",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.124",
|
|
117
117
|
"license": "MIT"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import path from "node:path";
|
|
3
2
|
import { parseDocument, stringify } from "yaml";
|
|
4
|
-
|
|
5
|
-
// syntax error before Node 18.20, and engines declares >=18.18 (#517).
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
|
-
const taskSchema = require("../schema/task.schema.json");
|
|
3
|
+
import { TASK_SCHEMA_ID } from "../schema/ids.js";
|
|
8
4
|
import { eventsFromState, findEvent } from "../state-machine.js";
|
|
9
5
|
import { resolveStateMachine } from "../state.js";
|
|
10
6
|
import { AnchorNotFoundError, InvalidTransitionError, MalformedTaskError, OrderMismatchError, TaskAlreadyExistsError, TaskNotFoundError } from "../types.js";
|
|
@@ -13,7 +9,6 @@ const ARCHIVE_DIRECTORY_NAME = "archive";
|
|
|
13
9
|
const MARKDOWN_EXTENSION = ".md";
|
|
14
10
|
const TASK_KIND = "task";
|
|
15
11
|
const TASK_VERSION = 1;
|
|
16
|
-
const TASK_SCHEMA_ID = taskSchema.$id;
|
|
17
12
|
const MIN_PREFIX_WIDTH = 2;
|
|
18
13
|
const RESERVED_FRONTMATTER_KEYS = new Set([
|
|
19
14
|
"$schema",
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import path from "node:path";
|
|
3
2
|
import { isMap, parseDocument } from "yaml";
|
|
4
|
-
|
|
5
|
-
// syntax error before Node 18.20, and engines declares >=18.18 (#517).
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
|
-
const storeSchema = require("../schema/store.schema.json");
|
|
8
|
-
const taskSchema = require("../schema/task.schema.json");
|
|
3
|
+
import { STORE_SCHEMA_ID, TASK_SCHEMA_ID } from "../schema/ids.js";
|
|
9
4
|
import { eventsFromState, findEvent } from "../state-machine.js";
|
|
10
5
|
import { resolveStateMachine } from "../state.js";
|
|
11
6
|
import { AnchorNotFoundError, InvalidTransitionError, MalformedTaskError, OrderMismatchError, TaskAlreadyExistsError, TaskNotFoundError } from "../types.js";
|
|
12
7
|
import { applyOrder, isTrimmedPrintableIdentifier, isRecord, rejectSymbolicLinkComponents, sortStrings, statIfExists, validateTaskId, validateTaskName, withFileLock, writeAtomically } from "./utils.js";
|
|
13
8
|
const STORE_KIND = "task-store";
|
|
14
|
-
const STORE_SCHEMA_ID = storeSchema.$id;
|
|
15
9
|
const STORE_VERSION = 1;
|
|
16
10
|
const TASK_KIND = "task";
|
|
17
|
-
const TASK_SCHEMA_ID = taskSchema.$id;
|
|
18
11
|
const TASK_VERSION = 1;
|
|
19
12
|
const RESERVED_TASK_KEYS = new Set([
|
|
20
13
|
"$schema",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Kept in sync with the sibling *.schema.json files by ids.test.ts. Inlined as
|
|
2
|
+
// constants so every artifact surface (tsc dist, esbuild bundles) works without
|
|
3
|
+
// runtime file lookups, and without JSON import attributes — a syntax error
|
|
4
|
+
// before Node 18.20 despite the >=18.18 engines floor (#517).
|
|
5
|
+
export const STORE_SCHEMA_ID = "https://poe-platform.github.io/poe-code/schemas/task-list/store.schema.json";
|
|
6
|
+
export const TASK_SCHEMA_ID = "https://poe-platform.github.io/poe-code/schemas/task-list/task.schema.json";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "node ../../scripts/guard-package-dist.mjs && tsc
|
|
14
|
+
"build": "node ../../scripts/guard-package-dist.mjs && tsc",
|
|
15
15
|
"test": "cd ../.. && vitest run packages/task-list/src",
|
|
16
16
|
"test:unit": "cd ../.. && vitest run packages/task-list/src"
|
|
17
17
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"yaml"
|
|
153
153
|
],
|
|
154
154
|
"optionalDependencies": {
|
|
155
|
-
"toolcraft-schema": "0.0.
|
|
155
|
+
"toolcraft-schema": "0.0.124",
|
|
156
156
|
"toolcraft-design": "*",
|
|
157
157
|
"@poe-code/frontmatter": "*",
|
|
158
158
|
"@poe-code/agent-mcp-config": "*",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://poe-platform.github.io/poe-code/schemas/task-list/store.schema.json",
|
|
4
|
-
"title": "Task Store",
|
|
5
|
-
"description": "YAML multi-list task store.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"$schema": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"const": "https://poe-platform.github.io/poe-code/schemas/task-list/store.schema.json"
|
|
11
|
-
},
|
|
12
|
-
"kind": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"const": "task-store"
|
|
15
|
-
},
|
|
16
|
-
"version": {
|
|
17
|
-
"type": "integer",
|
|
18
|
-
"const": 1
|
|
19
|
-
},
|
|
20
|
-
"lists": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"additionalProperties": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"additionalProperties": {
|
|
25
|
-
"$ref": "./task.schema.json"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"required": ["$schema", "kind", "version", "lists"],
|
|
31
|
-
"additionalProperties": false
|
|
32
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://poe-platform.github.io/poe-code/schemas/task-list/task.schema.json",
|
|
4
|
-
"title": "Task",
|
|
5
|
-
"description": "Persisted task payload used by task-list backends.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"$schema": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"const": "https://poe-platform.github.io/poe-code/schemas/task-list/task.schema.json"
|
|
11
|
-
},
|
|
12
|
-
"kind": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"const": "task"
|
|
15
|
-
},
|
|
16
|
-
"version": {
|
|
17
|
-
"type": "integer",
|
|
18
|
-
"const": 1
|
|
19
|
-
},
|
|
20
|
-
"name": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"minLength": 1
|
|
23
|
-
},
|
|
24
|
-
"state": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"description": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"required": ["name", "state"],
|
|
32
|
-
"additionalProperties": true
|
|
33
|
-
}
|