@valni/cli-darwin-x64 0.1.2 → 0.1.3
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 +1 -2
- package/package.json +1 -1
- package/runtime/LICENSE +1 -2
- package/runtime/examples/extensions/auto-commit-on-exit.ts +6 -6
- package/runtime/examples/extensions/bash-spawn-hook.ts +3 -3
- package/runtime/examples/extensions/bookmark.ts +5 -5
- package/runtime/examples/extensions/border-status-editor.ts +7 -7
- package/runtime/examples/extensions/built-in-tool-renderer.ts +6 -6
- package/runtime/examples/extensions/claude-rules.ts +4 -4
- package/runtime/examples/extensions/commands.ts +5 -5
- package/runtime/examples/extensions/confirm-destructive.ts +3 -3
- package/runtime/examples/extensions/custom-footer.ts +2 -2
- package/runtime/examples/extensions/custom-header.ts +5 -5
- package/runtime/examples/extensions/custom-provider-anthropic/index.ts +4 -4
- package/runtime/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/runtime/examples/extensions/custom-provider-anthropic/package.json +3 -3
- package/runtime/examples/extensions/dirty-repo-guard.ts +7 -7
- package/runtime/examples/extensions/doom-overlay/doom/build.sh +4 -4
- package/runtime/examples/extensions/doom-overlay/doom/{doomgeneric_pi.c → doomgeneric_valni.c} +1 -1
- package/runtime/examples/extensions/doom-overlay/index.ts +3 -3
- package/runtime/examples/extensions/dynamic-resources/dynamic.json +0 -1
- package/runtime/examples/extensions/dynamic-resources/index.ts +2 -4
- package/runtime/examples/extensions/dynamic-tools.ts +4 -4
- package/runtime/examples/extensions/entry-renderer.ts +6 -6
- package/runtime/examples/extensions/event-bus.ts +8 -8
- package/runtime/examples/extensions/file-trigger.ts +3 -3
- package/runtime/examples/extensions/git-checkpoint.ts +7 -7
- package/runtime/examples/extensions/git-merge-and-resolve.ts +14 -14
- package/runtime/examples/extensions/github-issue-autocomplete.ts +6 -6
- package/runtime/examples/extensions/hello.ts +2 -2
- package/runtime/examples/extensions/hidden-thinking-label.ts +4 -4
- package/runtime/examples/extensions/inline-bash.ts +5 -5
- package/runtime/examples/extensions/input-transform-streaming.ts +5 -5
- package/runtime/examples/extensions/input-transform.ts +5 -5
- package/runtime/examples/extensions/interactive-shell.ts +3 -3
- package/runtime/examples/extensions/mac-system-theme.ts +5 -5
- package/runtime/examples/extensions/message-renderer.ts +4 -4
- package/runtime/examples/extensions/minimal-mode.ts +9 -9
- package/runtime/examples/extensions/modal-editor.ts +3 -3
- package/runtime/examples/extensions/model-status.ts +3 -3
- package/runtime/examples/extensions/notify.ts +5 -5
- package/runtime/examples/extensions/overlay-qa-tests.ts +20 -20
- package/runtime/examples/extensions/overlay-test.ts +3 -3
- package/runtime/examples/extensions/permission-gate.ts +2 -2
- package/runtime/examples/extensions/pirate.ts +4 -4
- package/runtime/examples/extensions/plan-mode/index.ts +21 -21
- package/runtime/examples/extensions/preset.ts +26 -26
- package/runtime/examples/extensions/project-trust.ts +7 -7
- package/runtime/examples/extensions/prompt-customizer.ts +3 -3
- package/runtime/examples/extensions/protected-paths.ts +2 -2
- package/runtime/examples/extensions/provider-payload.ts +3 -3
- package/runtime/examples/extensions/question.ts +2 -2
- package/runtime/examples/extensions/questionnaire.ts +2 -2
- package/runtime/examples/extensions/rainbow-editor.ts +3 -3
- package/runtime/examples/extensions/reload-runtime.ts +4 -4
- package/runtime/examples/extensions/rpc-demo.ts +10 -10
- package/runtime/examples/extensions/sandbox/index.ts +15 -15
- package/runtime/examples/extensions/sandbox/package-lock.json +4 -4
- package/runtime/examples/extensions/sandbox/package.json +3 -3
- package/runtime/examples/extensions/send-user-message.ts +13 -13
- package/runtime/examples/extensions/session-name.ts +4 -4
- package/runtime/examples/extensions/shutdown-command.ts +10 -10
- package/runtime/examples/extensions/snake.ts +3 -3
- package/runtime/examples/extensions/space-invaders.ts +3 -3
- package/runtime/examples/extensions/ssh.ts +12 -12
- package/runtime/examples/extensions/status-line.ts +4 -4
- package/runtime/examples/extensions/structured-output.ts +2 -2
- package/runtime/examples/extensions/subagent/index.ts +5 -5
- package/runtime/examples/extensions/system-prompt-header.ts +3 -3
- package/runtime/examples/extensions/tic-tac-toe.ts +15 -15
- package/runtime/examples/extensions/timed-confirm.ts +4 -4
- package/runtime/examples/extensions/titlebar-spinner.ts +11 -11
- package/runtime/examples/extensions/todo.ts +5 -5
- package/runtime/examples/extensions/tool-override.ts +5 -5
- package/runtime/examples/extensions/tools.ts +10 -10
- package/runtime/examples/extensions/trigger-compact.ts +3 -3
- package/runtime/examples/extensions/truncated-tool.ts +3 -3
- package/runtime/examples/extensions/widget-placement.ts +2 -2
- package/runtime/examples/extensions/with-deps/index.ts +2 -2
- package/runtime/examples/extensions/with-deps/package-lock.json +4 -4
- package/runtime/examples/extensions/with-deps/package.json +3 -3
- package/runtime/examples/extensions/working-indicator.ts +7 -7
- package/runtime/examples/extensions/working-message-test.ts +3 -3
- package/runtime/examples/sdk/01-minimal.ts +1 -1
- package/runtime/examples/sdk/03-custom-prompt.ts +1 -1
- package/runtime/examples/sdk/04-skills.ts +1 -1
- package/runtime/examples/sdk/05-tools.ts +1 -1
- package/runtime/examples/sdk/06-extensions.ts +11 -11
- package/runtime/examples/sdk/08-prompt-templates.ts +1 -1
- package/runtime/export-html/template.js +3 -3
- package/runtime/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/runtime/package.json +8 -14
- package/runtime/theme/dark.json +0 -1
- package/runtime/theme/light.json +0 -1
- package/runtime/theme/theme-schema.json +2 -2
- package/runtime/valni +2 -2
- package/runtime/README.md +0 -674
- package/runtime/docs/extensions.md +0 -2910
- package/runtime/docs/json.md +0 -82
- package/runtime/docs/models.md +0 -540
- package/runtime/docs/packages.md +0 -228
- package/runtime/docs/rpc.md +0 -1480
- package/runtime/docs/sdk.md +0 -1183
- package/runtime/docs/session-format.md +0 -422
- package/runtime/docs/settings.md +0 -315
- package/runtime/docs/shell-aliases.md +0 -13
- package/runtime/docs/terminal-setup.md +0 -142
- package/runtime/docs/termux.md +0 -127
- package/runtime/docs/tmux.md +0 -63
- package/runtime/docs/tui.md +0 -927
- package/runtime/docs/windows.md +0 -17
- package/runtime/examples/README.md +0 -25
- package/runtime/examples/extensions/README.md +0 -212
- package/runtime/examples/extensions/doom-overlay/README.md +0 -46
- package/runtime/examples/extensions/dynamic-resources/SKILL.md +0 -8
- package/runtime/examples/extensions/dynamic-resources/dynamic.md +0 -5
- package/runtime/examples/extensions/gondolin/index.ts +0 -531
- package/runtime/examples/extensions/gondolin/package-lock.json +0 -185
- package/runtime/examples/extensions/gondolin/package.json +0 -19
- package/runtime/examples/extensions/plan-mode/README.md +0 -66
- package/runtime/examples/extensions/subagent/README.md +0 -175
- package/runtime/examples/extensions/subagent/agents/planner.md +0 -37
- package/runtime/examples/extensions/subagent/agents/reviewer.md +0 -35
- package/runtime/examples/extensions/subagent/agents/scout.md +0 -50
- package/runtime/examples/extensions/subagent/agents/worker.md +0 -24
- package/runtime/examples/extensions/subagent/prompts/implement-and-review.md +0 -10
- package/runtime/examples/extensions/subagent/prompts/implement.md +0 -10
- package/runtime/examples/extensions/subagent/prompts/scout-and-plan.md +0 -9
- package/runtime/examples/sdk/README.md +0 -140
- package/runtime/node_modules/@mariozechner/clipboard/.yarnrc.yml +0 -1
- package/runtime/node_modules/@mariozechner/clipboard/Cargo.toml +0 -45
- package/runtime/node_modules/@mariozechner/clipboard/README.md +0 -60
- package/runtime/node_modules/@mariozechner/clipboard/build.rs +0 -5
- package/runtime/node_modules/@mariozechner/clipboard/clipboard.darwin-x64.node +0 -0
- package/runtime/node_modules/@mariozechner/clipboard/exp.ts +0 -12
- package/runtime/node_modules/@mariozechner/clipboard/index.js +0 -606
- package/runtime/node_modules/@mariozechner/clipboard/package.json +0 -56
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/common.rs +0 -307
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/mod.rs +0 -93
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/ios.rs +0 -313
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/macos.rs +0 -471
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/mod.rs +0 -252
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/wayland.rs +0 -431
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/win.rs +0 -712
- package/runtime/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/x11.rs +0 -916
- package/runtime/node_modules/@mariozechner/clipboard/src/lib.rs +0 -194
- package/runtime/node_modules/@mariozechner/clipboard-darwin-x64/README.md +0 -3
- package/runtime/node_modules/@mariozechner/clipboard-darwin-x64/clipboard.darwin-x64.node +0 -0
- package/runtime/node_modules/@mariozechner/clipboard-darwin-x64/package.json +0 -22
package/runtime/docs/packages.md
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
> valni can help you create valni packages. Ask it to bundle your extensions, skills, prompt templates, or themes.
|
|
2
|
-
|
|
3
|
-
# Pi Packages
|
|
4
|
-
|
|
5
|
-
Pi packages bundle extensions, skills, prompt templates, and themes so you can share them through npm or git. A package can declare resources in `package.json` under the `valni` key, or use conventional directories.
|
|
6
|
-
|
|
7
|
-
## Table of Contents
|
|
8
|
-
|
|
9
|
-
- [Install and Manage](#install-and-manage)
|
|
10
|
-
- [Package Sources](#package-sources)
|
|
11
|
-
- [Creating a Pi Package](#creating-a-pi-package)
|
|
12
|
-
- [Package Structure](#package-structure)
|
|
13
|
-
- [Dependencies](#dependencies)
|
|
14
|
-
- [Package Filtering](#package-filtering)
|
|
15
|
-
- [Enable and Disable Resources](#enable-and-disable-resources)
|
|
16
|
-
- [Scope and Deduplication](#scope-and-deduplication)
|
|
17
|
-
|
|
18
|
-
## Install and Manage
|
|
19
|
-
|
|
20
|
-
> **Security:** Pi packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
valni install npm:@foo/bar@1.0.0
|
|
24
|
-
valni install git:github.com/user/repo@v1
|
|
25
|
-
valni install https://github.com/user/repo # raw URLs work too
|
|
26
|
-
valni install /absolute/path/to/package
|
|
27
|
-
valni install ./relative/path/to/package
|
|
28
|
-
|
|
29
|
-
valni remove npm:@foo/bar
|
|
30
|
-
valni list # show installed packages from settings
|
|
31
|
-
valni update # update valni only
|
|
32
|
-
valni update --all # update valni, update packages, and reconcile pinned git refs
|
|
33
|
-
valni update --extensions # update packages and reconcile pinned git refs only
|
|
34
|
-
valni update --models # refresh model catalogs only
|
|
35
|
-
valni update --self # update valni only
|
|
36
|
-
valni update --self --force # reinstall valni even if current
|
|
37
|
-
valni update npm:@foo/bar # update one package
|
|
38
|
-
valni update --extension npm:@foo/bar
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
These commands manage valni packages and `valni update` can update the valni CLI installation. To uninstall valni itself, see [Quickstart](quickstart.md#uninstall).
|
|
42
|
-
|
|
43
|
-
By default, `install` and `remove` write to user settings (`~/.valni/agent/settings.json`). Use `-l` to write to project settings (`.valni/settings.json`) instead. Project settings can be shared with your team, and valni installs any missing packages automatically on startup after the project is trusted.
|
|
44
|
-
|
|
45
|
-
To try a package without installing it, use `--extension` or `-e`. This installs to a temporary directory for the current run only:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
valni -e npm:@foo/bar
|
|
49
|
-
valni -e git:github.com/user/repo
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Package Sources
|
|
53
|
-
|
|
54
|
-
Pi accepts three source types in settings and `valni install`.
|
|
55
|
-
|
|
56
|
-
### npm
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
npm:@scope/pkg@1.2.3
|
|
60
|
-
npm:pkg
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
- Versioned specs are pinned and skipped by package updates (`valni update --extensions`, `valni update --all`).
|
|
64
|
-
- User installs go under `~/.valni/agent/npm/`.
|
|
65
|
-
- Project installs go under `.valni/npm/`.
|
|
66
|
-
- Set `npmCommand` in `settings.json` to pin npm package lookup and install operations to a specific wrapper command such as `mise` or `asdf`.
|
|
67
|
-
|
|
68
|
-
Example:
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
{
|
|
72
|
-
"npmCommand": ["mise", "exec", "node@20", "--", "npm"]
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### git
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
git:github.com/user/repo@v1
|
|
80
|
-
git:git@github.com:user/repo@v1
|
|
81
|
-
https://github.com/user/repo@v1
|
|
82
|
-
ssh://git@github.com/user/repo@v1
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
- Without `git:` prefix, only protocol URLs are accepted (`https://`, `http://`, `ssh://`, `git://`).
|
|
86
|
-
- With `git:` prefix, shorthand formats are accepted, including `github.com/user/repo` and `git@github.com:user/repo`.
|
|
87
|
-
- HTTPS and SSH URLs are both supported.
|
|
88
|
-
- SSH URLs use your configured SSH keys automatically (respects `~/.ssh/config`).
|
|
89
|
-
- For non-interactive runs (for example CI), you can set `GIT_TERMINAL_PROMPT=0` to disable credential prompts and set `GIT_SSH_COMMAND` (for example `ssh -o BatchMode=yes -o ConnectTimeout=5`) to fail fast.
|
|
90
|
-
- Refs are pinned tags or commits. `valni update --extensions` and `valni update --all` do not move them to newer refs, but they do reconcile an existing clone to the configured ref.
|
|
91
|
-
- Use `valni install git:host/user/repo@new-ref` to update settings and move an existing package to a new pinned ref.
|
|
92
|
-
- Cloned to `~/.valni/agent/git/<host>/<path>` (global) or `.valni/git/<host>/<path>` (project).
|
|
93
|
-
- When reconciliation changes the checkout, valni resets and cleans the clone, then runs `npm install` if `package.json` exists.
|
|
94
|
-
|
|
95
|
-
**SSH examples:**
|
|
96
|
-
```bash
|
|
97
|
-
# git@host:path shorthand (requires git: prefix)
|
|
98
|
-
valni install git:git@github.com:user/repo
|
|
99
|
-
|
|
100
|
-
# ssh:// protocol format
|
|
101
|
-
valni install ssh://git@github.com/user/repo
|
|
102
|
-
|
|
103
|
-
# With version ref
|
|
104
|
-
valni install git:git@github.com:user/repo@v1.0.0
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Local Paths
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
/absolute/path/to/package
|
|
111
|
-
./relative/path/to/package
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
Local paths point to files or directories on disk and are added to settings without copying. Relative paths are resolved against the settings file they appear in. If the path is a file, it loads as a single extension. If it is a directory, valni loads resources using package rules.
|
|
115
|
-
|
|
116
|
-
## Creating a Pi Package
|
|
117
|
-
|
|
118
|
-
Add a `valni` manifest to `package.json` or use conventional directories. Include the `pi-package` keyword for discoverability.
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"name": "my-package",
|
|
123
|
-
"keywords": ["pi-package"],
|
|
124
|
-
"valni": {
|
|
125
|
-
"extensions": ["./extensions"],
|
|
126
|
-
"skills": ["./skills"],
|
|
127
|
-
"prompts": ["./prompts"],
|
|
128
|
-
"themes": ["./themes"]
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Paths are relative to the package root. Arrays support glob patterns and `!exclusions`.
|
|
134
|
-
|
|
135
|
-
### Gallery Metadata
|
|
136
|
-
|
|
137
|
-
The [package gallery](https://pi.dev/packages) displays packages tagged with `pi-package`. Add `video` or `image` fields to show a preview:
|
|
138
|
-
|
|
139
|
-
```json
|
|
140
|
-
{
|
|
141
|
-
"name": "my-package",
|
|
142
|
-
"keywords": ["pi-package"],
|
|
143
|
-
"valni": {
|
|
144
|
-
"extensions": ["./extensions"],
|
|
145
|
-
"video": "https://example.com/demo.mp4",
|
|
146
|
-
"image": "https://example.com/screenshot.png"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
- **video**: MP4 only. On desktop, autoplays on hover. Clicking opens a fullscreen player.
|
|
152
|
-
- **image**: PNG, JPEG, GIF, or WebP. Displayed as a static preview.
|
|
153
|
-
|
|
154
|
-
If both are set, video takes precedence.
|
|
155
|
-
|
|
156
|
-
## Package Structure
|
|
157
|
-
|
|
158
|
-
### Convention Directories
|
|
159
|
-
|
|
160
|
-
If no `valni` manifest is present, valni auto-discovers resources from these directories:
|
|
161
|
-
|
|
162
|
-
- `extensions/` loads `.ts` and `.js` files
|
|
163
|
-
- `skills/` recursively finds `SKILL.md` folders and loads top-level `.md` files as skills
|
|
164
|
-
- `prompts/` loads `.md` files
|
|
165
|
-
- `themes/` loads `.json` files
|
|
166
|
-
|
|
167
|
-
## Dependencies
|
|
168
|
-
|
|
169
|
-
Third party runtime dependencies belong in `dependencies` in `package.json`. Dependencies that do not register extensions, skills, prompt templates, or themes also belong in `dependencies`. When valni installs a package from npm or git, it runs `npm install`, so those dependencies are installed automatically.
|
|
170
|
-
|
|
171
|
-
Pi bundles core packages for extensions and skills. If you import any of these, list them in `peerDependencies` with a `"*"` range and do not bundle them: `@valni/ai`, `@valni/agent-core`, `@valni/cli`, `@valni/tui`, `typebox`.
|
|
172
|
-
|
|
173
|
-
Other valni packages must be bundled in your tarball. Add them to `dependencies` and `bundledDependencies`, then reference their resources through `node_modules/` paths. Pi loads packages with separate module roots, so separate installs do not collide or share modules.
|
|
174
|
-
|
|
175
|
-
Example:
|
|
176
|
-
|
|
177
|
-
```json
|
|
178
|
-
{
|
|
179
|
-
"dependencies": {
|
|
180
|
-
"shitty-extensions": "^1.0.1"
|
|
181
|
-
},
|
|
182
|
-
"bundledDependencies": ["shitty-extensions"],
|
|
183
|
-
"valni": {
|
|
184
|
-
"extensions": ["extensions", "node_modules/shitty-extensions/extensions"],
|
|
185
|
-
"skills": ["skills", "node_modules/shitty-extensions/skills"]
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
## Package Filtering
|
|
191
|
-
|
|
192
|
-
Filter what a package loads using the object form in settings:
|
|
193
|
-
|
|
194
|
-
```json
|
|
195
|
-
{
|
|
196
|
-
"packages": [
|
|
197
|
-
"npm:simple-pkg",
|
|
198
|
-
{
|
|
199
|
-
"source": "npm:my-package",
|
|
200
|
-
"extensions": ["extensions/*.ts", "!extensions/legacy.ts"],
|
|
201
|
-
"skills": [],
|
|
202
|
-
"prompts": ["prompts/review.md"],
|
|
203
|
-
"themes": ["+themes/legacy.json"]
|
|
204
|
-
}
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
`+path` and `-path` are exact paths relative to the package root.
|
|
210
|
-
|
|
211
|
-
- Omit a key to load all of that type.
|
|
212
|
-
- Use `[]` to load none of that type.
|
|
213
|
-
- `!pattern` excludes matches.
|
|
214
|
-
- `+path` force-includes an exact path.
|
|
215
|
-
- `-path` force-excludes an exact path.
|
|
216
|
-
- Filters layer on top of the manifest. They narrow down what is already allowed.
|
|
217
|
-
|
|
218
|
-
## Enable and Disable Resources
|
|
219
|
-
|
|
220
|
-
Use `valni config` to enable or disable extensions, skills, prompt templates, and themes from installed packages and local directories. `valni config` starts in global settings (`~/.valni/agent/settings.json`); press Tab to switch between global and project-local modes. Use `valni config -l` to start in project overrides (`.valni/settings.json`) with inherited global resources dimmed.
|
|
221
|
-
|
|
222
|
-
## Scope and Deduplication
|
|
223
|
-
|
|
224
|
-
Packages can appear in both global and project settings. If the same package appears in both, the project entry wins unless the project entry has `autoload: false`, in which case it is applied as a delta over the global entry. Identity is determined by:
|
|
225
|
-
|
|
226
|
-
- npm: package name
|
|
227
|
-
- git: repository URL without ref
|
|
228
|
-
- local: resolved absolute path
|