@sleepy_panda_srl/portulan 0.1.0 → 0.1.2

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 CHANGED
@@ -1,35 +1,44 @@
1
1
  # Portulan
2
2
 
3
- **An operating framework for agentic engineering** — the tailored context, standards, gates, and
4
- institutional memory a team needs so any coding agent works *their* way.
3
+ **An operating framework for agentic engineering** — the tailored context, standards, gates and
4
+ institutional memory a team needs so that any coding agent works *their* way.
5
5
 
6
- Portulan is an open-core product by [Sleepy Panda SRL](https://sleepypanda.ro). The public engine,
7
- spec, CLI, and a demo workspace live here, and the repository doubles as a public Claude Code plugin
8
- marketplace. Commercial value lives in private feeds — customer workspaces and premium packs
9
- delivered as private-marketplace plugins.
6
+ [![npm](https://img.shields.io/npm/v/%40sleepy_panda_srl%2Fportulan?logo=npm&label=npm)](https://www.npmjs.com/package/@sleepy_panda_srl/portulan)
7
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
8
+ [![Node](https://img.shields.io/badge/node-%3E%3D20-brightgreen?logo=node.js)](package.json)
9
+
10
+ Portulan is an open-core product by [Sleepy Panda SRL](https://sleepypanda.ro). The engine, the
11
+ Workspace Definition, the CLI and a complete demo workspace are public and live in this repository,
12
+ which doubles as a Claude Code plugin marketplace. Commercial value lives in private feeds — customer
13
+ workspaces and premium packs delivered as private-marketplace plugins.
10
14
 
11
15
  > **The name.** *Portulan* is the Romanian word for a portolan chart — a mariner's map compiled from
12
16
  > the accumulated observations of real voyages: hard-won local knowledge, more valuable with every
13
17
  > trip. The engine is the chartmaking method; your workspace is your portulan.
14
18
 
19
+ ---
20
+
15
21
  ## Status
16
22
 
17
- Pre-release, and **public** — reading, cloning, forking and the marketplace install path all need no
18
- account of ours. _(Visibility is Gated and has moved three times: public 27 July – 3 August 2026, private
19
- 3 August – 17 August 2026, public since 17 August 2026. It is a live setting, so trust a fresh check
20
- over this line.)_
21
- The newest release entry
22
- is **`0.2.0`**; what it contains — and, just as usefully, what it does not — is
23
- [`CHANGELOG.md`](CHANGELOG.md). The engine in `core/`, the Workspace Definition in `spec/`, two
24
- workspaces, the validators that check them, the enforcement compiler and the memory lifecycle, and the
25
- plugin packaging in `plugin/` and `.claude-plugin/` are authored; the remaining directories below fill in
26
- milestone by milestone, and the `0.` major means nothing here is stable yet. The living map is
27
- [`docs/plan.md`](docs/plan.md).
23
+ **Current release: `0.1.2`** — recorded in [`CHANGELOG.md`](CHANGELOG.md), which is also the honest
24
+ account of what the release does *not* contain.
25
+
26
+ This is pre-release software. The leading `0.` is meant literally: nothing here is stable yet, and
27
+ the surface may change between minor versions. What is authored today is the engine in [`core/`](core/),
28
+ the Workspace Definition in [`spec/`](spec/), two complete workspaces, the CLI in [`cli/`](cli/) with
29
+ all eight subcommands, the enforcement compiler, the memory lifecycle and the plugin packaging. The remaining directories
30
+ fill in milestone by milestone; [`docs/plan.md`](docs/plan.md) is the living map of that work.
31
+
32
+ The repository is **public** — reading, cloning, forking and installing the plugin need no account of
33
+ ours. Visibility is a live repository setting, so trust a fresh look at the repository page over this
34
+ sentence.
35
+
36
+ ## Install
28
37
 
29
- ## Try it
38
+ ### As a Claude Code plugin
30
39
 
31
- This repository **is** a Claude Code plugin marketplace, so installing it needs nothing but the two
32
- lines below — no GitHub account, no token, no clone. (You need Claude Code itself, of course.)
40
+ This repository *is* a plugin marketplace, so installing it takes two commands — no clone, no token,
41
+ no GitHub account.
33
42
 
34
43
  ```bash
35
44
  claude plugin marketplace add sleepy-panda-srl/portulan
@@ -39,49 +48,127 @@ claude plugin marketplace add sleepy-panda-srl/portulan
39
48
  claude plugin install portulan@portulan
40
49
  ```
41
50
 
42
- Then, inside Claude Code, run the `/portulan` slash command to boot the engine. _(Measured on 2026-08-18 into an isolated `CLAUDE_CONFIG_DIR`: the
43
- marketplace resolved, the plugin installed, and the payload landed in the cache with `core/engine.md`
44
- present. What that gives you is the **engine** — a workspace is still yours to draft, which is what
45
- [`cli/init.mjs`](cli/init.mjs) is for.)_
51
+ Then run `/portulan` inside Claude Code to boot the engine. That gives you the **engine**; your
52
+ workspace is still yours to draft, which is what `portulan init` is for.
53
+
54
+ ### As a command-line tool
55
+
56
+ ```bash
57
+ npx @sleepy_panda_srl/portulan doctor examples
58
+ ```
59
+
60
+ Requires Node.js 20 or newer. The package has zero runtime dependencies.
61
+
62
+ ### From GitHub Packages
63
+
64
+ Every release from **`v0.1.1`** onward also publishes the same tree to GitHub Packages, where the
65
+ registry requires the scope to match the repository owner — so there it is named
66
+ **`@sleepy-panda-srl/portulan`**, with hyphens. Releases before that one are on npmjs only.
46
67
 
47
- Or read before you install anything: [`examples/`](examples/) is a complete fictional workspace, and
48
- `node cli/doctor.mjs examples` from a clone watches it validate.
68
+ **This route needs a GitHub token even though the package is public**, which is GitHub Packages' rule
69
+ rather than ours — so the registry line alone is not enough, and the authentication is shown rather
70
+ than alluded to. In an `.npmrc`:
71
+
72
+ ```
73
+ @sleepy-panda-srl:registry=https://npm.pkg.github.com
74
+ //npm.pkg.github.com/:_authToken=${NPM_GITHUB_PACKAGES_TOKEN}
75
+ ```
76
+
77
+ ```bash
78
+ NPM_GITHUB_PACKAGES_TOKEN=<your token> npm install @sleepy-panda-srl/portulan
79
+ ```
49
80
 
50
- ## Layout
81
+ The token is a **personal access token of your own** — not the `GITHUB_TOKEN` that GitHub Actions
82
+ provides, which exists only inside a workflow run — and it needs only the `read:packages` scope. npm
83
+ expands the `${...}` reference from the environment, so the token itself never has to be written into
84
+ the file.
85
+
86
+ The npmjs path above needs no account of ours and remains the documented one; this is an additional
87
+ route for people already inside GitHub's authentication. The two registries serve the same tree under
88
+ two names, so the tarballs are *not* byte-identical: packed both ways they differ in exactly one line
89
+ of one file — `package.json`'s `name`. The roster is the same on both sides; `npm pack --dry-run`
90
+ derives it, which is why no count is written here.
91
+
92
+ ## Quick start
93
+
94
+ Read before you install anything. [`examples/`](examples/) is a complete fictional workspace — two
95
+ products, read end to end — and validating it from a clone is one command:
96
+
97
+ ```bash
98
+ node cli/doctor.mjs examples
99
+ ```
100
+
101
+ To adopt Portulan in your own repository, `portulan init` interviews you, scans the codebase and
102
+ drafts a workspace; `portulan doctor` validates it; `portulan compile` turns your gate policy into
103
+ host enforcement.
104
+
105
+ ## Command-line interface
106
+
107
+ Two invocations, and they run the same code. `npx @sleepy_panda_srl/portulan <command>` needs no
108
+ checkout; `node cli/<tool>.mjs` runs from a clone, and is how this repository measures itself.
109
+
110
+ **There is no build step, so the package is not a compiled artifact.** Every file the npmjs package
111
+ ships is byte-identical to its tracked source at the commit it was cut from — a property you can check
112
+ rather than take on trust, and one a compiled artifact could not offer. The GitHub Packages copy is
113
+ the one documented exception, and differs in exactly the one line named above. A verify recipe holds it on every
114
+ commit, refusing any packed file that differs from its source.
115
+
116
+ `portulan --help` is the tree's own answer, and the table below is the enumeration:
117
+
118
+ | Command | What it does |
119
+ |---|---|
120
+ | [`init`](cli/init.mjs) | Interview plus codebase scan, producing a drafted workspace |
121
+ | [`doctor`](cli/doctor.mjs) | Validate a workspace against the Workspace Definition |
122
+ | [`compile`](cli/compile.mjs) | Turn gates and verify recipes into host enforcement |
123
+ | [`vendor`](cli/vendor.mjs) | Materialise a workspace where it is needed, in either direction |
124
+ | [`index`](cli/index.mjs) | Rebuild the declared indexes over memory, handoffs and personas |
125
+ | [`upgrade`](cli/upgrade.mjs) | Migrate a workspace across Workspace Definition versions |
126
+ | [`new`](cli/new.mjs) | Scaffold a skill, persona, pack, workspace, gate policy or repo card |
127
+ | [`feedback`](cli/feedback.mjs) | File a bug, improvement or feedback issue you previewed first |
128
+
129
+ Beside the eight sit tools that are deliberately not subcommands, and the compiled-hook runners, which
130
+ are not subcommands at all. [`cli/README.md`](cli/README.md) is the single carrier of that wider roster.
131
+
132
+ ## Repository layout
51
133
 
52
134
  | Path | What lives here |
53
135
  |---|---|
54
- | `core/` | The engine: operating docs, personas, universal skills, templates |
55
- | `packs/` | Composable packs — `stacks/`, `tools/`, `rituals/` |
56
- | `spec/` | The Workspace Definition: schema, docs, migrations |
57
- | `plugin/` | [The Claude Code adapter](plugin/): the `/portulan` boot skill, and why the agent bindings below sit at the root rather than here |
58
- | `agents/` | [The three personas bound to this host's tools](agents/) — `implementer`, `reviewer`, `librarian`. A platform-fixed location: the default agents directory of a plugin whose root is this repository. The doctrine they bind stays in [`core/personas/`](core/personas/) |
59
- | `.claude-plugin/` | The [plugin](.claude-plugin/plugin.json) and [marketplace](.claude-plugin/marketplace.json) manifests that make this repository an installable plugin feed |
60
- | `cli/` | The `npx` CLI: the eight `docs/vision.md` names. **`npx` is the shape, not a live path — publishing is Gated and has not happened, so the package is not on the registry, and the invocation this repository measures everything through is `node cli/<tool>.mjs` from a clone; [`.portulan/identity.md`](.portulan/identity.md) carries that fact and [#242](https://github.com/sleepy-panda-srl/portulan/issues/242) the open routing question.** The [`portulan`](cli/portulan.mjs) entry point exists as of milestone 7 and dispatches **all eight** since session 9 — [`init`](cli/init.mjs), [`doctor`](cli/doctor.mjs), [`compile`](cli/compile.mjs), [`vendor`](cli/vendor.mjs), [`index`](cli/index.mjs), [`upgrade`](cli/upgrade.mjs), [`new`](cli/new.mjs), [`feedback`](cli/feedback.mjs). _(This cell said "five" and then listed four, and later "seven" while `upgrade` was unbuilt — the kind of arithmetic a reader checks and a rail cannot.)_ Beside them sit tools that are off the eight by the maintainer's call, and the compiled-hook runners, which are not subcommands at all — [`cli/README.md`](cli/) is the one carrier of that roster, and this cell named a different three from the one `portulan.mjs` named while four were on disk |
61
- | `.claude/` | [The compiled enforcement](.claude/settings.json) — permissions and hooks generated from [`.portulan/gates.json`](.portulan/gates.json). Generated, committed so it is reviewable, and held to its source by the `compile` verify recipe, which holds the compiled platform floor in [`.portulan/compile/`](.portulan/compile/) the same way. Nothing else in this directory is tracked |
136
+ | `core/` | [The engine](core/): operating doctrine, personas, universal skills, templates |
137
+ | `spec/` | [The Workspace Definition](spec/) — schema, documentation, migrations |
138
+ | `cli/` | [The Node CLI](cli/) described above, plus its tests and the compiled-hook runners |
139
+ | `packs/` | [Composable packs](packs/) — `stacks/`, `tools/`, `rituals/` |
140
+ | `plugin/` | [The Claude Code adapter](plugin/): the `/portulan` boot skill |
141
+ | `agents/` | [The three personas bound to this host's tools](agents/) — `implementer`, `reviewer`, `librarian`. A platform-fixed location; the doctrine they bind stays in [`core/personas/`](core/personas/) |
62
142
  | `examples/` | [A fictional, public demo workspace](examples/) — two products, read end to end |
143
+ | `docs/` | [`vision.md`](docs/vision.md) (the constitution), [`plan.md`](docs/plan.md) (the milestone map) and [`milestones/`](docs/milestones/) — one file per milestone, holding amendment arguments, session notes and close evidence |
144
+ | `evals/` | [A README today](evals/), and nothing else. The golden tasks, the A/B harness and the CI eval gate arrive at milestone 8 |
63
145
  | `.portulan/` | [This repository's own workspace](.portulan/) — Portulan applied to building Portulan |
64
- | `evals/` | Golden tasks, the A/B harness, the CI eval gate |
65
- | `.github/` | CI workflows — runs every verify recipe the workspace **yields** — its own, plus those its composed packs contribute — on every pull request — and the [Dependabot config](.github/dependabot.yml) that watches the Actions pins those workflows are held to |
66
- | `docs/` | [`vision.md`](docs/vision.md) (the constitution), [`plan.md`](docs/plan.md) (the milestone map), and [`milestones/`](docs/milestones/) — **one file per milestone**, zero-padded so they sort, holding the amendment arguments, session notes and close evidence that used to live inside the table's rows. The row is the law; the file is the legislative history |
146
+ | `.claude-plugin/` | The [plugin](.claude-plugin/plugin.json) and [marketplace](.claude-plugin/marketplace.json) manifests that make this repository an installable feed |
147
+ | `.claude/` | [The compiled enforcement](.claude/settings.json) — permissions and hooks generated from [`.portulan/gates.json`](.portulan/gates.json), committed so it stays reviewable and held to its source by the `compile` verify recipe |
148
+ | `.github/` | [CI workflows](.github/), which run every verify recipe the workspace yields, and the [Dependabot config](.github/dependabot.yml) that watches their Action pins |
67
149
 
68
- ## Read next
150
+ ## Documentation
69
151
 
70
- - [`docs/vision.md`](docs/vision.md) — the constitution: what Portulan is, the thesis, the non-goals.
71
- - [`docs/plan.md`](docs/plan.md) — the living milestone map and build protocol.
152
+ - [`docs/vision.md`](docs/vision.md) — the constitution: what Portulan is, the theses, the non-goals.
153
+ - [`docs/plan.md`](docs/plan.md) — the living milestone map and the build protocol.
154
+ - [`spec/`](spec/) — the Workspace Definition your own policy layer is validated against.
155
+ - [`CHANGELOG.md`](CHANGELOG.md) — every release and what changed in it.
72
156
 
73
157
  ## Contributing
74
158
 
75
- Portulan is built as an open-core product and is **not** open to outside code contributions. Reading,
76
- cloning and forking are what the licence allows; bugs, proposals and feedback go through the
77
- [issue forms](https://github.com/sleepy-panda-srl/portulan/issues/new/choose); and code lands only
78
- through team members.
159
+ Portulan is **not open to outside code contributions**, and that is a deliberate posture rather than a
160
+ temporary state. Reading, cloning and forking are what the licence allows; bugs, proposals and feedback
161
+ go through the [issue forms](https://github.com/sleepy-panda-srl/portulan/issues/new/choose); code lands
162
+ only through team members.
163
+
164
+ Those open paths are open to anyone and need no permission from us; the closed one is closed by choice
165
+ rather than by reach. [`CONTRIBUTING.md`](CONTRIBUTING.md) has the whole of it, including why.
166
+
167
+ ## Security
79
168
 
80
- **Those paths are open to anyone, and the closed one is closed by choice rather than by reach** — the
81
- tree and the issue forms need no account of ours and no permission from us, and code still lands only
82
- through team members. That distinction is the whole posture, and it reads the same whichever way
83
- visibility points. [`CONTRIBUTING.md`](CONTRIBUTING.md) has the whole of it, including why.
169
+ Please do not report a security issue in an issue. [`SECURITY.md`](SECURITY.md) is the policy: the
170
+ channels in the order to try them, what is in scope, and what response you can actually expect.
84
171
 
85
172
  ## License
86
173
 
87
- [Apache-2.0](LICENSE) © 2026 Sleepy Panda SRL.
174
+ [Apache-2.0](LICENSE) © 2026 Sleepy Panda SRL. See [`NOTICE`](NOTICE).