@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 +137 -50
- package/cli/README.md +91 -120
- package/cli/compile.mjs +242 -3
- package/cli/doctor.mjs +54 -1
- package/cli/index.mjs +92 -42
- package/cli/init.mjs +3 -2
- package/cli/inside.mjs +38 -0
- package/cli/pack-identity.mjs +180 -0
- package/cli/recipe-set.mjs +42 -1
- package/cli/skills-set.mjs +166 -4
- package/cli/stop-gate.mjs +401 -16
- package/cli/upgrade.mjs +2 -3
- package/cli/version-carriers.mjs +211 -0
- package/core/operating/memory.md +7 -8
- package/core/operating/verification.md +4 -12
- package/package.json +1 -1
- package/packs/README.md +11 -21
- package/packs/tools/README.md +1 -4
- package/spec/README.md +19 -22
- package/spec/migrations/README.md +2 -3
- package/spec/slots.md +4 -9
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
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
[](https://www.npmjs.com/package/@sleepy_panda_srl/portulan)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](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
|
-
|
|
18
|
-
account of
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
38
|
+
### As a Claude Code plugin
|
|
30
39
|
|
|
31
|
-
This repository
|
|
32
|
-
|
|
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
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
48
|
-
|
|
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
|
-
|
|
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
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
|
|
|
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
|
-
|
|
|
65
|
-
| `.
|
|
66
|
-
|
|
|
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
|
-
##
|
|
150
|
+
## Documentation
|
|
69
151
|
|
|
70
|
-
- [`docs/vision.md`](docs/vision.md) — the constitution: what Portulan is, the
|
|
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
|
|
76
|
-
cloning and forking are what the licence allows; bugs, proposals and feedback
|
|
77
|
-
[issue forms](https://github.com/sleepy-panda-srl/portulan/issues/new/choose);
|
|
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
|
-
|
|
81
|
-
|
|
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).
|