@ikenga/cli 0.3.0 → 0.3.2
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 +21 -1
- package/dist/index.js +29 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# @ikenga/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/Royalti-io/ikenga-cli/releases)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
> `ikenga` — the disk-side package manager for the Ikenga workspace. Install, update, and
|
|
7
|
+
> hot-mount pkgs.
|
|
8
|
+
|
|
9
|
+
## What it is
|
|
10
|
+
|
|
11
|
+
`ikenga` manages packages on disk: what's installed, what's available in the registry, and
|
|
12
|
+
the dev loop for authoring your own. It's one of two Ikenga CLIs — the **disk-side** one.
|
|
13
|
+
(The other, [`iyke`](https://github.com/Royalti-io/iyke-cli), drives a *running* shell.
|
|
14
|
+
They share no code.)
|
|
4
15
|
|
|
5
16
|
## Install
|
|
6
17
|
|
|
@@ -52,3 +63,12 @@ Iframe code changes flow through your dev server's HMR (Vite, Next, …); sideca
|
|
|
52
63
|
`v0.3.0` — adds `ikenga dev <path>` for hot-mounting pkgs into a running shell via the iyke localhost bridge. Watcher-driven manifest reload + clean `Ctrl-C` unregister. Requires the corresponding shell-side dev-mode kernel (lands in shell `v0.0.5+`).
|
|
53
64
|
`v0.2.0` — JS-source npm distribution; requires Bun on `$PATH`.
|
|
54
65
|
`v0.1.x` — bun-compiled standalone binaries (deprecated; available on the GitHub Releases page until the next archive sweep).
|
|
66
|
+
|
|
67
|
+
## Links
|
|
68
|
+
|
|
69
|
+
- [`iyke-cli`](https://github.com/Royalti-io/iyke-cli) — the runtime controller (the *other* CLI)
|
|
70
|
+
- [`ikenga`](https://github.com/Royalti-io/ikenga) — the desktop shell
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
Apache-2.0 — see [`LICENSE`](LICENSE).
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
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
|
-
}
|
|
8
4
|
var __export = (target, all) => {
|
|
9
5
|
for (var name in all)
|
|
10
6
|
__defProp(target, name, {
|
|
11
7
|
get: all[name],
|
|
12
8
|
enumerable: true,
|
|
13
9
|
configurable: true,
|
|
14
|
-
set:
|
|
10
|
+
set: (newValue) => all[name] = () => newValue
|
|
15
11
|
});
|
|
16
12
|
};
|
|
17
13
|
|
|
18
|
-
// node_modules/zod/v3/external.js
|
|
14
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
19
15
|
var exports_external = {};
|
|
20
16
|
__export(exports_external, {
|
|
21
17
|
void: () => voidType,
|
|
@@ -127,7 +123,7 @@ __export(exports_external, {
|
|
|
127
123
|
BRAND: () => BRAND
|
|
128
124
|
});
|
|
129
125
|
|
|
130
|
-
// node_modules/zod/v3/helpers/util.js
|
|
126
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
131
127
|
var util;
|
|
132
128
|
(function(util2) {
|
|
133
129
|
util2.assertEqual = (_) => {};
|
|
@@ -258,7 +254,7 @@ var getParsedType = (data) => {
|
|
|
258
254
|
}
|
|
259
255
|
};
|
|
260
256
|
|
|
261
|
-
// node_modules/zod/v3/ZodError.js
|
|
257
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
262
258
|
var ZodIssueCode = util.arrayToEnum([
|
|
263
259
|
"invalid_type",
|
|
264
260
|
"invalid_literal",
|
|
@@ -377,7 +373,7 @@ ZodError.create = (issues) => {
|
|
|
377
373
|
return error;
|
|
378
374
|
};
|
|
379
375
|
|
|
380
|
-
// node_modules/zod/v3/locales/en.js
|
|
376
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
381
377
|
var errorMap = (issue, _ctx) => {
|
|
382
378
|
let message;
|
|
383
379
|
switch (issue.code) {
|
|
@@ -480,7 +476,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
480
476
|
};
|
|
481
477
|
var en_default = errorMap;
|
|
482
478
|
|
|
483
|
-
// node_modules/zod/v3/errors.js
|
|
479
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
484
480
|
var overrideErrorMap = en_default;
|
|
485
481
|
function setErrorMap(map) {
|
|
486
482
|
overrideErrorMap = map;
|
|
@@ -488,7 +484,7 @@ function setErrorMap(map) {
|
|
|
488
484
|
function getErrorMap() {
|
|
489
485
|
return overrideErrorMap;
|
|
490
486
|
}
|
|
491
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
487
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
492
488
|
var makeIssue = (params) => {
|
|
493
489
|
const { data, path, errorMaps, issueData } = params;
|
|
494
490
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -594,14 +590,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
594
590
|
var isDirty = (x) => x.status === "dirty";
|
|
595
591
|
var isValid = (x) => x.status === "valid";
|
|
596
592
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
597
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
593
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
598
594
|
var errorUtil;
|
|
599
595
|
(function(errorUtil2) {
|
|
600
596
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
601
597
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
602
598
|
})(errorUtil || (errorUtil = {}));
|
|
603
599
|
|
|
604
|
-
// node_modules/zod/v3/types.js
|
|
600
|
+
// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
605
601
|
class ParseInputLazyPath {
|
|
606
602
|
constructor(parent, value, path, key) {
|
|
607
603
|
this._cachedPath = [];
|
|
@@ -3988,7 +3984,7 @@ var coerce = {
|
|
|
3988
3984
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3989
3985
|
};
|
|
3990
3986
|
var NEVER = INVALID;
|
|
3991
|
-
// node_modules/@ikenga/contract/dist/engine.js
|
|
3987
|
+
// ../node_modules/.pnpm/@ikenga+contract@0.5.0/node_modules/@ikenga/contract/dist/engine.js
|
|
3992
3988
|
var AgentCapabilitiesSchema = exports_external.object({
|
|
3993
3989
|
streaming: exports_external.boolean(),
|
|
3994
3990
|
toolUse: exports_external.boolean(),
|
|
@@ -4019,7 +4015,7 @@ var EngineProvidesSchema = exports_external.object({
|
|
|
4019
4015
|
})
|
|
4020
4016
|
});
|
|
4021
4017
|
|
|
4022
|
-
// node_modules/@ikenga/contract/dist/manifest.js
|
|
4018
|
+
// ../node_modules/.pnpm/@ikenga+contract@0.5.0/node_modules/@ikenga/contract/dist/manifest.js
|
|
4023
4019
|
var AuthorSchema = exports_external.object({
|
|
4024
4020
|
name: exports_external.string(),
|
|
4025
4021
|
key: exports_external.string().optional()
|
|
@@ -4134,7 +4130,7 @@ var ManifestSchema = exports_external.object({
|
|
|
4134
4130
|
engine: EngineProvidesSchema.optional()
|
|
4135
4131
|
});
|
|
4136
4132
|
|
|
4137
|
-
// node_modules/@ikenga/contract/dist/registry.js
|
|
4133
|
+
// ../node_modules/.pnpm/@ikenga+contract@0.5.0/node_modules/@ikenga/contract/dist/registry.js
|
|
4138
4134
|
var REGISTRY_SCHEMA_VERSION = 1;
|
|
4139
4135
|
var PkgDepSchema = exports_external.object({
|
|
4140
4136
|
name: exports_external.string(),
|
|
@@ -4174,7 +4170,7 @@ function pkgDetailPath(npmName) {
|
|
|
4174
4170
|
return `pkgs/${pkgShortName(npmName)}.json`;
|
|
4175
4171
|
}
|
|
4176
4172
|
|
|
4177
|
-
// node_modules/@noble/ed25519/index.js
|
|
4173
|
+
// ../node_modules/.pnpm/@noble+ed25519@2.3.0/node_modules/@noble/ed25519/index.js
|
|
4178
4174
|
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
|
4179
4175
|
var ed25519_CURVE = {
|
|
4180
4176
|
p: 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,
|
|
@@ -4595,7 +4591,7 @@ var wNAF = (n) => {
|
|
|
4595
4591
|
return { p, f };
|
|
4596
4592
|
};
|
|
4597
4593
|
|
|
4598
|
-
// node_modules/@noble/hashes/esm/utils.js
|
|
4594
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
|
|
4599
4595
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4600
4596
|
function isBytes2(a) {
|
|
4601
4597
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
@@ -4676,7 +4672,7 @@ function createOptHasher(hashCons) {
|
|
|
4676
4672
|
return hashC;
|
|
4677
4673
|
}
|
|
4678
4674
|
|
|
4679
|
-
// node_modules/@noble/hashes/esm/_blake.js
|
|
4675
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_blake.js
|
|
4680
4676
|
var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
4681
4677
|
0,
|
|
4682
4678
|
1,
|
|
@@ -4936,7 +4932,7 @@ var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
|
4936
4932
|
9
|
|
4937
4933
|
]);
|
|
4938
4934
|
|
|
4939
|
-
// node_modules/@noble/hashes/esm/_md.js
|
|
4935
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
|
|
4940
4936
|
function setBigUint64(view, byteOffset, value, isLE2) {
|
|
4941
4937
|
if (typeof view.setBigUint64 === "function")
|
|
4942
4938
|
return view.setBigUint64(byteOffset, value, isLE2);
|
|
@@ -5058,7 +5054,7 @@ var SHA512_IV = /* @__PURE__ */ Uint32Array.from([
|
|
|
5058
5054
|
327033209
|
|
5059
5055
|
]);
|
|
5060
5056
|
|
|
5061
|
-
// node_modules/@noble/hashes/esm/_u64.js
|
|
5057
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
|
|
5062
5058
|
var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
5063
5059
|
var _32n = /* @__PURE__ */ BigInt(32);
|
|
5064
5060
|
function fromBig(n, le = false) {
|
|
@@ -5095,7 +5091,7 @@ var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0
|
|
|
5095
5091
|
var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
|
|
5096
5092
|
var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
5097
5093
|
|
|
5098
|
-
// node_modules/@noble/hashes/esm/blake2.js
|
|
5094
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/blake2.js
|
|
5099
5095
|
var B2B_IV = /* @__PURE__ */ Uint32Array.from([
|
|
5100
5096
|
4089235720,
|
|
5101
5097
|
1779033703,
|
|
@@ -5378,10 +5374,10 @@ class BLAKE2b extends BLAKE2 {
|
|
|
5378
5374
|
}
|
|
5379
5375
|
var blake2b = /* @__PURE__ */ createOptHasher((opts) => new BLAKE2b(opts));
|
|
5380
5376
|
|
|
5381
|
-
// node_modules/@noble/hashes/esm/blake2b.js
|
|
5377
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/blake2b.js
|
|
5382
5378
|
var blake2b2 = blake2b;
|
|
5383
5379
|
|
|
5384
|
-
// node_modules/@noble/hashes/esm/sha2.js
|
|
5380
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js
|
|
5385
5381
|
var K512 = /* @__PURE__ */ (() => split([
|
|
5386
5382
|
"0x428a2f98d728ae22",
|
|
5387
5383
|
"0x7137449123ef65cd",
|
|
@@ -5580,10 +5576,10 @@ class SHA512 extends HashMD {
|
|
|
5580
5576
|
}
|
|
5581
5577
|
var sha512 = /* @__PURE__ */ createHasher(() => new SHA512);
|
|
5582
5578
|
|
|
5583
|
-
// node_modules/@noble/hashes/esm/sha512.js
|
|
5579
|
+
// ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha512.js
|
|
5584
5580
|
var sha5122 = sha512;
|
|
5585
5581
|
|
|
5586
|
-
// node_modules/@ikenga/registry-client/dist/minisign.js
|
|
5582
|
+
// ../node_modules/.pnpm/@ikenga+registry-client@0.1.0/node_modules/@ikenga/registry-client/dist/minisign.js
|
|
5587
5583
|
etc.sha512Sync = (...m) => sha5122(etc.concatBytes(...m));
|
|
5588
5584
|
var ALG_ED25519_LEGACY = new Uint8Array([69, 100]);
|
|
5589
5585
|
var ALG_ED25519_PREHASHED = new Uint8Array([69, 68]);
|
|
@@ -5673,7 +5669,7 @@ function hex(bytes) {
|
|
|
5673
5669
|
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
5674
5670
|
}
|
|
5675
5671
|
|
|
5676
|
-
// node_modules/@ikenga/registry-client/dist/fetch.js
|
|
5672
|
+
// ../node_modules/.pnpm/@ikenga+registry-client@0.1.0/node_modules/@ikenga/registry-client/dist/fetch.js
|
|
5677
5673
|
async function fetchIndex(opts) {
|
|
5678
5674
|
const fetchImpl = opts.fetchImpl ?? globalThis.fetch;
|
|
5679
5675
|
if (!fetchImpl) {
|
|
@@ -5719,7 +5715,7 @@ async function fetchPkgDetail(opts) {
|
|
|
5719
5715
|
const json = await res.json();
|
|
5720
5716
|
return PkgDetailSchema.parse(json);
|
|
5721
5717
|
}
|
|
5722
|
-
// node_modules/@ikenga/registry-client/dist/resolve.js
|
|
5718
|
+
// ../node_modules/.pnpm/@ikenga+registry-client@0.1.0/node_modules/@ikenga/registry-client/dist/resolve.js
|
|
5723
5719
|
async function resolveInstallPlan(opts) {
|
|
5724
5720
|
const plan = [];
|
|
5725
5721
|
const seen = new Map;
|
|
@@ -5827,7 +5823,7 @@ import {
|
|
|
5827
5823
|
} from "fs";
|
|
5828
5824
|
import { join as join2 } from "path";
|
|
5829
5825
|
|
|
5830
|
-
// node_modules/tar/dist/esm/index.min.js
|
|
5826
|
+
// ../node_modules/.pnpm/tar@7.5.15/node_modules/tar/dist/esm/index.min.js
|
|
5831
5827
|
import Vr from "events";
|
|
5832
5828
|
import I2 from "fs";
|
|
5833
5829
|
import { EventEmitter as Li } from "events";
|
|
@@ -9529,7 +9525,8 @@ async function listAvailable(opts) {
|
|
|
9529
9525
|
try {
|
|
9530
9526
|
const { index } = await fetchIndex2();
|
|
9531
9527
|
const installed = new Map(listInstalled().map((p2) => [p2.id, p2.version]));
|
|
9532
|
-
const
|
|
9528
|
+
const visiblePkgs = index.pkgs.filter((entry) => entry.visibility !== "hidden");
|
|
9529
|
+
const rows = visiblePkgs.map((entry) => {
|
|
9533
9530
|
const installedVersion = installed.get(npmNameToPkgId(entry.name));
|
|
9534
9531
|
let state = "available";
|
|
9535
9532
|
if (installedVersion) {
|
|
@@ -9549,7 +9546,7 @@ async function listAvailable(opts) {
|
|
|
9549
9546
|
`);
|
|
9550
9547
|
return 0;
|
|
9551
9548
|
}
|
|
9552
|
-
process.stdout.write(`${
|
|
9549
|
+
process.stdout.write(`${visiblePkgs.length} pkg(s) in registry \xB7 signed by minisign key on disk
|
|
9553
9550
|
|
|
9554
9551
|
`);
|
|
9555
9552
|
for (const r of rows) {
|
|
@@ -9737,7 +9734,7 @@ async function main() {
|
|
|
9737
9734
|
return 0;
|
|
9738
9735
|
}
|
|
9739
9736
|
if (sub === "--version" || sub === "-V") {
|
|
9740
|
-
process.stdout.write(`ikenga ${"0.3.
|
|
9737
|
+
process.stdout.write(`ikenga ${"0.3.2"}
|
|
9741
9738
|
`);
|
|
9742
9739
|
return 0;
|
|
9743
9740
|
}
|