@tempoxyz/patron 0.0.10 → 0.0.11
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/bin.js
CHANGED
|
@@ -4,10 +4,10 @@ const require = __patronCreateRequire(import.meta.url)
|
|
|
4
4
|
|
|
5
5
|
// src/bin.ts
|
|
6
6
|
if (process.argv[2] === "hook") {
|
|
7
|
-
const { runHookProcess } = await import("./chunks/hook-process-
|
|
7
|
+
const { runHookProcess } = await import("./chunks/hook-process-SIOU4SZZ.js");
|
|
8
8
|
await runHookProcess().catch(() => void 0);
|
|
9
9
|
process.exit(0);
|
|
10
10
|
} else {
|
|
11
|
-
const { run } = await import("./chunks/-
|
|
11
|
+
const { run } = await import("./chunks/-E6NINF53.js");
|
|
12
12
|
process.exitCode = await run(process.argv.slice(2));
|
|
13
13
|
}
|
|
@@ -35787,8 +35787,18 @@ function codexPaths(env, home) {
|
|
|
35787
35787
|
function withCodexStopHook(settings, command) {
|
|
35788
35788
|
return withPatronGroup(settings, EVENT, stopGroup(command));
|
|
35789
35789
|
}
|
|
35790
|
+
var CODEX_HOOK_STATUS = "Patron: pay the sites this turn read";
|
|
35790
35791
|
function stopGroup(command) {
|
|
35791
|
-
return {
|
|
35792
|
+
return {
|
|
35793
|
+
hooks: [
|
|
35794
|
+
{
|
|
35795
|
+
command,
|
|
35796
|
+
statusMessage: CODEX_HOOK_STATUS,
|
|
35797
|
+
timeout: HOOK_TIMEOUT_SECONDS,
|
|
35798
|
+
type: "command"
|
|
35799
|
+
}
|
|
35800
|
+
]
|
|
35801
|
+
};
|
|
35792
35802
|
}
|
|
35793
35803
|
function hasStopGroup(settings, command) {
|
|
35794
35804
|
const groups = isObject2(settings.hooks) ? settings.hooks[EVENT] : void 0;
|