@inixiative/config 0.5.36 → 0.5.38
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 +1 -1
- package/dist/cli.js +7 -4
- package/package.json +1 -1
- package/versions.json +4 -4
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ bunx @inixiative/config train [root] [--lane=primitives|agentic] [--push]
|
|
|
76
76
|
|
|
77
77
|
`train` is the release cascade, run from this repo's checkout. It walks every lane in order (primitives, then agentic), or only the lane `--lane` names. Origin is the truth: it refuses to run from a config checkout behind origin, and it fast-forwards clean checkouts to origin before working (dirty or diverged repos still skip). It only ships the default branch: a checkout on a feature branch is skipped whole — never re-locked, committed to, or published from.
|
|
78
78
|
|
|
79
|
-
Lanes stand alone. A lane with a package missing a checkout, or claimed by ambiguous checkouts, does not run; a lane whose check, commit or publish fails stops there and leaves its BOM entries as they were. Neither holds back the other lane. Within a lane it walks checkouts in dependency order; per checkout it: bumps ecosystem ranges to the blessed sets → re-locks → runs the repo's `check` → commits only its own changes (`package.json` files + `bun.lock`) → publishes each lane package whose local version is ahead of npm, in dependency order, and waits until the registry serves it → records it in its lane's section of the BOM. A root package publishes with `npm publish`; a workspace member is packed with `bun pm pack`, which rewrites `workspace:` ranges to the versions being released, and the tarball is published with `npm publish`, so OTP prompts pass through either way. A package already on npm at its local version but not yet blessed — published by hand, or by a train whose lane later failed — is blessed on the next run.
|
|
79
|
+
Lanes stand alone. A lane with a package missing a checkout, or claimed by ambiguous checkouts, does not run; a lane whose check, commit or publish fails stops there and leaves its BOM entries as they were. Neither holds back the other lane. Within a lane it walks checkouts in dependency order; per checkout it: bumps ecosystem ranges to the blessed sets → re-locks → runs the repo's `check` → commits only its own changes (`package.json` files + `bun.lock`) → publishes each lane package whose local version is ahead of npm, in dependency order, and waits until the registry serves it (up to 15 minutes, since npm holds new versions for processing) → records it in its lane's section of the BOM. A root package publishes with `npm publish`; a workspace member is packed with `bun pm pack`, which rewrites `workspace:` ranges to the versions being released, and the tarball is published with `npm publish`, so OTP prompts pass through either way. A package already on npm at its local version but not yet blessed — published by hand, or by a train whose lane later failed — is blessed on the next run.
|
|
80
80
|
|
|
81
81
|
Consumers run once, after every selected lane, upstreams first, against the full blessed set: a consumer of both lanes ends coherent with both whichever lane ran. They get the same bump → re-lock → `check`, never a publish, and their changes go through review: the train commits them on a `train/ecosystem-sync-<date>` branch and leaves the checkout there until it is merged.
|
|
82
82
|
|
package/dist/cli.js
CHANGED
|
@@ -1147,12 +1147,15 @@ function freeBranch(cwd, name) {
|
|
|
1147
1147
|
return candidate;
|
|
1148
1148
|
}
|
|
1149
1149
|
function servedByRegistry(name, version) {
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
const deadline = Date.now() + 15 * 6e4;
|
|
1151
|
+
while (true) {
|
|
1152
|
+
const view = spawnSync2("npm", ["view", `${name}@${version}`, "version", "--prefer-online"], {
|
|
1153
|
+
encoding: "utf8"
|
|
1154
|
+
});
|
|
1152
1155
|
if (view.status === 0 && view.stdout.trim() === version) return true;
|
|
1153
|
-
|
|
1156
|
+
if (Date.now() >= deadline) return false;
|
|
1157
|
+
Bun.sleepSync(1e4);
|
|
1154
1158
|
}
|
|
1155
|
-
return false;
|
|
1156
1159
|
}
|
|
1157
1160
|
function bumpPatch(version) {
|
|
1158
1161
|
const [major, minor, patch] = version.split(".").map(Number);
|
package/package.json
CHANGED
package/versions.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@types/bun"
|
|
14
14
|
],
|
|
15
15
|
"ecosystem": {
|
|
16
|
-
"@inixiative/config": "0.5.
|
|
16
|
+
"@inixiative/config": "0.5.38",
|
|
17
17
|
"@inixiative/json-rules": "2.25.0",
|
|
18
18
|
"@inixiative/permissions": "0.3.2",
|
|
19
19
|
"@inixiative/transitions": "0.1.0",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@inixiative/prisma-map": "0.2.0",
|
|
22
22
|
"@inixiative/atlas": "0.1.1",
|
|
23
23
|
"@inixiative/gloss": "0.0.4",
|
|
24
|
-
"@inixiative/archive": "0.
|
|
24
|
+
"@inixiative/archive": "0.4.0"
|
|
25
25
|
},
|
|
26
26
|
"agentic": {
|
|
27
27
|
"@inixiative/agent-session": "0.2.0",
|
|
28
|
-
"@inixiative/foundry-core": "0.
|
|
29
|
-
"@inixiative/foundry": "0.
|
|
28
|
+
"@inixiative/foundry-core": "0.2.0",
|
|
29
|
+
"@inixiative/foundry": "0.2.0"
|
|
30
30
|
},
|
|
31
31
|
"consumers": {
|
|
32
32
|
"inixiative/template": {
|