Skip to content

Commit cfeb3b3

Browse files
committed
fix(claude-code): use 'hindsight' as marketplace name (matches marketplace.json)
1 parent 929be52 commit cfeb3b3

6 files changed

Lines changed: 95 additions & 18 deletions

File tree

.github/workflows/pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ jobs:
3737
- name: Build
3838
working-directory: website
3939
env:
40-
SITE_URL: https://vectorize-io.github.io
4140
SITE_BASE: /self-driving-agents
4241
run: npm run build
4342

4443
- name: Upload artifact
4544
uses: actions/upload-pages-artifact@v3
4645
with:
47-
path: website/dist
46+
path: website/out
4847

4948
deploy:
5049
needs: build

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ async function main() {
920920

921921
// Step 2: Ensure marketplace + plugin installed
922922
const MARKETPLACE_REPO = "vectorize-io/hindsight";
923-
const MARKETPLACE_NAME = "vectorize-io-hindsight";
923+
const MARKETPLACE_NAME = "hindsight";
924924
const PLUGIN_NAME = "hindsight-memory";
925925

926926
let hasMarketplace = false;

src/tests/cli.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ describe("claude-code plugin install/update logic", () => {
647647
});
648648

649649
it("updates when plugin already present", () => {
650-
const out = "Installed plugins:\n ❯ hindsight-memory@vectorize-io-hindsight\n Version: 0.5.0";
650+
const out = "Installed plugins:\n ❯ hindsight-memory@hindsight\n Version: 0.5.0";
651651
expect(shouldInstall(out, "hindsight-memory")).toBe(false);
652652
expect(shouldUpdate(out, "hindsight-memory")).toBe(true);
653653
});
654654

655655
it("detects plugin regardless of installed scope", () => {
656-
const userScope = " ❯ hindsight-memory@vectorize-io-hindsight\n Scope: user";
657-
const localScope = " ❯ hindsight-memory@vectorize-io-hindsight\n Scope: local";
656+
const userScope = " ❯ hindsight-memory@hindsight\n Scope: user";
657+
const localScope = " ❯ hindsight-memory@hindsight\n Scope: local";
658658
expect(shouldUpdate(userScope, "hindsight-memory")).toBe(true);
659659
expect(shouldUpdate(localScope, "hindsight-memory")).toBe(true);
660660
});
@@ -667,11 +667,11 @@ describe("claude-code marketplace detection", () => {
667667
return out.includes(name) || out.includes(repo);
668668
}
669669

670-
const MARKETPLACE_NAME = "vectorize-io-hindsight";
670+
const MARKETPLACE_NAME = "hindsight";
671671
const MARKETPLACE_REPO = "vectorize-io/hindsight";
672672

673673
it("detects when marketplace already added by name", () => {
674-
const out = "Configured marketplaces:\n vectorize-io-hindsight (github: vectorize-io/hindsight)";
674+
const out = "Configured marketplaces:\n hindsight (github: vectorize-io/hindsight)";
675675
expect(hasMarketplace(out, MARKETPLACE_NAME, MARKETPLACE_REPO)).toBe(true);
676676
});
677677

website/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Self-Driving Agents — docs site
2+
3+
Static documentation site for [self-driving-agents](https://github.com/vectorize-io/self-driving-agents). Built with [Next.js 15](https://nextjs.org) (App Router, static export) and [Tailwind CSS v4](https://tailwindcss.com), deployed to GitHub Pages.
4+
5+
## Local development
6+
7+
```bash
8+
cd website
9+
npm install
10+
npm run dev
11+
```
12+
13+
The site is served at <http://localhost:4321>. Top-level template directories at the repo root (e.g. `marketing/`) are read at build time, so any change to a `bank-template.json` or `.md` file under them shows up on a refresh.
14+
15+
## Build
16+
17+
```bash
18+
npm run build
19+
```
20+
21+
The static output goes to `website/out/`. Both `dev` and `build` pin `NODE_ENV` themselves, so your shell setting doesn't matter.
22+
23+
## Deployment
24+
25+
### GitHub Pages (current)
26+
27+
Pushed automatically on every push to `main` that touches `website/**` or any top-level template dir. See [.github/workflows/pages.yml](../.github/workflows/pages.yml). The workflow sets `SITE_BASE=/self-driving-agents` so links/assets resolve under <https://vectorize-io.github.io/self-driving-agents/>.
28+
29+
### Vercel / other static hosts
30+
31+
`npm run build` produces a plain static `out/` directory — drop it on any host. For Vercel, just connect the repo: it auto-detects Next.js and serves the static export.
32+
33+
For a deployment without a base path (e.g. a dedicated domain or Vercel preview), leave `SITE_BASE` unset.
34+
35+
## Structure
36+
37+
```
38+
website/
39+
src/
40+
app/ # App Router pages
41+
page.tsx # /
42+
not-found.tsx # 404
43+
layout.tsx # root layout
44+
globals.css # Tailwind + theme tokens
45+
concepts/page.tsx # /concepts
46+
quickstart/page.tsx # /quickstart
47+
agents/page.tsx # /agents (lists top-level + search)
48+
agents/[...slug]/page.tsx # /agents/marketing, /agents/marketing/seo, ...
49+
harnesses/page.tsx # /harnesses
50+
harnesses/[slug]/page.tsx # /harnesses/claude-code, /claude, ...
51+
components/
52+
Header.tsx, Footer.tsx
53+
AgentCard.tsx, AgentSearch.tsx (client)
54+
CodeBlock.tsx, HarnessLogo.tsx
55+
Mermaid.tsx (client — dynamic import of mermaid)
56+
lib/
57+
agents.ts # walks ../<top-level>/ at build time
58+
harnesses.ts # static harness metadata
59+
link.ts # base-path-aware link helper
60+
public/
61+
favicon.svg
62+
logos/ # claude.svg, nvidia.svg, openclaw.svg, ...
63+
next.config.mjs
64+
postcss.config.mjs
65+
```
66+
67+
## Adding a new harness
68+
69+
Edit `src/lib/harnesses.ts` and add a new entry to `HARNESSES`. The page at `/harnesses/<slug>` is generated automatically.
70+
71+
## Adding new agents
72+
73+
Drop a new directory at the repo root (or under any existing template root) with a `bank-template.json`. The loader auto-discovers any top-level directory with that file, so a new `engineering/` department appears on the next push to `main` with no code changes here.

website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev --port 4321",
7-
"build": "next build",
8-
"start": "next start",
6+
"dev": "NODE_ENV=development next dev --port 4321",
7+
"build": "NODE_ENV=production next build",
8+
"start": "NODE_ENV=production next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {

website/src/app/concepts/page.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,30 @@ export const metadata: Metadata = {
1010
'The data model behind self-driving agents: memories, knowledge pages, mental models, and the consolidation → refresh loop that keeps pages in sync with conversations.',
1111
};
1212

13+
// Mermaid v11 edge-label syntax notes:
14+
// solid: A -->|label| B
15+
// dotted: A -.->|label| B
16+
// Avoid the `A --"label"--> B` form — it's accepted in some grammars but
17+
// blows up in others (especially with hexagon and parallelogram nodes).
1318
const FLOW = `
1419
flowchart TD
1520
A([User ↔ Agent conversation]):::agent
1621
M[/"Memories<br/>world · experience"/]:::hs
17-
O[/"Observation facts<br/>(synthesised)"/]:::hs
22+
O[/"Observation facts<br/>synthesised server-side"/]:::hs
1823
T{{"refresh_after_consolidation<br/>trigger fires?"}}:::hs
19-
R["Recall<br/>filter by fact_types, tags<br/>exclude_mental_models"]:::hs
20-
G["Generate<br/>source_query body<br/>capped at max_tokens"]:::hs
24+
R["Recall<br/>filter by fact_types and tags<br/>exclude_mental_models"]:::hs
25+
G["Generate<br/>source_query to body<br/>capped at max_tokens"]:::hs
2126
P[("Knowledge page body<br/>updated full or delta")]:::hs
2227
N([Next session: agent reads pages]):::agent
2328
24-
A --"retain()"--> M
25-
M --"consolidation"--> O
29+
A -->|retain| M
30+
M -->|consolidation| O
2631
O --> T
27-
T --"yes"--> R
32+
T -->|yes| R
2833
R --> G
2934
G --> P
3035
P --> N
31-
N -.-"new conversation".-> A
36+
N -.->|new conversation| A
3237
3338
classDef agent fill:#d9e6ff,stroke:#3a5ef0,color:#0d0d10,stroke-width:2px
3439
classDef hs fill:#dcfce7,stroke:#059669,color:#0d0d10,stroke-width:2px

0 commit comments

Comments
 (0)