accrete-kit 0.0.0-stage → 0.1.1
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/CHANGELOG.md +48 -0
- package/LICENSE +21 -0
- package/README.md +148 -2
- package/bin/accrete-kit.mjs +4 -0
- package/dist/kernel/darwin-arm64/LICENSE +21 -0
- package/dist/kernel/darwin-arm64/THIRD-PARTY-NOTICES +5780 -0
- package/dist/kernel/darwin-arm64/accrete +0 -0
- package/dist/kernel/darwin-arm64/licenses/RUST-COPYRIGHT-library.html +7038 -0
- package/dist/kernel/darwin-arm64/licenses/musl-COPYRIGHT +193 -0
- package/dist/kernel/darwin-arm64/licenses/rust/Apache-2.0.txt +73 -0
- package/dist/kernel/darwin-arm64/licenses/rust/BSD-2-Clause.txt +9 -0
- package/dist/kernel/darwin-arm64/licenses/rust/CC-BY-SA-4.0.txt +427 -0
- package/dist/kernel/darwin-arm64/licenses/rust/GCC-exception-3.1.txt +30 -0
- package/dist/kernel/darwin-arm64/licenses/rust/GPL-2.0-only.txt +133 -0
- package/dist/kernel/darwin-arm64/licenses/rust/GPL-3.0-or-later.txt +202 -0
- package/dist/kernel/darwin-arm64/licenses/rust/ISC.txt +7 -0
- package/dist/kernel/darwin-arm64/licenses/rust/LLVM-exception.txt +15 -0
- package/dist/kernel/darwin-arm64/licenses/rust/MIT.txt +9 -0
- package/dist/kernel/darwin-arm64/licenses/rust/NCSA.txt +29 -0
- package/dist/kernel/darwin-arm64/licenses/rust/OFL-1.1.txt +43 -0
- package/dist/kernel/darwin-arm64/licenses/rust/Unicode-3.0.txt +39 -0
- package/dist/kernel/darwin-x64/LICENSE +21 -0
- package/dist/kernel/darwin-x64/THIRD-PARTY-NOTICES +5780 -0
- package/dist/kernel/darwin-x64/accrete +0 -0
- package/dist/kernel/darwin-x64/licenses/RUST-COPYRIGHT-library.html +7038 -0
- package/dist/kernel/darwin-x64/licenses/musl-COPYRIGHT +193 -0
- package/dist/kernel/darwin-x64/licenses/rust/Apache-2.0.txt +73 -0
- package/dist/kernel/darwin-x64/licenses/rust/BSD-2-Clause.txt +9 -0
- package/dist/kernel/darwin-x64/licenses/rust/CC-BY-SA-4.0.txt +427 -0
- package/dist/kernel/darwin-x64/licenses/rust/GCC-exception-3.1.txt +30 -0
- package/dist/kernel/darwin-x64/licenses/rust/GPL-2.0-only.txt +133 -0
- package/dist/kernel/darwin-x64/licenses/rust/GPL-3.0-or-later.txt +202 -0
- package/dist/kernel/darwin-x64/licenses/rust/ISC.txt +7 -0
- package/dist/kernel/darwin-x64/licenses/rust/LLVM-exception.txt +15 -0
- package/dist/kernel/darwin-x64/licenses/rust/MIT.txt +9 -0
- package/dist/kernel/darwin-x64/licenses/rust/NCSA.txt +29 -0
- package/dist/kernel/darwin-x64/licenses/rust/OFL-1.1.txt +43 -0
- package/dist/kernel/darwin-x64/licenses/rust/Unicode-3.0.txt +39 -0
- package/dist/kernel/kernel.json +17 -0
- package/dist/kernel/linux-arm64/LICENSE +21 -0
- package/dist/kernel/linux-arm64/THIRD-PARTY-NOTICES +5780 -0
- package/dist/kernel/linux-arm64/accrete +0 -0
- package/dist/kernel/linux-arm64/licenses/RUST-COPYRIGHT-library.html +7038 -0
- package/dist/kernel/linux-arm64/licenses/musl-COPYRIGHT +193 -0
- package/dist/kernel/linux-arm64/licenses/rust/Apache-2.0.txt +73 -0
- package/dist/kernel/linux-arm64/licenses/rust/BSD-2-Clause.txt +9 -0
- package/dist/kernel/linux-arm64/licenses/rust/CC-BY-SA-4.0.txt +427 -0
- package/dist/kernel/linux-arm64/licenses/rust/GCC-exception-3.1.txt +30 -0
- package/dist/kernel/linux-arm64/licenses/rust/GPL-2.0-only.txt +133 -0
- package/dist/kernel/linux-arm64/licenses/rust/GPL-3.0-or-later.txt +202 -0
- package/dist/kernel/linux-arm64/licenses/rust/ISC.txt +7 -0
- package/dist/kernel/linux-arm64/licenses/rust/LLVM-exception.txt +15 -0
- package/dist/kernel/linux-arm64/licenses/rust/MIT.txt +9 -0
- package/dist/kernel/linux-arm64/licenses/rust/NCSA.txt +29 -0
- package/dist/kernel/linux-arm64/licenses/rust/OFL-1.1.txt +43 -0
- package/dist/kernel/linux-arm64/licenses/rust/Unicode-3.0.txt +39 -0
- package/dist/kernel/linux-x64/LICENSE +21 -0
- package/dist/kernel/linux-x64/THIRD-PARTY-NOTICES +5780 -0
- package/dist/kernel/linux-x64/accrete +0 -0
- package/dist/kernel/linux-x64/licenses/RUST-COPYRIGHT-library.html +7038 -0
- package/dist/kernel/linux-x64/licenses/musl-COPYRIGHT +193 -0
- package/dist/kernel/linux-x64/licenses/rust/Apache-2.0.txt +73 -0
- package/dist/kernel/linux-x64/licenses/rust/BSD-2-Clause.txt +9 -0
- package/dist/kernel/linux-x64/licenses/rust/CC-BY-SA-4.0.txt +427 -0
- package/dist/kernel/linux-x64/licenses/rust/GCC-exception-3.1.txt +30 -0
- package/dist/kernel/linux-x64/licenses/rust/GPL-2.0-only.txt +133 -0
- package/dist/kernel/linux-x64/licenses/rust/GPL-3.0-or-later.txt +202 -0
- package/dist/kernel/linux-x64/licenses/rust/ISC.txt +7 -0
- package/dist/kernel/linux-x64/licenses/rust/LLVM-exception.txt +15 -0
- package/dist/kernel/linux-x64/licenses/rust/MIT.txt +9 -0
- package/dist/kernel/linux-x64/licenses/rust/NCSA.txt +29 -0
- package/dist/kernel/linux-x64/licenses/rust/OFL-1.1.txt +43 -0
- package/dist/kernel/linux-x64/licenses/rust/Unicode-3.0.txt +39 -0
- package/dist/scaffold/assets/contract/cli-v1.json +296 -0
- package/dist/scaffold/assets/contract/example-inputs.json +38 -0
- package/dist/scaffold/assets/contract/input-drafts.schema.json +654 -0
- package/dist/scaffold/assets/generated/cli-commands.md +288 -0
- package/dist/scaffold/assets/generated/release.json +11 -0
- package/dist/scaffold/assets/skills/accrete-data/SKILL.md +73 -0
- package/dist/scaffold/assets/skills/accrete-data/references/commands.md +193 -0
- package/dist/scaffold/assets/skills/accrete-data/references/objects-and-native-work.md +123 -0
- package/dist/scaffold/assets/skills/accrete-data/references/remote-and-retention.md +98 -0
- package/dist/scaffold/assets/skills/accrete-memory/SKILL.md +61 -0
- package/dist/scaffold/assets/skills/accrete-memory/references/commands.md +124 -0
- package/dist/scaffold/assets/skills/accrete-memory/references/handovers-and-remote-work.md +78 -0
- package/dist/scaffold/assets/skills/accrete-memory/references/writing-and-continuity.md +101 -0
- package/dist/scaffold/assets/skills/accrete-models/SKILL.md +46 -0
- package/dist/scaffold/assets/skills/accrete-models/references/cli.md +117 -0
- package/dist/scaffold/assets/skills/accrete-models/references/objects.md +67 -0
- package/dist/scaffold/assets/skills/accrete-models/references/working-practice.md +48 -0
- package/dist/scaffold/assets/skills/accrete-results/SKILL.md +69 -0
- package/dist/scaffold/assets/skills/accrete-results/references/activities-and-relations.md +116 -0
- package/dist/scaffold/assets/skills/accrete-results/references/commands.md +191 -0
- package/dist/scaffold/assets/skills/accrete-results/references/scientific-practice.md +89 -0
- package/dist/scaffold/assets/skills/accrete-tools/SKILL.md +51 -0
- package/dist/scaffold/assets/skills/accrete-tools/references/cli.md +87 -0
- package/dist/scaffold/assets/skills/accrete-tools/references/objects.md +66 -0
- package/dist/scaffold/assets/skills/accrete-tools/references/working-practice.md +51 -0
- package/dist/scaffold/assets/template/.accrete/PROJECT.md +31 -0
- package/dist/scaffold/assets/template/.accrete/config-examples/local-compute.toml.example +27 -0
- package/dist/scaffold/assets/template/.accrete/config-examples/local-workstation.toml.example +21 -0
- package/dist/scaffold/assets/template/.accrete/config-examples/project.toml.example +27 -0
- package/dist/scaffold/assets/template/.accrete/docs/cli-contract.md +393 -0
- package/dist/scaffold/assets/template/.accrete/docs/configuration.md +117 -0
- package/dist/scaffold/assets/template/.accrete/docs/coordinator.md +102 -0
- package/dist/scaffold/assets/template/.accrete/docs/long-term-work.md +108 -0
- package/dist/scaffold/assets/template/.accrete/docs/overview.md +118 -0
- package/dist/scaffold/assets/template/.accrete/docs/remote-work.md +125 -0
- package/dist/scaffold/assets/template/.accrete/docs/subagents.md +78 -0
- package/dist/scaffold/assets/template/.accrete/examples/README.md +78 -0
- package/dist/scaffold/assets/template/.accrete/examples/data-register.json +19 -0
- package/dist/scaffold/assets/template/.accrete/examples/iteration-close.json +5 -0
- package/dist/scaffold/assets/template/.accrete/examples/iteration-open.json +8 -0
- package/dist/scaffold/assets/template/.accrete/examples/memory-entry.md +10 -0
- package/dist/scaffold/assets/template/.accrete/examples/model-register.json +7 -0
- package/dist/scaffold/assets/template/.accrete/examples/observation.md +9 -0
- package/dist/scaffold/assets/template/.accrete/examples/result-amend.json +5 -0
- package/dist/scaffold/assets/template/.accrete/examples/result-record.json +11 -0
- package/dist/scaffold/assets/template/.accrete/examples/tool-admit.json +8 -0
- package/dist/scaffold/assets/template/.accrete/examples/tool-retire.json +3 -0
- package/dist/scaffold/assets/template/.accrete/examples/tool-update.json +3 -0
- package/dist/scaffold/assets/template/.gitattributes +17 -0
- package/dist/scaffold/assets/template/AGENTS.md +23 -0
- package/dist/scaffold/assets/template/CLAUDE.md +5 -0
- package/dist/scaffold/assets/template/_gitignore +12 -0
- package/dist/scaffold/config/defaults.toml +20 -0
- package/dist/scaffold/manifest.json +622 -0
- package/lib/cli.mjs +188 -0
- package/lib/fsutil.mjs +135 -0
- package/lib/install.mjs +439 -0
- package/lib/kernel.mjs +76 -0
- package/lib/scaffold.mjs +129 -0
- package/lib/workspace.mjs +278 -0
- package/package.json +18 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1 — 2026-11-03
|
|
4
|
+
|
|
5
|
+
First release published from GitHub Actions with npm trusted publishing and provenance.
|
|
6
|
+
The embedded Kernel is still 0.1.0, and there is no functional change.
|
|
7
|
+
|
|
8
|
+
## 0.1.0 — 2026-11-03
|
|
9
|
+
|
|
10
|
+
First release of `accrete-kit`, based on the architecture edition dated 3 November 2026.
|
|
11
|
+
An earlier pass compiled the template into the Rust binary, with `accrete init` and
|
|
12
|
+
`accrete project upgrade` installing it, through `--release`, `--cli-range`, an
|
|
13
|
+
`unbound-template` status and `accrete-cli`'s `template-bundle/` and `sync-template` script.
|
|
14
|
+
The owner corrected that before anything was published.
|
|
15
|
+
|
|
16
|
+
- Added the generator and upgrader in plain Node, `npx accrete-kit@latest create` and
|
|
17
|
+
`upgrade`: ownership rules, candidates, `--accept`, `--dry-run`, agent selection and `--json`
|
|
18
|
+
receipts, with tests in `node:test`. A rerun finishes from the rules, with no recovery
|
|
19
|
+
receipt.
|
|
20
|
+
- `accrete-kit` embeds the `accrete-cli` GitHub Release binaries, placed by
|
|
21
|
+
`scripts/fetch-kernel.mjs`, and installs this host's at `.accrete/bin/accrete`, ignored by Git.
|
|
22
|
+
`install` restores it after a clone. An intermediate design pinned the Kernel as
|
|
23
|
+
`@accrete/cli` in `devDependencies` with `npm install` and `node_modules/.bin/accrete`; it
|
|
24
|
+
was replaced before anything was published.
|
|
25
|
+
- MIT licensed.
|
|
26
|
+
- Added `scripts/check-cli-contract.mjs`, the check of the catalog against a Kernel's
|
|
27
|
+
`--help`, and GitHub Actions for CI and a tag-triggered release with trusted publishing.
|
|
28
|
+
- Added five foundational Skills: Models, Tools, Data, Results, and Memory, with
|
|
29
|
+
progressive references explaining semantics, native work, managed writes,
|
|
30
|
+
relationships, and continuation.
|
|
31
|
+
- Added concise Codex/Claude entry points, owner-editable project context,
|
|
32
|
+
Coordinator and Subagent guidance, and manuals for long-term and remote work.
|
|
33
|
+
- Added shared defaults and illustrative workstation/compute-host configurations
|
|
34
|
+
without allocating project identities or object instances.
|
|
35
|
+
- Added the CLI command catalog and a generated command map, covering every command
|
|
36
|
+
form including `recover`, `export`, `import`, `interface`, `result capture`,
|
|
37
|
+
`tool bind`, `model update`, `model retire`, `data amend`, `data retire`, and
|
|
38
|
+
`model iteration remove-worktree`.
|
|
39
|
+
- Added manifest profiles, per-asset ownership and digests, and JSON Schemas for the
|
|
40
|
+
scaffold representation.
|
|
41
|
+
- Added dependency-free assembly of the scaffold, with source checks.
|
|
42
|
+
- Aligned inputs with the CLI: `content.mode`, `content.sha256`, location kind
|
|
43
|
+
`external`, top-level `source_scope`, an `observations` array, optional `activity`,
|
|
44
|
+
safe-string IDs, iteration fields named like the flags, and an optional retirement
|
|
45
|
+
`reason`.
|
|
46
|
+
- Reduced the `.gitignore` block to `/.accrete/local.toml`, `/.accrete/data/`,
|
|
47
|
+
`/.accrete/bin/` and `/scratch/`, the only source of rules in that shared file. Tool exposures are
|
|
48
|
+
excluded separately through the repository-local `.git/info/exclude`.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ACCRETE contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,149 @@
|
|
|
1
|
-
#
|
|
1
|
+
# accrete-kit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Creates and upgrades ACCRETE Workspaces. This repository,
|
|
4
|
+
`accrete-template`, publishes the npm package `accrete-kit`: the generator, five complete
|
|
5
|
+
object Skills with their reference manuals, Coordinator and Subagent guidance,
|
|
6
|
+
configuration examples, the command catalog, and the Kernel's release binaries.
|
|
7
|
+
|
|
8
|
+
A Workspace is an independent Git project owned by the user, not a fork kept in sync with
|
|
9
|
+
this template. `accrete-kit` creates and maintains it, general-purpose coding agents work in it, and
|
|
10
|
+
the Kernel provides the native persistent infrastructure. The companion `accrete-cli`
|
|
11
|
+
repository publishes that Kernel as GitHub Release archives. It works inside an existing
|
|
12
|
+
Workspace, as a plain native executable there, and knows nothing about this repository.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npx accrete-kit@latest create my-project
|
|
16
|
+
npx accrete-kit@latest create my-project --timezone Asia/Shanghai --agents claude --no-git --no-install
|
|
17
|
+
npx accrete-kit@latest create .
|
|
18
|
+
npx accrete-kit@latest upgrade
|
|
19
|
+
npx accrete-kit@latest upgrade --dry-run
|
|
20
|
+
npx accrete-kit@<version> install
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## What the Agent receives
|
|
24
|
+
|
|
25
|
+
| Skill | Practical scope |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `accrete-models` | Model identity, Git repository arrangements, host bindings, iterations, revision context, and native integration |
|
|
28
|
+
| `accrete-tools` | Capability admission, editable source, live or retained revisions, Skill exposure, refresh, retirement, and explicit export |
|
|
29
|
+
| `accrete-data` | Logical Data identity, content descriptions, origins, locations, inexpensive registration, materialization, and retention |
|
|
30
|
+
| `accrete-results` | Activities and observations, Model/Tool/Data associations, historical context, partial outcomes, amendments, and native queries |
|
|
31
|
+
| `accrete-memory` | Complete authored entries, stable identity, relevant prior understanding, supersession, and continuity between sessions |
|
|
32
|
+
|
|
33
|
+
Each Skill has concise trigger metadata and instructions, with deeper references
|
|
34
|
+
loaded when useful. Skills contain no persistent-operation scripts. The Kernel
|
|
35
|
+
publishes managed object changes; the Agent develops code, uses native tools,
|
|
36
|
+
performs scientific work, and supplies its interpretation.
|
|
37
|
+
|
|
38
|
+
The project manuals cover object relationships, Coordinator judgment, Subagent
|
|
39
|
+
briefs and handovers, long-term capability growth, configuration, and remote
|
|
40
|
+
work. Research can begin before anything is registered. Retention can be selective
|
|
41
|
+
and retrospective. No fixed worker count, model family, experiment sequence, or
|
|
42
|
+
mandatory evaluation procedure is installed.
|
|
43
|
+
|
|
44
|
+
## What a Workspace contains
|
|
45
|
+
|
|
46
|
+
`--agents` selects `codex,claude` (the default), `codex`, `claude`, or `none`.
|
|
47
|
+
`--timezone`, `--name` and `--id` set project details. Git is initialized unless `--no-git`
|
|
48
|
+
is given or the directory is already in a repository; creation does not make a first commit
|
|
49
|
+
or configure a remote. It writes `.accrete/project.toml` and the installed assets, and
|
|
50
|
+
installs this host's Kernel unless `--no-install` is given. It adds no root `package.json` or
|
|
51
|
+
`node_modules/`. Store directories appear on first use.
|
|
52
|
+
|
|
53
|
+
| Project path | Purpose and ownership |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `AGENTS.md` | Short managed entry section alongside owner instructions |
|
|
56
|
+
| `CLAUDE.md` | Import of `AGENTS.md` when the Claude profile is enabled |
|
|
57
|
+
| `.accrete/PROJECT.md` | Create-once project purpose, preferences, and machine context |
|
|
58
|
+
| `.accrete/docs/` | Managed overview, working guidance, CLI semantics, and generated command map |
|
|
59
|
+
| `.accrete/bin/accrete` | Ignored Kernel binary for this host; restored with `install` after a clone |
|
|
60
|
+
| `.accrete/project.toml` | Generated project identity, format, timezone, and shared roots |
|
|
61
|
+
| `.accrete/local.toml` | Ignored host-specific bindings, supplied for the actual machine |
|
|
62
|
+
| `.accrete/config-examples/` | Illustrative shared, workstation, and compute-host TOML |
|
|
63
|
+
| `.accrete/release.json` | Template and Kernel versions that installed these files |
|
|
64
|
+
| `.accrete/contracts/cli-v1.json` | Machine-readable command catalog |
|
|
65
|
+
| `.accrete/contracts/input-drafts.schema.json` | Caller-input shapes; the Kernel owns persisted envelopes |
|
|
66
|
+
| `.accrete/template-upgrades/` | Candidates awaiting resolution, when an upgrade met edited content |
|
|
67
|
+
| `.accrete/examples/` | Nine JSON drafts and two plain Markdown draft bodies |
|
|
68
|
+
| `.accrete/template-install.json`, `.accrete/template-bases/` | Installation inventory and retained small bases for later upgrades |
|
|
69
|
+
| `.agents/skills/accrete-*/` | Five foundational Skills when Codex is enabled |
|
|
70
|
+
| `.claude/skills/accrete-*/` | Five foundational Skills when Claude is enabled |
|
|
71
|
+
| `.accrete/objects/`, `results/`, `memory/` | Default managed document roots, created by the Kernel as needed |
|
|
72
|
+
| `.accrete/data/` | Ignored default root for managed Data replicas, created on first materialization |
|
|
73
|
+
| `tools/`, `scratch/` | Default editable capability sources and ongoing work; `scratch/` is ignored |
|
|
74
|
+
|
|
75
|
+
Configured paths can place Models, Tools, Data, Results, Memory, and Scratch
|
|
76
|
+
elsewhere. A Model may be the project repository, an external repository, an
|
|
77
|
+
optional submodule, or a worktree. The template creates no placeholder Models,
|
|
78
|
+
Tools, Data, Results, or Memory entries.
|
|
79
|
+
|
|
80
|
+
Start Claude Code or Codex at the Workspace root. Agents run the Kernel as
|
|
81
|
+
`.accrete/bin/accrete` there. From anywhere else they select the owning Workspace explicitly:
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
/path/to/my-project/.accrete/bin/accrete --project /path/to/my-project config resolve --json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The host discovers Skills through its normal project mechanisms. The Kernel performs
|
|
88
|
+
organizational writes. Git, scientific programs, domain readers, SQLite, SSH, and site
|
|
89
|
+
schedulers retain their normal roles.
|
|
90
|
+
|
|
91
|
+
After cloning, run `npx accrete-kit@<version> install`. On a host without Node, extract the
|
|
92
|
+
release archive into `.accrete/bin/`; `.accrete/docs/remote-work.md` gives both routes.
|
|
93
|
+
|
|
94
|
+
## Upgrading a Workspace
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
npx accrete-kit@latest upgrade --dry-run
|
|
98
|
+
npx accrete-kit@latest upgrade
|
|
99
|
+
npx accrete-kit@latest upgrade --accept PATH
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The upgrader uses installed base content and digests. Unchanged managed content receives
|
|
103
|
+
the new asset. Edited content stays in place with a candidate for resolution: the run still
|
|
104
|
+
exits 0, lists `pending`, and warns. After resolving one in the live file, `--accept PATH`
|
|
105
|
+
records it. Owner text outside managed blocks and create-once project context survive. A
|
|
106
|
+
locally deleted file stays deleted. Domain Tools evolve separately.
|
|
107
|
+
|
|
108
|
+
`upgrade` also moves the Kernel binary to the version this package carries, and refuses when
|
|
109
|
+
the Workspace's template is newer than this package. A persisted format change uses explicit `accrete migrate`;
|
|
110
|
+
replacing a Kernel or refreshing guidance does not silently migrate scientific work.
|
|
111
|
+
`accrete migrate --from LEGACY` converts the old scaffold.
|
|
112
|
+
|
|
113
|
+
## Repository organization
|
|
114
|
+
|
|
115
|
+
| Source | Maintained content |
|
|
116
|
+
|---|---|
|
|
117
|
+
| `bin/`, `lib/` | The generator and upgrader, in plain Node with no dependencies |
|
|
118
|
+
| `test/` | `node:test` suite, run by `npm test` |
|
|
119
|
+
| `skills/` | One canonical source for each of the five Skills and its references |
|
|
120
|
+
| `template/` | Project instructions, owner context seed, manuals, examples, and root fragments |
|
|
121
|
+
| `config/defaults.toml` | Shared defaults for the marker the generator writes |
|
|
122
|
+
| `contract/cli-v1.json` | Kernel commands, exact invocation shapes, receipts, and excluded responsibilities |
|
|
123
|
+
| `contract/input-drafts.schema.json`, `contract/example-inputs.json` | Caller-input definitions and their example mapping |
|
|
124
|
+
| `template.json` | Profiles and ownership policy |
|
|
125
|
+
| `schemas/` | JSON Schemas for the source definition and scaffold manifest |
|
|
126
|
+
| `scripts/build.mjs` | Assembles `dist/scaffold/` and checks the sources |
|
|
127
|
+
| `scripts/fetch-kernel.mjs` | Places the declared Kernel release in `dist/kernel/`, verified against `SHA256SUMS` |
|
|
128
|
+
| `scripts/check-cli-contract.mjs` | Checks the catalog against a Kernel binary's `--help` |
|
|
129
|
+
| `.github/workflows/` | CI, and a tag-triggered release with trusted publishing |
|
|
130
|
+
| `docs/` | The generator, scaffold format, architecture rationale, and maintenance |
|
|
131
|
+
|
|
132
|
+
```sh
|
|
133
|
+
npm run check
|
|
134
|
+
npm run build
|
|
135
|
+
npm test
|
|
136
|
+
npm pack
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Use Node.js 20 or newer. Edit canonical sources and rebuild; `dist/` is generated.
|
|
140
|
+
|
|
141
|
+
Read [the generator](docs/CLI-INTEGRATION.md) for commands, the Kernel and receipts,
|
|
142
|
+
[the format](docs/TEMPLATE-FORMAT.md) for ownership and upgrade rules,
|
|
143
|
+
[maintenance](docs/MAINTENANCE.md) for release work, and
|
|
144
|
+
[design notes](docs/DESIGN-NOTES.md) for the architectural basis.
|
|
145
|
+
[Host integration](docs/HOST-INTEGRATION.md) describes the native discovery interfaces.
|
|
146
|
+
[Build notes](docs/BUILD-REPORT.md) say what the build and tests cover.
|
|
147
|
+
|
|
148
|
+
MIT licensed; see `LICENSE`. Each embedded Kernel keeps its own `LICENSE`,
|
|
149
|
+
`THIRD-PARTY-NOTICES` and `licenses/` beside it in `dist/kernel/`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ACCRETE contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|