@hivemagnus/hive-skills 1.2.0 → 1.2.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/dist/release/runtime.js +12 -2
- package/package.json +10 -83
package/dist/release/runtime.js
CHANGED
|
@@ -20417,6 +20417,14 @@ var init_zod = __esm({
|
|
|
20417
20417
|
});
|
|
20418
20418
|
|
|
20419
20419
|
// ../../packages/hive-release/src/manifest.ts
|
|
20420
|
+
function canonicalJson(value) {
|
|
20421
|
+
const json3 = JSON.stringify(
|
|
20422
|
+
value,
|
|
20423
|
+
(_key, item) => item && typeof item === "object" && !Array.isArray(item) ? Object.fromEntries(Object.entries(item).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)) : item
|
|
20424
|
+
);
|
|
20425
|
+
if (json3 === void 0) throw new Error("Expected a JSON value");
|
|
20426
|
+
return json3;
|
|
20427
|
+
}
|
|
20420
20428
|
function parseVersion(value) {
|
|
20421
20429
|
if (!/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(value))
|
|
20422
20430
|
throw new Error(`Expected a stable exact version, got ${value}`);
|
|
@@ -22597,7 +22605,7 @@ async function planUpgrade(root, rawOptions) {
|
|
|
22597
22605
|
const pkg = await packageMetadata(source, name, to, options.from);
|
|
22598
22606
|
if (pkg.name !== name || pkg.version !== to || !pkg.engines?.node || !satisfies(process.versions.node, pkg.engines.node))
|
|
22599
22607
|
throw new Error(`Target ${name}@${to} requires a supported Node engine before installation`);
|
|
22600
|
-
if (
|
|
22608
|
+
if (canonicalJson(releaseSchema.parse(pkg.hiveRelease)) !== canonicalJson(target))
|
|
22601
22609
|
throw new Error(`Target ${name}@${to} is outside the complete release bundle`);
|
|
22602
22610
|
if (!pkg.dist?.integrity || !/^sha512-[A-Za-z0-9+/]+={0,2}$/.test(pkg.dist.integrity))
|
|
22603
22611
|
throw new Error(`Target ${name}@${to} has no verifiable integrity`);
|
|
@@ -22733,7 +22741,7 @@ async function stage(root, plan, from) {
|
|
|
22733
22741
|
if (pkg.name !== name || pkg.version !== versions.to || !pkg.engines?.node || !satisfies(process.versions.node, pkg.engines.node))
|
|
22734
22742
|
throw new Error(`Invalid staged package ${name}`);
|
|
22735
22743
|
const manifest = releaseSchema.parse(pkg.hiveRelease);
|
|
22736
|
-
if (manifest.version !== plan.target.version ||
|
|
22744
|
+
if (manifest.version !== plan.target.version || canonicalJson(manifest) !== canonicalJson(plan.target))
|
|
22737
22745
|
throw new Error("Staged release manifests differ from the approved bundle");
|
|
22738
22746
|
}
|
|
22739
22747
|
for (const service of plan.services) {
|
|
@@ -23258,6 +23266,7 @@ var upgradeOptionsSchema;
|
|
|
23258
23266
|
var init_engine = __esm({
|
|
23259
23267
|
"../../packages/hive-release/src/engine.ts"() {
|
|
23260
23268
|
"use strict";
|
|
23269
|
+
init_manifest();
|
|
23261
23270
|
init_zod();
|
|
23262
23271
|
init_catalog();
|
|
23263
23272
|
init_manifest();
|
|
@@ -23702,6 +23711,7 @@ export {
|
|
|
23702
23711
|
autoEligible,
|
|
23703
23712
|
backupSqlite,
|
|
23704
23713
|
backupStores,
|
|
23714
|
+
canonicalJson,
|
|
23705
23715
|
captureCheck,
|
|
23706
23716
|
catalog,
|
|
23707
23717
|
commonEnv,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivemagnus/hive-skills",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24.22.1 || ^26.13.0"
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
],
|
|
68
68
|
"hiveRelease": {
|
|
69
69
|
"schema": 1,
|
|
70
|
-
"version": "1.2.
|
|
70
|
+
"version": "1.2.1",
|
|
71
71
|
"engineProtocol": 1,
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": "^24.22.1 || ^26.13.0"
|
|
74
74
|
},
|
|
75
75
|
"components": {
|
|
76
|
-
"@hivemagnus/hive": "1.2.
|
|
77
|
-
"@hivemagnus/hive-router": "1.2.
|
|
78
|
-
"@hivemagnus/hive-iam-server": "1.2.
|
|
79
|
-
"@hivemagnus/hivemem-server": "1.2.
|
|
80
|
-
"@hivemagnus/hive-skills": "1.2.
|
|
76
|
+
"@hivemagnus/hive": "1.2.1",
|
|
77
|
+
"@hivemagnus/hive-router": "1.2.1",
|
|
78
|
+
"@hivemagnus/hive-iam-server": "1.2.1",
|
|
79
|
+
"@hivemagnus/hivemem-server": "1.2.1",
|
|
80
|
+
"@hivemagnus/hive-skills": "1.2.1"
|
|
81
81
|
},
|
|
82
82
|
"optionalComponents": [
|
|
83
83
|
"skills"
|
|
@@ -95,80 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"requiredIntermediates": [],
|
|
97
97
|
"newRequiredEnv": [],
|
|
98
|
-
"newOptionalEnv": [
|
|
99
|
-
{
|
|
100
|
-
"name": "HIVE_AUTO_MIGRATE",
|
|
101
|
-
"component": "router",
|
|
102
|
-
"secret": false,
|
|
103
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "HIVE_UPDATE_CHECK",
|
|
107
|
-
"component": "router",
|
|
108
|
-
"secret": false,
|
|
109
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "HIVE_AUTO_UPGRADE",
|
|
113
|
-
"component": "launcher",
|
|
114
|
-
"secret": false,
|
|
115
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "HIVE_AUTO_UPGRADE_POLICY",
|
|
119
|
-
"component": "launcher",
|
|
120
|
-
"secret": false,
|
|
121
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "HIVE_AUTO_UPGRADE_WINDOW",
|
|
125
|
-
"component": "launcher",
|
|
126
|
-
"secret": false,
|
|
127
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "HIVE_AUTO_UPGRADE_TIMEZONE",
|
|
131
|
-
"component": "launcher",
|
|
132
|
-
"secret": false,
|
|
133
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "HIVE_UI_UPGRADE",
|
|
137
|
-
"component": "launcher",
|
|
138
|
-
"secret": false,
|
|
139
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "HIVE_COMPOSE_UPGRADE_SUPERVISOR",
|
|
143
|
-
"component": "launcher",
|
|
144
|
-
"secret": false,
|
|
145
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "HIVE_BACKUP_DIR",
|
|
149
|
-
"component": "router",
|
|
150
|
-
"secret": false,
|
|
151
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "HIVE_UPDATE_REGISTRY",
|
|
155
|
-
"component": "router",
|
|
156
|
-
"secret": false,
|
|
157
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"name": "HIVE_MANAGED_PROJECT",
|
|
161
|
-
"component": "router",
|
|
162
|
-
"secret": false,
|
|
163
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "HIVE_COORDINATOR_SOCKET",
|
|
167
|
-
"component": "router",
|
|
168
|
-
"secret": false,
|
|
169
|
-
"description": "See UPGRADING.md. Automation defaults off outside explicitly configured managed installations."
|
|
170
|
-
}
|
|
171
|
-
],
|
|
98
|
+
"newOptionalEnv": [],
|
|
172
99
|
"removedEnv": [],
|
|
173
100
|
"migrations": [
|
|
174
101
|
{
|
|
@@ -304,8 +231,8 @@
|
|
|
304
231
|
"memory": "^1.0.3",
|
|
305
232
|
"skills": "^1.1.0"
|
|
306
233
|
},
|
|
307
|
-
"summary": "
|
|
308
|
-
"notesUrl": "https://github.com/ChefTaco/hive/releases/tag/v1.2.
|
|
234
|
+
"summary": "Accept equivalent npm registry manifests regardless of JSON key ordering; preserve exact bundle and integrity validation.",
|
|
235
|
+
"notesUrl": "https://github.com/ChefTaco/hive/releases/tag/v1.2.1",
|
|
309
236
|
"breaking": false
|
|
310
237
|
}
|
|
311
238
|
}
|