@ikenga/cli 0.3.2 → 0.3.3
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/index.js +30 -26
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __returnValue = (v) => v;
|
|
5
|
+
function __exportSetter(name, newValue) {
|
|
6
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
7
|
+
}
|
|
4
8
|
var __export = (target, all) => {
|
|
5
9
|
for (var name in all)
|
|
6
10
|
__defProp(target, name, {
|
|
7
11
|
get: all[name],
|
|
8
12
|
enumerable: true,
|
|
9
13
|
configurable: true,
|
|
10
|
-
set: (
|
|
14
|
+
set: __exportSetter.bind(all, name)
|
|
11
15
|
});
|
|
12
16
|
};
|
|
13
17
|
|
|
14
|
-
//
|
|
18
|
+
// node_modules/zod/v3/external.js
|
|
15
19
|
var exports_external = {};
|
|
16
20
|
__export(exports_external, {
|
|
17
21
|
void: () => voidType,
|
|
@@ -123,7 +127,7 @@ __export(exports_external, {
|
|
|
123
127
|
BRAND: () => BRAND
|
|
124
128
|
});
|
|
125
129
|
|
|
126
|
-
//
|
|
130
|
+
// node_modules/zod/v3/helpers/util.js
|
|
127
131
|
var util;
|
|
128
132
|
(function(util2) {
|
|
129
133
|
util2.assertEqual = (_) => {};
|
|
@@ -254,7 +258,7 @@ var getParsedType = (data) => {
|
|
|
254
258
|
}
|
|
255
259
|
};
|
|
256
260
|
|
|
257
|
-
//
|
|
261
|
+
// node_modules/zod/v3/ZodError.js
|
|
258
262
|
var ZodIssueCode = util.arrayToEnum([
|
|
259
263
|
"invalid_type",
|
|
260
264
|
"invalid_literal",
|
|
@@ -373,7 +377,7 @@ ZodError.create = (issues) => {
|
|
|
373
377
|
return error;
|
|
374
378
|
};
|
|
375
379
|
|
|
376
|
-
//
|
|
380
|
+
// node_modules/zod/v3/locales/en.js
|
|
377
381
|
var errorMap = (issue, _ctx) => {
|
|
378
382
|
let message;
|
|
379
383
|
switch (issue.code) {
|
|
@@ -476,7 +480,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
476
480
|
};
|
|
477
481
|
var en_default = errorMap;
|
|
478
482
|
|
|
479
|
-
//
|
|
483
|
+
// node_modules/zod/v3/errors.js
|
|
480
484
|
var overrideErrorMap = en_default;
|
|
481
485
|
function setErrorMap(map) {
|
|
482
486
|
overrideErrorMap = map;
|
|
@@ -484,7 +488,7 @@ function setErrorMap(map) {
|
|
|
484
488
|
function getErrorMap() {
|
|
485
489
|
return overrideErrorMap;
|
|
486
490
|
}
|
|
487
|
-
//
|
|
491
|
+
// node_modules/zod/v3/helpers/parseUtil.js
|
|
488
492
|
var makeIssue = (params) => {
|
|
489
493
|
const { data, path, errorMaps, issueData } = params;
|
|
490
494
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -590,14 +594,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
590
594
|
var isDirty = (x) => x.status === "dirty";
|
|
591
595
|
var isValid = (x) => x.status === "valid";
|
|
592
596
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
593
|
-
//
|
|
597
|
+
// node_modules/zod/v3/helpers/errorUtil.js
|
|
594
598
|
var errorUtil;
|
|
595
599
|
(function(errorUtil2) {
|
|
596
600
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
597
601
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
598
602
|
})(errorUtil || (errorUtil = {}));
|
|
599
603
|
|
|
600
|
-
//
|
|
604
|
+
// node_modules/zod/v3/types.js
|
|
601
605
|
class ParseInputLazyPath {
|
|
602
606
|
constructor(parent, value, path, key) {
|
|
603
607
|
this._cachedPath = [];
|
|
@@ -3984,7 +3988,7 @@ var coerce = {
|
|
|
3984
3988
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3985
3989
|
};
|
|
3986
3990
|
var NEVER = INVALID;
|
|
3987
|
-
//
|
|
3991
|
+
// node_modules/@ikenga/contract/dist/engine.js
|
|
3988
3992
|
var AgentCapabilitiesSchema = exports_external.object({
|
|
3989
3993
|
streaming: exports_external.boolean(),
|
|
3990
3994
|
toolUse: exports_external.boolean(),
|
|
@@ -4015,7 +4019,7 @@ var EngineProvidesSchema = exports_external.object({
|
|
|
4015
4019
|
})
|
|
4016
4020
|
});
|
|
4017
4021
|
|
|
4018
|
-
//
|
|
4022
|
+
// node_modules/@ikenga/contract/dist/manifest.js
|
|
4019
4023
|
var AuthorSchema = exports_external.object({
|
|
4020
4024
|
name: exports_external.string(),
|
|
4021
4025
|
key: exports_external.string().optional()
|
|
@@ -4130,7 +4134,7 @@ var ManifestSchema = exports_external.object({
|
|
|
4130
4134
|
engine: EngineProvidesSchema.optional()
|
|
4131
4135
|
});
|
|
4132
4136
|
|
|
4133
|
-
//
|
|
4137
|
+
// node_modules/@ikenga/contract/dist/registry.js
|
|
4134
4138
|
var REGISTRY_SCHEMA_VERSION = 1;
|
|
4135
4139
|
var PkgDepSchema = exports_external.object({
|
|
4136
4140
|
name: exports_external.string(),
|
|
@@ -4170,7 +4174,7 @@ function pkgDetailPath(npmName) {
|
|
|
4170
4174
|
return `pkgs/${pkgShortName(npmName)}.json`;
|
|
4171
4175
|
}
|
|
4172
4176
|
|
|
4173
|
-
//
|
|
4177
|
+
// node_modules/@noble/ed25519/index.js
|
|
4174
4178
|
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
|
4175
4179
|
var ed25519_CURVE = {
|
|
4176
4180
|
p: 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,
|
|
@@ -4591,7 +4595,7 @@ var wNAF = (n) => {
|
|
|
4591
4595
|
return { p, f };
|
|
4592
4596
|
};
|
|
4593
4597
|
|
|
4594
|
-
//
|
|
4598
|
+
// node_modules/@noble/hashes/esm/utils.js
|
|
4595
4599
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4596
4600
|
function isBytes2(a) {
|
|
4597
4601
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
@@ -4672,7 +4676,7 @@ function createOptHasher(hashCons) {
|
|
|
4672
4676
|
return hashC;
|
|
4673
4677
|
}
|
|
4674
4678
|
|
|
4675
|
-
//
|
|
4679
|
+
// node_modules/@noble/hashes/esm/_blake.js
|
|
4676
4680
|
var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
4677
4681
|
0,
|
|
4678
4682
|
1,
|
|
@@ -4932,7 +4936,7 @@ var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
|
4932
4936
|
9
|
|
4933
4937
|
]);
|
|
4934
4938
|
|
|
4935
|
-
//
|
|
4939
|
+
// node_modules/@noble/hashes/esm/_md.js
|
|
4936
4940
|
function setBigUint64(view, byteOffset, value, isLE2) {
|
|
4937
4941
|
if (typeof view.setBigUint64 === "function")
|
|
4938
4942
|
return view.setBigUint64(byteOffset, value, isLE2);
|
|
@@ -5054,7 +5058,7 @@ var SHA512_IV = /* @__PURE__ */ Uint32Array.from([
|
|
|
5054
5058
|
327033209
|
|
5055
5059
|
]);
|
|
5056
5060
|
|
|
5057
|
-
//
|
|
5061
|
+
// node_modules/@noble/hashes/esm/_u64.js
|
|
5058
5062
|
var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
5059
5063
|
var _32n = /* @__PURE__ */ BigInt(32);
|
|
5060
5064
|
function fromBig(n, le = false) {
|
|
@@ -5091,7 +5095,7 @@ var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0
|
|
|
5091
5095
|
var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
|
|
5092
5096
|
var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
5093
5097
|
|
|
5094
|
-
//
|
|
5098
|
+
// node_modules/@noble/hashes/esm/blake2.js
|
|
5095
5099
|
var B2B_IV = /* @__PURE__ */ Uint32Array.from([
|
|
5096
5100
|
4089235720,
|
|
5097
5101
|
1779033703,
|
|
@@ -5374,10 +5378,10 @@ class BLAKE2b extends BLAKE2 {
|
|
|
5374
5378
|
}
|
|
5375
5379
|
var blake2b = /* @__PURE__ */ createOptHasher((opts) => new BLAKE2b(opts));
|
|
5376
5380
|
|
|
5377
|
-
//
|
|
5381
|
+
// node_modules/@noble/hashes/esm/blake2b.js
|
|
5378
5382
|
var blake2b2 = blake2b;
|
|
5379
5383
|
|
|
5380
|
-
//
|
|
5384
|
+
// node_modules/@noble/hashes/esm/sha2.js
|
|
5381
5385
|
var K512 = /* @__PURE__ */ (() => split([
|
|
5382
5386
|
"0x428a2f98d728ae22",
|
|
5383
5387
|
"0x7137449123ef65cd",
|
|
@@ -5576,10 +5580,10 @@ class SHA512 extends HashMD {
|
|
|
5576
5580
|
}
|
|
5577
5581
|
var sha512 = /* @__PURE__ */ createHasher(() => new SHA512);
|
|
5578
5582
|
|
|
5579
|
-
//
|
|
5583
|
+
// node_modules/@noble/hashes/esm/sha512.js
|
|
5580
5584
|
var sha5122 = sha512;
|
|
5581
5585
|
|
|
5582
|
-
//
|
|
5586
|
+
// node_modules/@ikenga/registry-client/dist/minisign.js
|
|
5583
5587
|
etc.sha512Sync = (...m) => sha5122(etc.concatBytes(...m));
|
|
5584
5588
|
var ALG_ED25519_LEGACY = new Uint8Array([69, 100]);
|
|
5585
5589
|
var ALG_ED25519_PREHASHED = new Uint8Array([69, 68]);
|
|
@@ -5669,7 +5673,7 @@ function hex(bytes) {
|
|
|
5669
5673
|
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
5670
5674
|
}
|
|
5671
5675
|
|
|
5672
|
-
//
|
|
5676
|
+
// node_modules/@ikenga/registry-client/dist/fetch.js
|
|
5673
5677
|
async function fetchIndex(opts) {
|
|
5674
5678
|
const fetchImpl = opts.fetchImpl ?? globalThis.fetch;
|
|
5675
5679
|
if (!fetchImpl) {
|
|
@@ -5715,7 +5719,7 @@ async function fetchPkgDetail(opts) {
|
|
|
5715
5719
|
const json = await res.json();
|
|
5716
5720
|
return PkgDetailSchema.parse(json);
|
|
5717
5721
|
}
|
|
5718
|
-
//
|
|
5722
|
+
// node_modules/@ikenga/registry-client/dist/resolve.js
|
|
5719
5723
|
async function resolveInstallPlan(opts) {
|
|
5720
5724
|
const plan = [];
|
|
5721
5725
|
const seen = new Map;
|
|
@@ -5823,7 +5827,7 @@ import {
|
|
|
5823
5827
|
} from "fs";
|
|
5824
5828
|
import { join as join2 } from "path";
|
|
5825
5829
|
|
|
5826
|
-
//
|
|
5830
|
+
// node_modules/tar/dist/esm/index.min.js
|
|
5827
5831
|
import Vr from "events";
|
|
5828
5832
|
import I2 from "fs";
|
|
5829
5833
|
import { EventEmitter as Li } from "events";
|
|
@@ -9734,7 +9738,7 @@ async function main() {
|
|
|
9734
9738
|
return 0;
|
|
9735
9739
|
}
|
|
9736
9740
|
if (sub === "--version" || sub === "-V") {
|
|
9737
|
-
process.stdout.write(`ikenga ${"0.3.
|
|
9741
|
+
process.stdout.write(`ikenga ${"0.3.3"}
|
|
9738
9742
|
`);
|
|
9739
9743
|
return 0;
|
|
9740
9744
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikenga/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Command-line tool for installing, updating, and managing Ikenga pkgs.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"tar": "^7.4.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@changesets/cli": "^2.31.0",
|
|
33
34
|
"@types/bun": "latest",
|
|
34
35
|
"@types/tar": "^6.1.13",
|
|
35
36
|
"typescript": "^5.4.0"
|