@the-forge-flow/visual-explainer-pi 0.1.1 β 0.2.0
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/README.md +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,13 +76,15 @@ pi config # enable/disable individual extensions, skills, prompts, themes
|
|
|
76
76
|
|
|
77
77
|
## π Usage
|
|
78
78
|
|
|
79
|
-
The extension registers a single `generate_visual` tool that the LLM can call directly. It also exposes two slash commands to reopen recently generated files.
|
|
79
|
+
The extension registers a single `tff-generate_visual` tool that the LLM can call directly. It also exposes two slash commands to reopen recently generated files.
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
> The tool id is namespaced with the `tff-` prefix so it can coexist with other pi packages that might ship a tool named `generate_visual`. The user-facing display label ("Generate Visual") stays readable β only the LLM-facing id is prefixed.
|
|
82
|
+
|
|
83
|
+
### `tff-generate_visual`
|
|
82
84
|
|
|
83
85
|
```typescript
|
|
84
86
|
// Render a technical architecture diagram
|
|
85
|
-
generate_visual({
|
|
87
|
+
tff-generate_visual({
|
|
86
88
|
type: "architecture",
|
|
87
89
|
title: "Auth System Overview",
|
|
88
90
|
aesthetic: "blueprint",
|
|
@@ -95,7 +97,7 @@ generate_visual({
|
|
|
95
97
|
});
|
|
96
98
|
|
|
97
99
|
// Render a Mermaid flowchart
|
|
98
|
-
generate_visual({
|
|
100
|
+
tff-generate_visual({
|
|
99
101
|
type: "flowchart",
|
|
100
102
|
title: "Data Pipeline",
|
|
101
103
|
aesthetic: "editorial",
|
|
@@ -103,7 +105,7 @@ generate_visual({
|
|
|
103
105
|
});
|
|
104
106
|
|
|
105
107
|
// Render a comparison table
|
|
106
|
-
generate_visual({
|
|
108
|
+
tff-generate_visual({
|
|
107
109
|
type: "table",
|
|
108
110
|
title: "API Endpoints",
|
|
109
111
|
aesthetic: "paper",
|
|
@@ -138,7 +140,7 @@ Generated HTML files are saved to `~/.agent/diagrams/` and automatically opened
|
|
|
138
140
|
|
|
139
141
|
```
|
|
140
142
|
βββββββββββββββ ββββββββββββββββββββ βββββββββββββββ
|
|
141
|
-
β LLM RequestββββββΆβ
|
|
143
|
+
β LLM RequestββββββΆβtff-generate_visualβββββΆβ Browser β
|
|
142
144
|
β (via PI) β β (defineTool) β β (HTML) β
|
|
143
145
|
βββββββββββββββ ββββββββββ¬ββββββββββ βββββββββββββββ
|
|
144
146
|
β
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+JlE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+JlE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAAE,EAAE,YAAY,QAiJhE"}
|
package/dist/index.js
CHANGED
|
@@ -122,9 +122,13 @@ export default function visualExplainerExtension(pi) {
|
|
|
122
122
|
ctx.ui.notify("Visual explainer ready", "info");
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
// Register generate_visual tool
|
|
125
|
+
// Register tff-generate_visual tool
|
|
126
126
|
const generateVisualTool = defineTool({
|
|
127
|
-
|
|
127
|
+
// Namespaced with the tff- prefix so it can coexist with other pi
|
|
128
|
+
// packages that might ship a tool named "generate_visual". The
|
|
129
|
+
// user-facing display label ("Generate Visual") stays readable;
|
|
130
|
+
// only the LLM-facing tool id carries the prefix.
|
|
131
|
+
name: "tff-generate_visual",
|
|
128
132
|
label: "Generate Visual",
|
|
129
133
|
description: "Generate beautiful, self-contained HTML pages for diagrams, architecture overviews, diff reviews, data tables, and visual explanations. Opens result in browser. Based on nicobailon/visual-explainer design principles.",
|
|
130
134
|
promptSnippet: "Create a visual diagram/architecture/table",
|
package/package.json
CHANGED