@agimon-ai/doompi-template-elegant 0.0.1-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vuong Ngo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # DoomPi Elegant template
2
+
3
+ An independently installable, chat-first web template. Conversations use a centered reading column. Navigation and activity open in accessible drawers, while session controls expand on demand. Plugin panels and settings keep the full available width.
4
+
5
+ Append `@agimon-ai/doompi-template-elegant` to the existing `default.packages` list in `~/.pi/.doom/modes.yaml` or your repository's `.doom/modes.yaml`. Keep the other entries. A repository `default` replaces the personal list rather than merging individual packages.
6
+
7
+ Packages can also live in a layer selected by a major mode. Refresh the composition with `doompi sync` after adding or removing packages.
8
+
9
+ Open **Settings > Appearance > Template**, choose the configuration scope, select **Elegant**, and click **Set as default**. The equivalent configuration is:
10
+
11
+ ```yaml
12
+ web:
13
+ template: doompi-template-elegant
14
+ ```
15
+
16
+ Global defaults live in `~/.pi/.doom/config.yaml`. Workspace defaults live in `.doom/config.yaml` and override the global value. Clearing a workspace default restores inheritance.
17
+
18
+ A template changes presentation, not the active tools, session runtime, or color theme. The host supplies navigation, header, notices, content, composer, session controls, and activity slots. Approval and security overlays stay outside the template.
19
+
20
+ ## Package contract
21
+
22
+ The routed `template/*.web.ts` contributions are compiled by `@agimon-ai/doompi-build`. The generated Pi entry admits the package through normal `modes.yaml` resolution but registers no tools or minor modes. Browser code is emitted to `dist/extensions/web.mjs` and discovered through `doompiWeb` metadata.
23
+
24
+ The layout implements `WebTemplateProps` and template contract version 1 from `@agimon-ai/doompi-core/web`. There is no dependency on the web client's private stores or router.
25
+
26
+ ## Development
27
+
28
+ ```sh
29
+ pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/doompi-template-elegant --parallel=2
30
+ ```
@@ -0,0 +1,11 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#region generated/pi.ts
6
+ const extension = (0, require("@agimon-ai/doompi-core/piExtension").definePiExtension)("@agimon-ai/doompi-template-elegant", () => ({}));
7
+ //#endregion
8
+ exports.default = extension;
9
+ exports.extension = extension;
10
+
11
+ //# sourceMappingURL=pi.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi.cjs","names":["definePiExtension"],"sources":["../../generated/pi.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { definePiExtension } from '@agimon-ai/doompi-core/piExtension';\n\nexport const extension = definePiExtension('@agimon-ai/doompi-template-elegant', () => ({\n}));\n\nexport default extension;\n"],"mappings":";;;;;AAGA,MAAa,aAAA,+CAAYA,CAAAA,CAAAA,kBAAAA,CAAkB,6CAA6C,CACxF,EAAE"}
@@ -0,0 +1,5 @@
1
+ //#region generated/pi.d.ts
2
+ export declare const extension: import("@agimon-ai/doompi-core/runtimePiExtension").DefinedPiExtension<undefined>;
3
+ //#endregion
4
+ export { extension as default };
5
+ //# sourceMappingURL=pi.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi.d.mts","names":[],"sources":["../../generated/pi.ts"],"mappings":";qBAGa,+DAAS"}
@@ -0,0 +1,7 @@
1
+ import { definePiExtension } from "@agimon-ai/doompi-core/piExtension";
2
+ //#region generated/pi.ts
3
+ const extension = definePiExtension("@agimon-ai/doompi-template-elegant", () => ({}));
4
+ //#endregion
5
+ export { extension as default, extension };
6
+
7
+ //# sourceMappingURL=pi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi.mjs","names":[],"sources":["../../generated/pi.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { definePiExtension } from '@agimon-ai/doompi-core/piExtension';\n\nexport const extension = definePiExtension('@agimon-ai/doompi-template-elegant', () => ({\n}));\n\nexport default extension;\n"],"mappings":";;AAGA,MAAa,YAAY,kBAAkB,6CAA6C,CACxF,EAAE"}
@@ -0,0 +1,98 @@
1
+ import { defineWebPlugin, defineWebTemplate } from "@agimon-ai/doompi-core/web";
2
+ import { Drawer } from "@agimon-ai/doompi-web-components";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/extensions/(frontend)/template/_components/ElegantLayout.tsx
5
+ /** A conversation-first frame, with the same host capabilities available on demand. */
6
+ function ElegantLayout({ view, slots, navigationOpen, mobileActivityOpen, onNavigationOpenChange, onMobileActivityOpenChange }) {
7
+ const conversation = view === "conversation" || view === "welcome";
8
+ return /* @__PURE__ */ jsxs("div", {
9
+ className: "relative flex h-full min-w-0 flex-col overflow-hidden bg-doom-bg",
10
+ children: [
11
+ /* @__PURE__ */ jsx(Drawer, {
12
+ open: navigationOpen,
13
+ onOpenChange: onNavigationOpenChange,
14
+ side: "left",
15
+ title: "Sessions",
16
+ "data-testid": "session-rail-panel",
17
+ backdropTestId: "mobile-drawer-backdrop",
18
+ children: slots.navigation
19
+ }),
20
+ slots.notices,
21
+ slots.header({
22
+ navigationToggle: "always",
23
+ activityToggle: "always"
24
+ }),
25
+ /* @__PURE__ */ jsx("main", {
26
+ className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",
27
+ children: /* @__PURE__ */ jsxs("div", {
28
+ "data-testid": "template-content",
29
+ className: conversation ? "mx-auto flex min-h-0 w-full max-w-[960px] flex-1 flex-col overflow-hidden px-2 sm:px-6" : "flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",
30
+ children: [
31
+ slots.content,
32
+ slots.composer == null ? null : /* @__PURE__ */ jsx("div", {
33
+ className: "mx-2 mb-3 shrink-0 overflow-hidden rounded-lg border border-doom-border bg-doom-panel sm:mx-4 sm:mb-5",
34
+ children: slots.composer
35
+ }),
36
+ slots.controls == null ? null : /* @__PURE__ */ jsxs("details", {
37
+ className: "shrink-0 px-3 pb-3 text-sm text-doom-dim",
38
+ children: [/* @__PURE__ */ jsx("summary", {
39
+ "data-testid": "template-controls-toggle",
40
+ className: "cursor-pointer rounded-sm px-1 py-1 focus-visible:outline focus-visible:outline-doom-blue",
41
+ children: "Session controls"
42
+ }), slots.controls]
43
+ })
44
+ ]
45
+ })
46
+ }),
47
+ slots.activity == null ? null : /* @__PURE__ */ jsx(Drawer, {
48
+ open: mobileActivityOpen,
49
+ onOpenChange: onMobileActivityOpenChange,
50
+ side: "right",
51
+ title: "Activity",
52
+ showHeader: false,
53
+ backdropTestId: "mobile-activity-backdrop",
54
+ className: "w-auto max-w-[calc(100vw-48px)]",
55
+ children: slots.activity
56
+ })
57
+ ]
58
+ });
59
+ }
60
+ //#endregion
61
+ //#region src/extensions/(frontend)/template/_lib/definition.ts
62
+ const elegantTemplate = {
63
+ label: "Elegant",
64
+ description: "A focused conversation with collapsible navigation, session controls, and activity.",
65
+ contractVersion: 1,
66
+ layout: ElegantLayout
67
+ };
68
+ //#endregion
69
+ //#region src/extensions/(frontend)/template/doompi-template-elegant.web.ts
70
+ var doompi_template_elegant_web_default$2 = defineWebTemplate(elegantTemplate);
71
+ //#endregion
72
+ //#region src/extensions/workspaces/(frontend)/template/doompi-template-elegant.web.ts
73
+ var doompi_template_elegant_web_default$1 = defineWebTemplate(elegantTemplate);
74
+ //#endregion
75
+ //#region src/extensions/workspaces/sessions/(frontend)/template/doompi-template-elegant.web.ts
76
+ var doompi_template_elegant_web_default = defineWebTemplate(elegantTemplate);
77
+ //#endregion
78
+ //#region generated/web.ts
79
+ const via = (identity, value) => ({
80
+ ...identity,
81
+ ...value
82
+ });
83
+ const webPlugin = defineWebPlugin({
84
+ id: "template-elegant",
85
+ global: { get templates() {
86
+ return [via({ id: "doompi-template-elegant" }, doompi_template_elegant_web_default$2)];
87
+ } },
88
+ workspace: { get templates() {
89
+ return [via({ id: "doompi-template-elegant" }, doompi_template_elegant_web_default$1)];
90
+ } },
91
+ session: { get templates() {
92
+ return [via({ id: "doompi-template-elegant" }, doompi_template_elegant_web_default)];
93
+ } }
94
+ });
95
+ //#endregion
96
+ export { webPlugin };
97
+
98
+ //# sourceMappingURL=web.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.mjs","names":["templateDoompiTemplateElegant","templateDoompiTemplateElegant2","templateDoompiTemplateElegant3"],"sources":["../../src/extensions/(frontend)/template/_components/ElegantLayout.tsx","../../src/extensions/(frontend)/template/_lib/definition.ts","../../src/extensions/(frontend)/template/doompi-template-elegant.web.ts","../../src/extensions/workspaces/(frontend)/template/doompi-template-elegant.web.ts","../../src/extensions/workspaces/sessions/(frontend)/template/doompi-template-elegant.web.ts","../../generated/web.ts"],"sourcesContent":["import type { WebTemplateProps } from '@agimon-ai/doompi-core/web';\nimport { Drawer } from '@agimon-ai/doompi-web-components';\n\n/** A conversation-first frame, with the same host capabilities available on demand. */\nexport function ElegantLayout({\n view,\n slots,\n navigationOpen,\n mobileActivityOpen,\n onNavigationOpenChange,\n onMobileActivityOpenChange,\n}: WebTemplateProps) {\n const conversation = view === 'conversation' || view === 'welcome';\n return (\n <div className=\"relative flex h-full min-w-0 flex-col overflow-hidden bg-doom-bg\">\n <Drawer\n open={navigationOpen}\n onOpenChange={onNavigationOpenChange}\n side=\"left\"\n title=\"Sessions\"\n data-testid=\"session-rail-panel\"\n backdropTestId=\"mobile-drawer-backdrop\"\n >\n {slots.navigation}\n </Drawer>\n {slots.notices}\n {slots.header({ navigationToggle: 'always', activityToggle: 'always' })}\n <main className=\"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden\">\n <div\n data-testid=\"template-content\"\n className={\n conversation\n ? 'mx-auto flex min-h-0 w-full max-w-[960px] flex-1 flex-col overflow-hidden px-2 sm:px-6'\n : 'flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden'\n }\n >\n {slots.content}\n {slots.composer == null ? null : (\n <div className=\"mx-2 mb-3 shrink-0 overflow-hidden rounded-lg border border-doom-border bg-doom-panel sm:mx-4 sm:mb-5\">\n {slots.composer}\n </div>\n )}\n {slots.controls == null ? null : (\n <details className=\"shrink-0 px-3 pb-3 text-sm text-doom-dim\">\n <summary\n data-testid=\"template-controls-toggle\"\n className=\"cursor-pointer rounded-sm px-1 py-1 focus-visible:outline focus-visible:outline-doom-blue\"\n >\n Session controls\n </summary>\n {slots.controls}\n </details>\n )}\n </div>\n </main>\n {slots.activity == null ? null : (\n <Drawer\n open={mobileActivityOpen}\n onOpenChange={onMobileActivityOpenChange}\n side=\"right\"\n title=\"Activity\"\n showHeader={false}\n backdropTestId=\"mobile-activity-backdrop\"\n className=\"w-auto max-w-[calc(100vw-48px)]\"\n >\n {slots.activity}\n </Drawer>\n )}\n </div>\n );\n}\n","import type { WebTemplateFile } from '@agimon-ai/doompi-core/web';\n\nimport { ElegantLayout } from '../_components/ElegantLayout';\n\nexport const elegantTemplate = {\n label: 'Elegant',\n description: 'A focused conversation with collapsible navigation, session controls, and activity.',\n contractVersion: 1,\n layout: ElegantLayout,\n} satisfies WebTemplateFile;\n","import { defineWebTemplate } from '@agimon-ai/doompi-core/web';\n\nimport { elegantTemplate } from './_lib/definition';\n\nexport default defineWebTemplate(elegantTemplate);\n","import { defineWebTemplate } from '@agimon-ai/doompi-core/web';\n\nimport { elegantTemplate } from '../../../(frontend)/template/_lib/definition';\n\nexport default defineWebTemplate(elegantTemplate);\n","import { defineWebTemplate } from '@agimon-ai/doompi-core/web';\n\nimport { elegantTemplate } from '../../../../(frontend)/template/_lib/definition';\n\nexport default defineWebTemplate(elegantTemplate);\n","// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { defineWebPlugin, type WebPluginContributions } from '@agimon-ai/doompi-core/web';\n\nimport templateDoompiTemplateElegant from '../src/extensions/(frontend)/template/doompi-template-elegant.web';\nimport templateDoompiTemplateElegant2 from '../src/extensions/workspaces/(frontend)/template/doompi-template-elegant.web';\nimport templateDoompiTemplateElegant3 from '../src/extensions/workspaces/sessions/(frontend)/template/doompi-template-elegant.web';\n\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T => ({ ...identity, ...(value as object) }) as T;\n\nexport const webPlugin = defineWebPlugin({\n id: 'template-elegant',\n global: {\n get templates(): WebPluginContributions['templates'] { return [via({ id: 'doompi-template-elegant' }, templateDoompiTemplateElegant)]; },\n },\n workspace: {\n get templates(): WebPluginContributions['templates'] { return [via({ id: 'doompi-template-elegant' }, templateDoompiTemplateElegant2)]; },\n },\n session: {\n get templates(): WebPluginContributions['templates'] { return [via({ id: 'doompi-template-elegant' }, templateDoompiTemplateElegant3)]; },\n },\n});\n"],"mappings":";;;;;AAIA,SAAgB,cAAc,EAC5B,MACA,OACA,gBACA,oBACA,wBACA,8BACmB;CACnB,MAAM,eAAe,SAAS,kBAAkB,SAAS;CACzD,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,oBAAC,QAAD;IACE,MAAM;IACN,cAAc;IACd,MAAK;IACL,OAAM;IACN,eAAY;IACZ,gBAAe;IAEd,UA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;AACF,CAAC"}
package/llms.txt ADDED
@@ -0,0 +1,5 @@
1
+ # DoomPi Elegant Template
2
+
3
+ A chat-first, independently installable web layout for the DoomPi client.
4
+
5
+ - [Package guide](README.md): Installation through modes.yaml, scoped default configuration, and the template contribution contract.
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@agimon-ai/doompi-template-elegant",
3
+ "version": "0.0.1-alpha.1",
4
+ "description": "Elegant chat-first template for the DoomPi web client.",
5
+ "keywords": [
6
+ "ai",
7
+ "coding-agent",
8
+ "developer-tools",
9
+ "doompi",
10
+ "pi-package",
11
+ "template",
12
+ "web"
13
+ ],
14
+ "bugs": {
15
+ "url": "https://github.com/AgiFlow/doompi/issues"
16
+ },
17
+ "license": "MIT",
18
+ "author": "Vuong Ngo",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/AgiFlow/doompi.git",
22
+ "directory": "layers/template/doompi-template-elegant"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "README.md",
27
+ "LICENSE",
28
+ "llms.txt"
29
+ ],
30
+ "type": "module",
31
+ "main": "./dist/extensions/pi.cjs",
32
+ "module": "./dist/extensions/pi.mjs",
33
+ "types": "./dist/extensions/pi.d.mts",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/extensions/pi.d.mts",
37
+ "import": "./dist/extensions/pi.mjs",
38
+ "require": "./dist/extensions/pi.cjs"
39
+ },
40
+ "./extensions/pi": {
41
+ "types": "./dist/extensions/pi.d.mts",
42
+ "import": "./dist/extensions/pi.mjs",
43
+ "require": "./dist/extensions/pi.cjs"
44
+ },
45
+ "./extensions/web": {
46
+ "import": "./dist/extensions/web.mjs"
47
+ },
48
+ "./package.json": "./package.json"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "dependencies": {
54
+ "@agimon-ai/doompi-core": "0.0.1-alpha.81",
55
+ "@agimon-ai/doompi-web-components": "0.0.1-alpha.39"
56
+ },
57
+ "devDependencies": {
58
+ "@agimon-ai/doompi-build": "0.0.1-alpha.10",
59
+ "@agimon-ai/vibe-lint-plugin-doom-extension": "0.0.1-alpha.76",
60
+ "@earendil-works/pi-coding-agent": "0.87.1",
61
+ "@types/node": "26.6.1",
62
+ "@types/react": "19.3.0",
63
+ "@types/react-dom": "19.3.0",
64
+ "react": "19.3.0",
65
+ "react-dom": "19.3.0",
66
+ "tsdown": "0.23.0",
67
+ "typescript": "7.0.2",
68
+ "vitest": "5.0.1"
69
+ },
70
+ "peerDependencies": {
71
+ "@earendil-works/pi-coding-agent": "0.87.1",
72
+ "react": "^19.0.0",
73
+ "react-dom": "^19.0.0"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "@earendil-works/pi-coding-agent": {
77
+ "optional": true
78
+ }
79
+ },
80
+ "engines": {
81
+ "node": ">=22.19.0"
82
+ },
83
+ "doompiWeb": {
84
+ "pluginId": "template-elegant",
85
+ "channels": [],
86
+ "client": "./dist/extensions/web.mjs",
87
+ "scopes": [
88
+ "global",
89
+ "workspace",
90
+ "session"
91
+ ]
92
+ },
93
+ "pi": {
94
+ "extensions": [
95
+ "./dist/extensions/pi.mjs"
96
+ ]
97
+ },
98
+ "scripts": {
99
+ "build": "tsdown",
100
+ "test": "vitest --run",
101
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.web.json",
102
+ "lint": "oxlint . && oxfmt . --check",
103
+ "fixcode": "oxlint . --fix && oxfmt ."
104
+ }
105
+ }