pi-thread-engine 0.4.0 → 0.4.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.
- package/extensions/index.ts +14 -2
- package/package.json +4 -4
package/extensions/index.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
2
|
-
import { Type } from "@sinclair/typebox";
|
|
3
|
-
import { StringEnum } from "@mariozechner/pi-ai";
|
|
2
|
+
import { Type, type TUnsafe } from "@sinclair/typebox";
|
|
4
3
|
import { Text } from "@mariozechner/pi-tui";
|
|
4
|
+
|
|
5
|
+
// StringEnum helper (removed from pi-ai >=0.66)
|
|
6
|
+
function StringEnum<T extends readonly string[]>(
|
|
7
|
+
values: T,
|
|
8
|
+
options?: { description?: string; default?: T[number] },
|
|
9
|
+
): TUnsafe<T[number]> {
|
|
10
|
+
return Type.Unsafe<T[number]>({
|
|
11
|
+
type: "string",
|
|
12
|
+
enum: values as unknown as string[],
|
|
13
|
+
...(options?.description && { description: options.description }),
|
|
14
|
+
...(options?.default && { default: options.default }),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
5
17
|
import { ThreadRegistry, formatElapsed } from "../src/core/registry.js";
|
|
6
18
|
import { ThreadExecutor } from "../src/core/executor.js";
|
|
7
19
|
import { createDashboard } from "../src/dashboard.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-thread-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Thread-Based Engineering for pi — all 7 thread types + stories + fusion + zero-touch + TUI dashboard. Based on @IndyDevDan framework from agenticengineer.com.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"docs/"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@mariozechner/pi-
|
|
51
|
-
"@mariozechner/pi-
|
|
52
|
-
"@mariozechner/pi-
|
|
50
|
+
"@mariozechner/pi-coding-agent": ">=0.73.0",
|
|
51
|
+
"@mariozechner/pi-tui": ">=0.73.0",
|
|
52
|
+
"@mariozechner/pi-ai": ">=0.73.0",
|
|
53
53
|
"@sinclair/typebox": "^0.34.48"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|