@jterrats/open-orchestra 1.0.12 → 1.0.14
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/CHANGELOG.md +49 -0
- package/dist/command-manifest.js +2 -0
- package/dist/command-manifest.js.map +1 -1
- package/dist/command-routes.js +5 -1
- package/dist/command-routes.js.map +1 -1
- package/dist/commands.d.ts +1 -0
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -1
- package/dist/context-index-commands.d.ts +3 -0
- package/dist/context-index-commands.js +26 -0
- package/dist/context-index-commands.js.map +1 -0
- package/dist/context-index-service.d.ts +3 -0
- package/dist/context-index-service.js +225 -0
- package/dist/context-index-service.js.map +1 -0
- package/dist/runtime-claude-native-bridge.d.ts +2 -0
- package/dist/runtime-claude-native-bridge.js +59 -0
- package/dist/runtime-claude-native-bridge.js.map +1 -0
- package/dist/runtime-parent-action-capacity.d.ts +10 -0
- package/dist/runtime-parent-action-capacity.js +110 -0
- package/dist/runtime-parent-action-capacity.js.map +1 -0
- package/dist/runtime-parent-action-dispatch.d.ts +1 -7
- package/dist/runtime-parent-action-dispatch.js +84 -90
- package/dist/runtime-parent-action-dispatch.js.map +1 -1
- package/dist/runtime-parent-action-eligibility.d.ts +10 -1
- package/dist/runtime-parent-action-eligibility.js +15 -2
- package/dist/runtime-parent-action-eligibility.js.map +1 -1
- package/dist/runtime-parent-action-fallback.d.ts +11 -0
- package/dist/runtime-parent-action-fallback.js +12 -0
- package/dist/runtime-parent-action-fallback.js.map +1 -0
- package/dist/types/context-index.d.ts +34 -0
- package/dist/types/context-index.js +2 -0
- package/dist/types/context-index.js.map +1 -0
- package/dist/types/runtime.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js.map +1 -1
- package/docs/context-index-packs.md +27 -0
- package/docs/runtime-adapters.md +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PendingRuntimeParentAction, RuntimeClaudeNativeBridgeResult, RuntimeParentActionEligibility } from "./types.js";
|
|
2
|
+
export interface RuntimeParentActionDispatchFallback {
|
|
3
|
+
summary: string;
|
|
4
|
+
guidance: string;
|
|
5
|
+
lifecycleCommands: PendingRuntimeParentAction["action"]["lifecycleCommands"];
|
|
6
|
+
promptArtifact: string;
|
|
7
|
+
expectedResultArtifact: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function runtimeParentActionFallback(action: PendingRuntimeParentAction, eligibility: RuntimeParentActionEligibility, bridge?: Extract<RuntimeClaudeNativeBridgeResult, {
|
|
10
|
+
status: "unsupported";
|
|
11
|
+
}>): RuntimeParentActionDispatchFallback;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { runtimeParentActionLegacyRationale } from "./runtime-parent-action-eligibility.js";
|
|
2
|
+
export function runtimeParentActionFallback(action, eligibility, bridge) {
|
|
3
|
+
return {
|
|
4
|
+
summary: bridge?.reason ?? runtimeParentActionLegacyRationale(eligibility),
|
|
5
|
+
guidance: bridge?.guidance ??
|
|
6
|
+
"Inspect the prompt artifact, launch the active parent runtime's native subagent tool manually when supported, then record lifecycle with the provided commands. Do not call provider APIs from Orchestra.",
|
|
7
|
+
lifecycleCommands: action.action.lifecycleCommands,
|
|
8
|
+
promptArtifact: action.action.payload.promptArtifact,
|
|
9
|
+
expectedResultArtifact: action.action.payload.expectedResultArtifact,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=runtime-parent-action-fallback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-parent-action-fallback.js","sourceRoot":"","sources":["../src/runtime-parent-action-fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAe5F,MAAM,UAAU,2BAA2B,CACzC,MAAkC,EAClC,WAA2C,EAC3C,MAA4E;IAE5E,OAAO;QACL,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,kCAAkC,CAAC,WAAW,CAAC;QAC1E,QAAQ,EACN,MAAM,EAAE,QAAQ;YAChB,2MAA2M;QAC7M,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAiB;QAClD,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc;QACpD,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,sBAAsB;KACrE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ContextIndexFileEntry {
|
|
2
|
+
path: string;
|
|
3
|
+
size: number;
|
|
4
|
+
mtimeMs: number;
|
|
5
|
+
extension: string;
|
|
6
|
+
depth: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ContextIndexManifest {
|
|
9
|
+
schemaVersion: 1;
|
|
10
|
+
root: string;
|
|
11
|
+
generatedAt: string;
|
|
12
|
+
exclusionHash: string;
|
|
13
|
+
totalFiles: number;
|
|
14
|
+
indexedFiles: number;
|
|
15
|
+
excludedFiles: number;
|
|
16
|
+
totalBytes: number;
|
|
17
|
+
filesPath: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ContextIndexBuildResult {
|
|
20
|
+
manifest: ContextIndexManifest;
|
|
21
|
+
files: ContextIndexFileEntry[];
|
|
22
|
+
indexDirectory: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ContextIndexStatus {
|
|
25
|
+
exists: boolean;
|
|
26
|
+
stale: boolean;
|
|
27
|
+
reason: string;
|
|
28
|
+
manifest?: ContextIndexManifest;
|
|
29
|
+
current?: {
|
|
30
|
+
indexedFiles: number;
|
|
31
|
+
excludedFiles: number;
|
|
32
|
+
totalBytes: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-index.js","sourceRoot":"","sources":["../../src/types/context-index.ts"],"names":[],"mappings":""}
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -204,6 +204,14 @@ export interface RuntimeParentActionEligibilityChecked {
|
|
|
204
204
|
sessionStatus?: RuntimeDelegationSessionStatus;
|
|
205
205
|
runtimeFilter?: string;
|
|
206
206
|
safetyState: RuntimeParentActionSafetyState;
|
|
207
|
+
capacity?: {
|
|
208
|
+
status: "available" | "reserved" | "queued";
|
|
209
|
+
activeSessions: number;
|
|
210
|
+
maxConcurrentDelegates: number;
|
|
211
|
+
activeTaskSessions: number;
|
|
212
|
+
maxSpawnsPerTask: number;
|
|
213
|
+
reason?: string;
|
|
214
|
+
};
|
|
207
215
|
}
|
|
208
216
|
export interface RuntimeParentActionEligibility {
|
|
209
217
|
status: RuntimeParentActionEligibilityStatus;
|
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ModelProvenanceRecord, TelemetryConsentState } from "./types/model
|
|
|
3
3
|
import type { CollaborationFlowRecommendation, MemoryPacket, SkillPlan, SkillRenderTarget, WorkflowTemplateSelection } from "./types/skills.js";
|
|
4
4
|
import type { EventEntry, LockEntry, Task, TaskStatus } from "./types/tasks.js";
|
|
5
5
|
export type { ContextBudgetMetadata, ContextBudgetSection, } from "./types/context.js";
|
|
6
|
+
export type { ContextIndexBuildResult, ContextIndexFileEntry, ContextIndexManifest, ContextIndexStatus, } from "./types/context-index.js";
|
|
6
7
|
export type { BudgetLimit, BudgetPolicy, ConfiguredProviderSummary, GitHubConfig, GitHubNotificationConfig, ModelMessage, ModelProvider, ModelProviderCapabilities, ModelProviderError, ModelProvenanceInput, ModelProvenanceRecord, ModelRequest, ModelResponse, ModelStreamEvent, NotificationChannelResult, NotificationsConfig, PhaseExecutionMode, PhaseExecutorPhase, PhaseLlmResult, PhaseOutcome, PhaseStructuredOutput, ProviderFallbackResult, ProviderFailureDetail, ProviderProfileSmokeCheck, ProviderProfileSmokeResult, ProviderCredentialConfig, ProviderCredentialsConfig, ProviderPolicyConfig, ProviderRuntimeProfile, ProviderRuntimeProfileSummary, ProviderRouting, SlackNotificationConfig, TelemetryConsentState, TelemetryLevel, ToolConfig, WorkflowConfig, WorkflowProvidersConfig, } from "./types/model-config.js";
|
|
7
8
|
export type { RuntimeAdapter, RuntimeAdapterCatalogEntry, RuntimeAdapterKind, RuntimeBrief, RuntimeDelegationAssignment, RuntimeDelegationGuardrailEvaluation, RuntimeDelegationGuardrailStatus, RuntimeDelegationGuardrails, RuntimeDelegationLimitAction, RuntimeDelegationMode, RuntimeDelegationOperationsReport, RuntimeDelegationPacket, RuntimeDelegationPolicy, RuntimeDelegationSessionStatus, RuntimeDelegationSessionSummary, RuntimeClaudeNativeBridgeResult, RuntimeClaudeNativeCallbackMetadata, RuntimeExecutionAdapter, RuntimeExecutionCapabilities, RuntimeExecutionId, RuntimeExecutionPolicy, RuntimeExecutorConfig, RuntimeInvocationPlan, RuntimeLifecycleWatcherAdapter, RuntimeLifecycleWatcherDetectionMode, RuntimeLifecycleWatcherSupportLevel, PendingRuntimeParentAction, RuntimeParentAction, RuntimeParentActionEligibility, RuntimeParentActionEligibilityChecked, RuntimeParentActionEligibilityStatus, RuntimeParentActionKind, RuntimeParentActionLifecycleCommands, RuntimeParentActionPayload, RuntimeParentActionSafetyState, RuntimeParentActionSkipReason, RuntimeParentActionSkipReasonCode, RuntimeSelection, RuntimeSpawnCapability, RuntimeSpawnCapabilityMode, RuntimeSpawnRequest, RuntimeSpawnRequestStatus, RuntimeSubagentCapabilities, } from "./types/runtime.js";
|
|
8
9
|
export type { AgentLesson, AgentLessonInput, CollaborationFlow, CollaborationFlowRecommendation, CollaborationFlowStep, MemoryHookPoint, MemoryLessonSnippet, MemoryPacket, MemoryPromptSnippet, MemorySectionReport, RuntimeSkillPlanRequest, Skill, SkillLoadBudget, SkillPlan, SkillPlanItem, SkillRenderTarget, PhasePlaybook, SkillValidationReport, RenderedWorkflowTemplate, WorkflowTemplate, WorkflowTemplateSelection, } from "./types/skills.js";
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwIA,OAAO,EACL,aAAa,GAoBd,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Context Index And Packs
|
|
2
|
+
|
|
3
|
+
Open Orchestra can build a local, offline context index so future runtime
|
|
4
|
+
prompts can reference compact project facts instead of asking agents to scan the
|
|
5
|
+
whole repository.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
orchestra context-index build --json
|
|
9
|
+
orchestra context-index status --json
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The build command writes:
|
|
13
|
+
|
|
14
|
+
- `.agent-workflow/context-index/manifest.json`
|
|
15
|
+
- `.agent-workflow/context-index/files.jsonl`
|
|
16
|
+
|
|
17
|
+
The index stores relative paths, file size, modified time, extension, and depth.
|
|
18
|
+
It intentionally excludes generated, dependency, cache, binary-output, workflow,
|
|
19
|
+
and secret-sensitive paths such as `node_modules`, `dist`, `build`,
|
|
20
|
+
`.agent-workflow`, `.env*`, key files, credentials, tokens, and secrets.
|
|
21
|
+
|
|
22
|
+
`context-index status` rescans the workspace and reports whether the index is
|
|
23
|
+
fresh. It marks the index stale when the schema changes, exclusion rules drift,
|
|
24
|
+
files are added or removed, indexed file size or modified time changes, or the
|
|
25
|
+
manifest is corrupted.
|
|
26
|
+
|
|
27
|
+
This is the foundation for follow-up context search and bounded context packs.
|
package/docs/runtime-adapters.md
CHANGED
|
@@ -226,6 +226,17 @@ non-Claude, or callback-unavailable contexts return fallback guidance and do not
|
|
|
226
226
|
claim native execution. Orchestra does not call Claude Code, Anthropic APIs, or
|
|
227
227
|
another provider API.
|
|
228
228
|
|
|
229
|
+
Runtime-native dispatch also enforces delegation capacity before calling parent
|
|
230
|
+
runtime tools. The dispatcher evaluates actions sequentially, reserves only the
|
|
231
|
+
oldest eligible requested sessions within `maxConcurrentDelegates` and
|
|
232
|
+
`maxSpawnsPerTask`, keeps suspended sessions from opening extra capacity, and
|
|
233
|
+
leaves over-capacity actions queued with structured `checked.capacity` metadata.
|
|
234
|
+
When lifecycle events complete, fail, time out, cancel, or close an active
|
|
235
|
+
session, the next queued action can be promoted to a requested parent action and
|
|
236
|
+
dispatched on the next bounded auto-dispatch pass. This prevents several squads
|
|
237
|
+
or gates from flooding the parent runtime at once while still allowing
|
|
238
|
+
background work to continue as capacity becomes available.
|
|
239
|
+
|
|
229
240
|
Runtime lifecycle watching is adapter-driven. Each inspected session reports a
|
|
230
241
|
`watcher` object with adapter id, detection mode, support level, fallback
|
|
231
242
|
behavior, and the reason a native callback is unavailable. `codex-cli`,
|