@darkrymit/crunes-cli 0.11.2 → 0.12.0
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 +3 -2
- package/dist/chunks/{add-2OM5KGN5.js → add-GDF3XEGN.js} +12 -12
- package/dist/chunks/{add-A3LBMDLN.js → add-MNDSEEY5.js} +4 -4
- package/dist/chunks/{apply-GBUQQ4XF.js → apply-GDTGTBPD.js} +86 -47
- package/dist/chunks/{args-KBPMNKBI.js → args-7MIRCGUZ.js} +1 -1
- package/dist/chunks/{args-repl-TX3YWUOO.js → args-repl-PDGDJH54.js} +1 -1
- package/dist/chunks/{banner-repl-DD22Z33A.js → banner-repl-KVAVC7QA.js} +1 -1
- package/dist/chunks/{benchmark-5OWBATUN.js → benchmark-2TVN6HDF.js} +22 -22
- package/dist/chunks/{browse-OJVZOMJ7.js → browse-UZOZP72E.js} +4 -4
- package/dist/chunks/{chunk-EHKFHILS.js → chunk-3VFNNPQI.js} +8 -8
- package/dist/chunks/{chunk-WE4HDHFU.js → chunk-4SZGKHSW.js} +2 -8
- package/dist/chunks/{chunk-2Q3KLBE6.js → chunk-7YY3GPPK.js} +1 -1
- package/dist/chunks/{chunk-WCODTMDN.js → chunk-AFAVAB5Q.js} +1 -1
- package/dist/chunks/{chunk-JBQXPW7P.js → chunk-ATI5HNNC.js} +9 -9
- package/dist/chunks/{chunk-7KYCYDAS.js → chunk-BAIIJ4OC.js} +2 -2
- package/dist/chunks/{chunk-UBCAZGLE.js → chunk-BK4WG54O.js} +1 -1
- package/dist/chunks/{chunk-MVCBPI4J.js → chunk-C2JSNCGY.js} +4 -4
- package/dist/chunks/{chunk-I6MHDUCW.js → chunk-C3SYWLAV.js} +1 -1
- package/dist/chunks/{chunk-4GJMCFR6.js → chunk-CBWT3DFR.js} +2 -2
- package/dist/chunks/{chunk-FIAFVIAN.js → chunk-CEQBF5LN.js} +2 -2
- package/dist/chunks/{chunk-55GTJG5I.js → chunk-DR6PVO72.js} +1 -1
- package/dist/chunks/{chunk-VP7YLCQP.js → chunk-ESXRY4PQ.js} +2 -2
- package/dist/chunks/{chunk-TPK5AGRA.js → chunk-FATG2PA7.js} +3 -0
- package/dist/chunks/{chunk-G4ZAUHHA.js → chunk-FQTZPGA3.js} +1 -1
- package/dist/chunks/{chunk-KQMTTEJV.js → chunk-GABVYS5O.js} +7 -7
- package/dist/chunks/{chunk-M66PQTTU.js → chunk-GBUZOC3O.js} +1 -1
- package/dist/chunks/{chunk-DMMC4X27.js → chunk-HIKE52GN.js} +1 -1
- package/dist/chunks/{chunk-MUWDZJN2.js → chunk-HQUMVDQE.js} +14 -6
- package/dist/chunks/{chunk-UEUUOAJY.js → chunk-HYPUZ5DT.js} +2 -2
- package/dist/chunks/{chunk-E7CZPAM2.js → chunk-J33GQMPV.js} +3 -3
- package/dist/chunks/chunk-KP4EW2DS.js +75494 -0
- package/dist/chunks/{chunk-EO3CSXWK.js → chunk-OV4WBJT3.js} +1 -1
- package/dist/chunks/{create-3TDAFVL2.js → chunk-PBQDFAR4.js} +17 -18
- package/dist/chunks/{chunk-CGZL5SSH.js → chunk-PRCVJ727.js} +1 -1
- package/dist/chunks/{chunk-GVMT55GH.js → chunk-Q6K5MEDF.js} +3 -3
- package/dist/chunks/{chunk-MOAQLHP2.js → chunk-QAP63JIK.js} +13 -13
- package/dist/chunks/{chunk-MIKWIFYR.js → chunk-RQ6KHY6W.js} +3 -3
- package/dist/chunks/{chunk-MYYP3AVF.js → chunk-THGPCLJD.js} +11 -11
- package/dist/chunks/{chunk-WJII3LZK.js → chunk-TR5W5JE3.js} +3 -3
- package/dist/chunks/{chunk-2DNYVKBF.js → chunk-UKAIACRQ.js} +3 -3
- package/dist/chunks/{chunk-MTJ2KW3V.js → chunk-V2VVG44B.js} +2 -2
- package/dist/chunks/{chunk-3KKRNQQU.js → chunk-YUI5RTLD.js} +5 -5
- package/dist/chunks/{chunk-AWQ3C7MQ.js → chunk-Z4W3ZDFC.js} +3 -3
- package/dist/chunks/{trust-LXXYSF6W.js → chunk-ZLIG4RAI.js} +26 -26
- package/dist/chunks/{chunk-2HM5Q52B.js → chunk-ZT4QFTQM.js} +1 -1
- package/dist/chunks/{clear-AT7HNUV4.js → clear-KED3XRNY.js} +4 -4
- package/dist/chunks/{commands-repl-IPLJ4M7X.js → commands-repl-OFAUVITP.js} +1 -1
- package/dist/chunks/{complete-input-repl-IDSCMRYL.js → complete-input-repl-XD647MKR.js} +1 -1
- package/dist/chunks/{completions-2MSEWWTG.js → completions-RIIPQ7NM.js} +1 -1
- package/dist/chunks/{create-2CQZF53Z.js → create-4DEH53O6.js} +37 -20
- package/dist/chunks/{create-EC6TQW7N.js → create-YLXRZQXI.js} +22 -11
- package/dist/chunks/create-ZWBV7PPT.js +24 -0
- package/dist/chunks/{delete-GKYA2W5Z.js → delete-BGP2NUPV.js} +6 -6
- package/dist/chunks/{delete-2EXPFBFC.js → delete-DLSVAHJ2.js} +5 -5
- package/dist/chunks/{delete-MJAECXXV.js → delete-JYWT7AQ2.js} +5 -5
- package/dist/chunks/{disable-FB64CSYV.js → disable-QLB4FZOF.js} +7 -7
- package/dist/chunks/{doctor-WXTY6RGK.js → doctor-SXKAEYUF.js} +21 -21
- package/dist/chunks/{enable-UVXHTKCJ.js → enable-D5BM5VZ7.js} +8 -8
- package/dist/chunks/{esm-7MEWZCHY.js → esm-O4JK7OBM.js} +1 -1
- package/dist/chunks/{globals-SNQFCHMP.js → globals-3P5SNZ7F.js} +2 -2
- package/dist/chunks/{init-GPNC7TR5.js → init-EY5R26HE.js} +12 -11
- package/dist/chunks/{input-repl-ZBH6FVPV.js → input-repl-LTB6JXUE.js} +1 -1
- package/dist/chunks/{install-QV6BNZZE.js → install-FSJAC3CL.js} +17 -17
- package/dist/chunks/{intro-3FSOGWPR.js → intro-PN7LT6ZG.js} +15 -15
- package/dist/chunks/{kill-TX3PC73P.js → kill-Z7ZDY5MB.js} +3 -3
- package/dist/chunks/{list-EHREZR6M.js → list-45SHVKXO.js} +3 -3
- package/dist/chunks/{list-JUGL5ZKG.js → list-6R5TGCR5.js} +4 -4
- package/dist/chunks/{list-V7VVD5AG.js → list-7QPSR4Z4.js} +3 -3
- package/dist/chunks/{list-VA73WPK6.js → list-CS2WYC2Z.js} +4 -4
- package/dist/chunks/{list-W4JAYPAA.js → list-THRLETUN.js} +16 -16
- package/dist/chunks/{list-J2UCBYAY.js → list-U44ZZ3NZ.js} +13 -15
- package/dist/chunks/{list-JB4447YK.js → list-WFMSED5O.js} +10 -10
- package/dist/chunks/{list-LC6HB3H3.js → list-WXOQXVZS.js} +4 -4
- package/dist/chunks/manifest-6KLIS7BL.js +11 -0
- package/dist/chunks/output-JVJFXQPF.js +15 -0
- package/dist/chunks/{promise-DUSIQMA2.js → promise-7HBDOM4R.js} +1 -1
- package/dist/chunks/{query-2US3CPYT.js → query-JFLHSVT5.js} +4 -4
- package/dist/chunks/{registry-IWP7JMNI.js → registry-WABBYKKE.js} +3 -3
- package/dist/chunks/{remove-AG7ELQUM.js → remove-Y7T3AQA4.js} +4 -4
- package/dist/chunks/{repl-2YWTHUWT.js → repl-I4WMXNU3.js} +1 -1
- package/dist/chunks/{repl-32TENE2U.js → repl-PSADU3MJ.js} +24 -24
- package/dist/chunks/resolver-YEUZSOS4.js +36 -0
- package/dist/chunks/run-CYGL3HTA.js +35 -0
- package/dist/chunks/{run-Y4TG3EM3.js → run-EBOKEJQ3.js} +1 -1
- package/dist/chunks/{rune-TSED6W3R.js → rune-OQX5EYSQ.js} +52 -39
- package/dist/chunks/runner-VUSHR2OR.js +36 -0
- package/dist/chunks/{search-P2MEUBIM.js → search-3QFC4Y4I.js} +4 -4
- package/dist/chunks/{shell-explain-LKBBP2BG.js → shell-explain-UHWQ6NTV.js} +8 -8
- package/dist/chunks/trust-7GU7ODWL.js +20 -0
- package/dist/chunks/{uninstall-FZ6NHXUL.js → uninstall-MSCIWDWV.js} +16 -16
- package/dist/chunks/{unset-P6IUF7SS.js → unset-OIGQO2WL.js} +4 -4
- package/dist/chunks/{update-CK3SSL7M.js → update-4UGPDB56.js} +4 -4
- package/dist/chunks/{update-X7QN4KAQ.js → update-IHCYA3JW.js} +17 -17
- package/dist/chunks/{utils-VVD4VCTC.js → utils-DJ3BXOQC.js} +5 -5
- package/dist/chunks/{version-VOGJQFLH.js → version-QBWEJ45I.js} +4 -4
- package/dist/cli.js +65 -65
- package/package.json +1 -1
- package/dist/chunks/chunk-AG4PDJSY.js +0 -9613
- package/dist/chunks/manifest-76MIEL2F.js +0 -11
- package/dist/chunks/output-QN5CVJ62.js +0 -15
- package/dist/chunks/resolver-WN4HKKBV.js +0 -36
- package/dist/chunks/run-WD2ZA63Z.js +0 -35
- package/dist/chunks/runner-KA3YHICN.js +0 -36
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
describeForReview,
|
|
3
|
+
handler,
|
|
4
|
+
scriptLines
|
|
5
|
+
} from "./chunk-ZLIG4RAI.js";
|
|
6
|
+
import "./chunk-PRCVJ727.js";
|
|
7
|
+
import "./chunk-HQUMVDQE.js";
|
|
8
|
+
import "./chunk-BK4WG54O.js";
|
|
9
|
+
import "./chunk-V2VVG44B.js";
|
|
10
|
+
import "./chunk-CEQBF5LN.js";
|
|
11
|
+
import "./chunk-ESXRY4PQ.js";
|
|
12
|
+
import "./chunk-4SZGKHSW.js";
|
|
13
|
+
import "./chunk-7YY3GPPK.js";
|
|
14
|
+
import "./chunk-DR6PVO72.js";
|
|
15
|
+
import "./chunk-FATG2PA7.js";
|
|
16
|
+
export {
|
|
17
|
+
describeForReview,
|
|
18
|
+
handler,
|
|
19
|
+
scriptLines
|
|
20
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
uninstallPlugin
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-THGPCLJD.js";
|
|
4
|
+
import "./chunk-GBUZOC3O.js";
|
|
5
|
+
import "./chunk-J33GQMPV.js";
|
|
6
6
|
import {
|
|
7
7
|
output
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RQ6KHY6W.js";
|
|
9
9
|
import {
|
|
10
10
|
R,
|
|
11
11
|
le
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PRCVJ727.js";
|
|
13
|
+
import "./chunk-AFAVAB5Q.js";
|
|
14
|
+
import "./chunk-HQUMVDQE.js";
|
|
15
|
+
import "./chunk-YUI5RTLD.js";
|
|
16
|
+
import "./chunk-BK4WG54O.js";
|
|
17
17
|
import {
|
|
18
18
|
loadRegistry,
|
|
19
19
|
resolvePluginKey
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-V2VVG44B.js";
|
|
21
|
+
import "./chunk-CEQBF5LN.js";
|
|
22
|
+
import "./chunk-ESXRY4PQ.js";
|
|
23
|
+
import "./chunk-4SZGKHSW.js";
|
|
24
|
+
import "./chunk-7YY3GPPK.js";
|
|
25
|
+
import "./chunk-DR6PVO72.js";
|
|
26
26
|
import {
|
|
27
27
|
init_require_shim
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FATG2PA7.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/commands/uninstall.js
|
|
31
31
|
init_require_shim();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteCacheKey
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TR5W5JE3.js";
|
|
4
|
+
import "./chunk-FQTZPGA3.js";
|
|
5
|
+
import "./chunk-7YY3GPPK.js";
|
|
6
6
|
import {
|
|
7
7
|
init_require_shim
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FATG2PA7.js";
|
|
9
9
|
|
|
10
10
|
// src/cache/commands/unset.js
|
|
11
11
|
init_require_shim();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listMarketplaces,
|
|
3
3
|
updateMarketplace
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-Z4W3ZDFC.js";
|
|
5
|
+
import "./chunk-GBUZOC3O.js";
|
|
6
|
+
import "./chunk-7YY3GPPK.js";
|
|
7
7
|
import {
|
|
8
8
|
init_require_shim
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FATG2PA7.js";
|
|
10
10
|
|
|
11
11
|
// src/marketplace/commands/update.js
|
|
12
12
|
init_require_shim();
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFromMarketplace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z4W3ZDFC.js";
|
|
4
4
|
import {
|
|
5
5
|
installPlugin
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-THGPCLJD.js";
|
|
7
|
+
import "./chunk-GBUZOC3O.js";
|
|
8
|
+
import "./chunk-J33GQMPV.js";
|
|
9
9
|
import {
|
|
10
10
|
output
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-RQ6KHY6W.js";
|
|
12
|
+
import "./chunk-PRCVJ727.js";
|
|
13
|
+
import "./chunk-AFAVAB5Q.js";
|
|
14
|
+
import "./chunk-HQUMVDQE.js";
|
|
15
|
+
import "./chunk-YUI5RTLD.js";
|
|
16
|
+
import "./chunk-BK4WG54O.js";
|
|
17
17
|
import {
|
|
18
18
|
loadRegistry,
|
|
19
19
|
resolvePluginKey
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-V2VVG44B.js";
|
|
21
|
+
import "./chunk-CEQBF5LN.js";
|
|
22
|
+
import "./chunk-ESXRY4PQ.js";
|
|
23
|
+
import "./chunk-4SZGKHSW.js";
|
|
24
|
+
import "./chunk-7YY3GPPK.js";
|
|
25
|
+
import "./chunk-DR6PVO72.js";
|
|
26
26
|
import {
|
|
27
27
|
init_require_shim
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FATG2PA7.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/commands/update.js
|
|
31
31
|
init_require_shim();
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatNode,
|
|
6
6
|
walk
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C3SYWLAV.js";
|
|
8
8
|
import {
|
|
9
9
|
output
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RQ6KHY6W.js";
|
|
11
|
+
import "./chunk-PRCVJ727.js";
|
|
12
|
+
import "./chunk-AFAVAB5Q.js";
|
|
13
13
|
import {
|
|
14
14
|
init_require_shim
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FATG2PA7.js";
|
|
16
16
|
|
|
17
17
|
// src/docs/commands/utils.js
|
|
18
18
|
init_require_shim();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AFAVAB5Q.js";
|
|
4
4
|
import {
|
|
5
5
|
getStorePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7YY3GPPK.js";
|
|
7
7
|
import {
|
|
8
8
|
init_require_shim
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FATG2PA7.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/version.js
|
|
12
12
|
init_require_shim();
|
|
@@ -16,7 +16,7 @@ import path from "node:path";
|
|
|
16
16
|
// package.json
|
|
17
17
|
var package_default = {
|
|
18
18
|
name: "@darkrymit/crunes-cli",
|
|
19
|
-
version: "0.
|
|
19
|
+
version: "0.12.0",
|
|
20
20
|
description: "CLI tool for querying crunes enrichers",
|
|
21
21
|
type: "module",
|
|
22
22
|
bin: {
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
configure
|
|
4
|
-
} from "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-RQ6KHY6W.js";
|
|
5
|
+
import "./chunks/chunk-PRCVJ727.js";
|
|
6
|
+
import "./chunks/chunk-AFAVAB5Q.js";
|
|
7
7
|
import {
|
|
8
8
|
init_require_shim
|
|
9
|
-
} from "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-FATG2PA7.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/cli.js
|
|
12
12
|
init_require_shim();
|
|
@@ -3397,7 +3397,7 @@ var program = new Command();
|
|
|
3397
3397
|
// src/cli/program.js
|
|
3398
3398
|
function buildProgram() {
|
|
3399
3399
|
const program3 = new Command();
|
|
3400
|
-
program3.name("crunes").description("CLI tool for managing context runes").version("0.
|
|
3400
|
+
program3.name("crunes").description("CLI tool for managing context runes").version("0.12.0", "-v, --version").enablePositionalOptions().option("-y, --yes", "assume yes to all prompts and skip interactive mode (also auto-detected in non-TTY environments)").option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").option("--cwd <path>", "project root to use instead of the current working directory").option("--ccd <path>", "config directory \u2014 where .crunes/config.json and local rune files live (default: --cwd)").option("--verbose", "print full error stack traces and other verbose output");
|
|
3401
3401
|
program3.hook("preAction", (_thisCommand, actionCommand) => {
|
|
3402
3402
|
const opts = { ...program3.opts(), ...actionCommand.opts() };
|
|
3403
3403
|
configure({ plain: !!opts.plain, verbose: !!opts.verbose });
|
|
@@ -3417,7 +3417,7 @@ function buildProgram() {
|
|
|
3417
3417
|
"after",
|
|
3418
3418
|
'\nImportant: Global flags (e.g. --cwd) MUST appear before the "run" command.\n\nSyntax:\n [run-flags] <key>[-s s1,s2] [rune-args...]\n -b [run-flags] <key1>[-s s1] [rune-args1] + <key2>[-s s2] [rune-args2]\n\nCommand flags:\n -b, --batch enable batching multiple runes with +\n --format text|jsonl output format (default: text)\n --fail-fast stop on first error\n\nPer-rune bracket flags (inside key[...]):\n -s, --section s1,s2 filter output sections for this rune\n\nKey prefixes:\n project:name resolve from project config only\n plugin:name resolve directly from an enabled plugin\n name auto-resolve: project config first, then plugins\n\nFor rune argument documentation: crunes docs rune <key>'
|
|
3419
3419
|
).allowUnknownOption().passThroughOptions().action(async (args, _opts, _command) => {
|
|
3420
|
-
const { handler, parseRunArgs } = await import("./chunks/run-
|
|
3420
|
+
const { handler, parseRunArgs } = await import("./chunks/run-CYGL3HTA.js");
|
|
3421
3421
|
const { segments, format, failFast, isBatch } = parseRunArgs(args);
|
|
3422
3422
|
await handler({ segments, format, failFast, isBatch, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3423
3423
|
});
|
|
@@ -3425,7 +3425,7 @@ function buildProgram() {
|
|
|
3425
3425
|
"after",
|
|
3426
3426
|
'\nImportant: Global flags (e.g. --cwd) MUST appear before the "repl" command.\n\nSyntax:\n [--format text|jsonl] <key>[-s s1,s2] [rune-args...]\n\nPer-rune bracket flags (inside key[...]):\n -s, --section s1,s2 filter output sections for this rune\n\nThe rune must export repl(args) and/or inputRepl(input).\nFor rune argument documentation: crunes docs rune <key>'
|
|
3427
3427
|
).allowUnknownOption().passThroughOptions().action(async (args, _opts, _command) => {
|
|
3428
|
-
const { handler, parseReplArgs } = await import("./chunks/repl-
|
|
3428
|
+
const { handler, parseReplArgs } = await import("./chunks/repl-PSADU3MJ.js");
|
|
3429
3429
|
const { key, runeArgs, sections, format } = parseReplArgs(args);
|
|
3430
3430
|
await handler({ key, runeArgs, sections, format, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3431
3431
|
});
|
|
@@ -3434,238 +3434,238 @@ function buildProgram() {
|
|
|
3434
3434
|
"after",
|
|
3435
3435
|
"\n crunes docs rune index of every rune and its commands\n crunes docs rune <key> command index for one rune\n crunes docs rune <key> <cmd>... detail for one command path\n"
|
|
3436
3436
|
).addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (key, path3, opts) => {
|
|
3437
|
-
const { handler } = await import("./chunks/rune-
|
|
3437
|
+
const { handler } = await import("./chunks/rune-OQX5EYSQ.js");
|
|
3438
3438
|
await handler({ key, path: path3, format: opts.format, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3439
3439
|
});
|
|
3440
3440
|
helpGroup.command("utils [namespaces...]").description("Show function signatures and parameter docs for utils.* namespaces").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (namespaces, opts) => {
|
|
3441
|
-
const { handler } = await import("./chunks/utils-
|
|
3441
|
+
const { handler } = await import("./chunks/utils-DJ3BXOQC.js");
|
|
3442
3442
|
await handler({ namespaces, format: opts.format });
|
|
3443
3443
|
});
|
|
3444
3444
|
helpGroup.command("globals").description("Show injected sandbox globals and ES2020 builtins available in rune scripts").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (opts) => {
|
|
3445
|
-
const { handler } = await import("./chunks/globals-
|
|
3445
|
+
const { handler } = await import("./chunks/globals-3P5SNZ7F.js");
|
|
3446
3446
|
await handler({ format: opts.format });
|
|
3447
3447
|
});
|
|
3448
3448
|
helpGroup.command("intro").description("Generate a comprehensive introduction to Crunes: rune anatomy, calling conventions, config, permissions and the full @utils API. Generic \u2014 for this project's own runes use `crunes list` and `crunes docs rune`").option("--out <path>", "output file path (defaults to stdout)").action(async (opts) => {
|
|
3449
|
-
const { handler } = await import("./chunks/intro-
|
|
3449
|
+
const { handler } = await import("./chunks/intro-PN7LT6ZG.js");
|
|
3450
3450
|
await handler({ out: opts.out });
|
|
3451
3451
|
});
|
|
3452
3452
|
helpGroup.command("args").description("Show detailed documentation, conventions, and examples for the args(builder) export").action(async () => {
|
|
3453
|
-
const { handler } = await import("./chunks/args-
|
|
3453
|
+
const { handler } = await import("./chunks/args-7MIRCGUZ.js");
|
|
3454
3454
|
await handler();
|
|
3455
3455
|
});
|
|
3456
3456
|
helpGroup.command("run").description("Show detailed documentation, conventions, and examples for the run(args) export").action(async () => {
|
|
3457
|
-
const { handler } = await import("./chunks/run-
|
|
3457
|
+
const { handler } = await import("./chunks/run-EBOKEJQ3.js");
|
|
3458
3458
|
await handler();
|
|
3459
3459
|
});
|
|
3460
3460
|
helpGroup.command("repl").description("Show detailed documentation, conventions, and examples for the repl(args) export").action(async () => {
|
|
3461
|
-
const { handler } = await import("./chunks/repl-
|
|
3461
|
+
const { handler } = await import("./chunks/repl-I4WMXNU3.js");
|
|
3462
3462
|
await handler();
|
|
3463
3463
|
});
|
|
3464
3464
|
helpGroup.command("args-repl").description("Show detailed documentation, conventions, and examples for the argsRepl(builder) export").action(async () => {
|
|
3465
|
-
const { handler } = await import("./chunks/args-repl-
|
|
3465
|
+
const { handler } = await import("./chunks/args-repl-PDGDJH54.js");
|
|
3466
3466
|
await handler();
|
|
3467
3467
|
});
|
|
3468
3468
|
helpGroup.command("banner-repl").description("Show detailed documentation and examples for the bannerRepl(args) export").action(async () => {
|
|
3469
|
-
const { handler } = await import("./chunks/banner-repl-
|
|
3469
|
+
const { handler } = await import("./chunks/banner-repl-KVAVC7QA.js");
|
|
3470
3470
|
await handler();
|
|
3471
3471
|
});
|
|
3472
3472
|
helpGroup.command("commands-repl").description("Show detailed documentation and examples for the commandsRepl(builder) export").action(async () => {
|
|
3473
|
-
const { handler } = await import("./chunks/commands-repl-
|
|
3473
|
+
const { handler } = await import("./chunks/commands-repl-OFAUVITP.js");
|
|
3474
3474
|
await handler();
|
|
3475
3475
|
});
|
|
3476
3476
|
helpGroup.command("input-repl").description("Show detailed documentation and examples for the inputRepl(input) export").action(async () => {
|
|
3477
|
-
const { handler } = await import("./chunks/input-repl-
|
|
3477
|
+
const { handler } = await import("./chunks/input-repl-LTB6JXUE.js");
|
|
3478
3478
|
await handler();
|
|
3479
3479
|
});
|
|
3480
3480
|
helpGroup.command("complete-input-repl").description("Show detailed documentation and examples for the completeInputRepl(tokens) export").action(async () => {
|
|
3481
|
-
const { handler } = await import("./chunks/complete-input-repl-
|
|
3481
|
+
const { handler } = await import("./chunks/complete-input-repl-XD647MKR.js");
|
|
3482
3482
|
await handler();
|
|
3483
3483
|
});
|
|
3484
3484
|
program3.command("version").description("Print the installed version and check for updates").option("--no-check", "skip the npm update check").action(async (opts) => {
|
|
3485
|
-
const { handler } = await import("./chunks/version-
|
|
3485
|
+
const { handler } = await import("./chunks/version-QBWEJ45I.js");
|
|
3486
3486
|
await handler({ check: opts.check, plain: !!program3.opts().plain });
|
|
3487
3487
|
});
|
|
3488
3488
|
program3.command("doctor").description("Verify environment and project setup").option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").action(async () => {
|
|
3489
|
-
const { handler } = await import("./chunks/doctor-
|
|
3489
|
+
const { handler } = await import("./chunks/doctor-SXKAEYUF.js");
|
|
3490
3490
|
await handler({ projectRoot: projectRoot() });
|
|
3491
3491
|
});
|
|
3492
3492
|
program3.command("bench [args...]").description("Time rune execution and report fast, ok, or slow.").addHelpText(
|
|
3493
3493
|
"after",
|
|
3494
3494
|
'\nImportant: Global flags (e.g. --cwd) MUST appear before the "bench" command.\n\nSyntax:\n [--runs <n>] [--warmup] <key>[--runs <n>] [--warmup] [-s s1,s2] [rune-args...]\n\nCommand flags:\n -b, --batch enable batching multiple runes with +\n --format text|jsonl output format (default: text)\n --fail-fast stop on first error\n --runs <n> default number of runs for all runes (default: 1)\n --warmup default warmup run for all runes\n\nPer-rune bracket flags (inside key[...]):\n --runs <n> override run count for this rune\n --warmup override warmup for this rune\n -s, --section s1,s2 filter output sections for this rune'
|
|
3495
3495
|
).allowUnknownOption().passThroughOptions().action(async (args, _opts, _command) => {
|
|
3496
|
-
const { handler, parseBenchArgs } = await import("./chunks/benchmark-
|
|
3496
|
+
const { handler, parseBenchArgs } = await import("./chunks/benchmark-2TVN6HDF.js");
|
|
3497
3497
|
const parsed = parseBenchArgs(args);
|
|
3498
3498
|
if (!parsed.segments[0]?.key) {
|
|
3499
|
-
const { output } = await import("./chunks/output-
|
|
3499
|
+
const { output } = await import("./chunks/output-JVJFXQPF.js");
|
|
3500
3500
|
output.error("Missing required argument: <rune>");
|
|
3501
3501
|
process.exit(1);
|
|
3502
3502
|
}
|
|
3503
3503
|
await handler({ ...parsed, plain: !!program3.opts().plain, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3504
3504
|
});
|
|
3505
3505
|
program3.command("list").description("List all registered runes").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").option("-g, --global", "list only runes from the global config (~/.crunes/config.json)").action(async (opts) => {
|
|
3506
|
-
const { handler } = await import("./chunks/list-
|
|
3506
|
+
const { handler } = await import("./chunks/list-THRLETUN.js");
|
|
3507
3507
|
await handler({ format: opts.format, plain: !!program3.opts().plain || !!opts.plain, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3508
3508
|
});
|
|
3509
3509
|
const jobs = program3.command("job").description("Manage background jobs");
|
|
3510
3510
|
jobs.command("list").description("List background jobs for the current project").action(async () => {
|
|
3511
|
-
const { handler } = await import("./chunks/list-
|
|
3511
|
+
const { handler } = await import("./chunks/list-45SHVKXO.js");
|
|
3512
3512
|
await handler({ projectDir: projectRoot() });
|
|
3513
3513
|
});
|
|
3514
3514
|
jobs.command("kill <id>").description("Send SIGTERM to a background job and remove its record").action(async (id) => {
|
|
3515
|
-
const { handler } = await import("./chunks/kill-
|
|
3515
|
+
const { handler } = await import("./chunks/kill-Z7ZDY5MB.js");
|
|
3516
3516
|
await handler({ id, projectDir: projectRoot() });
|
|
3517
3517
|
});
|
|
3518
3518
|
const shell = program3.command("shell").description("Inspect how commands are parsed and permission-checked");
|
|
3519
3519
|
shell.command("explain <cmd>").description("Show the command positions and redirect targets a command resolves to").option("-s, --shell <mode>", "force a shell mode: 'bash' or 'cmd'").action(async (cmd, opts) => {
|
|
3520
|
-
const { handler } = await import("./chunks/shell-explain-
|
|
3520
|
+
const { handler } = await import("./chunks/shell-explain-UHWQ6NTV.js");
|
|
3521
3521
|
await handler({ cmd, shellMode: opts.shell });
|
|
3522
3522
|
});
|
|
3523
3523
|
const cache = program3.command("cache").description("Manage cache buckets");
|
|
3524
3524
|
cache.command("list").description("List cache buckets for the current project").option("-p, --plugin [pluginId]", "filter to plugin-related buckets; pass a value to match a specific plugin").action(async (opts) => {
|
|
3525
|
-
const { handler } = await import("./chunks/list-
|
|
3525
|
+
const { handler } = await import("./chunks/list-CS2WYC2Z.js");
|
|
3526
3526
|
await handler({ projectDir: projectRoot(), plugin: opts.plugin });
|
|
3527
3527
|
});
|
|
3528
3528
|
cache.command("clear <id>").description("Remove expired keys from a cache bucket").option("-p, --plugin [pluginId]", "filter to plugin-related buckets").action(async (id, opts) => {
|
|
3529
|
-
const { handler } = await import("./chunks/clear-
|
|
3529
|
+
const { handler } = await import("./chunks/clear-KED3XRNY.js");
|
|
3530
3530
|
await handler({ id, projectDir: projectRoot(), plugin: opts.plugin });
|
|
3531
3531
|
});
|
|
3532
3532
|
cache.command("delete <id>").description("Delete a cache bucket directory and deregister it").option("-p, --plugin [pluginId]", "filter to plugin-related buckets").action(async (id, opts) => {
|
|
3533
|
-
const { handler } = await import("./chunks/delete-
|
|
3533
|
+
const { handler } = await import("./chunks/delete-DLSVAHJ2.js");
|
|
3534
3534
|
await handler({ id, projectDir: projectRoot(), yes: !!program3.opts().yes, plugin: opts.plugin });
|
|
3535
3535
|
});
|
|
3536
3536
|
cache.command("unset <id> <key>").description("Remove a single key from a cache bucket").option("-p, --plugin [pluginId]", "filter to plugin-related buckets").action(async (id, key, opts) => {
|
|
3537
|
-
const { handler } = await import("./chunks/unset-
|
|
3537
|
+
const { handler } = await import("./chunks/unset-OIGQO2WL.js");
|
|
3538
3538
|
await handler({ id, key, projectDir: projectRoot(), plugin: opts.plugin });
|
|
3539
3539
|
});
|
|
3540
3540
|
const schema = program3.command("schema").description("Manage schema cache");
|
|
3541
3541
|
schema.command("list").description("List cached schemas for the current project").action(async () => {
|
|
3542
|
-
const { handler } = await import("./chunks/list-
|
|
3542
|
+
const { handler } = await import("./chunks/list-7QPSR4Z4.js");
|
|
3543
3543
|
await handler({ projectDir: projectRoot() });
|
|
3544
3544
|
});
|
|
3545
3545
|
schema.command("delete <rune-key>").description("Delete cached schema files for a rune key").action(async (runeKey) => {
|
|
3546
|
-
const { handler } = await import("./chunks/delete-
|
|
3546
|
+
const { handler } = await import("./chunks/delete-BGP2NUPV.js");
|
|
3547
3547
|
await handler({ runeKey, projectDir: projectRoot() });
|
|
3548
3548
|
});
|
|
3549
3549
|
const sqlite = program3.command("sqlite").description("Manage SQLite databases");
|
|
3550
3550
|
sqlite.command("list").description("List all registered SQLite databases").option("-p, --plugin [pluginId]", "filter to plugin-related databases; pass a value to match a specific plugin").action(async (opts) => {
|
|
3551
|
-
const { handler } = await import("./chunks/list-
|
|
3551
|
+
const { handler } = await import("./chunks/list-WXOQXVZS.js");
|
|
3552
3552
|
await handler({ projectDir: projectRoot(), plugin: opts.plugin });
|
|
3553
3553
|
});
|
|
3554
3554
|
sqlite.command("delete <id>").description("Delete a SQLite database file and deregister it").option("-p, --plugin [pluginId]", "filter to plugin-related databases").action(async (id, opts) => {
|
|
3555
|
-
const { handler } = await import("./chunks/delete-
|
|
3555
|
+
const { handler } = await import("./chunks/delete-JYWT7AQ2.js");
|
|
3556
3556
|
await handler({ id, yes: !!program3.opts().yes, projectDir: projectRoot(), plugin: opts.plugin });
|
|
3557
3557
|
});
|
|
3558
3558
|
sqlite.command("query <id> <sql>").description("Run a SQL query against a registered SQLite database (readonly)").option("-p, --plugin [pluginId]", "filter to plugin-related databases").action(async (id, sql, opts) => {
|
|
3559
|
-
const { handler } = await import("./chunks/query-
|
|
3559
|
+
const { handler } = await import("./chunks/query-JFLHSVT5.js");
|
|
3560
3560
|
await handler({ id, sql, projectDir: projectRoot(), plugin: opts.plugin });
|
|
3561
3561
|
});
|
|
3562
3562
|
program3.command("init").description("Create .crunes/config.json in the current project").option("-g, --global", "operate on the global config (~/.crunes/config.json) instead of the project").action(async (opts) => {
|
|
3563
|
-
const { handler } = await import("./chunks/init-
|
|
3563
|
+
const { handler } = await import("./chunks/init-EY5R26HE.js");
|
|
3564
3564
|
await handler({ yes: !!program3.opts().yes, projectRoot: projectRoot(), global: !!opts.global });
|
|
3565
3565
|
});
|
|
3566
3566
|
program3.command("create [new-rune]").description("Scaffold a new rune and register it in config").addOption(new Option("--format <format>", "rune output format").choices(["tree", "markdown"])).option("--path <path>", "file path for the rune (default: .crunes/runes/<key>/src/index.rune.js)").addOption(new Option("--lang <lang>", "scaffold a script rune instead of a sandboxed JS one").choices(["python", "bash", "node"])).option("--name <name>", "human-readable label shown in crunes list").option("--description <description>", "short description of what context this rune provides").option("-g, --global", "operate on the global config (~/.crunes/config.json) instead of the project").option("--plugin", "register the rune in .crunes-plugin/plugin.json instead of .crunes/config.json").option("--project", "register the rune in .crunes/config.json even when .crunes-plugin/plugin.json exists").action(async (key, opts) => {
|
|
3567
|
-
const { handler } = await import("./chunks/create-
|
|
3567
|
+
const { handler } = await import("./chunks/create-ZWBV7PPT.js");
|
|
3568
3568
|
await handler({ key, format: opts.format, lang: opts.lang, path: opts.path, name: opts.name, description: opts.description, yes: !!program3.opts().yes, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global, plugin: !!opts.plugin, project: !!opts.project });
|
|
3569
3569
|
});
|
|
3570
3570
|
program3.command("add <key> <command> [argv...]").description("Register an existing script or program as a rune (fixed arguments go after --)").option("--name <name>", "human-readable label shown in crunes list").option("--description <description>", "short description of what the rune does").option("-g, --global", "operate on the global config (~/.crunes/config.json) instead of the project").addHelpText("after", '\nExamples:\n crunes add coverage tools/coverage.py --description "Test coverage per module"\n crunes add log git -- log --oneline -n 20').action(async (key, command, argv, opts) => {
|
|
3571
|
-
const { handler } = await import("./chunks/add-
|
|
3571
|
+
const { handler } = await import("./chunks/add-GDF3XEGN.js");
|
|
3572
3572
|
await handler({ key, command, argv, name: opts.name, description: opts.description, configRoot: configRoot(), global: !!opts.global });
|
|
3573
3573
|
});
|
|
3574
3574
|
const plugin = program3.command("plugin").description("Manage rune plugins");
|
|
3575
3575
|
plugin.command("install <source>").description("Install a plugin from a configured marketplace in the format <marketplace>@<plugin>").option("-g, --global", "enable in the global config (~/.crunes/config.json) instead of the project").action(async (source, opts) => {
|
|
3576
|
-
const { handler } = await import("./chunks/install-
|
|
3576
|
+
const { handler } = await import("./chunks/install-FSJAC3CL.js");
|
|
3577
3577
|
await handler({ source, projectRoot: projectRoot(), configRoot: configRoot(), yes: !!program3.opts().yes, global: !!opts.global });
|
|
3578
3578
|
});
|
|
3579
3579
|
plugin.command("uninstall <plugin>").description("Uninstall an installed plugin").option("-g, --global", "also drop the plugin from the global config (~/.crunes/config.json)").action(async (name, opts) => {
|
|
3580
|
-
const { handler } = await import("./chunks/uninstall-
|
|
3580
|
+
const { handler } = await import("./chunks/uninstall-MSCIWDWV.js");
|
|
3581
3581
|
await handler({ name, yes: !!program3.opts().yes, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3582
3582
|
});
|
|
3583
3583
|
plugin.command("list").description("List installed plugins").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").action(async (opts) => {
|
|
3584
|
-
const { handler } = await import("./chunks/list-
|
|
3584
|
+
const { handler } = await import("./chunks/list-WFMSED5O.js");
|
|
3585
3585
|
await handler({ format: opts.format, projectRoot: projectRoot() });
|
|
3586
3586
|
});
|
|
3587
3587
|
plugin.command("update [plugin]").description("Update one or all installed plugins").action(async (name) => {
|
|
3588
|
-
const { handler } = await import("./chunks/update-
|
|
3588
|
+
const { handler } = await import("./chunks/update-IHCYA3JW.js");
|
|
3589
3589
|
await handler({ name, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3590
3590
|
});
|
|
3591
3591
|
plugin.command("trust <plugin> [rune]").description("Review a plugin's native runes \u2014 scripts that run outside the sandbox \u2014 and trust them to run").action(async (name, rune) => {
|
|
3592
|
-
const { handler } = await import("./chunks/trust-
|
|
3592
|
+
const { handler } = await import("./chunks/trust-7GU7ODWL.js");
|
|
3593
3593
|
await handler({ name, rune: rune ?? null, yes: !!program3.opts().yes });
|
|
3594
3594
|
});
|
|
3595
3595
|
plugin.command("enable <plugin>").description("Add a plugin to this project's enabled list").option("-g, --global", "enable in the global config (~/.crunes/config.json), for every directory").action(async (name, opts) => {
|
|
3596
|
-
const { handler } = await import("./chunks/enable-
|
|
3596
|
+
const { handler } = await import("./chunks/enable-D5BM5VZ7.js");
|
|
3597
3597
|
await handler({ name, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3598
3598
|
});
|
|
3599
3599
|
plugin.command("disable <plugin>").description("Turn a plugin off for this project, including one enabled globally").option("-g, --global", "disable in the global config (~/.crunes/config.json) instead of the project").action(async (name, opts) => {
|
|
3600
|
-
const { handler } = await import("./chunks/disable-
|
|
3600
|
+
const { handler } = await import("./chunks/disable-QLB4FZOF.js");
|
|
3601
3601
|
await handler({ name, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3602
3602
|
});
|
|
3603
3603
|
plugin.command("create [new-plugin]").description("Scaffold a new plugin directory with all required files").option("--description <text>", "short description for plugin.json and marketplace.json").option("--author <name>", "author name (default: git config user.name)").option("--license <spdx>", "SPDX license identifier (default: MIT)").option("--out <path>", "output directory (default: ./<name>)").option("--multi", "scaffold under runes/example/{src,test}/ for a multi-rune plugin").action(async (name, opts) => {
|
|
3604
|
-
const { handler } = await import("./chunks/create-
|
|
3604
|
+
const { handler } = await import("./chunks/create-YLXRZQXI.js");
|
|
3605
3605
|
await handler({ name, description: opts.description, author: opts.author, license: opts.license, out: opts.out, multi: !!opts.multi, yes: !!program3.opts().yes, projectRoot: projectRoot() });
|
|
3606
3606
|
});
|
|
3607
3607
|
const template = program3.command("template").description("Manage rune templates");
|
|
3608
3608
|
template.command("list [template-source]").description('List available templates. [template-source] can be "project" (project config only) or a plugin name; omit to list all.').addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (source, opts) => {
|
|
3609
|
-
const { handler } = await import("./chunks/list-
|
|
3609
|
+
const { handler } = await import("./chunks/list-U44ZZ3NZ.js");
|
|
3610
3610
|
await handler({ source, format: opts.format, plain: !!program3.opts().plain, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3611
3611
|
});
|
|
3612
|
-
template.command("apply <template>").description("Copy a template into the project as a new rune and register it in config.").addHelpText(
|
|
3612
|
+
template.command("apply <template>").description("Copy a template folder into the project as a new rune and register it in config.").addHelpText(
|
|
3613
3613
|
"after",
|
|
3614
3614
|
"\nKey prefixes:\n project:name \u2014 use a template defined in this project's config\n plugin:name \u2014 use a template from a specific installed plugin\n name \u2014 auto-resolve: project config first, then installed plugins"
|
|
3615
|
-
).option("--as <new-rune>", "register the rune under a different key (default: template name)").option("--path <path>", "
|
|
3616
|
-
const { handler } = await import("./chunks/apply-
|
|
3615
|
+
).option("--as <new-rune>", "register the rune under a different key (default: template name)").option("--path <path>", "folder for the rune (default: .crunes/runes/<key>)").option("--name <name>", "human-readable label shown in crunes list").option("--description <description>", "short description of what context this rune provides").action(async (ref, opts) => {
|
|
3616
|
+
const { handler } = await import("./chunks/apply-GDTGTBPD.js");
|
|
3617
3617
|
await handler({ ref, key: opts.as, path: opts.path, name: opts.name, description: opts.description, yes: !!program3.opts().yes, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3618
3618
|
});
|
|
3619
|
-
template.command("create [new-template]").description("Scaffold a new template
|
|
3620
|
-
const { handler } = await import("./chunks/create-
|
|
3621
|
-
await handler({ name, path: opts.path, templateName: opts.name, description: opts.description, yes: !!program3.opts().yes, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3619
|
+
template.command("create [new-template]").description("Scaffold a new template folder and register it in config").option("--path <path>", "folder for the template (default: .crunes/templates/<name>)").addOption(new Option("--lang <lang>", "scaffold a script template instead of a sandboxed JS one").choices(["python", "bash", "node"])).option("--name <name>", "display label shown in crunes template list (separate from the template key)").option("--description <description>", "short description of what kind of rune this template produces").option("-g, --global", "operate on the global config (~/.crunes/config.json) instead of the project").action(async (name, opts) => {
|
|
3620
|
+
const { handler } = await import("./chunks/create-4DEH53O6.js");
|
|
3621
|
+
await handler({ name, path: opts.path, lang: opts.lang, templateName: opts.name, description: opts.description, yes: !!program3.opts().yes, projectRoot: projectRoot(), configRoot: configRoot(), global: !!opts.global });
|
|
3622
3622
|
});
|
|
3623
3623
|
const marketplace = program3.command("marketplace").description("Manage plugin marketplace sources");
|
|
3624
3624
|
marketplace.command("add <url>").description("Add a marketplace source URL").action(async (url) => {
|
|
3625
|
-
const { handler } = await import("./chunks/add-
|
|
3625
|
+
const { handler } = await import("./chunks/add-MNDSEEY5.js");
|
|
3626
3626
|
await handler({ url });
|
|
3627
3627
|
});
|
|
3628
3628
|
marketplace.command("remove <url>").description("Remove a marketplace source URL").action(async (url) => {
|
|
3629
|
-
const { handler } = await import("./chunks/remove-
|
|
3629
|
+
const { handler } = await import("./chunks/remove-Y7T3AQA4.js");
|
|
3630
3630
|
await handler({ url });
|
|
3631
3631
|
});
|
|
3632
3632
|
marketplace.command("list").description("List configured marketplace sources").option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").action(async () => {
|
|
3633
|
-
const { handler } = await import("./chunks/list-
|
|
3633
|
+
const { handler } = await import("./chunks/list-6R5TGCR5.js");
|
|
3634
3634
|
await handler();
|
|
3635
3635
|
});
|
|
3636
3636
|
marketplace.command("search <query>").description("Search for plugins across configured marketplace sources").action(async (query) => {
|
|
3637
|
-
const { handler } = await import("./chunks/search-
|
|
3637
|
+
const { handler } = await import("./chunks/search-3QFC4Y4I.js");
|
|
3638
3638
|
await handler({ query });
|
|
3639
3639
|
});
|
|
3640
3640
|
marketplace.command("update [url]").description("Refresh cached marketplace data (all sources if no URL given)").action(async (url) => {
|
|
3641
|
-
const { handler } = await import("./chunks/update-
|
|
3641
|
+
const { handler } = await import("./chunks/update-4UGPDB56.js");
|
|
3642
3642
|
await handler({ url });
|
|
3643
3643
|
});
|
|
3644
3644
|
marketplace.command("browse").description("List all plugins from all configured marketplace sources").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (opts) => {
|
|
3645
|
-
const { handler } = await import("./chunks/browse-
|
|
3645
|
+
const { handler } = await import("./chunks/browse-UZOZP72E.js");
|
|
3646
3646
|
await handler({ format: opts.format });
|
|
3647
3647
|
});
|
|
3648
3648
|
const completions = program3.command("completions").description("Manage shell tab-completions");
|
|
3649
3649
|
completions.command("bash [args...]").description("Bash completion handler \u2014 called by the installed hook at tab-press time.").allowUnknownOption().action(async () => {
|
|
3650
|
-
const { bashHandler } = await import("./chunks/completions-
|
|
3650
|
+
const { bashHandler } = await import("./chunks/completions-RIIPQ7NM.js");
|
|
3651
3651
|
bashHandler(program3);
|
|
3652
3652
|
});
|
|
3653
3653
|
completions.command("zsh [words...]").description("Zsh completion handler \u2014 called by the installed hook at tab-press time.").allowUnknownOption().action(async (words) => {
|
|
3654
|
-
const { zshHandler } = await import("./chunks/completions-
|
|
3654
|
+
const { zshHandler } = await import("./chunks/completions-RIIPQ7NM.js");
|
|
3655
3655
|
zshHandler(["crunes", ...words], program3);
|
|
3656
3656
|
});
|
|
3657
3657
|
completions.command("fish [words...]").description("Fish completion handler \u2014 called by the installed hook at tab-press time.").allowUnknownOption().action(async (words) => {
|
|
3658
|
-
const { fishHandler } = await import("./chunks/completions-
|
|
3658
|
+
const { fishHandler } = await import("./chunks/completions-RIIPQ7NM.js");
|
|
3659
3659
|
fishHandler(["crunes", ...words], program3);
|
|
3660
3660
|
});
|
|
3661
3661
|
completions.command("powershell [elements...]").description("PowerShell completion handler \u2014 called by the installed hook at tab-press time.").allowUnknownOption().action(async (elements) => {
|
|
3662
|
-
const { powershellHandler } = await import("./chunks/completions-
|
|
3662
|
+
const { powershellHandler } = await import("./chunks/completions-RIIPQ7NM.js");
|
|
3663
3663
|
powershellHandler(["crunes", ...elements], program3);
|
|
3664
3664
|
});
|
|
3665
3665
|
completions.command("install <shell>").description(
|
|
3666
3666
|
"Append the completion hook for <shell> to your shell profile (idempotent).\n Supported: bash, zsh, fish, powershell\n Examples:\n crunes completions install bash # appends to ~/.bashrc\n crunes completions install zsh # appends to ~/.zshrc\n crunes completions install fish # appends to ~/.config/fish/config.fish\n crunes completions install powershell # appends to PowerShell $PROFILE"
|
|
3667
3667
|
).action(async (shell2) => {
|
|
3668
|
-
const { installHandler } = await import("./chunks/completions-
|
|
3668
|
+
const { installHandler } = await import("./chunks/completions-RIIPQ7NM.js");
|
|
3669
3669
|
await installHandler(shell2);
|
|
3670
3670
|
});
|
|
3671
3671
|
return program3;
|