@macintacos/caret 0.7.2 → 0.8.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/.claude-plugin/plugin.json +1 -1
- package/README.md +21 -69
- package/bin/caret +3 -3
- package/dist/cli.js +3900 -957
- package/opencode/caret.plugin.ts +48 -4
- package/package.json +2 -1
- package/ui/dist/assets/{angular-html-BdHCXS81.js → angular-html-CdfLXxZK.js} +1 -1
- package/ui/dist/assets/{angular-ts-BdHcd_HQ.js → angular-ts-DiFTnBIk.js} +1 -1
- package/ui/dist/assets/{apl-Wpdh9uCC.js → apl-C0W7qiHk.js} +1 -1
- package/ui/dist/assets/{astro-kXjH7BH1.js → astro-D4EkEiP6.js} +1 -1
- package/ui/dist/assets/{blade-vVE0b38X.js → blade-BMlMTUBG.js} +1 -1
- package/ui/dist/assets/{c-DNgrL4Uo.js → c-ZvwWAgWV.js} +1 -1
- package/ui/dist/assets/{cobol-st8Yg36t.js → cobol-Dfowkggs.js} +1 -1
- package/ui/dist/assets/{coffee-CbOjePGW.js → coffee-DaF1v-6R.js} +1 -1
- package/ui/dist/assets/{cpp-CNHAMQDR.js → cpp-ChiJBXzf.js} +1 -1
- package/ui/dist/assets/{crystal-6jLMO3hN.js → crystal-BORuzb6O.js} +1 -1
- package/ui/dist/assets/{css-B1YWkvwV.js → css-DOEq87Nb.js} +1 -1
- package/ui/dist/assets/{dist-k0WN_As9.js → dist-9Ao54lCu.js} +1 -1
- package/ui/dist/assets/{dist-WpihYY89.js → dist-BESALGLV.js} +1 -1
- package/ui/dist/assets/{dist-CUwm0tnl.js → dist-BfJXBiH9.js} +1 -1
- package/ui/dist/assets/{dist--WQsC7My.js → dist-BiMmtSP_.js} +1 -1
- package/ui/dist/assets/{dist-COgBN_rQ.js → dist-BkWAoXyN.js} +1 -1
- package/ui/dist/assets/{dist-aG_NjTNt.js → dist-C1JrqOaB.js} +1 -1
- package/ui/dist/assets/{dist-H_59zRsz.js → dist-C3GUwk85.js} +1 -1
- package/ui/dist/assets/{dist-BM7FGRGm.js → dist-C_GhNB9Y.js} +1 -1
- package/ui/dist/assets/{dist-DIQ7uQlh.js → dist-CkPKjoDD.js} +1 -1
- package/ui/dist/assets/{dist-BssNrBu3.js → dist-CvnK9Kdn.js} +1 -1
- package/ui/dist/assets/{dist-D5VHstpY.js → dist-DDlMbNMd.js} +1 -1
- package/ui/dist/assets/{dist-DCXLpul9.js → dist-DOZhk7Pc.js} +1 -1
- package/ui/dist/assets/{dist-DbhKlS87.js → dist-DRwf2Pyb.js} +1 -1
- package/ui/dist/assets/{dist-qqsfKxty.js → dist-Ddqykvos.js} +1 -1
- package/ui/dist/assets/{dist-BKevGVaH.js → dist-DjABw52T.js} +1 -1
- package/ui/dist/assets/{dist-BvGLeWYQ.js → dist-F-MATuMO.js} +1 -1
- package/ui/dist/assets/{dist-CTAUgmvn.js → dist-u-RJ1nec.js} +1 -1
- package/ui/dist/assets/{edge-4F17JYJt.js → edge-DtOzZf51.js} +1 -1
- package/ui/dist/assets/{elixir-Cyrlp4iJ.js → elixir-RPJmiVbP.js} +1 -1
- package/ui/dist/assets/{elm-pwVM_GeU.js → elm-juRKPG5C.js} +1 -1
- package/ui/dist/assets/{erb-BHlxbtZH.js → erb-1N5S_p28.js} +1 -1
- package/ui/dist/assets/{git-rebase-tPsgLfcf.js → git-rebase-iEZEO0XE.js} +1 -1
- package/ui/dist/assets/{glimmer-js-BM69mzbN.js → glimmer-js-CzWLj7ht.js} +1 -1
- package/ui/dist/assets/{glimmer-ts-C2UDhNLr.js → glimmer-ts-jOWlN5eM.js} +1 -1
- package/ui/dist/assets/{glsl-OTFAdhID.js → glsl-eYQW4C1B.js} +1 -1
- package/ui/dist/assets/{graphql-CYVstOKK.js → graphql-Be4NwjVn.js} +1 -1
- package/ui/dist/assets/{hack-DohOQJqt.js → hack-DGsC4oBb.js} +1 -1
- package/ui/dist/assets/{haml-Bq1Q8kla.js → haml-Bqfzg8lR.js} +1 -1
- package/ui/dist/assets/{handlebars-DBQzkpaX.js → handlebars-BzKwx0dq.js} +1 -1
- package/ui/dist/assets/{html-DrM58_NP.js → html-BLo95WFe.js} +1 -1
- package/ui/dist/assets/{html-derivative-DDHS_wfg.js → html-derivative-CYQJpfI5.js} +1 -1
- package/ui/dist/assets/{http-APJi9ikm.js → http-B-ow6CYl.js} +1 -1
- package/ui/dist/assets/{hurl-C92GYHoX.js → hurl-rFduSOaL.js} +1 -1
- package/ui/dist/assets/{index-BNtTVJGp.js → index-DrYEA56i.js} +172 -126
- package/ui/dist/assets/index-VdPxwEP-.css +1 -0
- package/ui/dist/assets/{java-BxLWzJKk.js → java-Cez6xY-w.js} +1 -1
- package/ui/dist/assets/{javascript-BXmkKW8B.js → javascript-DO_tgkCM.js} +1 -1
- package/ui/dist/assets/{jinja-DDxYmXYV.js → jinja-BWQVQLP_.js} +1 -1
- package/ui/dist/assets/{jison-CARZz6vs.js → jison-DrTJspQw.js} +1 -1
- package/ui/dist/assets/{json-DDzzNS0S.js → json-B6sBAKPf.js} +1 -1
- package/ui/dist/assets/{jsx-B0QRcTz1.js → jsx-CMDnIxBQ.js} +1 -1
- package/ui/dist/assets/{julia-Dx_zIIje.js → julia-DGd8QZZD.js} +1 -1
- package/ui/dist/assets/{just-DPAxj75r.js → just-DSrlyIs9.js} +1 -1
- package/ui/dist/assets/{latex-DygN9rwN.js → latex-CerPfTQN.js} +1 -1
- package/ui/dist/assets/{liquid-Bf0G048i.js → liquid-6Uzd9OGA.js} +1 -1
- package/ui/dist/assets/{lua-BsquLLpL.js → lua-5R2qQGFw.js} +1 -1
- package/ui/dist/assets/{marko-BlNeYWNh.js → marko-8Y9_jlGR.js} +1 -1
- package/ui/dist/assets/{mdc-D-IYV4P_.js → mdc-DkmxUdqv.js} +1 -1
- package/ui/dist/assets/{nginx-Cl1p6cyg.js → nginx-wP029vFI.js} +1 -1
- package/ui/dist/assets/{nim-CtJE4aOi.js → nim-DRNENnXs.js} +1 -1
- package/ui/dist/assets/{perl-RPGk8dRN.js → perl-fDkFE09a.js} +1 -1
- package/ui/dist/assets/{php-Y5T6eKeL.js → php-D_jrPCss.js} +1 -1
- package/ui/dist/assets/{pug-CMzeJ4Nf.js → pug-BfkIy24q.js} +1 -1
- package/ui/dist/assets/{qml-BY8FjXZa.js → qml-J6l1unir.js} +1 -1
- package/ui/dist/assets/{r-N1Y0JGqq.js → r-CLMlZwuY.js} +1 -1
- package/ui/dist/assets/{razor-D2PqrQC8.js → razor-DRYsMeKk.js} +1 -1
- package/ui/dist/assets/{regexp-DmayNJoM.js → regexp-bUHxHyN_.js} +1 -1
- package/ui/dist/assets/{rst-dnK-mrIj.js → rst-exUrAZBf.js} +1 -1
- package/ui/dist/assets/{ruby-BktkhBhe.js → ruby-C0qsuMbC.js} +1 -1
- package/ui/dist/assets/{sas-1QDpshUV.js → sas-DRU1ePgx.js} +1 -1
- package/ui/dist/assets/{scss-CHMvj1SE.js → scss-Dd5xYvuQ.js} +1 -1
- package/ui/dist/assets/{shellscript-L6_KxQk3.js → shellscript-pkqlm97q.js} +1 -1
- package/ui/dist/assets/{shellsession-DhxQcfIk.js → shellsession-D-vlsdBr.js} +1 -1
- package/ui/dist/assets/{soy-BJ5cygWC.js → soy-BisfdHv0.js} +1 -1
- package/ui/dist/assets/{sql-hPfhFRX1.js → sql-D8oU-Nnu.js} +1 -1
- package/ui/dist/assets/{stata-88xhvAbT.js → stata-JS41dk4R.js} +1 -1
- package/ui/dist/assets/{surrealql-DEJbPdfL.js → surrealql-BCJy2gkH.js} +1 -1
- package/ui/dist/assets/{svelte-Cl5fm5v5.js → svelte-BMp5H9E1.js} +1 -1
- package/ui/dist/assets/{templ-COOH9POf.js → templ-zkIQhngc.js} +1 -1
- package/ui/dist/assets/{tex-E0N9GmAi.js → tex-UtrABcgb.js} +1 -1
- package/ui/dist/assets/{ts-tags-uA67hzhk.js → ts-tags-Bm3lN1_2.js} +1 -1
- package/ui/dist/assets/{tsx-DTl_LnC9.js → tsx-BfeYLUwH.js} +1 -1
- package/ui/dist/assets/{twig-DvHhAuiz.js → twig-yQv61QCk.js} +1 -1
- package/ui/dist/assets/{typescript-uMRwg5mE.js → typescript-Baal4KNB.js} +1 -1
- package/ui/dist/assets/{vue-gatEebq9.js → vue-2x5mrIgU.js} +1 -1
- package/ui/dist/assets/{vue-html-B_APBpTy.js → vue-html-DIzUxWQs.js} +1 -1
- package/ui/dist/assets/{vue-vine-bDaMK7LL.js → vue-vine-CL8TQaNQ.js} +1 -1
- package/ui/dist/assets/{xml-Cm-tB8Jc.js → xml-pjpkZ1b6.js} +1 -1
- package/ui/dist/assets/{xsl-nG7nYsff.js → xsl-CrO7OxTX.js} +1 -1
- package/ui/dist/assets/{yaml-CRVRnnsv.js → yaml-qKHbZRMY.js} +1 -1
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-ClcrzOeC.css +0 -1
package/README.md
CHANGED
|
@@ -21,86 +21,38 @@ Want to develop caret rather than use it? Start with [CONTRIBUTING.md](CONTRIBUT
|
|
|
21
21
|
|
|
22
22
|
caret needs [`bun`](https://bun.sh) on your `PATH` — it runs from a `bun` bundle.
|
|
23
23
|
|
|
24
|
-
The quickest path is the one-shot installer. It registers the _published_ caret with
|
|
25
|
-
whichever agents you have — [Claude Code](https://claude.com/claude-code) and/or
|
|
26
|
-
[OpenCode](https://opencode.ai) — installing prebuilt artifacts, with no `git clone` and
|
|
27
|
-
no compile step:
|
|
28
|
-
|
|
29
24
|
```sh
|
|
30
|
-
|
|
25
|
+
bunx --no-cache @macintacos/caret@latest install
|
|
31
26
|
```
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Claude Code
|
|
28
|
+
That one command is the whole install. It detects which agents you have —
|
|
29
|
+
[Claude Code](https://claude.com/claude-code), [OpenCode](https://opencode.ai), or both —
|
|
30
|
+
asks which of them to install into, and registers the _published_ caret with each:
|
|
31
|
+
prebuilt artifacts, the `/caret:*` slash commands, and the rumdl plan formatter, with no
|
|
32
|
+
`git clone` and no compile step. Where it can't ask — off a terminal — it installs into
|
|
33
|
+
every agent it detected. `--target claude` or `--target claude,opencode` pins the agents
|
|
34
|
+
non-interactively, and `--dry-run` previews the run without changing anything.
|
|
42
35
|
|
|
43
|
-
|
|
36
|
+
Restart the agent afterward — OpenCode installs the plugin package on its next start —
|
|
37
|
+
then try `/caret:demo`, which presents a short fake plan to exercise the flow.
|
|
44
38
|
|
|
45
|
-
|
|
46
|
-
/plugin marketplace add macintacos/caret
|
|
47
|
-
/plugin install caret@caret
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
This fetches the published plugin — a self-contained `bun` bundle plus the prebuilt UI —
|
|
51
|
-
into Claude Code's plugin cache. No `git clone`, no compile step, no
|
|
52
|
-
`claude --plugin-dir`. Then restart Claude Code (or run `/reload-plugins`) and try it:
|
|
53
|
-
|
|
54
|
-
```sh
|
|
55
|
-
/caret:demo # presents a short fake plan to exercise the flow
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Update** with `/plugin marketplace update caret` (then `/reload-plugins`). **Uninstall**
|
|
59
|
-
with:
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
claude plugin uninstall caret@caret
|
|
63
|
-
claude plugin marketplace remove caret
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### OpenCode
|
|
67
|
-
|
|
68
|
-
caret installs into [OpenCode](https://opencode.ai) as a first-class
|
|
69
|
-
[plugin](https://opencode.ai/docs/plugins/): add its package to your OpenCode `plugin`
|
|
70
|
-
array and restart OpenCode once.
|
|
71
|
-
|
|
72
|
-
```jsonc
|
|
73
|
-
// ~/.config/opencode/opencode.json
|
|
74
|
-
{ "plugin": ["@macintacos/caret"] }
|
|
75
|
-
```
|
|
39
|
+
### Updating and uninstalling
|
|
76
40
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
41
|
+
**Update.** In Claude Code, run `claude plugin update caret@caret` and restart. In
|
|
42
|
+
OpenCode, caret toasts you at startup when a newer release is out; delete OpenCode's
|
|
43
|
+
cached copy — `rm -rf ~/.cache/opencode/node_modules/@macintacos/caret` — and restart to
|
|
44
|
+
take it, or pin the version in OpenCode's config
|
|
45
|
+
(`"plugin": ["@macintacos/caret@<version>"]`) and bump that when you want to move.
|
|
81
46
|
|
|
82
|
-
|
|
83
|
-
prefer not to hand-edit the config? Run the published package's installer, which adds the
|
|
84
|
-
array entry and drops the command files for you:
|
|
47
|
+
**Uninstall.** The same command, one flag:
|
|
85
48
|
|
|
86
49
|
```sh
|
|
87
|
-
bunx --no-cache @macintacos/caret@latest install --
|
|
50
|
+
bunx --no-cache @macintacos/caret@latest install --uninstall
|
|
88
51
|
```
|
|
89
52
|
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
|
|
93
|
-
`caret install --target opencode` works too.
|
|
94
|
-
|
|
95
|
-
**Update**: caret checks its
|
|
96
|
-
[latest release](https://github.com/macintacos/caret/releases) at OpenCode startup and
|
|
97
|
-
toasts you when a newer version is available. To take it, delete OpenCode's cached copy of
|
|
98
|
-
caret and restart — `rm -rf ~/.cache/opencode/node_modules/@macintacos/caret` makes
|
|
99
|
-
OpenCode reinstall the latest on its next start. (Prefer to control the version yourself?
|
|
100
|
-
Pin it in the array — `"@macintacos/caret@<version>"` — and bump that when you want to
|
|
101
|
-
move.) **Uninstall**: remove the array entry, or run
|
|
102
|
-
`bunx --no-cache @macintacos/caret@latest install --target opencode --uninstall`. See
|
|
103
|
-
[`doc/ADVANCED.md`](doc/ADVANCED.md#the-opencode-adapter) for how the integration works.
|
|
53
|
+
It offers the same chooser in reverse, and `--target` pins it the same way. See
|
|
54
|
+
[`doc/ADVANCED.md`](doc/ADVANCED.md#how-it-works) for what each agent's install touches
|
|
55
|
+
and how the integrations work.
|
|
104
56
|
|
|
105
57
|
## Using caret
|
|
106
58
|
|
package/bin/caret
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
# every install; it resolves the actual caret runtime from whatever the install
|
|
7
7
|
# method placed beside it:
|
|
8
8
|
#
|
|
9
|
-
# 1. a compiled binary (bin/caret-native) — the build-from-source
|
|
10
|
-
# (`
|
|
11
|
-
# it needs no `bun` at hook time.
|
|
9
|
+
# 1. a compiled binary (bin/caret-native) — the build-from-source path
|
|
10
|
+
# (`mise run build`, which `mise run build --install` then installs from)
|
|
11
|
+
# compiles this; running it needs no `bun` at hook time.
|
|
12
12
|
# 2. the run-from-source bundle (dist/cli.js) — the GitHub/npm plugin install
|
|
13
13
|
# ships this plus a sibling ui/dist; it runs on `bun`. REQUIRES `bun` on
|
|
14
14
|
# PATH (documented in the README).
|