@habemus-papadum/aiui 0.2.0 → 0.5.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 +6 -1
- package/dist/cli.js +1481 -832
- package/dist/cli.js.map +1 -1
- package/dist/commands/browser.d.ts +50 -0
- package/dist/commands/clean.d.ts +49 -0
- package/dist/commands/config-tui.d.ts +1 -0
- package/dist/commands/config.d.ts +43 -0
- package/dist/commands/debug.d.ts +7 -0
- package/dist/commands/env.d.ts +36 -0
- package/dist/commands/extension.d.ts +46 -0
- package/dist/commands/mcp.d.ts +10 -0
- package/dist/commands/native-host.d.ts +16 -0
- package/dist/commands/pencil-url.d.ts +18 -0
- package/dist/commands/vite.d.ts +54 -28
- package/dist/config-Cis6kCik.js +293 -0
- package/dist/config-Cis6kCik.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/util/aiui-args.d.ts +26 -0
- package/dist/util/channel-launch.d.ts +67 -0
- package/dist/util/channel-target.d.ts +33 -0
- package/dist/util/chrome.d.ts +48 -27
- package/dist/util/config-schema.d.ts +96 -0
- package/dist/util/config.d.ts +31 -59
- package/dist/util/first-run.d.ts +11 -8
- package/dist/util/gemini-preflight.d.ts +56 -0
- package/dist/util/openai-preflight.d.ts +4 -3
- package/dist/util/resolve-cli.d.ts +1 -11
- package/package.json +12 -8
- package/dist/commands/demo.d.ts +0 -28
- package/dist/util/browser.d.ts +0 -44
- package/templates/demo/CLAUDE.md +0 -16
- package/templates/demo/README.md +0 -36
- package/templates/demo/gitignore +0 -4
- package/templates/demo/index.html +0 -11
- package/templates/demo/package.json +0 -21
- package/templates/demo/src/main.ts +0 -51
- package/templates/demo/tsconfig.json +0 -11
- package/templates/demo/vite.config.ts +0 -17
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aiui-demo-playground",
|
|
3
|
-
"private": true,
|
|
4
|
-
"type": "module",
|
|
5
|
-
"aiui": {
|
|
6
|
-
"demo": true
|
|
7
|
-
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"claude": "aiui claude",
|
|
10
|
-
"dev": "aiui vite dev",
|
|
11
|
-
"open": "aiui open"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@habemus-papadum/aiui-dev-overlay": "__AIUI_VERSION_RANGE__"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/core": "^7.29.7",
|
|
18
|
-
"@habemus-papadum/aiui": "__AIUI_VERSION_RANGE__",
|
|
19
|
-
"vite": "^6.4.1"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The demo app: a fake "scientific UI" the intent tool mounts over.
|
|
3
|
-
*
|
|
4
|
-
* The app itself is throwaway scenery (an SVG spectrum plot) — note there is
|
|
5
|
-
* **no aiui code in here at all**. The whole integration is the
|
|
6
|
-
* `aiuiDevOverlay()` plugin in vite.config.ts, which injects and mounts the
|
|
7
|
-
* widget into every served page. Run it the intended way:
|
|
8
|
-
*
|
|
9
|
-
* terminal 1: npm run claude (Claude Code with the aiui channel + browser)
|
|
10
|
-
* terminal 2: npm run dev (this app, via `aiui vite`)
|
|
11
|
-
*
|
|
12
|
-
* then open the printed URL in the session browser
|
|
13
|
-
* (`npx aiui open http://localhost:5173`), click the ✳ aiui button, type
|
|
14
|
-
* something — "make the baseline curve red", say — and watch it arrive in the
|
|
15
|
-
* session. The 🔍 button opens the lowering-trace debugger.
|
|
16
|
-
*
|
|
17
|
-
* This playground is yours: let the agent redesign it, break it, rebuild it.
|
|
18
|
-
* Nothing here flows back upstream.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
document.body.innerHTML = `
|
|
22
|
-
<style>
|
|
23
|
-
body { margin: 0; background: #0f1117; color: #e8e8ea; font: 14px/1.5 ui-sans-serif, system-ui; }
|
|
24
|
-
header { padding: 18px 28px 6px; }
|
|
25
|
-
h1 { font-size: 17px; margin: 0; } h1 span { color: #8ab4f8; }
|
|
26
|
-
.sub { color: #9aa0aa; font-size: 12px; }
|
|
27
|
-
main { padding: 10px 28px; }
|
|
28
|
-
.card { background: #171b25; border: 1px solid #262c3a; border-radius: 12px; padding: 16px 18px; max-width: 720px; }
|
|
29
|
-
.legend { display: flex; gap: 14px; font-size: 11px; color: #9aa0aa; margin-top: 8px; }
|
|
30
|
-
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
|
|
31
|
-
</style>
|
|
32
|
-
<header>
|
|
33
|
-
<h1><span>spectra</span> · absorption viewer</h1>
|
|
34
|
-
<div class="sub">demo app for the aiui web intent tool — the widget in the corner is the tool</div>
|
|
35
|
-
</header>
|
|
36
|
-
<main>
|
|
37
|
-
<div class="card">
|
|
38
|
-
<svg viewBox="0 0 640 220" width="100%" role="img" aria-label="demo spectrum plot">
|
|
39
|
-
<g stroke="#262c3a"><line x1="40" y1="10" x2="40" y2="190"/><line x1="40" y1="190" x2="620" y2="190"/>
|
|
40
|
-
<line x1="40" y1="55" x2="620" y2="55" stroke-dasharray="3 5"/><line x1="40" y1="100" x2="620" y2="100" stroke-dasharray="3 5"/>
|
|
41
|
-
<line x1="40" y1="145" x2="620" y2="145" stroke-dasharray="3 5"/></g>
|
|
42
|
-
<polyline fill="none" stroke="#8ab4f8" stroke-width="2"
|
|
43
|
-
points="40,180 90,176 130,168 165,120 185,60 205,38 225,64 260,150 310,170 355,162 390,132 420,90 445,74 470,96 510,158 560,174 620,178"/>
|
|
44
|
-
<polyline fill="none" stroke="#7ee0a3" stroke-width="2" stroke-dasharray="5 4"
|
|
45
|
-
points="40,185 100,182 150,176 200,150 250,120 300,104 350,110 400,128 450,148 500,164 560,175 620,180"/>
|
|
46
|
-
<g fill="#9aa0aa" font-size="10"><text x="30" y="200" text-anchor="end">400</text><text x="330" y="205" text-anchor="middle">wavelength (nm)</text><text x="620" y="200" text-anchor="end">700</text></g>
|
|
47
|
-
</svg>
|
|
48
|
-
<div class="legend"><span><i style="background:#8ab4f8"></i>sample A-113</span><span><i style="background:#7ee0a3"></i>baseline</span></div>
|
|
49
|
-
</div>
|
|
50
|
-
</main>
|
|
51
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import aiuiDevOverlay from "@habemus-papadum/aiui-dev-overlay/vite";
|
|
2
|
-
import { defineConfig } from "vite";
|
|
3
|
-
|
|
4
|
-
// This one plugin is the entire aiui integration — the part to copy into your
|
|
5
|
-
// own app. It mounts the intent tool into every served page, declares the
|
|
6
|
-
// message format the tool speaks, and bridges the channel port from
|
|
7
|
-
// `aiui vite` (VITE_AIUI_PORT in this dev server's env) plus this app's source
|
|
8
|
-
// root into the browser.
|
|
9
|
-
//
|
|
10
|
-
// `locator` turns on compile-time source stamping: every host JSX element gets
|
|
11
|
-
// data-source-loc = "src/…:line:col", and `cell()` call sites get their
|
|
12
|
-
// `{ name, loc }` identity injected — so anything you build here is legible to
|
|
13
|
-
// an agent (the `locate` tool) out of the box. It needs @babel/core (an
|
|
14
|
-
// optional peer, provided as a devDependency of this sandbox).
|
|
15
|
-
export default defineConfig({
|
|
16
|
-
plugins: [aiuiDevOverlay({ format: "text-concat", locator: { cellFactories: ["cell"] } })],
|
|
17
|
-
});
|