@ordewell/core 0.4.19 → 0.4.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/{ITerminalRunner-C-HlFxuS.d.mts → ITerminalRunner-CuNYBnqK.d.mts} +10 -0
- package/dist/{ITerminalRunner-BVU7TfT3.d.ts → ITerminalRunner-Da1gIAFX.d.ts} +10 -0
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +324 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +317 -121
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -247,6 +247,14 @@ interface PluginRunnerDef {
|
|
|
247
247
|
env?: Record<string, string>;
|
|
248
248
|
/** When true, the runner requires a PTY. HeadlessRunner wraps with `script` to allocate one. */
|
|
249
249
|
requiresTty?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* True when this runner's interactive prompt flag (e.g. opencode's
|
|
252
|
+
* `--prompt`) only pre-fills its TUI's composer instead of running it, so a
|
|
253
|
+
* surface driving that TUI unattended must send an explicit Enter after
|
|
254
|
+
* launch. Only takes effect while the resolved invocation is interactive —
|
|
255
|
+
* see `RunnerInvocation.submitPromptKey`.
|
|
256
|
+
*/
|
|
257
|
+
submitPromptKey?: boolean;
|
|
250
258
|
}
|
|
251
259
|
interface PluginFeatures {
|
|
252
260
|
modelSelection: boolean;
|
|
@@ -390,6 +398,8 @@ interface RunnerInvocation {
|
|
|
390
398
|
args: string[];
|
|
391
399
|
env: Record<string, string>;
|
|
392
400
|
promptInArgs: boolean;
|
|
401
|
+
/** True when a surface running this invocation on a real TTY must send an explicit Enter once the process starts. */
|
|
402
|
+
submitPromptKey: boolean;
|
|
393
403
|
}
|
|
394
404
|
/**
|
|
395
405
|
* Persistent storage seam for plugin manifests. The RunnerRegistry delegates
|
|
@@ -247,6 +247,14 @@ interface PluginRunnerDef {
|
|
|
247
247
|
env?: Record<string, string>;
|
|
248
248
|
/** When true, the runner requires a PTY. HeadlessRunner wraps with `script` to allocate one. */
|
|
249
249
|
requiresTty?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* True when this runner's interactive prompt flag (e.g. opencode's
|
|
252
|
+
* `--prompt`) only pre-fills its TUI's composer instead of running it, so a
|
|
253
|
+
* surface driving that TUI unattended must send an explicit Enter after
|
|
254
|
+
* launch. Only takes effect while the resolved invocation is interactive —
|
|
255
|
+
* see `RunnerInvocation.submitPromptKey`.
|
|
256
|
+
*/
|
|
257
|
+
submitPromptKey?: boolean;
|
|
250
258
|
}
|
|
251
259
|
interface PluginFeatures {
|
|
252
260
|
modelSelection: boolean;
|
|
@@ -390,6 +398,8 @@ interface RunnerInvocation {
|
|
|
390
398
|
args: string[];
|
|
391
399
|
env: Record<string, string>;
|
|
392
400
|
promptInArgs: boolean;
|
|
401
|
+
/** True when a surface running this invocation on a real TTY must send an explicit Enter once the process starts. */
|
|
402
|
+
submitPromptKey: boolean;
|
|
393
403
|
}
|
|
394
404
|
/**
|
|
395
405
|
* Persistent storage seam for plugin manifests. The RunnerRegistry delegates
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as RunnerId, c as PlanStatus, L as LegacyPlanState, a as DiscoveredModel, T as Task, d as ResearchProgress, R as ResearchLogEntry, C as ConversationMessage, n as TaskSnapshot, Q as QueuedMessage, A as ActiveTaskSession, g as ResearchToolType, b as PlanState, v as Verdict } from './Task-4rDGr8Su.mjs';
|
|
2
2
|
export { D as DiscoveredMode, M as Message, P as PlanModificationWarnings, e as ResearchStep, f as ResearchStepOutcome, S as StreamEvent, i as StreamStepEvent, j as StreamThinkingEvent, k as TaskMode, l as TaskModelAssignment, m as TaskOutputSummary, o as TaskStatus, p as TaskType, q as TaskWithParent, r as ThinkingBlock, U as UserPromptEntry, s as UserStep, V as ValidationCheck, t as ValidationContext, u as ValidationResult, w as VerificationCheck, x as addTaskToPlan, y as createEmptyPlan, z as createTask, B as emptyWarnings, E as flattenTasks, F as flattenTasksWithParents, G as migrateLegacyPlan, H as migratePlanState, I as migrateTask, J as removeTaskFromPlan, K as renumberTasks, N as updateTaskInPlan, O as validateModifiedPlan, W as warningsText } from './Task-4rDGr8Su.mjs';
|
|
3
|
-
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-
|
|
4
|
-
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, B as isReservedRunnerName, E as knownModelId, H as resolveModelShortcut, J as resolveProvider, K as toOrchestratorOptions } from './ITerminalRunner-
|
|
3
|
+
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-CuNYBnqK.mjs';
|
|
4
|
+
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, B as isReservedRunnerName, E as knownModelId, H as resolveModelShortcut, J as resolveProvider, K as toOrchestratorOptions } from './ITerminalRunner-CuNYBnqK.mjs';
|
|
5
5
|
import { I as IApproval, d as ApprovalRequest, a as ApprovalMode } from './ApprovalPolicy-BVhGdECT.mjs';
|
|
6
6
|
export { A as ApprovalKind, b as ApprovalPolicy, c as ApprovalPolicyOptions, e as ApprovalSource, D as DENY_ALL } from './ApprovalPolicy-BVhGdECT.mjs';
|
|
7
7
|
import { R as RunnerModeInfo } from './ModeResolver-mtIWrLXn.mjs';
|
|
@@ -959,6 +959,8 @@ interface PreparedLaunch {
|
|
|
959
959
|
env: Record<string, string>;
|
|
960
960
|
/** True when the invocation was wrapped in `script` to allocate a PTY. */
|
|
961
961
|
pty: boolean;
|
|
962
|
+
/** True when the started process needs an explicit Enter sent to submit its pre-filled prompt. */
|
|
963
|
+
submitPromptKey: boolean;
|
|
962
964
|
}
|
|
963
965
|
declare class HeadlessRunner extends AbstractRunner<HeadlessSession> {
|
|
964
966
|
private spawnImpl;
|
|
@@ -1659,6 +1661,11 @@ declare class TaskOrchestrator {
|
|
|
1659
1661
|
private workspaceRootFn;
|
|
1660
1662
|
private observers;
|
|
1661
1663
|
private tddEnabled;
|
|
1664
|
+
/**
|
|
1665
|
+
* Spawn context per active task, for locating the agent's own session
|
|
1666
|
+
* transcript at verdict time (issue #16). Cleared with the session entry.
|
|
1667
|
+
*/
|
|
1668
|
+
private taskSpawnContext;
|
|
1662
1669
|
constructor(config: IConfig, notifications: INotification, terminalRunner: ITerminalRunner, store?: PlanStore);
|
|
1663
1670
|
/** Advisory silence timestamp for a task's live runner, or null if not idle. */
|
|
1664
1671
|
getIdleSince(taskId: string): string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as RunnerId, c as PlanStatus, L as LegacyPlanState, a as DiscoveredModel, T as Task, d as ResearchProgress, R as ResearchLogEntry, C as ConversationMessage, n as TaskSnapshot, Q as QueuedMessage, A as ActiveTaskSession, g as ResearchToolType, b as PlanState, v as Verdict } from './Task-4rDGr8Su.js';
|
|
2
2
|
export { D as DiscoveredMode, M as Message, P as PlanModificationWarnings, e as ResearchStep, f as ResearchStepOutcome, S as StreamEvent, i as StreamStepEvent, j as StreamThinkingEvent, k as TaskMode, l as TaskModelAssignment, m as TaskOutputSummary, o as TaskStatus, p as TaskType, q as TaskWithParent, r as ThinkingBlock, U as UserPromptEntry, s as UserStep, V as ValidationCheck, t as ValidationContext, u as ValidationResult, w as VerificationCheck, x as addTaskToPlan, y as createEmptyPlan, z as createTask, B as emptyWarnings, E as flattenTasks, F as flattenTasksWithParents, G as migrateLegacyPlan, H as migratePlanState, I as migrateTask, J as removeTaskFromPlan, K as renumberTasks, N as updateTaskInPlan, O as validateModifiedPlan, W as warningsText } from './Task-4rDGr8Su.js';
|
|
3
|
-
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-
|
|
4
|
-
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, B as isReservedRunnerName, E as knownModelId, H as resolveModelShortcut, J as resolveProvider, K as toOrchestratorOptions } from './ITerminalRunner-
|
|
3
|
+
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-Da1gIAFX.js';
|
|
4
|
+
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, B as isReservedRunnerName, E as knownModelId, H as resolveModelShortcut, J as resolveProvider, K as toOrchestratorOptions } from './ITerminalRunner-Da1gIAFX.js';
|
|
5
5
|
import { I as IApproval, d as ApprovalRequest, a as ApprovalMode } from './ApprovalPolicy-BVhGdECT.js';
|
|
6
6
|
export { A as ApprovalKind, b as ApprovalPolicy, c as ApprovalPolicyOptions, e as ApprovalSource, D as DENY_ALL } from './ApprovalPolicy-BVhGdECT.js';
|
|
7
7
|
import { R as RunnerModeInfo } from './ModeResolver-Ob-ihQbI.js';
|
|
@@ -959,6 +959,8 @@ interface PreparedLaunch {
|
|
|
959
959
|
env: Record<string, string>;
|
|
960
960
|
/** True when the invocation was wrapped in `script` to allocate a PTY. */
|
|
961
961
|
pty: boolean;
|
|
962
|
+
/** True when the started process needs an explicit Enter sent to submit its pre-filled prompt. */
|
|
963
|
+
submitPromptKey: boolean;
|
|
962
964
|
}
|
|
963
965
|
declare class HeadlessRunner extends AbstractRunner<HeadlessSession> {
|
|
964
966
|
private spawnImpl;
|
|
@@ -1659,6 +1661,11 @@ declare class TaskOrchestrator {
|
|
|
1659
1661
|
private workspaceRootFn;
|
|
1660
1662
|
private observers;
|
|
1661
1663
|
private tddEnabled;
|
|
1664
|
+
/**
|
|
1665
|
+
* Spawn context per active task, for locating the agent's own session
|
|
1666
|
+
* transcript at verdict time (issue #16). Cleared with the session entry.
|
|
1667
|
+
*/
|
|
1668
|
+
private taskSpawnContext;
|
|
1662
1669
|
constructor(config: IConfig, notifications: INotification, terminalRunner: ITerminalRunner, store?: PlanStore);
|
|
1663
1670
|
/** Advisory silence timestamp for a task's live runner, or null if not idle. */
|
|
1664
1671
|
getIdleSince(taskId: string): string | null;
|