@osovv/vvcode 0.4.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 +21 -0
- package/README.md +68 -0
- package/bin/vvcode +15 -0
- package/dist/vvcode.js +1825 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 osovv
|
|
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,68 @@
|
|
|
1
|
+
# vvcode
|
|
2
|
+
|
|
3
|
+
`vvcode` is a Bun-based CLI package for launching OpenCode with preset-driven runtime overlays.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add -g @osovv/vvcode
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or for local development:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bun install
|
|
15
|
+
bun run cli -- --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Runtime config
|
|
19
|
+
|
|
20
|
+
Project config path:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
.vvcode/config.jsonc
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Default global config path:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
~/.config/vvcode/config.jsonc
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
vvcode opencode --preset <name>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Options:
|
|
39
|
+
|
|
40
|
+
- `--preset`, `-p` (required)
|
|
41
|
+
- `--global-config`, `-c` (optional)
|
|
42
|
+
- `--project-root`, `-r` (optional)
|
|
43
|
+
|
|
44
|
+
You can also omit `opencode` because it is the default subcommand:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
vvcode --preset <name>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Runtime artifacts
|
|
51
|
+
|
|
52
|
+
- `.vvcode/local/runtime/overlays/`
|
|
53
|
+
- `.vvcode/local/runtime/traces/`
|
|
54
|
+
- `.vvcode/local/runtime/failures/`
|
|
55
|
+
- `.vvcode/memory/project/`
|
|
56
|
+
- `.vvcode/memory/agent/`
|
|
57
|
+
- `.vvcode/local/memory/session/`
|
|
58
|
+
- `.vvcode/local/memory/subagent/`
|
|
59
|
+
|
|
60
|
+
## Packaging notes
|
|
61
|
+
|
|
62
|
+
- Package name: `@osovv/vvcode`
|
|
63
|
+
- CLI bin: `bin/vvcode`
|
|
64
|
+
- Published runtime entry: `dist/vvcode.js`
|
|
65
|
+
- Build command: `bun run build`
|
|
66
|
+
- Local dev command: `bun run cli -- --help`
|
|
67
|
+
- `prepack` builds `dist` automatically before publish/pack
|
|
68
|
+
- Scoped publish target: `npm publish --access=public`
|
package/bin/vvcode
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// FILE: bin/vvcode
|
|
3
|
+
// VERSION: 1.0.0
|
|
4
|
+
// START_MODULE_CONTRACT
|
|
5
|
+
// PURPOSE: Execute the packaged vvcode CLI bundle through Bun.
|
|
6
|
+
// SCOPE: Import the built dist entrypoint for publish-ready runtime execution.
|
|
7
|
+
// DEPENDS: M-CLI
|
|
8
|
+
// LINKS: fn-runVvcodeCli
|
|
9
|
+
// END_MODULE_CONTRACT
|
|
10
|
+
//
|
|
11
|
+
// START_MODULE_MAP
|
|
12
|
+
// vvcode binary wrapper - Run the packaged vvcode CLI through Bun.
|
|
13
|
+
// END_MODULE_MAP
|
|
14
|
+
|
|
15
|
+
import '../dist/vvcode.js';
|