toolcraft 0.0.76 → 0.0.77
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.
|
@@ -5,10 +5,10 @@ Shared terminal design system for Toolcraft applications. It provides design tok
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install toolcraft
|
|
8
|
+
npm install toolcraft
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Import from the
|
|
11
|
+
`toolcraft-design` is currently distributed through `toolcraft`. Import the design system from the bundled `toolcraft/design` entrypoint:
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
import {
|
|
@@ -18,22 +18,22 @@ import {
|
|
|
18
18
|
renderMarkdownHtml,
|
|
19
19
|
renderTable,
|
|
20
20
|
text
|
|
21
|
-
} from "toolcraft
|
|
21
|
+
} from "toolcraft/design";
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Flat subpath imports are also
|
|
24
|
+
Flat subpath imports are also available through `toolcraft/design/*`. Use the kebab-case file name that matches the root export name:
|
|
25
25
|
|
|
26
26
|
```ts
|
|
27
|
-
import { renderMarkdownHtml } from "toolcraft
|
|
28
|
-
import { renderTable } from "toolcraft
|
|
29
|
-
import { renderDetailCard } from "toolcraft
|
|
27
|
+
import { renderMarkdownHtml } from "toolcraft/design/render-markdown-html";
|
|
28
|
+
import { renderTable } from "toolcraft/design/render-table";
|
|
29
|
+
import { renderDetailCard } from "toolcraft/design/render-detail-card";
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Inside this workspace, the design package exposes equivalent direct exports:
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
|
-
import { renderMarkdownHtml } from "toolcraft
|
|
36
|
-
import { renderTable } from "toolcraft
|
|
35
|
+
import { renderMarkdownHtml } from "toolcraft-design";
|
|
36
|
+
import { renderTable } from "toolcraft-design/render-table";
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Public API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"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"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"toolcraft-schema": "0.0.
|
|
54
|
+
"toolcraft-schema": "0.0.77",
|
|
55
55
|
"commander": "^13.1.0",
|
|
56
56
|
"fast-string-width": "^3.0.2",
|
|
57
57
|
"fast-wrap-ansi": "^0.2.0",
|