@amalgm/tools 0.1.6 → 0.1.7-main.34175698435

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.
Files changed (3) hide show
  1. package/PURPOSE.md +20 -0
  2. package/README.md +27 -0
  3. package/package.json +38 -3
package/PURPOSE.md CHANGED
@@ -39,6 +39,26 @@ and parity evidence only.
39
39
 
40
40
  ## Axioms
41
41
 
42
+ Consumer assembly derives exact same-branch dependency pins from the declared
43
+ package manifests and registry candidate records. One pending composition per
44
+ branch preserves human edits; complete consumer checks for the exact merge tree govern its
45
+ merge, and publication never implies installed adoption.
46
+
47
+ Managed package delivery starts from a clean, exact main or preview source
48
+ commit. The workflow occurrence supplies only its generated version and source
49
+ record; tests run against those candidate inputs before packing. Every native
50
+ gate and publication use that same tarball and integrity. A candidate tag makes
51
+ bytes available to release assembly; it never promotes an installed runtime.
52
+ Release tooling remains available inside each owner repository so a developer
53
+ or CI job never needs access to another private product repository.
54
+ Registry credentials are available only to the final protected publication job,
55
+ after every native examination proves the exact candidate bytes.
56
+ Native consumers install the archive as a dependency, so SDK development
57
+ dependencies never become an end-user installation requirement.
58
+ The repository token creates only its own dependency proposals and explicitly
59
+ dispatches checks and delivery; every admitted gate proves the actual checkout,
60
+ including the exact two-parent merge commit that becomes managed source.
61
+
42
62
  Managed releases bind to one exact published Core version and build from the
43
63
  locked dependency graph on the supported Node toolchain.
44
64
 
package/README.md CHANGED
@@ -110,3 +110,30 @@ contain opaque references resolved through `CallOptions.resolveSecret`.
110
110
  See [PURPOSE.md](./PURPOSE.md) for the complete contract and
111
111
  [SHELL_INTEGRATION.md](./docs/SHELL_INTEGRATION.md) for active composition.
112
112
  The [Engine integration](./docs/ENGINE_INTEGRATION.md) page is historical only.
113
+
114
+ ## Managed package delivery
115
+
116
+ Managed npm delivery uses `.github/workflows/publish-package.yml` after the
117
+ exact main/preview owner checks pass. The occurrence generates a unique
118
+ prerelease version and records its source SHA; it reruns the owner suite, packs
119
+ once, and installs that tarball on Linux, macOS and Windows before publication.
120
+ The `candidate-main`/`candidate-preview` tags are release-assembly inputs and
121
+ never select installed runtimes. `package.json` declares this owner's gates,
122
+ CLI probes, peer-only exports and lifecycle permissions. The standalone runner
123
+ under `scripts/release/` is intentionally copied across owners to preserve
124
+ private repository access boundaries. The final publish step uses the `NPM_TOKEN`
125
+ secret in the `npm-release` environment. Where npm trusted publishing is
126
+ configured for this repository's `publish-package.yml` and that environment,
127
+ the token can be omitted. Authentication does not replace native certification,
128
+ exact source records or artifact integrity; private source repositories do not
129
+ receive npm's public-source provenance.
130
+
131
+ Managed dependency reconciliation reads this owner’s declared manifests and
132
+ updates exact same-branch registry candidates in one pending composition PR per
133
+ branch. The repository token explicitly dispatches the owner checks. Every declared gate must
134
+ pass for the exact merge tree; an atomic expected-base update prevents merging
135
+ with untested concurrent source. Human additions or amendments are preserved.
136
+ The half-hour CI reconciliation recovers missed dispatch hints. Assembly runs
137
+ no dependency code or lifecycle hooks, and repeated owner checks do not publish
138
+ another candidate for unchanged source. Repository policy must allow GitHub Actions to create pull requests; no
139
+ cross-repository credential or paid auto-merge feature is required.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amalgm/tools",
3
- "version": "0.1.6",
3
+ "version": "0.1.7-main.34175698435",
4
4
  "description": "Local-first tool definitions, Toolbox registry, and agent execution surfaces.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -44,13 +44,19 @@
44
44
  "check": "tsx scripts/check-tree.ts && tsc -p tsconfig.json && tsc -p tsconfig.test.json",
45
45
  "test": "tsx --test --test-concurrency=1 --test-timeout=30000 test/*.test.ts",
46
46
  "verify": "npm run check && npm run build && npm test",
47
- "prepack": "npm run build"
47
+ "prepack": "npm run build",
48
+ "release:admit": "node scripts/release/package.mjs admit",
49
+ "release:prepare": "node scripts/release/package.mjs prepare",
50
+ "release:examine": "node scripts/release/package.mjs examine",
51
+ "release:publish": "node scripts/release/package.mjs publish",
52
+ "release:compose": "node scripts/release/compose.mjs",
53
+ "test:release": "node --test scripts/release/*.test.mjs"
48
54
  },
49
55
  "engines": {
50
56
  "node": ">=24"
51
57
  },
52
58
  "dependencies": {
53
- "@amalgm/core": "0.4.7",
59
+ "@amalgm/core": "0.4.8-main.34168902443",
54
60
  "better-sqlite3": "^12.6.2"
55
61
  },
56
62
  "devDependencies": {
@@ -58,5 +64,34 @@
58
64
  "@types/node": "^20.19.43",
59
65
  "tsx": "^4.23.1",
60
66
  "typescript": "^5.9.3"
67
+ },
68
+ "amalgmRelease": {
69
+ "schema": 1,
70
+ "workflow": "verify.yml",
71
+ "jobs": [
72
+ "verify"
73
+ ],
74
+ "verify": "verify",
75
+ "cli": [
76
+ "amalgm-tools"
77
+ ]
78
+ },
79
+ "allowScripts": {
80
+ "better-sqlite3@12.11.1": true,
81
+ "esbuild@0.28.1": true,
82
+ "fsevents@2.3.3": false
83
+ },
84
+ "amalgmComposition": {
85
+ "schema": 1,
86
+ "manifests": [
87
+ "package.json"
88
+ ]
89
+ },
90
+ "gitHead": "ab131c0ae46724efb84318568125193a8432d233",
91
+ "amalgmSource": {
92
+ "repository": "amalgm-inc/amalgm-tools",
93
+ "branch": "main",
94
+ "commit": "ab131c0ae46724efb84318568125193a8432d233",
95
+ "occurrence": "34175698435"
61
96
  }
62
97
  }