@darkrymit/crunes-cli 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{add-MSX6XSU3.js → add-2OM5KGN5.js} +2 -3
- package/dist/chunks/{apply-LOIJIPLR.js → apply-GBUQQ4XF.js} +7 -4
- package/dist/chunks/{benchmark-3IHFP3V2.js → benchmark-QWGVX3BX.js} +6 -6
- package/dist/chunks/{chunk-2FI6KN3C.js → chunk-3KKRNQQU.js} +5 -13
- package/dist/chunks/{chunk-KUEMDPNG.js → chunk-AL37NFWR.js} +4 -4
- package/dist/chunks/{chunk-6IC6ZJ74.js → chunk-ARIFLX5E.js} +1 -1
- package/dist/chunks/{chunk-SUCYDYMU.js → chunk-E7CZPAM2.js} +1 -1
- package/dist/chunks/{chunk-KSQDFE5N.js → chunk-KQMTTEJV.js} +3 -3
- package/dist/chunks/{chunk-DTOYFY3Z.js → chunk-KX6QEHM5.js} +2 -2
- package/dist/chunks/{chunk-XDMMSZIL.js → chunk-MUWDZJN2.js} +1 -1
- package/dist/chunks/{chunk-RVBAAXRY.js → chunk-NJVPLN5D.js} +4 -4
- package/dist/chunks/{chunk-H2OT7D6N.js → chunk-VSMAZISQ.js} +8 -8
- package/dist/chunks/chunk-WE4HDHFU.js +37 -0
- package/dist/chunks/{create-Y4LHLWGL.js → create-2CQZF53Z.js} +2 -3
- package/dist/chunks/{create-LPLNCOW4.js → create-36F6V4WP.js} +2 -3
- package/dist/chunks/{disable-TITOSMXB.js → disable-FB64CSYV.js} +2 -3
- package/dist/chunks/{doctor-R2Y6UAY4.js → doctor-PVO4JLYN.js} +5 -5
- package/dist/chunks/{enable-LGTPDWPV.js → enable-UVXHTKCJ.js} +2 -3
- package/dist/chunks/{init-KO2HLED5.js → init-GPNC7TR5.js} +2 -3
- package/dist/chunks/{install-7IRUAGSF.js → install-3G7U5ZIO.js} +5 -5
- package/dist/chunks/{intro-JNJ6A75J.js → intro-YI5HUZCF.js} +2 -2
- package/dist/chunks/{list-BCCM3TLP.js → list-J2UCBYAY.js} +1 -2
- package/dist/chunks/{list-QVZKR3IE.js → list-JB4447YK.js} +3 -3
- package/dist/chunks/{list-MLKZE36K.js → list-W4JAYPAA.js} +4 -4
- package/dist/chunks/{repl-5GDN3RAO.js → repl-MWFEZ65P.js} +7 -7
- package/dist/chunks/{resolver-CA2A32AC.js → resolver-URPQMOIV.js} +5 -5
- package/dist/chunks/{run-WL3IZBXF.js → run-3VKWSRLO.js} +6 -6
- package/dist/chunks/{rune-YA4TFHTB.js → rune-L5EP645W.js} +7 -7
- package/dist/chunks/{runner-QNZMBHQY.js → runner-VPTLUQJE.js} +2 -2
- package/dist/chunks/{trust-BFIDANXD.js → trust-LXXYSF6W.js} +2 -2
- package/dist/chunks/{uninstall-3MWZIZVA.js → uninstall-J7JUYETA.js} +5 -5
- package/dist/chunks/{update-W4MJUTTW.js → update-ZJRLDCUT.js} +5 -5
- package/dist/chunks/{version-FLHI5KFS.js → version-ZULO6CV3.js} +1 -1
- package/dist/cli.js +22 -26
- package/package.json +1 -1
- package/dist/chunks/chunk-YKIKJHYO.js +0 -94
- package/dist/chunks/migrate-Y3EKMVP5.js +0 -87
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getConfigPath,
|
|
3
3
|
readRawConfig,
|
|
4
4
|
writeRawConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7CZPAM2.js";
|
|
6
6
|
import {
|
|
7
7
|
output
|
|
8
8
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -11,12 +11,11 @@ import "./chunk-WCODTMDN.js";
|
|
|
11
11
|
import {
|
|
12
12
|
runtimeOf
|
|
13
13
|
} from "./chunk-2DNYVKBF.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3KKRNQQU.js";
|
|
15
15
|
import {
|
|
16
16
|
isPathCommand
|
|
17
17
|
} from "./chunk-UBCAZGLE.js";
|
|
18
18
|
import "./chunk-VP7YLCQP.js";
|
|
19
|
-
import "./chunk-YKIKJHYO.js";
|
|
20
19
|
import "./chunk-2HM5Q52B.js";
|
|
21
20
|
import {
|
|
22
21
|
getStorePath
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import "./chunk-WCODTMDN.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3KKRNQQU.js";
|
|
14
14
|
import "./chunk-UBCAZGLE.js";
|
|
15
15
|
import {
|
|
16
16
|
loadRegistry,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
} from "./chunk-FIAFVIAN.js";
|
|
22
22
|
import "./chunk-VP7YLCQP.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
isolateName
|
|
25
|
+
} from "./chunk-WE4HDHFU.js";
|
|
26
26
|
import "./chunk-2Q3KLBE6.js";
|
|
27
27
|
import "./chunk-55GTJG5I.js";
|
|
28
28
|
import {
|
|
@@ -171,10 +171,13 @@ async function handler({
|
|
|
171
171
|
}
|
|
172
172
|
const resolvedName = name ?? templateMeta.name;
|
|
173
173
|
const resolvedDesc = description ?? templateMeta.description;
|
|
174
|
+
const command = isolateName(runeRelPath);
|
|
175
|
+
const perms = templateMeta.permissions;
|
|
174
176
|
const configEntry = {
|
|
175
177
|
...resolvedName && { name: resolvedName },
|
|
176
178
|
...resolvedDesc && { description: resolvedDesc },
|
|
177
|
-
|
|
179
|
+
run: perms?.run ? { command, permissions: perms.run } : command,
|
|
180
|
+
...perms?.repl && { repl: { command, permissions: perms.repl } }
|
|
178
181
|
};
|
|
179
182
|
config.runes = { ...config.runes ?? {}, [outputKey]: configEntry };
|
|
180
183
|
const tmp = configPath + ".tmp";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinBracketTokens,
|
|
3
3
|
parseBracketKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AL37NFWR.js";
|
|
5
5
|
import {
|
|
6
6
|
output
|
|
7
7
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
} from "./chunk-WCODTMDN.js";
|
|
12
12
|
import {
|
|
13
13
|
runRune
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-VSMAZISQ.js";
|
|
15
|
+
import "./chunk-KX6QEHM5.js";
|
|
16
16
|
import "./chunk-2DNYVKBF.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MUWDZJN2.js";
|
|
18
18
|
import {
|
|
19
19
|
loadConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3KKRNQQU.js";
|
|
21
21
|
import "./chunk-UBCAZGLE.js";
|
|
22
22
|
import "./chunk-MTJ2KW3V.js";
|
|
23
23
|
import "./chunk-FIAFVIAN.js";
|
|
24
24
|
import "./chunk-VP7YLCQP.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-WE4HDHFU.js";
|
|
26
26
|
import "./chunk-MVCBPI4J.js";
|
|
27
27
|
import "./chunk-GVMT55GH.js";
|
|
28
28
|
import "./chunk-2HM5Q52B.js";
|
|
@@ -5,10 +5,6 @@ import {
|
|
|
5
5
|
isInlineSchema,
|
|
6
6
|
normaliseJsonSchema
|
|
7
7
|
} from "./chunk-VP7YLCQP.js";
|
|
8
|
-
import {
|
|
9
|
-
migrateEntry,
|
|
10
|
-
v1EntryError
|
|
11
|
-
} from "./chunk-YKIKJHYO.js";
|
|
12
8
|
import {
|
|
13
9
|
getStorePath
|
|
14
10
|
} from "./chunk-2Q3KLBE6.js";
|
|
@@ -57,7 +53,6 @@ function absolutizeEntryPaths(config, baseDir, layer) {
|
|
|
57
53
|
return out;
|
|
58
54
|
}
|
|
59
55
|
function coercePlugins(plugins) {
|
|
60
|
-
if (Array.isArray(plugins)) return Object.fromEntries(plugins.map((k) => [k, true]));
|
|
61
56
|
return isObject(plugins) ? { ...plugins } : {};
|
|
62
57
|
}
|
|
63
58
|
function enabledPluginKeys(config) {
|
|
@@ -154,7 +149,7 @@ function validateEntry(runeKey, entry, fileName, partial) {
|
|
|
154
149
|
const run = entry.run == null ? null : validateBlockShape(`${at}.run`, entry.run, RUN_BLOCK_KEYS, fileName);
|
|
155
150
|
if (!partial && (run == null || run.command === void 0)) {
|
|
156
151
|
throw new Error(
|
|
157
|
-
`${fileName}: ${at} has no run block naming its command in any config layer \u2014 a rune runs only what its entry declares
|
|
152
|
+
`${fileName}: ${at} has no run block naming its command in any config layer \u2014 a rune runs only what its entry declares.`
|
|
158
153
|
);
|
|
159
154
|
}
|
|
160
155
|
if (run?.argv != null && (!Array.isArray(run.argv) || run.argv.some((a) => typeof a !== "string"))) {
|
|
@@ -210,12 +205,13 @@ function validateMergedRunBlocks(config, label = "config") {
|
|
|
210
205
|
if (isObject(entry)) validateEntry(runeKey, entry, label, false);
|
|
211
206
|
}
|
|
212
207
|
}
|
|
213
|
-
function validateConfig(config, fileName = "config.json"
|
|
208
|
+
function validateConfig(config, fileName = "config.json") {
|
|
214
209
|
if (config.runes && typeof config.runes === "object") {
|
|
215
210
|
for (const [runeKey, entry] of Object.entries(config.runes)) {
|
|
216
211
|
if (!isObject(entry)) continue;
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
if (entry.path !== void 0 || entry.permissions !== void 0) {
|
|
213
|
+
throw new Error(`${fileName}: runes["${runeKey}"] uses unsupported legacy fields (path / permissions); declare a run block instead.`);
|
|
214
|
+
}
|
|
219
215
|
validateEntry(runeKey, entry, fileName, true);
|
|
220
216
|
}
|
|
221
217
|
}
|
|
@@ -227,9 +223,6 @@ function validateConfig(config, fileName = "config.json", { base = null, layer =
|
|
|
227
223
|
}
|
|
228
224
|
}
|
|
229
225
|
}
|
|
230
|
-
function defaultRuneFile(runeKey, layer) {
|
|
231
|
-
return runeKey.includes(":") ? null : layer === "global" ? `runes/${runeKey}.js` : `.crunes/runes/${runeKey}.js`;
|
|
232
|
-
}
|
|
233
226
|
function normaliseRune(entry) {
|
|
234
227
|
return entry;
|
|
235
228
|
}
|
|
@@ -275,7 +268,6 @@ export {
|
|
|
275
268
|
LAYER,
|
|
276
269
|
coercePlugins,
|
|
277
270
|
enabledPluginKeys,
|
|
278
|
-
defaultRuneFile,
|
|
279
271
|
normaliseRune,
|
|
280
272
|
getRune,
|
|
281
273
|
ROOTLESS,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
describeConfigLayers,
|
|
7
7
|
runRune
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VSMAZISQ.js";
|
|
9
9
|
import {
|
|
10
10
|
renderSection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KX6QEHM5.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3KKRNQQU.js";
|
|
15
15
|
import {
|
|
16
16
|
isGlobMatch,
|
|
17
17
|
isWildcardMatch
|
|
@@ -216,7 +216,7 @@ async function handler({
|
|
|
216
216
|
process.exit(1);
|
|
217
217
|
}
|
|
218
218
|
if (isBatch) {
|
|
219
|
-
const { resolvePluginRune } = await import("./resolver-
|
|
219
|
+
const { resolvePluginRune } = await import("./resolver-URPQMOIV.js");
|
|
220
220
|
const { loadPluginJson } = await import("./manifest-76MIEL2F.js");
|
|
221
221
|
for (const seg of segments) {
|
|
222
222
|
let entry = config.runes?.[seg.key] ?? {};
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-2DNYVKBF.js";
|
|
4
4
|
import {
|
|
5
5
|
isNativeRune
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MUWDZJN2.js";
|
|
7
7
|
import {
|
|
8
8
|
enabledPluginKeys,
|
|
9
9
|
getRune
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3KKRNQQU.js";
|
|
11
11
|
import {
|
|
12
12
|
blockOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WE4HDHFU.js";
|
|
14
14
|
import {
|
|
15
15
|
init_require_shim
|
|
16
16
|
} from "./chunk-TPK5AGRA.js";
|
|
@@ -440,7 +440,7 @@ async function getRunBlockSchema(desc, projectDir, { vars = {}, runeKey = null }
|
|
|
440
440
|
if (/\.json$/i.test(desc.argsModule)) {
|
|
441
441
|
return loadJsonSchema(desc.argsModule, relative(projectDir, desc.argsModule).replace(/\\/g, "/") || desc.argsModule);
|
|
442
442
|
}
|
|
443
|
-
const { getArgsSchema } = await import("./runner-
|
|
443
|
+
const { getArgsSchema } = await import("./runner-VPTLUQJE.js");
|
|
444
444
|
return getArgsSchema(desc.argsModule, blockGrants({ permissions: desc.argsPermissions }), projectDir, { vars, runeKey });
|
|
445
445
|
}
|
|
446
446
|
function parseOutputLine(line) {
|
|
@@ -474,7 +474,7 @@ async function runRunBlock({ dir, key, args, entry, opts = {}, configDir, runeCa
|
|
|
474
474
|
const desc = describeRunBlock(entry, configDir);
|
|
475
475
|
let callArgs = [...desc.argv, ...args];
|
|
476
476
|
if (desc.runtime === "isolate") {
|
|
477
|
-
const { runRuneInIsolate } = await import("./runner-
|
|
477
|
+
const { runRuneInIsolate } = await import("./runner-VPTLUQJE.js");
|
|
478
478
|
return runRuneInIsolate(desc.command, blockGrants(desc), callArgs, dir, {
|
|
479
479
|
runeCallback,
|
|
480
480
|
sections: opts.sections ?? null,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readRawConfig,
|
|
4
4
|
setPluginEnabled,
|
|
5
5
|
writeRawConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E7CZPAM2.js";
|
|
7
7
|
import {
|
|
8
8
|
output
|
|
9
9
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-CGZL5SSH.js";
|
|
14
14
|
import {
|
|
15
15
|
isNativeRune
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MUWDZJN2.js";
|
|
17
17
|
import {
|
|
18
18
|
coercePlugins
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3KKRNQQU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadRegistry,
|
|
22
22
|
registerPlugin,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
blockOf,
|
|
30
30
|
scopedPermissions
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WE4HDHFU.js";
|
|
32
32
|
import {
|
|
33
33
|
ensureStoreDirs,
|
|
34
34
|
getPluginCacheDir,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRunBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KX6QEHM5.js";
|
|
4
4
|
import {
|
|
5
5
|
isNativeRune,
|
|
6
6
|
trustDigest,
|
|
7
7
|
trustState,
|
|
8
8
|
untrustedError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MUWDZJN2.js";
|
|
10
10
|
import {
|
|
11
11
|
enabledPluginKeys,
|
|
12
12
|
getRune
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3KKRNQQU.js";
|
|
14
14
|
import {
|
|
15
15
|
loadRegistry,
|
|
16
16
|
resolvePluginKeyScoped
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
blockModule,
|
|
23
23
|
scopedPermissions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WE4HDHFU.js";
|
|
25
25
|
import {
|
|
26
26
|
computeEffectivePermissions
|
|
27
27
|
} from "./chunk-MVCBPI4J.js";
|
|
@@ -127,7 +127,7 @@ async function runPluginMatch({ match, pluginJson, projectPerms, projectVars, ke
|
|
|
127
127
|
});
|
|
128
128
|
return result2?.directExitCode !== void 0 ? result2 : normaliseResult(result2);
|
|
129
129
|
}
|
|
130
|
-
const { executePluginRune } = await import("./runner-
|
|
130
|
+
const { executePluginRune } = await import("./runner-VPTLUQJE.js");
|
|
131
131
|
const result = await executePluginRune({
|
|
132
132
|
pluginDir,
|
|
133
133
|
pluginCacheDir,
|
|
@@ -225,7 +225,7 @@ async function resolveRuneEntry(projectDir, config, key, configDir = projectDir)
|
|
|
225
225
|
const vars = { ...pluginJson.runes[runeKey]?.vars ?? {}, ...config.runes?.[`${pluginKey}:${runeKey}`]?.vars ?? {} };
|
|
226
226
|
return {
|
|
227
227
|
async createReplSession(args, opts = {}) {
|
|
228
|
-
const { getPluginRunePath, runRuneInRepl } = await import("./runner-
|
|
228
|
+
const { getPluginRunePath, runRuneInRepl } = await import("./runner-VPTLUQJE.js");
|
|
229
229
|
const runeFile = getPluginRunePath(pluginDir, runeKey, pluginJson, "repl");
|
|
230
230
|
const nodeModulesDir = join(pluginCacheDir, "node_modules");
|
|
231
231
|
return runRuneInRepl(runeFile, effective, args, projectDir, {
|
|
@@ -251,7 +251,7 @@ async function resolveRuneEntry(projectDir, config, key, configDir = projectDir)
|
|
|
251
251
|
const vars = entry.vars ?? {};
|
|
252
252
|
return {
|
|
253
253
|
async createReplSession(args, opts = {}) {
|
|
254
|
-
const { runRuneInRepl } = await import("./runner-
|
|
254
|
+
const { runRuneInRepl } = await import("./runner-VPTLUQJE.js");
|
|
255
255
|
return runRuneInRepl(runeFile, effective, args, projectDir, {
|
|
256
256
|
vars,
|
|
257
257
|
runeKey: key,
|
|
@@ -275,7 +275,7 @@ async function resolveRuneEntry(projectDir, config, key, configDir = projectDir)
|
|
|
275
275
|
const vars = { ...pluginJson.runes[runeKey]?.vars ?? {}, ...config.runes?.[`${pluginKey}:${runeKey}`]?.vars ?? {} };
|
|
276
276
|
return {
|
|
277
277
|
async createReplSession(args, opts = {}) {
|
|
278
|
-
const { getPluginRunePath, runRuneInRepl } = await import("./runner-
|
|
278
|
+
const { getPluginRunePath, runRuneInRepl } = await import("./runner-VPTLUQJE.js");
|
|
279
279
|
const runeFile = getPluginRunePath(pluginDir, runeKey, pluginJson, "repl");
|
|
280
280
|
const nodeModulesDir = join(pluginCacheDir, "node_modules");
|
|
281
281
|
return runRuneInRepl(runeFile, effective, args, projectDir, {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_require_shim
|
|
3
|
+
} from "./chunk-TPK5AGRA.js";
|
|
4
|
+
|
|
5
|
+
// src/core/rune-entry.js
|
|
6
|
+
init_require_shim();
|
|
7
|
+
import { join, isAbsolute } from "node:path";
|
|
8
|
+
var ISOLATE_MODULE = /\.rune\.m?js$/i;
|
|
9
|
+
function blockOf(entry, name) {
|
|
10
|
+
const block = entry?.[name];
|
|
11
|
+
if (block == null) return null;
|
|
12
|
+
return typeof block === "string" ? { command: block } : block;
|
|
13
|
+
}
|
|
14
|
+
function scopedPermissions(entry) {
|
|
15
|
+
const out = {};
|
|
16
|
+
for (const mode of ["run", "repl"]) {
|
|
17
|
+
const permissions = blockOf(entry, mode)?.permissions;
|
|
18
|
+
if (permissions) out[mode] = permissions;
|
|
19
|
+
}
|
|
20
|
+
return Object.keys(out).length ? out : void 0;
|
|
21
|
+
}
|
|
22
|
+
function blockModule(entry, mode, base) {
|
|
23
|
+
const command = blockOf(entry, mode)?.command;
|
|
24
|
+
if (!command) return null;
|
|
25
|
+
return isAbsolute(command) ? command : join(base, command);
|
|
26
|
+
}
|
|
27
|
+
function isolateName(file) {
|
|
28
|
+
if (ISOLATE_MODULE.test(file)) return file;
|
|
29
|
+
return file.replace(/\.(m?js)$/i, ".rune.$1");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
blockOf,
|
|
34
|
+
scopedPermissions,
|
|
35
|
+
blockModule,
|
|
36
|
+
isolateName
|
|
37
|
+
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getConfigPath,
|
|
3
3
|
readRawConfig,
|
|
4
4
|
writeRawConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7CZPAM2.js";
|
|
6
6
|
import {
|
|
7
7
|
output
|
|
8
8
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -13,10 +13,9 @@ import {
|
|
|
13
13
|
ye
|
|
14
14
|
} from "./chunk-CGZL5SSH.js";
|
|
15
15
|
import "./chunk-WCODTMDN.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-3KKRNQQU.js";
|
|
17
17
|
import "./chunk-UBCAZGLE.js";
|
|
18
18
|
import "./chunk-VP7YLCQP.js";
|
|
19
|
-
import "./chunk-YKIKJHYO.js";
|
|
20
19
|
import {
|
|
21
20
|
getStorePath
|
|
22
21
|
} from "./chunk-2Q3KLBE6.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getConfigPath,
|
|
3
3
|
readRawConfig,
|
|
4
4
|
writeRawConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7CZPAM2.js";
|
|
6
6
|
import {
|
|
7
7
|
output
|
|
8
8
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -14,10 +14,9 @@ import {
|
|
|
14
14
|
ye
|
|
15
15
|
} from "./chunk-CGZL5SSH.js";
|
|
16
16
|
import "./chunk-WCODTMDN.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-3KKRNQQU.js";
|
|
18
18
|
import "./chunk-UBCAZGLE.js";
|
|
19
19
|
import "./chunk-VP7YLCQP.js";
|
|
20
|
-
import "./chunk-YKIKJHYO.js";
|
|
21
20
|
import {
|
|
22
21
|
getStorePath
|
|
23
22
|
} from "./chunk-2Q3KLBE6.js";
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigPath,
|
|
3
3
|
setPluginEnabled
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E7CZPAM2.js";
|
|
5
5
|
import {
|
|
6
6
|
enabledPluginKeys,
|
|
7
7
|
loadConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3KKRNQQU.js";
|
|
9
9
|
import "./chunk-UBCAZGLE.js";
|
|
10
10
|
import "./chunk-VP7YLCQP.js";
|
|
11
|
-
import "./chunk-YKIKJHYO.js";
|
|
12
11
|
import "./chunk-2Q3KLBE6.js";
|
|
13
12
|
import "./chunk-55GTJG5I.js";
|
|
14
13
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigPath,
|
|
3
3
|
readRawConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E7CZPAM2.js";
|
|
5
5
|
import {
|
|
6
6
|
output
|
|
7
7
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -9,7 +9,7 @@ import "./chunk-CGZL5SSH.js";
|
|
|
9
9
|
import "./chunk-WCODTMDN.js";
|
|
10
10
|
import {
|
|
11
11
|
describeRunBlock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KX6QEHM5.js";
|
|
13
13
|
import {
|
|
14
14
|
assertNotMissedRename,
|
|
15
15
|
onPath,
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
isNativeRune,
|
|
20
20
|
trustDigest,
|
|
21
21
|
trustState
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MUWDZJN2.js";
|
|
23
23
|
import {
|
|
24
24
|
coercePlugins,
|
|
25
25
|
loadConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3KKRNQQU.js";
|
|
27
27
|
import "./chunk-UBCAZGLE.js";
|
|
28
28
|
import {
|
|
29
29
|
loadRegistry
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
loadJsonSchema
|
|
36
36
|
} from "./chunk-VP7YLCQP.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-WE4HDHFU.js";
|
|
38
38
|
import "./chunk-MVCBPI4J.js";
|
|
39
39
|
import "./chunk-GVMT55GH.js";
|
|
40
40
|
import "./chunk-2HM5Q52B.js";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigPath,
|
|
3
3
|
setPluginEnabled
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-E7CZPAM2.js";
|
|
5
|
+
import "./chunk-3KKRNQQU.js";
|
|
6
6
|
import "./chunk-UBCAZGLE.js";
|
|
7
7
|
import {
|
|
8
8
|
loadRegistry,
|
|
9
9
|
resolvePluginKey
|
|
10
10
|
} from "./chunk-MTJ2KW3V.js";
|
|
11
11
|
import "./chunk-VP7YLCQP.js";
|
|
12
|
-
import "./chunk-YKIKJHYO.js";
|
|
13
12
|
import "./chunk-2Q3KLBE6.js";
|
|
14
13
|
import "./chunk-55GTJG5I.js";
|
|
15
14
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E7CZPAM2.js";
|
|
4
4
|
import {
|
|
5
5
|
output
|
|
6
6
|
} from "./chunk-MIKWIFYR.js";
|
|
@@ -11,10 +11,9 @@ import {
|
|
|
11
11
|
ye
|
|
12
12
|
} from "./chunk-CGZL5SSH.js";
|
|
13
13
|
import "./chunk-WCODTMDN.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3KKRNQQU.js";
|
|
15
15
|
import "./chunk-UBCAZGLE.js";
|
|
16
16
|
import "./chunk-VP7YLCQP.js";
|
|
17
|
-
import "./chunk-YKIKJHYO.js";
|
|
18
17
|
import "./chunk-2Q3KLBE6.js";
|
|
19
18
|
import "./chunk-55GTJG5I.js";
|
|
20
19
|
import {
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-YVN3VDRE.js";
|
|
4
4
|
import {
|
|
5
5
|
installPlugin
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NJVPLN5D.js";
|
|
7
|
+
import "./chunk-E7CZPAM2.js";
|
|
8
8
|
import {
|
|
9
9
|
output
|
|
10
10
|
} from "./chunk-MIKWIFYR.js";
|
|
11
11
|
import "./chunk-CGZL5SSH.js";
|
|
12
12
|
import "./chunk-WCODTMDN.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MUWDZJN2.js";
|
|
14
|
+
import "./chunk-3KKRNQQU.js";
|
|
15
15
|
import "./chunk-UBCAZGLE.js";
|
|
16
16
|
import "./chunk-MTJ2KW3V.js";
|
|
17
17
|
import "./chunk-FIAFVIAN.js";
|
|
18
18
|
import "./chunk-VP7YLCQP.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-WE4HDHFU.js";
|
|
20
20
|
import "./chunk-2Q3KLBE6.js";
|
|
21
21
|
import "./chunk-55GTJG5I.js";
|
|
22
22
|
import {
|
|
@@ -2664,7 +2664,7 @@ async function compileIntro() {
|
|
|
2664
2664
|
lines.push(" }");
|
|
2665
2665
|
lines.push("}");
|
|
2666
2666
|
lines.push("```");
|
|
2667
|
-
lines.push('A block written as a string is shorthand for `{ "command": \u2026 }`.
|
|
2667
|
+
lines.push('A block written as a string is shorthand for `{ "command": \u2026 }`.');
|
|
2668
2668
|
lines.push("");
|
|
2669
2669
|
lines.push('To grant a **plugin** rune extra permissions or vars from the project side (plugin runes have no `runes.<key>` entry of their own), add an entry keyed by the fully-qualified `"marketplace@plugin:runeKey"` string \u2014 **this must always be the full form, never the bare plugin name**, since two enabled plugins could share a bare name and a bare-form key can never resolve to anything (config loading rejects a bare-form key outright).');
|
|
2670
2670
|
lines.push("```json");
|
|
@@ -2723,7 +2723,7 @@ async function compileIntro() {
|
|
|
2723
2723
|
lines.push("");
|
|
2724
2724
|
lines.push("### Config File Fields Reference");
|
|
2725
2725
|
lines.push('- **`runes`**: Definition of project-registered runes, keyed by rune key (or the fully-qualified `"marketplace@plugin:runeKey"` string for a plugin-rune override \u2014 never a bare plugin name). Each entry declares a `run` block (and optionally `args` \u2014 see Script Runes \u2014 and `repl`), `name`, `description` and `vars` (key-value settings read via `utils.vars.read(key)`); or `plugin` (an alias to a specific plugin rune, see above). Grants live inside the `run` and `repl` blocks as `{ "allow": [...], "deny": [...] }`; a plugin alias or `marketplace@plugin:rune` override may carry blocks with only `permissions`.');
|
|
2726
|
-
lines.push('- **`plugins`**: Map of plugin key to a boolean, e.g. `{"my-market@my-plugin": true}`.
|
|
2726
|
+
lines.push('- **`plugins`**: Map of plugin key to a boolean, e.g. `{"my-market@my-plugin": true}`. `false` is meaningful: it turns a plugin off in this layer even though a lower layer enabled it.');
|
|
2727
2727
|
lines.push("- **`templates`**: Definition of registered templates, keyed by template name, merged across layers exactly like `runes`.");
|
|
2728
2728
|
lines.push("");
|
|
2729
2729
|
lines.push("### Config Layers");
|
|
@@ -8,7 +8,7 @@ import "./chunk-CGZL5SSH.js";
|
|
|
8
8
|
import "./chunk-WCODTMDN.js";
|
|
9
9
|
import {
|
|
10
10
|
loadConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3KKRNQQU.js";
|
|
12
12
|
import "./chunk-UBCAZGLE.js";
|
|
13
13
|
import {
|
|
14
14
|
loadRegistry
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
loadPluginJson
|
|
18
18
|
} from "./chunk-FIAFVIAN.js";
|
|
19
19
|
import "./chunk-VP7YLCQP.js";
|
|
20
|
-
import "./chunk-YKIKJHYO.js";
|
|
21
20
|
import "./chunk-2Q3KLBE6.js";
|
|
22
21
|
import "./chunk-55GTJG5I.js";
|
|
23
22
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNativeRune
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MUWDZJN2.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KKRNQQU.js";
|
|
7
7
|
import "./chunk-UBCAZGLE.js";
|
|
8
8
|
import {
|
|
9
9
|
loadRegistry
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
loadPluginJson
|
|
13
13
|
} from "./chunk-FIAFVIAN.js";
|
|
14
14
|
import "./chunk-VP7YLCQP.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-WE4HDHFU.js";
|
|
16
16
|
import "./chunk-2Q3KLBE6.js";
|
|
17
17
|
import "./chunk-55GTJG5I.js";
|
|
18
18
|
import {
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
} from "./chunk-DMMC4X27.js";
|
|
4
4
|
import {
|
|
5
5
|
enumerateRunes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KQMTTEJV.js";
|
|
7
7
|
import {
|
|
8
8
|
output
|
|
9
9
|
} from "./chunk-MIKWIFYR.js";
|
|
10
10
|
import "./chunk-CGZL5SSH.js";
|
|
11
11
|
import "./chunk-WCODTMDN.js";
|
|
12
12
|
import "./chunk-2DNYVKBF.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MUWDZJN2.js";
|
|
14
14
|
import {
|
|
15
15
|
LAYER,
|
|
16
16
|
ROOTLESS,
|
|
17
17
|
loadConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3KKRNQQU.js";
|
|
19
19
|
import "./chunk-UBCAZGLE.js";
|
|
20
20
|
import "./chunk-MTJ2KW3V.js";
|
|
21
21
|
import "./chunk-VP7YLCQP.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-WE4HDHFU.js";
|
|
23
23
|
import "./chunk-2HM5Q52B.js";
|
|
24
24
|
import "./chunk-2Q3KLBE6.js";
|
|
25
25
|
import "./chunk-55GTJG5I.js";
|