@tryinget/pi-designmd-foundry 0.3.0 → 0.3.1
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.
|
@@ -19,9 +19,9 @@ Primary lane:
|
|
|
19
19
|
Catalog/list commands:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
uv tool -n run --from
|
|
23
|
-
uv tool -n run --from
|
|
24
|
-
uv tool -n run --from
|
|
22
|
+
uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core catalog --pretty
|
|
23
|
+
uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core list-disciplines
|
|
24
|
+
uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core list-templates
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Selected disciplines:
|
package/extensions/designmd.ts
CHANGED
|
@@ -7,10 +7,23 @@ import { type SpawnSyncReturns, spawnSync } from "node:child_process";
|
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import { StringEnum } from "@earendil-works/pi-ai";
|
|
11
10
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
12
11
|
import { Type } from "typebox";
|
|
13
12
|
|
|
13
|
+
// pi-ai >= 1.5 StringEnum returns a pi-schema Schema, which typebox's Type.Object cannot
|
|
14
|
+
// infer (the field becomes unknown). Same JSON schema, { type: "string", enum }, typed for typebox.
|
|
15
|
+
function StringEnum<T extends readonly string[]>(
|
|
16
|
+
values: T,
|
|
17
|
+
options?: { description?: string; default?: T[number] },
|
|
18
|
+
) {
|
|
19
|
+
return Type.Unsafe<T[number]>({
|
|
20
|
+
type: "string",
|
|
21
|
+
enum: values,
|
|
22
|
+
...(options?.description && { description: options.description }),
|
|
23
|
+
...(options?.default && { default: options.default }),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
14
27
|
type PiToolParameters = Parameters<ExtensionAPI["registerTool"]>[0]["parameters"];
|
|
15
28
|
type ToolResult = Awaited<ReturnType<Parameters<ExtensionAPI["registerTool"]>[0]["execute"]>>;
|
|
16
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryinget/pi-designmd-foundry",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Pi extension and skill package for using DesignMD Foundry as a design-contract tool surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"releaseConfigMode": "component"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
+
"typescript": "7.0.2",
|
|
82
83
|
"@biomejs/biome": "2.3.14",
|
|
83
|
-
"@earendil-works/pi-agent-core": "
|
|
84
|
-
"@earendil-works/pi-ai": "
|
|
85
|
-
"@earendil-works/pi-coding-agent": "
|
|
84
|
+
"@earendil-works/pi-agent-core": "1.5.2",
|
|
85
|
+
"@earendil-works/pi-ai": "1.5.2",
|
|
86
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
86
87
|
"@types/node": "^22.0.0",
|
|
87
|
-
"@typescript/native-preview": "7.0.0-dev.20260417.1",
|
|
88
88
|
"typebox": "1.3.7"
|
|
89
89
|
},
|
|
90
90
|
"overrides": {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"engineering_core": {
|
|
4
4
|
"tool": "engineering-core",
|
|
5
5
|
"lane": "pi-ts",
|
|
6
|
-
"repository": "https://github.com/
|
|
7
|
-
"ref": "
|
|
8
|
-
"command": "uv tool -n run --from
|
|
9
|
-
"catalog_command": "uv tool -n run --from
|
|
10
|
-
"list_disciplines_command": "uv tool -n run --from
|
|
11
|
-
"list_templates_command": "uv tool -n run --from
|
|
6
|
+
"repository": "https://github.com/tryingET/core_engineering-core",
|
|
7
|
+
"ref": "v0.12.2",
|
|
8
|
+
"command": "uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core show pi-ts --prefer-repo",
|
|
9
|
+
"catalog_command": "uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core catalog --pretty",
|
|
10
|
+
"list_disciplines_command": "uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core list-disciplines",
|
|
11
|
+
"list_templates_command": "uv tool -n run --from git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae engineering-core list-templates",
|
|
12
12
|
"disciplines": [
|
|
13
13
|
"validation",
|
|
14
14
|
"testing",
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
"loop-impact-wide": "npm run loop-impact-wide",
|
|
32
32
|
"loop-landing-check": "npm run loop-landing-check"
|
|
33
33
|
}
|
|
34
|
+
},
|
|
35
|
+
"release_pin": {
|
|
36
|
+
"kind": "git-commit",
|
|
37
|
+
"ref": "v0.12.2",
|
|
38
|
+
"resolved_commit": "27ff32a529b6da6b27051e97fdb1d95a0a9be4ae",
|
|
39
|
+
"source": "git+https://github.com/tryingET/core_engineering-core.git@27ff32a529b6da6b27051e97fdb1d95a0a9be4ae"
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
42
|
}
|