tenjin-cli 0.1.0-alpha.12 → 0.1.0-alpha.13
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 -0
- package/dist/{buy-3DTBFZ4B.js → buy-X4VPHFUA.js} +20 -20
- package/dist/{chunk-V5UHKC46.js → chunk-3NZCU6SD.js} +7 -7
- package/dist/{chunk-Y7ERTA7D.js → chunk-3P3ES4XU.js} +4 -6
- package/dist/chunk-3P3ES4XU.js.map +1 -0
- package/dist/{chunk-OZHJ3FLR.js → chunk-47YKYDOF.js} +5 -5
- package/dist/{chunk-WWIKAJFO.js → chunk-6JKD46OJ.js} +12 -10
- package/dist/{chunk-WWIKAJFO.js.map → chunk-6JKD46OJ.js.map} +1 -1
- package/dist/chunk-736DW4V3.js +65 -0
- package/dist/chunk-736DW4V3.js.map +1 -0
- package/dist/{chunk-IB63U6BM.js → chunk-B676GPS2.js} +34 -11
- package/dist/chunk-B676GPS2.js.map +1 -0
- package/dist/{chunk-4NTZETIL.js → chunk-BRAVLUGI.js} +2 -2
- package/dist/{chunk-HWHYPCCH.js → chunk-CA3JV7FX.js} +2 -2
- package/dist/{chunk-HWHYPCCH.js.map → chunk-CA3JV7FX.js.map} +1 -1
- package/dist/{chunk-ALUNME53.js → chunk-ELVDOTU7.js} +50 -66
- package/dist/chunk-ELVDOTU7.js.map +1 -0
- package/dist/{chunk-ILDVGY7K.js → chunk-GCGMXA2O.js} +13 -11
- package/dist/{chunk-ILDVGY7K.js.map → chunk-GCGMXA2O.js.map} +1 -1
- package/dist/{chunk-L3I2MVKR.js → chunk-IAR25V2E.js} +6 -6
- package/dist/{chunk-6UY2UQMY.js → chunk-IFPKA32J.js} +4 -4
- package/dist/{chunk-JTYIX6OD.js → chunk-IGHSLJUF.js} +6 -4
- package/dist/{chunk-JTYIX6OD.js.map → chunk-IGHSLJUF.js.map} +1 -1
- package/dist/{chunk-7MJVNALU.js → chunk-IKAJSA7E.js} +12 -10
- package/dist/{chunk-7MJVNALU.js.map → chunk-IKAJSA7E.js.map} +1 -1
- package/dist/{chunk-NUF2PKJO.js → chunk-J6FUAIRR.js} +4 -6
- package/dist/{chunk-NUF2PKJO.js.map → chunk-J6FUAIRR.js.map} +1 -1
- package/dist/{chunk-CNUXRXI2.js → chunk-JVBMPU5G.js} +5 -7
- package/dist/{chunk-CNUXRXI2.js.map → chunk-JVBMPU5G.js.map} +1 -1
- package/dist/{chunk-6RMEX74N.js → chunk-L4XNT3UW.js} +21 -16
- package/dist/chunk-L4XNT3UW.js.map +1 -0
- package/dist/{chunk-X2WZPGCF.js → chunk-NKN4YC5C.js} +5 -5
- package/dist/{chunk-P74I3WH4.js → chunk-OC3EIDCP.js} +3 -5
- package/dist/{chunk-P74I3WH4.js.map → chunk-OC3EIDCP.js.map} +1 -1
- package/dist/{chunk-E6YOODH7.js → chunk-OE36HRWG.js} +31 -5
- package/dist/{chunk-E6YOODH7.js.map → chunk-OE36HRWG.js.map} +1 -1
- package/dist/chunk-OUJDDY5L.js +189 -0
- package/dist/chunk-OUJDDY5L.js.map +1 -0
- package/dist/{chunk-6BGYHARE.js → chunk-OWVVI4VQ.js} +15 -15
- package/dist/{chunk-4TCU3YRD.js → chunk-OXUJ3FXU.js} +5 -1
- package/dist/{chunk-4TCU3YRD.js.map → chunk-OXUJ3FXU.js.map} +1 -1
- package/dist/{chunk-PZRAAAY2.js → chunk-PAOVPSP6.js} +10 -3
- package/dist/chunk-PAOVPSP6.js.map +1 -0
- package/dist/{chunk-TUXKOIOU.js → chunk-SPUORKD7.js} +3 -3
- package/dist/{chunk-UFPJBS4C.js → chunk-T4UWMVKV.js} +9 -7
- package/dist/{chunk-UFPJBS4C.js.map → chunk-T4UWMVKV.js.map} +1 -1
- package/dist/{chunk-CLOEU7RA.js → chunk-TXVC46SA.js} +8 -8
- package/dist/{chunk-SFGXAZ3M.js → chunk-UUARTUY2.js} +42 -9
- package/dist/chunk-UUARTUY2.js.map +1 -0
- package/dist/{chunk-ROAK2DOX.js → chunk-WMFRCSNC.js} +8 -8
- package/dist/{chunk-TDDN5GXR.js → chunk-WU5CZPLD.js} +5 -5
- package/dist/{chunk-RSBN67PA.js → chunk-WVHPGQH5.js} +4 -6
- package/dist/{chunk-RSBN67PA.js.map → chunk-WVHPGQH5.js.map} +1 -1
- package/dist/{chunk-PZSUWDF2.js → chunk-XGZ5EVMB.js} +2 -2
- package/dist/{chunk-MBKFZBB2.js → chunk-XXY77EZJ.js} +24 -24
- package/dist/{chunk-CBNXUQGM.js → chunk-YMUJZWHB.js} +10 -8
- package/dist/{chunk-CBNXUQGM.js.map → chunk-YMUJZWHB.js.map} +1 -1
- package/dist/{cli-3WZGLZDP.js → cli-XK5JZWU6.js} +51 -146
- package/dist/cli-XK5JZWU6.js.map +1 -0
- package/dist/{config-WDGMZKHU.js → config-CNK7MYUR.js} +7 -7
- package/dist/doctor-R7N7FUX5.js +27 -0
- package/dist/{edit-4UZQVFCK.js → edit-QSUEG7CL.js} +19 -19
- package/dist/{fund-JAPOFTUG.js → fund-JF6A76YS.js} +16 -16
- package/dist/index.js +1 -1
- package/dist/{inspect-IEV75A42.js → inspect-NFNAA4LA.js} +17 -17
- package/dist/{install-WXTOHDWC.js → install-YQVM3SUW.js} +20 -21
- package/dist/{install-WXTOHDWC.js.map → install-YQVM3SUW.js.map} +1 -1
- package/dist/outcome-IUSYFJTN.js +22 -0
- package/dist/{publish-6QNARH7E.js → publish-O2I6IAEL.js} +20 -20
- package/dist/{read-UAZGZ4UL.js → read-UF7QVQOU.js} +21 -21
- package/dist/{run-AJNCOT5R.js → run-GDZWHNWZ.js} +30 -30
- package/dist/search-JVOHEF3E.js +23 -0
- package/dist/{send-F34ZDXDZ.js → send-SI254H3R.js} +11 -10
- package/dist/{send-F34ZDXDZ.js.map → send-SI254H3R.js.map} +1 -1
- package/dist/{session-4N4ZT3AH.js → session-GJZJEXLJ.js} +14 -14
- package/dist/{skill-heal-XBEK272G.js → skill-heal-BPFT22XS.js} +5 -6
- package/dist/{skill-heal-XBEK272G.js.map → skill-heal-BPFT22XS.js.map} +1 -1
- package/dist/{uninstall-BTKPHPDL.js → uninstall-7ZZG6WQ5.js} +6 -7
- package/dist/{uninstall-BTKPHPDL.js.map → uninstall-7ZZG6WQ5.js.map} +1 -1
- package/dist/update-FPSBITLB.js +315 -0
- package/dist/update-FPSBITLB.js.map +1 -0
- package/dist/{wallet-UL4P2JRO.js → wallet-NS7TYWNN.js} +5 -6
- package/dist/{wallet-WJ6UP5OU.js → wallet-TZVD2M4I.js} +9 -9
- package/docs/agent-permissions.md +11 -0
- package/docs/command-reference.md +47 -0
- package/package.json +1 -1
- package/skills/tenjin-publish/SKILL.md +15 -2
- package/dist/chunk-2I4QTOLB.js +0 -11
- package/dist/chunk-2I4QTOLB.js.map +0 -1
- package/dist/chunk-6RMEX74N.js.map +0 -1
- package/dist/chunk-ALUNME53.js.map +0 -1
- package/dist/chunk-IB63U6BM.js.map +0 -1
- package/dist/chunk-PZRAAAY2.js.map +0 -1
- package/dist/chunk-SFGXAZ3M.js.map +0 -1
- package/dist/chunk-Y7ERTA7D.js.map +0 -1
- package/dist/cli-3WZGLZDP.js.map +0 -1
- package/dist/doctor-EKVCP7JP.js +0 -27
- package/dist/outcome-FYOFDOUK.js +0 -22
- package/dist/search-EEKTW6VK.js +0 -23
- /package/dist/{buy-3DTBFZ4B.js.map → buy-X4VPHFUA.js.map} +0 -0
- /package/dist/{chunk-V5UHKC46.js.map → chunk-3NZCU6SD.js.map} +0 -0
- /package/dist/{chunk-OZHJ3FLR.js.map → chunk-47YKYDOF.js.map} +0 -0
- /package/dist/{chunk-4NTZETIL.js.map → chunk-BRAVLUGI.js.map} +0 -0
- /package/dist/{chunk-L3I2MVKR.js.map → chunk-IAR25V2E.js.map} +0 -0
- /package/dist/{chunk-6UY2UQMY.js.map → chunk-IFPKA32J.js.map} +0 -0
- /package/dist/{chunk-X2WZPGCF.js.map → chunk-NKN4YC5C.js.map} +0 -0
- /package/dist/{chunk-6BGYHARE.js.map → chunk-OWVVI4VQ.js.map} +0 -0
- /package/dist/{chunk-TUXKOIOU.js.map → chunk-SPUORKD7.js.map} +0 -0
- /package/dist/{chunk-CLOEU7RA.js.map → chunk-TXVC46SA.js.map} +0 -0
- /package/dist/{chunk-ROAK2DOX.js.map → chunk-WMFRCSNC.js.map} +0 -0
- /package/dist/{chunk-TDDN5GXR.js.map → chunk-WU5CZPLD.js.map} +0 -0
- /package/dist/{chunk-PZSUWDF2.js.map → chunk-XGZ5EVMB.js.map} +0 -0
- /package/dist/{chunk-MBKFZBB2.js.map → chunk-XXY77EZJ.js.map} +0 -0
- /package/dist/{config-WDGMZKHU.js.map → config-CNK7MYUR.js.map} +0 -0
- /package/dist/{doctor-EKVCP7JP.js.map → doctor-R7N7FUX5.js.map} +0 -0
- /package/dist/{edit-4UZQVFCK.js.map → edit-QSUEG7CL.js.map} +0 -0
- /package/dist/{fund-JAPOFTUG.js.map → fund-JF6A76YS.js.map} +0 -0
- /package/dist/{inspect-IEV75A42.js.map → inspect-NFNAA4LA.js.map} +0 -0
- /package/dist/{outcome-FYOFDOUK.js.map → outcome-IUSYFJTN.js.map} +0 -0
- /package/dist/{publish-6QNARH7E.js.map → publish-O2I6IAEL.js.map} +0 -0
- /package/dist/{read-UAZGZ4UL.js.map → read-UF7QVQOU.js.map} +0 -0
- /package/dist/{run-AJNCOT5R.js.map → run-GDZWHNWZ.js.map} +0 -0
- /package/dist/{search-EEKTW6VK.js.map → search-JVOHEF3E.js.map} +0 -0
- /package/dist/{session-4N4ZT3AH.js.map → session-GJZJEXLJ.js.map} +0 -0
- /package/dist/{wallet-UL4P2JRO.js.map → wallet-NS7TYWNN.js.map} +0 -0
- /package/dist/{wallet-WJ6UP5OU.js.map → wallet-TZVD2M4I.js.map} +0 -0
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
PERMISSIONS_DOC_URL
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OXUJ3FXU.js";
|
|
5
|
+
import {
|
|
6
|
+
maybeUpdate,
|
|
7
|
+
readUpdateSignal
|
|
8
|
+
} from "./chunk-OUJDDY5L.js";
|
|
5
9
|
import {
|
|
6
10
|
package_default
|
|
7
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CA3JV7FX.js";
|
|
8
12
|
import {
|
|
9
13
|
defaultIo,
|
|
10
14
|
emitFailure,
|
|
11
|
-
emitNotice,
|
|
12
15
|
emitSuccess
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B676GPS2.js";
|
|
17
|
+
import "./chunk-ELVDOTU7.js";
|
|
14
18
|
import {
|
|
15
|
-
dataDir
|
|
16
|
-
updateCheckPath
|
|
19
|
+
dataDir
|
|
17
20
|
} from "./chunk-ZQIQ55KK.js";
|
|
21
|
+
import "./chunk-OC3EIDCP.js";
|
|
18
22
|
import {
|
|
19
23
|
CliError,
|
|
20
|
-
external_exports
|
|
21
|
-
|
|
22
|
-
} from "./chunk-PZRAAAY2.js";
|
|
24
|
+
external_exports
|
|
25
|
+
} from "./chunk-PAOVPSP6.js";
|
|
23
26
|
import {
|
|
24
27
|
__commonJS,
|
|
25
28
|
__require,
|
|
@@ -3476,118 +3479,6 @@ var {
|
|
|
3476
3479
|
Help
|
|
3477
3480
|
} = import_index.default;
|
|
3478
3481
|
|
|
3479
|
-
// src/lib/update-check.ts
|
|
3480
|
-
import { readFile } from "fs/promises";
|
|
3481
|
-
var CHECK_INTERVAL_MS = 864e5;
|
|
3482
|
-
var FETCH_TIMEOUT_MS = 1500;
|
|
3483
|
-
var DIST_TAGS_URL = "https://registry.npmjs.org/-/package/tenjin-cli/dist-tags";
|
|
3484
|
-
var TagEntrySchema = external_exports.object({
|
|
3485
|
-
checkedAtMs: external_exports.number(),
|
|
3486
|
-
latest: external_exports.string(),
|
|
3487
|
-
/** When the nudge was last PRINTED for this tag. Absent until one has been. */
|
|
3488
|
-
notifiedAtMs: external_exports.number().optional()
|
|
3489
|
-
});
|
|
3490
|
-
var CacheSchema = external_exports.object({
|
|
3491
|
-
schemaVersion: external_exports.literal(1),
|
|
3492
|
-
tags: external_exports.record(external_exports.string(), TagEntrySchema)
|
|
3493
|
-
});
|
|
3494
|
-
var DistTagsSchema = external_exports.record(external_exports.string(), external_exports.string());
|
|
3495
|
-
async function maybeNudgeUpdate(deps) {
|
|
3496
|
-
try {
|
|
3497
|
-
const env = deps.env ?? process.env;
|
|
3498
|
-
if (!deps.io.isTTY || deps.json) return;
|
|
3499
|
-
if (env.CI !== void 0 && env.CI.length > 0) return;
|
|
3500
|
-
const nowMs = (deps.now ?? Date.now)();
|
|
3501
|
-
const current = deps.currentVersion ?? package_default.version;
|
|
3502
|
-
const path = updateCheckPath(deps.dir);
|
|
3503
|
-
const tag = parseVersion(current)?.alpha !== null ? "alpha" : "latest";
|
|
3504
|
-
const cached = await readCache(path);
|
|
3505
|
-
const entry = cached?.tags[tag];
|
|
3506
|
-
const fresh = entry !== void 0 && nowMs - entry.checkedAtMs < CHECK_INTERVAL_MS;
|
|
3507
|
-
const latest = fresh ? entry.latest : await fetchLatest(deps, tag);
|
|
3508
|
-
if (latest === null) return;
|
|
3509
|
-
const notifiedAtMs = entry?.notifiedAtMs;
|
|
3510
|
-
const due = isNewer(latest, current) && (notifiedAtMs === void 0 || nowMs - notifiedAtMs >= CHECK_INTERVAL_MS);
|
|
3511
|
-
const nudgedAtMs = due ? nowMs : notifiedAtMs;
|
|
3512
|
-
if (!fresh || due) {
|
|
3513
|
-
await writeCache(path, {
|
|
3514
|
-
schemaVersion: 1,
|
|
3515
|
-
// Read-modify-write: the tag this run did not ask about keeps whatever it
|
|
3516
|
-
// knew, including its own nudge clock.
|
|
3517
|
-
tags: {
|
|
3518
|
-
...cached?.tags,
|
|
3519
|
-
[tag]: {
|
|
3520
|
-
checkedAtMs: fresh ? entry.checkedAtMs : nowMs,
|
|
3521
|
-
latest,
|
|
3522
|
-
...nudgedAtMs !== void 0 ? { notifiedAtMs: nudgedAtMs } : {}
|
|
3523
|
-
}
|
|
3524
|
-
}
|
|
3525
|
-
});
|
|
3526
|
-
}
|
|
3527
|
-
if (!due) return;
|
|
3528
|
-
const target = parseVersion(latest)?.alpha === null ? "tenjin-cli" : "tenjin-cli@alpha";
|
|
3529
|
-
emitNotice(
|
|
3530
|
-
deps.io,
|
|
3531
|
-
`tenjin-cli ${latest} is available (you have ${current}). Update: npm i -g ${target}`,
|
|
3532
|
-
{ json: deps.json }
|
|
3533
|
-
);
|
|
3534
|
-
} catch {
|
|
3535
|
-
}
|
|
3536
|
-
}
|
|
3537
|
-
async function fetchLatest(deps, tag) {
|
|
3538
|
-
const doFetch = deps.fetchImpl ?? fetch;
|
|
3539
|
-
let json;
|
|
3540
|
-
try {
|
|
3541
|
-
const res = await doFetch(DIST_TAGS_URL, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
|
|
3542
|
-
if (!res.ok) return null;
|
|
3543
|
-
json = await res.json();
|
|
3544
|
-
} catch {
|
|
3545
|
-
return null;
|
|
3546
|
-
}
|
|
3547
|
-
const parsed = DistTagsSchema.safeParse(json);
|
|
3548
|
-
if (!parsed.success) return null;
|
|
3549
|
-
return parsed.data[tag] ?? null;
|
|
3550
|
-
}
|
|
3551
|
-
async function writeCache(path, cache) {
|
|
3552
|
-
await writeFileAtomic(path, `${JSON.stringify(cache, null, 2)}
|
|
3553
|
-
`, {
|
|
3554
|
-
mode: 384,
|
|
3555
|
-
dirMode: 448
|
|
3556
|
-
});
|
|
3557
|
-
}
|
|
3558
|
-
async function readCache(path) {
|
|
3559
|
-
try {
|
|
3560
|
-
const parsed = CacheSchema.safeParse(JSON.parse(await readFile(path, "utf8")));
|
|
3561
|
-
return parsed.success ? parsed.data : null;
|
|
3562
|
-
} catch {
|
|
3563
|
-
return null;
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
var VERSION_RE = /^(\d+)\.(\d+)\.(\d+)(?:-alpha\.(\d+))?$/;
|
|
3567
|
-
function parseVersion(raw) {
|
|
3568
|
-
const m = VERSION_RE.exec(raw);
|
|
3569
|
-
if (m === null) return null;
|
|
3570
|
-
const [, major, minor, patch, alpha] = m;
|
|
3571
|
-
if (major === void 0 || minor === void 0 || patch === void 0) return null;
|
|
3572
|
-
return {
|
|
3573
|
-
major: Number(major),
|
|
3574
|
-
minor: Number(minor),
|
|
3575
|
-
patch: Number(patch),
|
|
3576
|
-
alpha: alpha !== void 0 ? Number(alpha) : null
|
|
3577
|
-
};
|
|
3578
|
-
}
|
|
3579
|
-
function isNewer(candidate, current) {
|
|
3580
|
-
const a = parseVersion(candidate);
|
|
3581
|
-
const b = parseVersion(current);
|
|
3582
|
-
if (a === null || b === null) return false;
|
|
3583
|
-
if (a.major !== b.major) return a.major > b.major;
|
|
3584
|
-
if (a.minor !== b.minor) return a.minor > b.minor;
|
|
3585
|
-
if (a.patch !== b.patch) return a.patch > b.patch;
|
|
3586
|
-
if (a.alpha === null) return b.alpha !== null;
|
|
3587
|
-
if (b.alpha === null) return false;
|
|
3588
|
-
return a.alpha > b.alpha;
|
|
3589
|
-
}
|
|
3590
|
-
|
|
3591
3482
|
// src/cli.ts
|
|
3592
3483
|
var GlobalOptsSchema = external_exports.object({
|
|
3593
3484
|
json: external_exports.boolean().default(false),
|
|
@@ -3616,17 +3507,23 @@ function buildProgram(io, setExit) {
|
|
|
3616
3507
|
const program2 = new Command();
|
|
3617
3508
|
const runCommand = async (command, cmd, run) => {
|
|
3618
3509
|
const json = cmd.optsWithGlobals().json === true;
|
|
3510
|
+
const updateAvailable = command === "update" ? null : await readUpdateSignal(dataDir(process.env));
|
|
3619
3511
|
try {
|
|
3620
3512
|
const ctx = buildContext(cmd, io);
|
|
3621
3513
|
const result = await run(ctx);
|
|
3622
|
-
emitSuccess(ctx.io, command, result.data, result.humanLines, {
|
|
3514
|
+
emitSuccess(ctx.io, command, result.data, result.humanLines, {
|
|
3515
|
+
json: ctx.flags.json,
|
|
3516
|
+
updateAvailable
|
|
3517
|
+
});
|
|
3623
3518
|
} catch (err) {
|
|
3624
|
-
setExit(emitFailure(io, command, err, { json }).exitCode);
|
|
3519
|
+
setExit(emitFailure(io, command, err, { json, updateAvailable }).exitCode);
|
|
3520
|
+
}
|
|
3521
|
+
if (command !== "update") {
|
|
3522
|
+
await maybeUpdate({ dir: dataDir(process.env), io, json });
|
|
3625
3523
|
}
|
|
3626
|
-
await maybeNudgeUpdate({ dir: dataDir(process.env), io, json });
|
|
3627
3524
|
if (command !== "install") {
|
|
3628
3525
|
try {
|
|
3629
|
-
const { healWiredSkills } = await import("./skill-heal-
|
|
3526
|
+
const { healWiredSkills } = await import("./skill-heal-BPFT22XS.js");
|
|
3630
3527
|
await healWiredSkills({ io });
|
|
3631
3528
|
} catch {
|
|
3632
3529
|
}
|
|
@@ -3673,7 +3570,7 @@ function buildProgram(io, setExit) {
|
|
|
3673
3570
|
const o = this.opts();
|
|
3674
3571
|
const claudeMdGiven = this.getOptionValueSource("claudeMd") !== "default";
|
|
3675
3572
|
const allowGiven = this.getOptionValueSource("allowFreeVerbs") !== "default";
|
|
3676
|
-
const { runInstall } = await import("./install-
|
|
3573
|
+
const { runInstall } = await import("./install-YQVM3SUW.js");
|
|
3677
3574
|
return runInstall(
|
|
3678
3575
|
{
|
|
3679
3576
|
...Array.isArray(o.harness) && o.harness.length > 0 ? { harness: o.harness } : {},
|
|
@@ -3693,34 +3590,42 @@ function buildProgram(io, setExit) {
|
|
|
3693
3590
|
"Remove everything `tenjin install` wrote: the skills, the harness hooks and their settings entries, and the tenjin permission rules. Nothing under ~/.tenjin is touched"
|
|
3694
3591
|
).action(async function() {
|
|
3695
3592
|
await runCommand("uninstall", this, async (ctx) => {
|
|
3696
|
-
const { runUninstall } = await import("./uninstall-
|
|
3593
|
+
const { runUninstall } = await import("./uninstall-7ZZG6WQ5.js");
|
|
3697
3594
|
return runUninstall(ctx);
|
|
3698
3595
|
});
|
|
3699
3596
|
});
|
|
3700
3597
|
addGlobalFlags(program2.command("doctor")).description("Check the local environment and Tenjin API reachability").action(async function() {
|
|
3701
3598
|
await runCommand("doctor", this, async (ctx) => {
|
|
3702
|
-
const { runDoctor } = await import("./doctor-
|
|
3599
|
+
const { runDoctor } = await import("./doctor-R7N7FUX5.js");
|
|
3703
3600
|
return runDoctor(ctx);
|
|
3704
3601
|
});
|
|
3705
3602
|
});
|
|
3603
|
+
addGlobalFlags(program2.command("update")).description(
|
|
3604
|
+
"Update tenjin-cli to the newest version on its release channel (an alpha build follows @alpha)"
|
|
3605
|
+
).option("--check", "report whether a newer version exists without installing it").action(async function() {
|
|
3606
|
+
await runCommand("update", this, async (ctx) => {
|
|
3607
|
+
const { runUpdate } = await import("./update-FPSBITLB.js");
|
|
3608
|
+
return runUpdate({ check: this.opts().check === true }, ctx);
|
|
3609
|
+
});
|
|
3610
|
+
});
|
|
3706
3611
|
const config = addGlobalFlags(program2.command("config")).description(
|
|
3707
3612
|
"Show or change CLI configuration"
|
|
3708
3613
|
);
|
|
3709
3614
|
config.action(async function() {
|
|
3710
3615
|
await runCommand("config", this, async (ctx) => {
|
|
3711
|
-
const { runConfigList } = await import("./config-
|
|
3616
|
+
const { runConfigList } = await import("./config-CNK7MYUR.js");
|
|
3712
3617
|
return runConfigList(ctx);
|
|
3713
3618
|
});
|
|
3714
3619
|
});
|
|
3715
3620
|
addGlobalFlags(config.command("get <key>")).description("Print one effective config value").action(async function(key) {
|
|
3716
3621
|
await runCommand("config.get", this, async (ctx) => {
|
|
3717
|
-
const { runConfigGet } = await import("./config-
|
|
3622
|
+
const { runConfigGet } = await import("./config-CNK7MYUR.js");
|
|
3718
3623
|
return runConfigGet({ key }, ctx);
|
|
3719
3624
|
});
|
|
3720
3625
|
});
|
|
3721
3626
|
addGlobalFlags(config.command("set <key> <value>")).description("Set a config value (decimal USD accepted for spend keys)").action(async function(key, value) {
|
|
3722
3627
|
await runCommand("config.set", this, async (ctx) => {
|
|
3723
|
-
const { runConfigSet } = await import("./config-
|
|
3628
|
+
const { runConfigSet } = await import("./config-CNK7MYUR.js");
|
|
3724
3629
|
return runConfigSet({ key, value }, ctx);
|
|
3725
3630
|
});
|
|
3726
3631
|
});
|
|
@@ -3733,19 +3638,19 @@ function buildProgram(io, setExit) {
|
|
|
3733
3638
|
).action(async function() {
|
|
3734
3639
|
await runCommand("wallet.create", this, async (ctx) => {
|
|
3735
3640
|
const o = this.opts();
|
|
3736
|
-
const { runWalletCreate } = await import("./wallet-
|
|
3641
|
+
const { runWalletCreate } = await import("./wallet-TZVD2M4I.js");
|
|
3737
3642
|
return runWalletCreate(ctx, o.replace === true ? { replace: true } : {});
|
|
3738
3643
|
});
|
|
3739
3644
|
});
|
|
3740
3645
|
addGlobalFlags(wallet.command("show")).description("Show the wallet address and key source (never the key)").action(async function() {
|
|
3741
3646
|
await runCommand("wallet.show", this, async (ctx) => {
|
|
3742
|
-
const { runWalletShow } = await import("./wallet-
|
|
3647
|
+
const { runWalletShow } = await import("./wallet-TZVD2M4I.js");
|
|
3743
3648
|
return runWalletShow(ctx);
|
|
3744
3649
|
});
|
|
3745
3650
|
});
|
|
3746
3651
|
addGlobalFlags(wallet.command("balance")).description("Show the wallet USDC balance on Base").action(async function() {
|
|
3747
3652
|
await runCommand("wallet.balance", this, async (ctx) => {
|
|
3748
|
-
const { runWalletBalance } = await import("./wallet-
|
|
3653
|
+
const { runWalletBalance } = await import("./wallet-TZVD2M4I.js");
|
|
3749
3654
|
return runWalletBalance(ctx);
|
|
3750
3655
|
});
|
|
3751
3656
|
});
|
|
@@ -3757,7 +3662,7 @@ function buildProgram(io, setExit) {
|
|
|
3757
3662
|
).action(async function(amountUsd) {
|
|
3758
3663
|
await runCommand("fund", this, async (ctx) => {
|
|
3759
3664
|
const o = this.opts();
|
|
3760
|
-
const { runFund } = await import("./fund-
|
|
3665
|
+
const { runFund } = await import("./fund-JF6A76YS.js");
|
|
3761
3666
|
return runFund(ctx, {
|
|
3762
3667
|
...amountUsd !== void 0 ? { amountUsd } : {},
|
|
3763
3668
|
...o.open === false ? { open: false } : {},
|
|
@@ -3770,7 +3675,7 @@ function buildProgram(io, setExit) {
|
|
|
3770
3675
|
).option("--yes", "skip the interactive confirm (required to send when not at a TTY)").action(async function(amount, token, to) {
|
|
3771
3676
|
await runCommand("send", this, async (ctx) => {
|
|
3772
3677
|
const o = this.opts();
|
|
3773
|
-
const { runSend } = await import("./send-
|
|
3678
|
+
const { runSend } = await import("./send-SI254H3R.js");
|
|
3774
3679
|
return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
|
|
3775
3680
|
});
|
|
3776
3681
|
});
|
|
@@ -3779,7 +3684,7 @@ function buildProgram(io, setExit) {
|
|
|
3779
3684
|
).option("--max-price <usd>", "only candidates at or below this decimal-USD price").option("--fresh-within <window>", "freshness window, e.g. P30D, P2W, P1Y").option("--limit <n>", "maximum candidates (1-10, default 5)").option("--applies-to <pair>", "applicability filter key=value (repeatable)", collect, []).action(async function(question) {
|
|
3780
3685
|
await runCommand("search", this, async (ctx) => {
|
|
3781
3686
|
const o = this.opts();
|
|
3782
|
-
const { runSearch } = await import("./search-
|
|
3687
|
+
const { runSearch } = await import("./search-JVOHEF3E.js");
|
|
3783
3688
|
return runSearch(
|
|
3784
3689
|
{
|
|
3785
3690
|
question,
|
|
@@ -3796,7 +3701,7 @@ function buildProgram(io, setExit) {
|
|
|
3796
3701
|
"Show a candidate's pre-purchase card / preview. Use after search, before buy, to check price, scope, and freshness; it never pays"
|
|
3797
3702
|
).action(async function(resource) {
|
|
3798
3703
|
await runCommand("inspect", this, async (ctx) => {
|
|
3799
|
-
const { runInspect } = await import("./inspect-
|
|
3704
|
+
const { runInspect } = await import("./inspect-NFNAA4LA.js");
|
|
3800
3705
|
return runInspect({ ref: resource }, ctx);
|
|
3801
3706
|
});
|
|
3802
3707
|
});
|
|
@@ -3808,7 +3713,7 @@ function buildProgram(io, setExit) {
|
|
|
3808
3713
|
).action(async function(resource) {
|
|
3809
3714
|
await runCommand("read", this, async (ctx) => {
|
|
3810
3715
|
const o = this.opts();
|
|
3811
|
-
const { runRead } = await import("./read-
|
|
3716
|
+
const { runRead } = await import("./read-UF7QVQOU.js");
|
|
3812
3717
|
return runRead(
|
|
3813
3718
|
{
|
|
3814
3719
|
ref: resource,
|
|
@@ -3829,7 +3734,7 @@ function buildProgram(io, setExit) {
|
|
|
3829
3734
|
).option("--scope <scope>", "session scope; this version mints `read` only (default: read)").action(async function() {
|
|
3830
3735
|
await runCommand("session.start", this, async (ctx) => {
|
|
3831
3736
|
const o = this.opts();
|
|
3832
|
-
const { runSessionStart } = await import("./session-
|
|
3737
|
+
const { runSessionStart } = await import("./session-GJZJEXLJ.js");
|
|
3833
3738
|
return runSessionStart(typeof o.scope === "string" ? { scope: o.scope } : {}, ctx);
|
|
3834
3739
|
});
|
|
3835
3740
|
});
|
|
@@ -3841,7 +3746,7 @@ function buildProgram(io, setExit) {
|
|
|
3841
3746
|
).action(async function(resource) {
|
|
3842
3747
|
await runCommand("buy", this, async (ctx) => {
|
|
3843
3748
|
const o = this.opts();
|
|
3844
|
-
const { runBuy } = await import("./buy-
|
|
3749
|
+
const { runBuy } = await import("./buy-X4VPHFUA.js");
|
|
3845
3750
|
return runBuy(
|
|
3846
3751
|
{
|
|
3847
3752
|
ref: resource,
|
|
@@ -3865,7 +3770,7 @@ function buildProgram(io, setExit) {
|
|
|
3865
3770
|
).option("--question <text>", "a question this piece answers (repeatable)", collect, []).option("--task <text>", "a task this piece supports (repeatable)", collect, []).option("--scope <text>", "what the piece covers (card scope)").option("--exclusions <text>", "what the piece does not cover (card exclusions)").option("--applies-to <pair>", "applicability key=value (repeatable)", collect, []).option("--as-of <iso>", "as-of timestamp, ISO-8601 with offset").option("--valid-until <iso>", "valid-until timestamp, ISO-8601 with offset").option("--artifact-type <type>", "document | skill | dataset").option("--temporal-mode <mode>", "snapshot | maintained | evergreen").option("--provenance <text>", "provenance summary (card)").option("--methodology <text>", "methodology summary (card)").action(async function(file) {
|
|
3866
3771
|
await runCommand("publish", this, async (ctx) => {
|
|
3867
3772
|
const o = this.opts();
|
|
3868
|
-
const { runPublish } = await import("./publish-
|
|
3773
|
+
const { runPublish } = await import("./publish-O2I6IAEL.js");
|
|
3869
3774
|
return runPublish(
|
|
3870
3775
|
{
|
|
3871
3776
|
...typeof file === "string" ? { file } : {},
|
|
@@ -3921,7 +3826,7 @@ function buildProgram(io, setExit) {
|
|
|
3921
3826
|
).action(async function(postId) {
|
|
3922
3827
|
await runCommand("edit", this, async (ctx) => {
|
|
3923
3828
|
const o = this.opts();
|
|
3924
|
-
const { runEdit } = await import("./edit-
|
|
3829
|
+
const { runEdit } = await import("./edit-QSUEG7CL.js");
|
|
3925
3830
|
return runEdit(
|
|
3926
3831
|
{
|
|
3927
3832
|
postId,
|
|
@@ -3961,7 +3866,7 @@ function buildProgram(io, setExit) {
|
|
|
3961
3866
|
).option("--resource <id>", "the resourceId the outcome concerns").option("--content-hash <hash>", "sha256:<64hex> of the exact body read").action(async function() {
|
|
3962
3867
|
await runCommand("outcome", this, async (ctx) => {
|
|
3963
3868
|
const o = this.opts();
|
|
3964
|
-
const { runOutcome } = await import("./outcome-
|
|
3869
|
+
const { runOutcome } = await import("./outcome-IUSYFJTN.js");
|
|
3965
3870
|
return runOutcome(
|
|
3966
3871
|
{
|
|
3967
3872
|
status: String(o.status),
|
|
@@ -3976,7 +3881,7 @@ function buildProgram(io, setExit) {
|
|
|
3976
3881
|
});
|
|
3977
3882
|
addGlobalFlags(program2.command("mcp")).description("Run a local stdio MCP server exposing the Tenjin command cores to an MCP client").action(async function() {
|
|
3978
3883
|
const ctx = buildContext(this, io);
|
|
3979
|
-
const { runMcpServer } = await import("./run-
|
|
3884
|
+
const { runMcpServer } = await import("./run-GDZWHNWZ.js");
|
|
3980
3885
|
await runMcpServer({ dataDir: ctx.dataDir, flags: ctx.flags });
|
|
3981
3886
|
});
|
|
3982
3887
|
return program2;
|
|
@@ -4018,4 +3923,4 @@ export {
|
|
|
4018
3923
|
buildProgram,
|
|
4019
3924
|
main
|
|
4020
3925
|
};
|
|
4021
|
-
//# sourceMappingURL=cli-
|
|
3926
|
+
//# sourceMappingURL=cli-XK5JZWU6.js.map
|