@ordewell/core 0.8.1 → 0.9.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/{IFileSystem-D96mT-bm.d.ts → IFileSystem-BjiyCQ8O.d.ts} +3 -1
- package/dist/{IFileSystem-DXJCRw5x.d.mts → IFileSystem-Cy-TAWvu.d.mts} +3 -1
- package/dist/{IRunner-CGCihlGQ.d.ts → IRunner-Corods20.d.ts} +521 -65
- package/dist/{IRunner-XVUddYVX.d.mts → IRunner-D6YfbmHn.d.mts} +521 -65
- package/dist/{chunk-BLLIBCCS.mjs → chunk-OOZWSUIE.mjs} +7 -4
- package/dist/chunk-OOZWSUIE.mjs.map +1 -0
- package/dist/index.d.mts +378 -195
- package/dist/index.d.ts +378 -195
- package/dist/index.js +3042 -552
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3005 -533
- package/dist/index.mjs.map +1 -1
- package/dist/{plan-utils-BMayhGBj.d.mts → plan-utils-BmUp_Lko.d.mts} +3 -3
- package/dist/{plan-utils-Cv48fe7r.d.ts → plan-utils-tWfH48YX.d.ts} +3 -3
- package/dist/plan-utils.d.mts +2 -2
- package/dist/plan-utils.d.ts +2 -2
- package/dist/plan-utils.js +5 -2
- package/dist/plan-utils.js.map +1 -1
- package/dist/plan-utils.mjs +1 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +3 -0
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +3 -0
- package/dist/testing.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BLLIBCCS.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ag as TaskSkillSnapshot, af as TaskSkillNotice, a8 as SubagentOutcome, ao as UsageRecord, W as RunnerId, c as DiscoveredModel, a9 as Task, L as LegacyPlanState, C as ConversationMessage, a0 as SkillLoadNotice, Q as QueuedMessage, ap as UsageTotals, av as Verdict, aa as TaskIsolation, a as AwaitingReason, g as IsolationHandoff, n as IsolationMergeResult, T as ResearchStep, z as PlanState, ah as TaskSnapshot, U as ResearchStepOutcome, O as ResearchLogEntry, G as PlannerUsage, ab as TaskIsolationState } from './Task-1Q19y7sZ.mjs';
|
|
2
2
|
import { R as RunnerModeInfo } from './ModeResolver-DE-o2lRF.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { ak as StructuredTurnEnd, i as ApprovalDecision, aj as StructuredEvent, a5 as QueuedTaskMessage, j as ApprovalKind, p as ApprovalSource } from './IRunner-D6YfbmHn.mjs';
|
|
4
4
|
import './order-labels.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -681,8 +681,8 @@ declare function summarizeToolCall(tool: string, argsJson: string, toolLabel?: s
|
|
|
681
681
|
* can render a refused `rm` or a denied `npm test` distinctly from a
|
|
682
682
|
* successful run without re-deriving the refusal signatures per surface. The
|
|
683
683
|
* refusal/denial strings come from `commandPolicy.ts`, `BaseFileSystem.ts`,
|
|
684
|
-
* and the research-subagent wrapper — keeping the matching
|
|
685
|
-
* signatures stay in one place alongside the human summary.
|
|
684
|
+
* `webReadPolicy.ts` and the research-subagent wrapper — keeping the matching
|
|
685
|
+
* here means the signatures stay in one place alongside the human summary.
|
|
686
686
|
*/
|
|
687
687
|
declare function classifyOutcome(success: boolean, output: string): ResearchStepOutcome;
|
|
688
688
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ag as TaskSkillSnapshot, af as TaskSkillNotice, a8 as SubagentOutcome, ao as UsageRecord, W as RunnerId, c as DiscoveredModel, a9 as Task, L as LegacyPlanState, C as ConversationMessage, a0 as SkillLoadNotice, Q as QueuedMessage, ap as UsageTotals, av as Verdict, aa as TaskIsolation, a as AwaitingReason, g as IsolationHandoff, n as IsolationMergeResult, T as ResearchStep, z as PlanState, ah as TaskSnapshot, U as ResearchStepOutcome, O as ResearchLogEntry, G as PlannerUsage, ab as TaskIsolationState } from './Task-1Q19y7sZ.js';
|
|
2
2
|
import { R as RunnerModeInfo } from './ModeResolver-EWlpmVAy.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ak as StructuredTurnEnd, i as ApprovalDecision, aj as StructuredEvent, a5 as QueuedTaskMessage, j as ApprovalKind, p as ApprovalSource } from './IRunner-Corods20.js';
|
|
4
4
|
import './order-labels.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -681,8 +681,8 @@ declare function summarizeToolCall(tool: string, argsJson: string, toolLabel?: s
|
|
|
681
681
|
* can render a refused `rm` or a denied `npm test` distinctly from a
|
|
682
682
|
* successful run without re-deriving the refusal signatures per surface. The
|
|
683
683
|
* refusal/denial strings come from `commandPolicy.ts`, `BaseFileSystem.ts`,
|
|
684
|
-
* and the research-subagent wrapper — keeping the matching
|
|
685
|
-
* signatures stay in one place alongside the human summary.
|
|
684
|
+
* `webReadPolicy.ts` and the research-subagent wrapper — keeping the matching
|
|
685
|
+
* here means the signatures stay in one place alongside the human summary.
|
|
686
686
|
*/
|
|
687
687
|
declare function classifyOutcome(success: boolean, output: string): ResearchStepOutcome;
|
|
688
688
|
|
package/dist/plan-utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as ApprovalBlock, b as ApprovalStatus, C as CHECKPOINT_TRUNCATE_LENGTH, c as ConversationInput, d as ConversationView, D as DiffRow, e as DiffRowKind, f as DiffStat, g as DisplayBlock, E as EMPTY_CONVERSATION, h as EMPTY_HOLD, i as EMPTY_TASK_LOG, G as GatedConversation, L as LocalEntry, k as MessageBlock, l as MessageRole, N as NOT_STARTED, m as NO_TURN, n as NewTaskFields, O as OutputPreview, P as PlanBlock, o as PlanMarkerStatus, p as PromptHold, x as SkillLoadBlock, y as SkillToken, z as SubagentBlock, B as SubagentChild, F as SubagentStatus, T as TakenPrompt, Q as TaskLogView, U as TaskRef, V as TaskRowAction, W as TaskRowContext, X as TaskRowIsolation, Y as TaskRowKind, Z as TaskRowPlacement, _ as TaskRowSubject, $ as TaskRowView, a0 as TaskStatusKind, a1 as ThinkingDisplayBlock, a2 as ToolBlock, a3 as ToolHeadline, a4 as ToolStatus, a5 as TurnGate, a6 as UsageBlock, a7 as aheadOfDraft, a9 as approvalLabel, aa as awaitingLabel, ab as canMergeTasks, ac as canSetDependencies, ad as canSplitTask, ae as capConflictFiles, ah as dependencyCandidates, ai as dependentsNotice, aj as dependentsOf, ak as diffRows, al as diffStat, am as diffSummary, ao as drainNext, aq as followTurn, ar as fromTranscript, as as hasHiddenDetail, at as holdPrompt, au as isTaskRunning, av as loadedSkillTokens, aw as markAction, ax as markRequestFor, ay as namedRepos, az as newTaskFields, aA as opsEditable, aB as outputLines, aC as outputPreview, aE as pastGateConfirmation, aF as reduceConversation, aG as reduceTaskLog, aH as replayTaskLog, aI as runnerToolSubject, aM as skillTokens, aN as stopTurn, aO as summarizeToolCall, aS as taskRowActions, aT as taskRowView, aU as taskStartedNotice, aV as taskStatusKind, aX as titledRefs, aZ as toolHeadline, a$ as truncateCheckpointSummary, b0 as unsendAll, b1 as unsendLatest } from './plan-utils-
|
|
1
|
+
export { a as ApprovalBlock, b as ApprovalStatus, C as CHECKPOINT_TRUNCATE_LENGTH, c as ConversationInput, d as ConversationView, D as DiffRow, e as DiffRowKind, f as DiffStat, g as DisplayBlock, E as EMPTY_CONVERSATION, h as EMPTY_HOLD, i as EMPTY_TASK_LOG, G as GatedConversation, L as LocalEntry, k as MessageBlock, l as MessageRole, N as NOT_STARTED, m as NO_TURN, n as NewTaskFields, O as OutputPreview, P as PlanBlock, o as PlanMarkerStatus, p as PromptHold, x as SkillLoadBlock, y as SkillToken, z as SubagentBlock, B as SubagentChild, F as SubagentStatus, T as TakenPrompt, Q as TaskLogView, U as TaskRef, V as TaskRowAction, W as TaskRowContext, X as TaskRowIsolation, Y as TaskRowKind, Z as TaskRowPlacement, _ as TaskRowSubject, $ as TaskRowView, a0 as TaskStatusKind, a1 as ThinkingDisplayBlock, a2 as ToolBlock, a3 as ToolHeadline, a4 as ToolStatus, a5 as TurnGate, a6 as UsageBlock, a7 as aheadOfDraft, a9 as approvalLabel, aa as awaitingLabel, ab as canMergeTasks, ac as canSetDependencies, ad as canSplitTask, ae as capConflictFiles, ah as dependencyCandidates, ai as dependentsNotice, aj as dependentsOf, ak as diffRows, al as diffStat, am as diffSummary, ao as drainNext, aq as followTurn, ar as fromTranscript, as as hasHiddenDetail, at as holdPrompt, au as isTaskRunning, av as loadedSkillTokens, aw as markAction, ax as markRequestFor, ay as namedRepos, az as newTaskFields, aA as opsEditable, aB as outputLines, aC as outputPreview, aE as pastGateConfirmation, aF as reduceConversation, aG as reduceTaskLog, aH as replayTaskLog, aI as runnerToolSubject, aM as skillTokens, aN as stopTurn, aO as summarizeToolCall, aS as taskRowActions, aT as taskRowView, aU as taskStartedNotice, aV as taskStatusKind, aX as titledRefs, aZ as toolHeadline, a$ as truncateCheckpointSummary, b0 as unsendAll, b1 as unsendLatest } from './plan-utils-BmUp_Lko.mjs';
|
|
2
2
|
export { taskOrderLabel, taskRef, titledTaskRef } from './order-labels.mjs';
|
|
3
3
|
export { D as DEFAULT_RUNNERS } from './Task-1Q19y7sZ.mjs';
|
|
4
4
|
import './ModeResolver-DE-o2lRF.mjs';
|
|
5
|
-
import './IRunner-
|
|
5
|
+
import './IRunner-D6YfbmHn.mjs';
|
|
6
6
|
import 'child_process';
|
|
7
7
|
import 'zod/v4';
|
package/dist/plan-utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as ApprovalBlock, b as ApprovalStatus, C as CHECKPOINT_TRUNCATE_LENGTH, c as ConversationInput, d as ConversationView, D as DiffRow, e as DiffRowKind, f as DiffStat, g as DisplayBlock, E as EMPTY_CONVERSATION, h as EMPTY_HOLD, i as EMPTY_TASK_LOG, G as GatedConversation, L as LocalEntry, k as MessageBlock, l as MessageRole, N as NOT_STARTED, m as NO_TURN, n as NewTaskFields, O as OutputPreview, P as PlanBlock, o as PlanMarkerStatus, p as PromptHold, x as SkillLoadBlock, y as SkillToken, z as SubagentBlock, B as SubagentChild, F as SubagentStatus, T as TakenPrompt, Q as TaskLogView, U as TaskRef, V as TaskRowAction, W as TaskRowContext, X as TaskRowIsolation, Y as TaskRowKind, Z as TaskRowPlacement, _ as TaskRowSubject, $ as TaskRowView, a0 as TaskStatusKind, a1 as ThinkingDisplayBlock, a2 as ToolBlock, a3 as ToolHeadline, a4 as ToolStatus, a5 as TurnGate, a6 as UsageBlock, a7 as aheadOfDraft, a9 as approvalLabel, aa as awaitingLabel, ab as canMergeTasks, ac as canSetDependencies, ad as canSplitTask, ae as capConflictFiles, ah as dependencyCandidates, ai as dependentsNotice, aj as dependentsOf, ak as diffRows, al as diffStat, am as diffSummary, ao as drainNext, aq as followTurn, ar as fromTranscript, as as hasHiddenDetail, at as holdPrompt, au as isTaskRunning, av as loadedSkillTokens, aw as markAction, ax as markRequestFor, ay as namedRepos, az as newTaskFields, aA as opsEditable, aB as outputLines, aC as outputPreview, aE as pastGateConfirmation, aF as reduceConversation, aG as reduceTaskLog, aH as replayTaskLog, aI as runnerToolSubject, aM as skillTokens, aN as stopTurn, aO as summarizeToolCall, aS as taskRowActions, aT as taskRowView, aU as taskStartedNotice, aV as taskStatusKind, aX as titledRefs, aZ as toolHeadline, a$ as truncateCheckpointSummary, b0 as unsendAll, b1 as unsendLatest } from './plan-utils-
|
|
1
|
+
export { a as ApprovalBlock, b as ApprovalStatus, C as CHECKPOINT_TRUNCATE_LENGTH, c as ConversationInput, d as ConversationView, D as DiffRow, e as DiffRowKind, f as DiffStat, g as DisplayBlock, E as EMPTY_CONVERSATION, h as EMPTY_HOLD, i as EMPTY_TASK_LOG, G as GatedConversation, L as LocalEntry, k as MessageBlock, l as MessageRole, N as NOT_STARTED, m as NO_TURN, n as NewTaskFields, O as OutputPreview, P as PlanBlock, o as PlanMarkerStatus, p as PromptHold, x as SkillLoadBlock, y as SkillToken, z as SubagentBlock, B as SubagentChild, F as SubagentStatus, T as TakenPrompt, Q as TaskLogView, U as TaskRef, V as TaskRowAction, W as TaskRowContext, X as TaskRowIsolation, Y as TaskRowKind, Z as TaskRowPlacement, _ as TaskRowSubject, $ as TaskRowView, a0 as TaskStatusKind, a1 as ThinkingDisplayBlock, a2 as ToolBlock, a3 as ToolHeadline, a4 as ToolStatus, a5 as TurnGate, a6 as UsageBlock, a7 as aheadOfDraft, a9 as approvalLabel, aa as awaitingLabel, ab as canMergeTasks, ac as canSetDependencies, ad as canSplitTask, ae as capConflictFiles, ah as dependencyCandidates, ai as dependentsNotice, aj as dependentsOf, ak as diffRows, al as diffStat, am as diffSummary, ao as drainNext, aq as followTurn, ar as fromTranscript, as as hasHiddenDetail, at as holdPrompt, au as isTaskRunning, av as loadedSkillTokens, aw as markAction, ax as markRequestFor, ay as namedRepos, az as newTaskFields, aA as opsEditable, aB as outputLines, aC as outputPreview, aE as pastGateConfirmation, aF as reduceConversation, aG as reduceTaskLog, aH as replayTaskLog, aI as runnerToolSubject, aM as skillTokens, aN as stopTurn, aO as summarizeToolCall, aS as taskRowActions, aT as taskRowView, aU as taskStartedNotice, aV as taskStatusKind, aX as titledRefs, aZ as toolHeadline, a$ as truncateCheckpointSummary, b0 as unsendAll, b1 as unsendLatest } from './plan-utils-tWfH48YX.js';
|
|
2
2
|
export { taskOrderLabel, taskRef, titledTaskRef } from './order-labels.js';
|
|
3
3
|
export { D as DEFAULT_RUNNERS } from './Task-1Q19y7sZ.js';
|
|
4
4
|
import './ModeResolver-EWlpmVAy.js';
|
|
5
|
-
import './IRunner-
|
|
5
|
+
import './IRunner-Corods20.js';
|
|
6
6
|
import 'child_process';
|
|
7
7
|
import 'zod/v4';
|
package/dist/plan-utils.js
CHANGED
|
@@ -424,14 +424,17 @@ var KNOWN_TOOLS = {
|
|
|
424
424
|
local_shell: "bash",
|
|
425
425
|
// OpenCode
|
|
426
426
|
list: "list_dir",
|
|
427
|
-
fetch: "fetch"
|
|
427
|
+
fetch: "fetch",
|
|
428
|
+
// Ordewell's own research shell (ADR-0026), under every runner's name for it
|
|
429
|
+
runcommand: "bash"
|
|
428
430
|
};
|
|
431
|
+
var ORDEWELL_TOOL_PREFIX = /^(mcp__ordewell__|ordewell_)/i;
|
|
429
432
|
var FILE_EDIT_TOOLS = /* @__PURE__ */ new Set(["edit", "write", "multiedit", "notebookedit", "applypatch", "patch", "add", "update", "delete", "filechange"]);
|
|
430
433
|
function isFileEditTool(name) {
|
|
431
434
|
return FILE_EDIT_TOOLS.has(name.trim().toLowerCase().replace(/[_-]/g, ""));
|
|
432
435
|
}
|
|
433
436
|
function mapAgentTool(name) {
|
|
434
|
-
const normalized = name.trim().toLowerCase().replace(/[_-]/g, "");
|
|
437
|
+
const normalized = name.trim().replace(ORDEWELL_TOOL_PREFIX, "").toLowerCase().replace(/[_-]/g, "");
|
|
435
438
|
const direct = KNOWN_TOOLS[normalized] ?? KNOWN_TOOLS[name.trim().toLowerCase()];
|
|
436
439
|
if (direct) {
|
|
437
440
|
return { tool: direct, toolLabel: name };
|