@agimon-ai/po-template-elegant 0.0.0-alpha.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/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/extensions/web.mjs +1264 -0
- package/dist/extensions/web.mjs.map +1 -0
- package/llms.txt +5 -0
- package/package.json +90 -0
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
|
+
# Po 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/po-template-elegant` to the existing `default.packages` list in `~/.po/modes.yaml` or your repository's `.po/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 `po 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: po-template-elegant
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Global defaults live in `~/.po/config.yaml`. Workspace defaults live in `.po/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 header, notices, content, composer, session controls, and activity slots, plus the session rail as data and actions (`rail`). The template renders the rail itself: workspaces, session cards, and the add-workspace dialog (render that dialog at the layout root so it opens while a drawer is closed). The new-session, resume, and remote-access dialogs, the keyboard shortcuts, approval and security overlays stay with the host.
|
|
19
|
+
|
|
20
|
+
## Package contract
|
|
21
|
+
|
|
22
|
+
The routed `template/*.web.ts` contributions are compiled by `@agimon-ai/po-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 `poWeb` metadata.
|
|
23
|
+
|
|
24
|
+
The layout implements `WebTemplateProps` and template contract version 1 from `@agimon-ai/po-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/po-template-elegant --parallel=2
|
|
30
|
+
```
|