@krapht/ork 1.0.0-alpha.20 → 1.0.0-alpha.21
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/{__build_info__-D6mXC4cD.mjs → __build_info__-0wqQ-rtf.mjs} +3 -51
- package/dist/{attach-C1OnxyMh.mjs → attach-C0-YyNoY.mjs} +6 -6
- package/dist/{attach-CEGbRg1D.mjs → attach-CAKNqnUK.mjs} +64 -35
- package/dist/bin.mjs +1426 -72
- package/dist/{brief-DH66xmj8.mjs → brief-C2hew8cS.mjs} +7 -6
- package/dist/{builtin-files-Cf-NZDqM.mjs → builtin-files-YYAnbZGD.mjs} +1 -1
- package/dist/{chips-BqcT58qr.mjs → chips-CP_pgKlj.mjs} +7 -2
- package/dist/{completion-DS0gCZRm.mjs → completion-K4rAVsrf.mjs} +6 -6
- package/dist/{context-CGPh12HV.mjs → context-B-fjPJky.mjs} +4 -4
- package/dist/context-DMK0U1w0.mjs +160 -0
- package/dist/{detached-Dakw5RZj.mjs → detached-q0AYG0Bs.mjs} +6 -5
- package/dist/{find-BTikxc54.mjs → find-Ct5CNl1J.mjs} +1 -1
- package/dist/{flags-C8yCq0j5.mjs → flags-C90N4J1i.mjs} +3 -3
- package/dist/{follow-ups-CtlhHbwe.mjs → follow-ups-D3HPyNYM.mjs} +14 -9
- package/dist/{format-BB4E-T6x.mjs → format-CiPhQqbX.mjs} +24 -13
- package/dist/{help-groups-BpRgBSTh.mjs → help-groups-BQvcKQ9H.mjs} +8 -3
- package/dist/{in-a-run-CbnKjO7t.mjs → in-a-run-D_wg4iJi.mjs} +2 -2
- package/dist/{install-CWcpX5g4.mjs → install-Hji6LIei.mjs} +50 -2
- package/dist/{limits-VQqsBoQk.mjs → limits-BD6RZRCS.mjs} +1 -1
- package/dist/{mcp-wGfkMCVF.mjs → mcp-CpbDmBLG.mjs} +6 -6
- package/dist/{once-BHxSdZz_.mjs → once-J8Qn5fTG.mjs} +4 -4
- package/dist/{output-B1kwo0YU.mjs → output-DXZbnFt_.mjs} +61 -42
- package/dist/{pause-C_Wxh-KM.mjs → pause-Cl4ZYA35.mjs} +4 -4
- package/dist/{print-DNYzq4Rr.mjs → print-DzugGZQB.mjs} +2 -2
- package/dist/{project-records-XY3ku95x.mjs → project-records-CtkmlsHN.mjs} +3 -3
- package/dist/{relay-BA6tsnpc.mjs → relay-CiP77vga.mjs} +2 -2
- package/dist/{run-Bvvg-fiF.mjs → run-CtuNY3mE.mjs} +1 -1
- package/dist/{send-nrKtak5F.mjs → send-DRYGks8K.mjs} +3 -4
- package/dist/short-flags-DkJLWVqh.mjs +1 -0
- package/dist/short-flags-Qf21as0E.mjs +83 -0
- package/dist/{src-D4JSymhK.mjs → src-BMFQKHz4.mjs} +32 -14
- package/dist/{src-CmEvHdju.mjs → src-BrFfDKux.mjs} +8 -7
- package/dist/{src-8cOPOgrT.mjs → src-BuF9Lbow.mjs} +77 -18
- package/dist/{src-I_RyKu6_.mjs → src-k0A_QpST.mjs} +5 -3
- package/dist/store-rTgRu8xy.mjs +25 -0
- package/dist/ui/assets/app-BYxpKJRh.css +1 -0
- package/dist/ui/assets/{app-BowhjEAe.js → app-SEFEJLkF.js} +8 -8
- package/dist/ui/assets/{index-CrMa2oHB.js → index-Cb6Voq_W.js} +2 -2
- package/dist/ui/index.html +1 -1
- package/dist/{ui-DY3Dnpho.mjs → ui-C2f37TSb.mjs} +9 -6
- package/dist/{usage-1VwSg_Qt.mjs → usage-BuvGcQSk.mjs} +6 -7
- package/dist/validate-ObP5lt29.mjs +1 -0
- package/dist/{validate-BxayjjkV.mjs → validate-_HjACtk9.mjs} +6 -6
- package/dist/{verdict-CMvPCpWC.mjs → verdict-B592j1W3.mjs} +2 -2
- package/dist/{watch-CT0EtLPZ.mjs → watch-DV3ixCYj.mjs} +7 -7
- package/dist/{workflows-DHHi-APg.mjs → workflows-QLjBhGNS.mjs} +3 -3
- package/dist/{worktrees-CZvbHzbN.mjs → worktrees-D3ubG_Qw.mjs} +6 -6
- package/dist/yolo-BSH1E_kE.mjs +33 -0
- package/package.json +1 -1
- package/dist/run-DBUAq-Uu.mjs +0 -1452
- package/dist/store-CDpk8Wtz.mjs +0 -16
- package/dist/ui/assets/app--FijEXiJ.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as runOnce } from "./run-
|
|
1
|
+
import { Ai as TOOL_PREFIX, At as heldTimeout, Bt as lowerChild, Ci as isClaudeNode, Cr as parseTemplate, Ct as reportSchemaFor, Ft as failedWith, Ht as startAt, It as stoppedEnd, Kn as countedTokens, Lt as declaredProblem, Mt as calledWorkflows, Oi as timeoutMs, Pt as endedWith, Q as sessionRefusals, Ri as AGENT_DRIVERS, Rt as slotClock, Sr as evaluate, ar as END_DETAIL_LIMIT, di as beforeOf, dn as declaredOutputOf, fi as programsRunBy, fn as MCP_FILE, ft as DETACHED_ENV, gi as markValue, ir as outcomeEnd, ji as integrationFor, jt as runScope, ki as INTEGRATIONS, ln as sessionDriver, mi as parseWorkflow, mn as serversIn, on as envReadsOf, pn as mcpNotText, qr as placeFor, rr as endOf, sr as endFor, vt as planReason, wi as isToolNode, wr as renderTemplate, xt as planNodeSession, z as storePath } from "./src-BuF9Lbow.mjs";
|
|
2
|
+
import { t as runOnce } from "./run-CtuNY3mE.mjs";
|
|
3
3
|
import { n as holdGuard, r as orphanGuard, t as KILL_AFTER_MS } from "./orphan-guard-BFKg8VSd.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { accessSync, constants, lstatSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1375,7 +1375,8 @@ const IDENTITY_KEYS = /* @__PURE__ */ new Set([
|
|
|
1375
1375
|
OUTPUT_ENV,
|
|
1376
1376
|
STATE_ENV,
|
|
1377
1377
|
"ORK_ITEM",
|
|
1378
|
-
"ORK_INDEX"
|
|
1378
|
+
"ORK_INDEX",
|
|
1379
|
+
DETACHED_ENV
|
|
1379
1380
|
]);
|
|
1380
1381
|
/**
|
|
1381
1382
|
* `env` without Ork's identity variables. A run started by a program in another
|
|
@@ -1952,6 +1953,7 @@ const claudeExecutor = (options) => async (context) => {
|
|
|
1952
1953
|
...servers.value
|
|
1953
1954
|
};
|
|
1954
1955
|
if (options.machineClaude === true) spec.machineClaude = true;
|
|
1956
|
+
if (options.yolo === true) spec.yolo = true;
|
|
1955
1957
|
const driver = sessionDriverOf(context, plan, options);
|
|
1956
1958
|
if (typeof driver !== "string") return driver;
|
|
1957
1959
|
const runtime = await options.runtimeFor(driver);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { R as openStore, z as storePath } from "./src-BuF9Lbow.mjs";
|
|
2
|
+
import { t as argumentError } from "./argument-error-CihH46Le.mjs";
|
|
3
|
+
// src/store.ts
|
|
4
|
+
/**
|
|
5
|
+
* @file Opening the user's store (`~/.ork/state.db`) for the length of one
|
|
6
|
+
* command, and closing it after, whatever happens. A store that can't be
|
|
7
|
+
* opened (not a database, no access) is one line, not a stack trace.
|
|
8
|
+
*/
|
|
9
|
+
/** What to say when the store can't be opened, and what to do. */
|
|
10
|
+
const storeProblem = (error) => `Can't open Ork's store at ${storePath()}: ${error instanceof Error ? error.message : String(error)}. Move the file aside, and Ork starts a new one.`;
|
|
11
|
+
/** Runs `body` with the user's store open, and closes it after. */
|
|
12
|
+
const withStore = async (body) => {
|
|
13
|
+
let store;
|
|
14
|
+
try {
|
|
15
|
+
store = openStore();
|
|
16
|
+
} catch (error) {
|
|
17
|
+
throw argumentError(storeProblem(error));
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
await body(store);
|
|
21
|
+
} finally {
|
|
22
|
+
store.close();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export { withStore as t };
|