@orangecollective/oc 0.1.2 → 0.3.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/README.md +19 -4
- package/dist/oc.js +1001 -108
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,18 +52,28 @@ In the chat:
|
|
|
52
52
|
|
|
53
53
|
| | |
|
|
54
54
|
|---|---|
|
|
55
|
-
| `@name` |
|
|
55
|
+
| `@name` | mention a company, founder, batch or skill — it stays in your text, highlighted, and goes to the agent as context |
|
|
56
56
|
| `/` | open the command list (tab to complete) |
|
|
57
57
|
| `/model [name]` | switch model (no argument lists them) |
|
|
58
58
|
| `/web` | toggle web search |
|
|
59
59
|
| `/team [slug]` · `/batch [W26]` | change scope |
|
|
60
60
|
| `/digest [-r]` | re-run the digest (`-r` regenerates it server-side) |
|
|
61
|
+
| `/activity [n]` | the latest batch activity (default 10) |
|
|
62
|
+
| `/activity on` · `off` | the live ticker — new batch activity prints as it happens (on by default, polled once a minute) |
|
|
63
|
+
| `/fav <company> [in <folder>]` | add a company to a favorites folder (`/fav @Lyon` works too; a folder that doesn't exist is created) |
|
|
64
|
+
| `/unfav <company>` | remove your favorite |
|
|
65
|
+
| `/favs [folder]` | list your team's folders, or one folder's companies |
|
|
61
66
|
| `/new` · `/clear` · `/quit` | |
|
|
62
67
|
| `?` | shortcuts (on an empty prompt) |
|
|
63
68
|
| `↑ ↓` | history, or move through a list |
|
|
64
|
-
| `esc` | interrupt · close a list
|
|
69
|
+
| `esc` | interrupt · close a list |
|
|
65
70
|
| `ctrl-c` ×2 | exit |
|
|
66
71
|
|
|
72
|
+
Activity rows led by an orange `◆` are things a teammate did (favorited a
|
|
73
|
+
company, made a folder, joined) — the same events the web app's Activity tab
|
|
74
|
+
shows. Rows led by `·` are the sync pipeline noticing a change (a new launch, an
|
|
75
|
+
edited one-liner).
|
|
76
|
+
|
|
67
77
|
Config lives in `~/.oc/` — `credentials.json` (session) and `state.json` (model,
|
|
68
78
|
team, batch, thread), both `0600`. Set `OC_CONFIG_DIR` to relocate them.
|
|
69
79
|
|
|
@@ -98,6 +108,11 @@ Notes for anyone editing this:
|
|
|
98
108
|
- `build.mjs` resolves the app's `@/` alias so a small allowlist of **pure**
|
|
99
109
|
modules can be shared (the digest wire format). Never import anything that
|
|
100
110
|
touches `next/headers`, a Supabase server client, or React components.
|
|
111
|
+
- An accepted `@`-mention is ordinary text (`@Label`) plus a record attached
|
|
112
|
+
behind it. The record lives exactly as long as its `@Label` is in the prompt
|
|
113
|
+
— delete the text and the context goes with it — and `findMentionSpans` in
|
|
114
|
+
`App.tsx` is what both highlights it and stops the picker reopening inside it.
|
|
101
115
|
- Server-side pieces this depends on: `lib/supabase/request.ts` (bearer auth),
|
|
102
|
-
`app/api/cli
|
|
103
|
-
the `oc` CLI section in the
|
|
116
|
+
`app/api/cli/*` (bootstrap, activity, favorites), `app/auth/cli/[port]/[code]/page.tsx`,
|
|
117
|
+
`lib/cli-auth.ts`, `lib/favorites-core.ts`. See the `oc` CLI section in the
|
|
118
|
+
repo's `CLAUDE.md`.
|