actoviq-agent-sdk 0.4.7 → 0.4.8
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 +17 -1
- package/README-zh.md +8 -5
- package/README.md +9 -6
- package/assets/actoviq-icon.png +0 -0
- package/dist/src/browser/actoviqBrowserSession.d.ts +137 -0
- package/dist/src/browser/actoviqBrowserSession.d.ts.map +1 -0
- package/dist/src/browser/actoviqBrowserSession.js +623 -0
- package/dist/src/browser/actoviqBrowserSession.js.map +1 -0
- package/dist/src/browser/actoviqBrowserTools.d.ts +80 -0
- package/dist/src/browser/actoviqBrowserTools.d.ts.map +1 -0
- package/dist/src/browser/actoviqBrowserTools.js +177 -0
- package/dist/src/browser/actoviqBrowserTools.js.map +1 -0
- package/dist/src/browser/browserSettings.d.ts +8 -0
- package/dist/src/browser/browserSettings.d.ts.map +1 -0
- package/dist/src/browser/browserSettings.js +47 -0
- package/dist/src/browser/browserSettings.js.map +1 -0
- package/dist/src/cli/actoviq-react.js +144 -4
- package/dist/src/cli/actoviq-react.js.map +1 -1
- package/dist/src/computer/actoviqComputerUse.d.ts.map +1 -1
- package/dist/src/computer/actoviqComputerUse.js +226 -40
- package/dist/src/computer/actoviqComputerUse.js.map +1 -1
- package/dist/src/computer/e2bComputerUse.d.ts +57 -0
- package/dist/src/computer/e2bComputerUse.d.ts.map +1 -0
- package/dist/src/computer/e2bComputerUse.js +401 -0
- package/dist/src/computer/e2bComputerUse.js.map +1 -0
- package/dist/src/config/agentProfiles.d.ts +8 -1
- package/dist/src/config/agentProfiles.d.ts.map +1 -1
- package/dist/src/config/agentProfiles.js +86 -4
- package/dist/src/config/agentProfiles.js.map +1 -1
- package/dist/src/config/projectSessionDirectory.d.ts +22 -0
- package/dist/src/config/projectSessionDirectory.d.ts.map +1 -1
- package/dist/src/config/projectSessionDirectory.js +512 -46
- package/dist/src/config/projectSessionDirectory.js.map +1 -1
- package/dist/src/config/resolveRuntimeConfig.d.ts.map +1 -1
- package/dist/src/config/resolveRuntimeConfig.js +12 -7
- package/dist/src/config/resolveRuntimeConfig.js.map +1 -1
- package/dist/src/gui/actoviqGui.d.ts +3 -0
- package/dist/src/gui/actoviqGui.d.ts.map +1 -1
- package/dist/src/gui/actoviqGui.js +7247 -997
- package/dist/src/gui/actoviqGui.js.map +1 -1
- package/dist/src/gui/electronMain.js +21 -4
- package/dist/src/gui/electronMain.js.map +1 -1
- package/dist/src/gui/externalCliAgentMonitor.d.ts +15 -0
- package/dist/src/gui/externalCliAgentMonitor.d.ts.map +1 -0
- package/dist/src/gui/externalCliAgentMonitor.js +133 -0
- package/dist/src/gui/externalCliAgentMonitor.js.map +1 -0
- package/dist/src/gui/projectWorkbench.d.ts +2 -0
- package/dist/src/gui/projectWorkbench.d.ts.map +1 -1
- package/dist/src/gui/projectWorkbench.js +66 -1
- package/dist/src/gui/projectWorkbench.js.map +1 -1
- package/dist/src/gui/transcript/clientBundle.d.ts.map +1 -1
- package/dist/src/gui/transcript/clientBundle.js +157 -17
- package/dist/src/gui/transcript/clientBundle.js.map +1 -1
- package/dist/src/gui/transcript/parts.d.ts.map +1 -1
- package/dist/src/gui/transcript/parts.js +28 -0
- package/dist/src/gui/transcript/parts.js.map +1 -1
- package/dist/src/index.d.ts +36 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +22 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/parity/actoviqBridgeSdk.d.ts +13 -1
- package/dist/src/parity/actoviqBridgeSdk.d.ts.map +1 -1
- package/dist/src/parity/actoviqBridgeSdk.js +1022 -83
- package/dist/src/parity/actoviqBridgeSdk.js.map +1 -1
- package/dist/src/parity/bridgeConfigs.d.ts +15 -0
- package/dist/src/parity/bridgeConfigs.d.ts.map +1 -1
- package/dist/src/parity/bridgeConfigs.js +112 -3
- package/dist/src/parity/bridgeConfigs.js.map +1 -1
- package/dist/src/parity/bridgeEventAdapter.d.ts +5 -1
- package/dist/src/parity/bridgeEventAdapter.d.ts.map +1 -1
- package/dist/src/parity/bridgeEventAdapter.js +65 -12
- package/dist/src/parity/bridgeEventAdapter.js.map +1 -1
- package/dist/src/parity/bridgeExecResolver.d.ts +10 -11
- package/dist/src/parity/bridgeExecResolver.d.ts.map +1 -1
- package/dist/src/parity/bridgeExecResolver.js +40 -23
- package/dist/src/parity/bridgeExecResolver.js.map +1 -1
- package/dist/src/parity/bridgeProcessTree.d.ts +3 -0
- package/dist/src/parity/bridgeProcessTree.d.ts.map +1 -0
- package/dist/src/parity/bridgeProcessTree.js +83 -0
- package/dist/src/parity/bridgeProcessTree.js.map +1 -0
- package/dist/src/parity/bridgeProviders.d.ts +16 -2
- package/dist/src/parity/bridgeProviders.d.ts.map +1 -1
- package/dist/src/parity/bridgeProviders.js +482 -100
- package/dist/src/parity/bridgeProviders.js.map +1 -1
- package/dist/src/parity/codewhaleRuntimeAdapter.d.ts +18 -0
- package/dist/src/parity/codewhaleRuntimeAdapter.d.ts.map +1 -0
- package/dist/src/parity/codewhaleRuntimeAdapter.js +350 -0
- package/dist/src/parity/codewhaleRuntimeAdapter.js.map +1 -0
- package/dist/src/parity/crushManagedClient.d.ts +84 -0
- package/dist/src/parity/crushManagedClient.d.ts.map +1 -0
- package/dist/src/parity/crushManagedClient.js +978 -0
- package/dist/src/parity/crushManagedClient.js.map +1 -0
- package/dist/src/parity/crushSessionHistory.d.ts +53 -0
- package/dist/src/parity/crushSessionHistory.d.ts.map +1 -0
- package/dist/src/parity/crushSessionHistory.js +358 -0
- package/dist/src/parity/crushSessionHistory.js.map +1 -0
- package/dist/src/parity/externalCliAuth.d.ts +23 -0
- package/dist/src/parity/externalCliAuth.d.ts.map +1 -0
- package/dist/src/parity/externalCliAuth.js +268 -0
- package/dist/src/parity/externalCliAuth.js.map +1 -0
- package/dist/src/parity/externalCliRuntimeManager.d.ts +138 -0
- package/dist/src/parity/externalCliRuntimeManager.d.ts.map +1 -0
- package/dist/src/parity/externalCliRuntimeManager.js +527 -0
- package/dist/src/parity/externalCliRuntimeManager.js.map +1 -0
- package/dist/src/parity/externalCliSessions.d.ts +90 -0
- package/dist/src/parity/externalCliSessions.d.ts.map +1 -0
- package/dist/src/parity/externalCliSessions.js +1436 -0
- package/dist/src/parity/externalCliSessions.js.map +1 -0
- package/dist/src/parity/reasonixAcpSession.d.ts +35 -0
- package/dist/src/parity/reasonixAcpSession.d.ts.map +1 -0
- package/dist/src/parity/reasonixAcpSession.js +472 -0
- package/dist/src/parity/reasonixAcpSession.js.map +1 -0
- package/dist/src/parity/reasonixManagedClient.d.ts +56 -0
- package/dist/src/parity/reasonixManagedClient.d.ts.map +1 -0
- package/dist/src/parity/reasonixManagedClient.js +293 -0
- package/dist/src/parity/reasonixManagedClient.js.map +1 -0
- package/dist/src/parity/reasonixSessionParser.d.ts +50 -0
- package/dist/src/parity/reasonixSessionParser.d.ts.map +1 -0
- package/dist/src/parity/reasonixSessionParser.js +440 -0
- package/dist/src/parity/reasonixSessionParser.js.map +1 -0
- package/dist/src/plugins/githubPlugin.d.ts +64 -0
- package/dist/src/plugins/githubPlugin.d.ts.map +1 -0
- package/dist/src/plugins/githubPlugin.js +261 -0
- package/dist/src/plugins/githubPlugin.js.map +1 -0
- package/dist/src/plugins/kimiWebBridgePlugin.d.ts +32 -0
- package/dist/src/plugins/kimiWebBridgePlugin.d.ts.map +1 -0
- package/dist/src/plugins/kimiWebBridgePlugin.js +214 -0
- package/dist/src/plugins/kimiWebBridgePlugin.js.map +1 -0
- package/dist/src/plugins/managedPluginCatalog.d.ts +47 -0
- package/dist/src/plugins/managedPluginCatalog.d.ts.map +1 -0
- package/dist/src/plugins/managedPluginCatalog.js +399 -0
- package/dist/src/plugins/managedPluginCatalog.js.map +1 -0
- package/dist/src/plugins/managedPluginHealth.d.ts +9 -0
- package/dist/src/plugins/managedPluginHealth.d.ts.map +1 -0
- package/dist/src/plugins/managedPluginHealth.js +149 -0
- package/dist/src/plugins/managedPluginHealth.js.map +1 -0
- package/dist/src/plugins/managedPluginRuntime.d.ts +14 -0
- package/dist/src/plugins/managedPluginRuntime.d.ts.map +1 -0
- package/dist/src/plugins/managedPluginRuntime.js +331 -0
- package/dist/src/plugins/managedPluginRuntime.js.map +1 -0
- package/dist/src/plugins/ocrPlugin.d.ts +46 -0
- package/dist/src/plugins/ocrPlugin.d.ts.map +1 -0
- package/dist/src/plugins/ocrPlugin.js +464 -0
- package/dist/src/plugins/ocrPlugin.js.map +1 -0
- package/dist/src/provider/client.d.ts +7 -1
- package/dist/src/provider/client.d.ts.map +1 -1
- package/dist/src/provider/client.js +61 -6
- package/dist/src/provider/client.js.map +1 -1
- package/dist/src/provider/openai-client.d.ts.map +1 -1
- package/dist/src/provider/openai-client.js +49 -3
- package/dist/src/provider/openai-client.js.map +1 -1
- package/dist/src/runtime/actoviqAgentExecutions.d.ts +85 -0
- package/dist/src/runtime/actoviqAgentExecutions.d.ts.map +1 -0
- package/dist/src/runtime/actoviqAgentExecutions.js +479 -0
- package/dist/src/runtime/actoviqAgentExecutions.js.map +1 -0
- package/dist/src/runtime/actoviqAgents.d.ts +15 -12
- package/dist/src/runtime/actoviqAgents.d.ts.map +1 -1
- package/dist/src/runtime/actoviqAgents.js +15 -0
- package/dist/src/runtime/actoviqAgents.js.map +1 -1
- package/dist/src/runtime/actoviqBackgroundTasks.d.ts +17 -2
- package/dist/src/runtime/actoviqBackgroundTasks.d.ts.map +1 -1
- package/dist/src/runtime/actoviqBackgroundTasks.js +291 -104
- package/dist/src/runtime/actoviqBackgroundTasks.js.map +1 -1
- package/dist/src/runtime/actoviqCompact.d.ts.map +1 -1
- package/dist/src/runtime/actoviqCompact.js +10 -75
- package/dist/src/runtime/actoviqCompact.js.map +1 -1
- package/dist/src/runtime/actoviqSkills.d.ts +14 -1
- package/dist/src/runtime/actoviqSkills.d.ts.map +1 -1
- package/dist/src/runtime/actoviqSkills.js +27 -2
- package/dist/src/runtime/actoviqSkills.js.map +1 -1
- package/dist/src/runtime/agentClient.d.ts +16 -2
- package/dist/src/runtime/agentClient.d.ts.map +1 -1
- package/dist/src/runtime/agentClient.js +745 -207
- package/dist/src/runtime/agentClient.js.map +1 -1
- package/dist/src/runtime/agentExecution.d.ts +196 -0
- package/dist/src/runtime/agentExecution.d.ts.map +1 -0
- package/dist/src/runtime/agentExecution.js +360 -0
- package/dist/src/runtime/agentExecution.js.map +1 -0
- package/dist/src/runtime/agentRuntimeDiscovery.d.ts +8 -2
- package/dist/src/runtime/agentRuntimeDiscovery.d.ts.map +1 -1
- package/dist/src/runtime/agentRuntimeDiscovery.js +30 -18
- package/dist/src/runtime/agentRuntimeDiscovery.js.map +1 -1
- package/dist/src/runtime/conversationEngine.d.ts +2 -1
- package/dist/src/runtime/conversationEngine.d.ts.map +1 -1
- package/dist/src/runtime/conversationEngine.js +66 -50
- package/dist/src/runtime/conversationEngine.js.map +1 -1
- package/dist/src/runtime/externalSkillCatalog.d.ts +107 -0
- package/dist/src/runtime/externalSkillCatalog.d.ts.map +1 -0
- package/dist/src/runtime/externalSkillCatalog.js +895 -0
- package/dist/src/runtime/externalSkillCatalog.js.map +1 -0
- package/dist/src/runtime/externalSkillPreferences.d.ts +25 -0
- package/dist/src/runtime/externalSkillPreferences.d.ts.map +1 -0
- package/dist/src/runtime/externalSkillPreferences.js +132 -0
- package/dist/src/runtime/externalSkillPreferences.js.map +1 -0
- package/dist/src/runtime/externalSkillRuntime.d.ts +31 -0
- package/dist/src/runtime/externalSkillRuntime.d.ts.map +1 -0
- package/dist/src/runtime/externalSkillRuntime.js +129 -0
- package/dist/src/runtime/externalSkillRuntime.js.map +1 -0
- package/dist/src/runtime/sessionTurnCoordinator.d.ts +2 -2
- package/dist/src/runtime/sessionTurnCoordinator.js +2 -2
- package/dist/src/storage/agentExecutionStore.d.ts +31 -0
- package/dist/src/storage/agentExecutionStore.d.ts.map +1 -0
- package/dist/src/storage/agentExecutionStore.js +413 -0
- package/dist/src/storage/agentExecutionStore.js.map +1 -0
- package/dist/src/storage/backgroundTaskStore.d.ts +5 -0
- package/dist/src/storage/backgroundTaskStore.d.ts.map +1 -1
- package/dist/src/storage/backgroundTaskStore.js +79 -3
- package/dist/src/storage/backgroundTaskStore.js.map +1 -1
- package/dist/src/storage/sessionStore.d.ts +8 -0
- package/dist/src/storage/sessionStore.d.ts.map +1 -1
- package/dist/src/storage/sessionStore.js +134 -18
- package/dist/src/storage/sessionStore.js.map +1 -1
- package/dist/src/team/teamGraphLayout.d.ts +53 -1
- package/dist/src/team/teamGraphLayout.d.ts.map +1 -1
- package/dist/src/team/teamGraphLayout.js +127 -1
- package/dist/src/team/teamGraphLayout.js.map +1 -1
- package/dist/src/team/teamGraphScaffold.d.ts.map +1 -1
- package/dist/src/team/teamGraphScaffold.js +31 -0
- package/dist/src/team/teamGraphScaffold.js.map +1 -1
- package/dist/src/team/teamGraphV3.d.ts +1 -0
- package/dist/src/team/teamGraphV3.d.ts.map +1 -1
- package/dist/src/team/teamGraphV3.js +24 -5
- package/dist/src/team/teamGraphV3.js.map +1 -1
- package/dist/src/team/teamPropose.d.ts +19 -0
- package/dist/src/team/teamPropose.d.ts.map +1 -0
- package/dist/src/team/teamPropose.js +126 -0
- package/dist/src/team/teamPropose.js.map +1 -0
- package/dist/src/tools/actoviqCoreTools.d.ts.map +1 -1
- package/dist/src/tools/actoviqCoreTools.js +3 -1
- package/dist/src/tools/actoviqCoreTools.js.map +1 -1
- package/dist/src/tools/exaSearch.d.ts +56 -0
- package/dist/src/tools/exaSearch.d.ts.map +1 -0
- package/dist/src/tools/exaSearch.js +170 -0
- package/dist/src/tools/exaSearch.js.map +1 -0
- package/dist/src/tools/tavilySearch.d.ts +34 -1
- package/dist/src/tools/tavilySearch.d.ts.map +1 -1
- package/dist/src/tools/tavilySearch.js +69 -54
- package/dist/src/tools/tavilySearch.js.map +1 -1
- package/dist/src/tools/todo/TodoWriteTool.d.ts +1 -1
- package/dist/src/tui/actoviqTui.d.ts +3 -1
- package/dist/src/tui/actoviqTui.d.ts.map +1 -1
- package/dist/src/tui/actoviqTui.js +1208 -92
- package/dist/src/tui/actoviqTui.js.map +1 -1
- package/dist/src/types.d.ts +223 -14
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/ui/agentExecutionView.d.ts +111 -0
- package/dist/src/ui/agentExecutionView.d.ts.map +1 -0
- package/dist/src/ui/agentExecutionView.js +442 -0
- package/dist/src/ui/agentExecutionView.js.map +1 -0
- package/dist/src/ui/commandSurface.d.ts +2 -0
- package/dist/src/ui/commandSurface.d.ts.map +1 -1
- package/dist/src/ui/commandSurface.js +38 -3
- package/dist/src/ui/commandSurface.js.map +1 -1
- package/dist/src/workflow-v2/localIsolatedProcessExecutor.d.ts.map +1 -1
- package/dist/src/workflow-v2/localIsolatedProcessExecutor.js +6 -2
- package/dist/src/workflow-v2/localIsolatedProcessExecutor.js.map +1 -1
- package/package.json +35 -7
package/dist/src/types.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export type ActoviqSettingsData = LoadedJsonConfigData;
|
|
|
11
11
|
export interface ToolExecutionContext {
|
|
12
12
|
signal?: AbortSignal;
|
|
13
13
|
runId: string;
|
|
14
|
+
/** Stable provider tool-use id for lifecycle/relationship correlation. */
|
|
15
|
+
toolUseId?: string;
|
|
14
16
|
sessionId?: string;
|
|
15
17
|
cwd: string;
|
|
16
18
|
metadata: Record<string, unknown>;
|
|
@@ -496,6 +498,27 @@ export interface ActoviqSkillDefinitionSummary {
|
|
|
496
498
|
skillRoot?: string;
|
|
497
499
|
paths?: string[];
|
|
498
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* Native CLI skill sources that the Hadamard runtime may reuse. User-level
|
|
503
|
+
* sources are eligible by default; project-level sources remain disabled until
|
|
504
|
+
* their source id is explicitly trusted.
|
|
505
|
+
*/
|
|
506
|
+
export interface ActoviqExternalSkillsOptions {
|
|
507
|
+
/** Limit discovery to these catalog source ids. Omit to use every external source. */
|
|
508
|
+
enabledSourceIds?: string[];
|
|
509
|
+
/** Exclude catalog sources without modifying their native runtime directories. */
|
|
510
|
+
disabledSourceIds?: string[];
|
|
511
|
+
/** Exclude individual catalog variants by their stable catalog id. */
|
|
512
|
+
disabledSkillIds?: string[];
|
|
513
|
+
/** Project source ids approved for this workspace, for example `codex:project`. */
|
|
514
|
+
trustedProjectSourceIds?: string[];
|
|
515
|
+
/** Resolve an invocation-name conflict to one catalog skill id. */
|
|
516
|
+
preferredSkillIds?: Record<string, string>;
|
|
517
|
+
/** Test/embedding seam for resolving native runtime home directories. */
|
|
518
|
+
osHomeDir?: string;
|
|
519
|
+
/** Environment seam for CLAUDE_CONFIG_DIR and CODEX_HOME overrides. */
|
|
520
|
+
env?: NodeJS.ProcessEnv | Record<string, string | undefined>;
|
|
521
|
+
}
|
|
499
522
|
export type ActoviqCleanToolCategory = 'file' | 'task' | 'computer' | 'mcp' | 'custom';
|
|
500
523
|
export interface ActoviqCleanToolMetadata {
|
|
501
524
|
name: string;
|
|
@@ -601,6 +624,8 @@ export interface CreateAgentSdkOptions {
|
|
|
601
624
|
maxSubagentFanout?: number;
|
|
602
625
|
skills?: ActoviqSkillDefinition[];
|
|
603
626
|
skillDirectories?: string[];
|
|
627
|
+
/** Reuse user-configured Claude Code, Codex, Cursor, cc-switch, and shared-agent skills. */
|
|
628
|
+
externalSkills?: boolean | ActoviqExternalSkillsOptions;
|
|
604
629
|
disableDefaultSkills?: boolean;
|
|
605
630
|
loadDefaultSkillDirectories?: boolean;
|
|
606
631
|
hooks?: ActoviqHooks;
|
|
@@ -610,6 +635,8 @@ export interface CreateAgentSdkOptions {
|
|
|
610
635
|
classifier?: ActoviqToolClassifier;
|
|
611
636
|
approver?: ActoviqToolApprover;
|
|
612
637
|
computerUse?: boolean | CreateActoviqComputerUseOptions;
|
|
638
|
+
/** Opt-in Playwright browser automation tools (browser-use style snapshot/index actions). */
|
|
639
|
+
browserUse?: boolean | CreateActoviqBrowserUseOptions;
|
|
613
640
|
provider?: 'anthropic' | 'openai';
|
|
614
641
|
effort?: ActoviqEffort;
|
|
615
642
|
modelApi?: ModelApi;
|
|
@@ -702,7 +729,7 @@ export interface AgentRunOptions {
|
|
|
702
729
|
* queued while the agent was working. Drained texts are appended to the
|
|
703
730
|
* next tool-result user message so the model sees them on its next request.
|
|
704
731
|
*/
|
|
705
|
-
drainQueuedInputs?: () => string[]
|
|
732
|
+
drainQueuedInputs?: () => string[] | Promise<string[]>;
|
|
706
733
|
/**
|
|
707
734
|
* Follow-up queue: drained only after the model reaches a natural stopping
|
|
708
735
|
* point. Follow-ups continue the same run without racing a second session
|
|
@@ -726,6 +753,11 @@ export interface SessionCreateOptions {
|
|
|
726
753
|
tags?: string[];
|
|
727
754
|
metadata?: Record<string, unknown>;
|
|
728
755
|
initialMessages?: MessageParam[];
|
|
756
|
+
/** Durable conversation kind. Agent sessions remain independently resumable. */
|
|
757
|
+
kind?: 'main' | 'worktree' | 'manager' | 'agent';
|
|
758
|
+
/** Direct conversation parent. This is execution topology, not transcript forking. */
|
|
759
|
+
parentSessionId?: string;
|
|
760
|
+
originalWorkDir?: string;
|
|
729
761
|
}
|
|
730
762
|
export interface SessionForkOptions {
|
|
731
763
|
title?: string;
|
|
@@ -781,6 +813,10 @@ export interface AgentToolCallRecord extends AgentToolCallEventPayload {
|
|
|
781
813
|
export interface AgentRunResult {
|
|
782
814
|
runId: string;
|
|
783
815
|
sessionId?: string;
|
|
816
|
+
/** Root Agent execution tree for this run. */
|
|
817
|
+
executionId?: string;
|
|
818
|
+
/** Stable node for the Agent conversation that produced this result. */
|
|
819
|
+
executionNodeId?: string;
|
|
784
820
|
model: string;
|
|
785
821
|
text: string;
|
|
786
822
|
message: Message;
|
|
@@ -944,9 +980,26 @@ export interface ActoviqAgentContinuityState {
|
|
|
944
980
|
delegatedAgents: ActoviqDelegatedAgentRecord[];
|
|
945
981
|
}
|
|
946
982
|
export type ActoviqBackgroundTaskStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
983
|
+
export interface ActoviqBackgroundTaskQueuedInput {
|
|
984
|
+
/** Stable collaboration tool-use id; also provides replay idempotency. */
|
|
985
|
+
id: string;
|
|
986
|
+
text: string;
|
|
987
|
+
rootExecutionId: string;
|
|
988
|
+
edgeCallId: string;
|
|
989
|
+
}
|
|
947
990
|
export interface ActoviqBackgroundTaskRecord {
|
|
948
991
|
id: string;
|
|
949
992
|
status: ActoviqBackgroundTaskStatus;
|
|
993
|
+
/** Process that owns the live worker; used to avoid cross-process false recovery. */
|
|
994
|
+
ownerPid?: number;
|
|
995
|
+
/** Stable manager instance that launched the worker. */
|
|
996
|
+
ownerInstanceId?: string;
|
|
997
|
+
/** Lease heartbeat used to distinguish a live owner from PID reuse. */
|
|
998
|
+
ownerHeartbeatAt?: string;
|
|
999
|
+
/** Durable cross-process follow-ups waiting for the worker's next input boundary. */
|
|
1000
|
+
queuedInputs?: ActoviqBackgroundTaskQueuedInput[];
|
|
1001
|
+
/** Bounded replay guard retained after queued inputs are drained. */
|
|
1002
|
+
seenInputIds?: string[];
|
|
950
1003
|
description: string;
|
|
951
1004
|
subagentType: string;
|
|
952
1005
|
outputFile: string;
|
|
@@ -960,6 +1013,8 @@ export interface ActoviqBackgroundTaskRecord {
|
|
|
960
1013
|
agentName?: string;
|
|
961
1014
|
sessionId?: string;
|
|
962
1015
|
runId?: string;
|
|
1016
|
+
executionId?: string;
|
|
1017
|
+
executionNodeId?: string;
|
|
963
1018
|
model?: string;
|
|
964
1019
|
text?: string;
|
|
965
1020
|
partialText?: string;
|
|
@@ -1047,13 +1102,13 @@ export interface ActoviqTeammateTranscript {
|
|
|
1047
1102
|
teammateInbox: ActoviqMailboxMessage[];
|
|
1048
1103
|
}
|
|
1049
1104
|
export interface ActoviqComputerUseExecutor {
|
|
1050
|
-
openUrl(url: string): Promise<void> | void;
|
|
1051
|
-
focusWindow?(title: string): Promise<void> | void;
|
|
1052
|
-
typeText(text: string): Promise<void> | void;
|
|
1053
|
-
keyPress(keys: string[]): Promise<void> | void;
|
|
1054
|
-
readClipboard(): Promise<string> | string;
|
|
1055
|
-
writeClipboard(text: string): Promise<void> | void;
|
|
1056
|
-
takeScreenshot(outputPath: string): Promise<string> | string;
|
|
1105
|
+
openUrl(url: string, signal?: AbortSignal): Promise<void> | void;
|
|
1106
|
+
focusWindow?(title: string, signal?: AbortSignal): Promise<void> | void;
|
|
1107
|
+
typeText(text: string, signal?: AbortSignal): Promise<void> | void;
|
|
1108
|
+
keyPress(keys: string[], signal?: AbortSignal): Promise<void> | void;
|
|
1109
|
+
readClipboard(signal?: AbortSignal): Promise<string> | string;
|
|
1110
|
+
writeClipboard(text: string, signal?: AbortSignal): Promise<void> | void;
|
|
1111
|
+
takeScreenshot(outputPath: string, signal?: AbortSignal): Promise<string> | string;
|
|
1057
1112
|
}
|
|
1058
1113
|
export interface CreateActoviqComputerUseOptions {
|
|
1059
1114
|
prefix?: string;
|
|
@@ -1061,6 +1116,94 @@ export interface CreateActoviqComputerUseOptions {
|
|
|
1061
1116
|
asMcpServer?: boolean;
|
|
1062
1117
|
serverName?: string;
|
|
1063
1118
|
}
|
|
1119
|
+
export interface CreateActoviqBrowserUseOptions {
|
|
1120
|
+
prefix?: string;
|
|
1121
|
+
asMcpServer?: boolean;
|
|
1122
|
+
serverName?: string;
|
|
1123
|
+
headless?: boolean;
|
|
1124
|
+
channel?: 'chromium' | 'chrome' | 'msedge';
|
|
1125
|
+
cdpUrl?: string;
|
|
1126
|
+
userDataDir?: string;
|
|
1127
|
+
/** Root directory for screenshot output paths. Defaults to process.cwd(). */
|
|
1128
|
+
workspaceDir?: string;
|
|
1129
|
+
allowedDomains?: string[];
|
|
1130
|
+
defaultTimeoutMs?: number;
|
|
1131
|
+
viewport?: {
|
|
1132
|
+
width: number;
|
|
1133
|
+
height: number;
|
|
1134
|
+
};
|
|
1135
|
+
/** Enable browser_evaluate (off by default). */
|
|
1136
|
+
allowEvaluate?: boolean;
|
|
1137
|
+
/** Inject a session (tests / custom backends). */
|
|
1138
|
+
session?: {
|
|
1139
|
+
navigate(url: string, opts?: {
|
|
1140
|
+
newTab?: boolean;
|
|
1141
|
+
}): Promise<{
|
|
1142
|
+
tabId: string;
|
|
1143
|
+
url: string;
|
|
1144
|
+
title: string;
|
|
1145
|
+
}>;
|
|
1146
|
+
goBack(): Promise<{
|
|
1147
|
+
url: string;
|
|
1148
|
+
title: string;
|
|
1149
|
+
}>;
|
|
1150
|
+
wait(ms: number): Promise<void>;
|
|
1151
|
+
snapshot(opts?: {
|
|
1152
|
+
interactiveOnly?: boolean;
|
|
1153
|
+
maxElements?: number;
|
|
1154
|
+
}): Promise<unknown>;
|
|
1155
|
+
click(target: {
|
|
1156
|
+
index?: number;
|
|
1157
|
+
x?: number;
|
|
1158
|
+
y?: number;
|
|
1159
|
+
}): Promise<{
|
|
1160
|
+
ok: true;
|
|
1161
|
+
}>;
|
|
1162
|
+
type(input: {
|
|
1163
|
+
index: number;
|
|
1164
|
+
text: string;
|
|
1165
|
+
clear?: boolean;
|
|
1166
|
+
submit?: boolean;
|
|
1167
|
+
}): Promise<{
|
|
1168
|
+
ok: true;
|
|
1169
|
+
}>;
|
|
1170
|
+
press(keys: string): Promise<{
|
|
1171
|
+
ok: true;
|
|
1172
|
+
}>;
|
|
1173
|
+
scroll(input: {
|
|
1174
|
+
direction: 'up' | 'down';
|
|
1175
|
+
pages?: number;
|
|
1176
|
+
index?: number;
|
|
1177
|
+
}): Promise<{
|
|
1178
|
+
ok: true;
|
|
1179
|
+
}>;
|
|
1180
|
+
screenshot(opts?: {
|
|
1181
|
+
path?: string;
|
|
1182
|
+
fullPage?: boolean;
|
|
1183
|
+
}): Promise<{
|
|
1184
|
+
path?: string;
|
|
1185
|
+
base64?: string;
|
|
1186
|
+
}>;
|
|
1187
|
+
tabsDetailed(): Promise<unknown>;
|
|
1188
|
+
switchTab(tabId: string): Promise<{
|
|
1189
|
+
ok: true;
|
|
1190
|
+
tabId: string;
|
|
1191
|
+
}>;
|
|
1192
|
+
closeTab(tabId?: string): Promise<{
|
|
1193
|
+
ok: true;
|
|
1194
|
+
closed: string;
|
|
1195
|
+
}>;
|
|
1196
|
+
extract(): Promise<{
|
|
1197
|
+
url: string;
|
|
1198
|
+
title: string;
|
|
1199
|
+
text: string;
|
|
1200
|
+
}>;
|
|
1201
|
+
evaluate?(expression: string): Promise<{
|
|
1202
|
+
result: unknown;
|
|
1203
|
+
}>;
|
|
1204
|
+
close(): Promise<void>;
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1064
1207
|
export interface WaitForActoviqBackgroundTaskOptions {
|
|
1065
1208
|
timeoutMs?: number;
|
|
1066
1209
|
pollIntervalMs?: number;
|
|
@@ -1205,6 +1348,14 @@ export type AgentEvent = {
|
|
|
1205
1348
|
stack?: string;
|
|
1206
1349
|
};
|
|
1207
1350
|
timestamp: string;
|
|
1351
|
+
} | {
|
|
1352
|
+
/** Projector event for a root/child Agent execution graph. */
|
|
1353
|
+
type: 'agent.execution';
|
|
1354
|
+
runId: string;
|
|
1355
|
+
rootExecutionId: string;
|
|
1356
|
+
event: import('./runtime/agentExecution.js').AgentExecutionEvent;
|
|
1357
|
+
snapshot: import('./runtime/agentExecution.js').AgentExecutionSnapshot;
|
|
1358
|
+
timestamp: string;
|
|
1208
1359
|
} | {
|
|
1209
1360
|
type: 'workflow.start';
|
|
1210
1361
|
runId: string;
|
|
@@ -1314,7 +1465,7 @@ export interface StoredSession {
|
|
|
1314
1465
|
status: SessionStatus;
|
|
1315
1466
|
messages: MessageParam[];
|
|
1316
1467
|
runs: StoredRunSummary[];
|
|
1317
|
-
kind?: 'main' | 'worktree' | 'manager';
|
|
1468
|
+
kind?: 'main' | 'worktree' | 'manager' | 'agent';
|
|
1318
1469
|
worktreePath?: string;
|
|
1319
1470
|
worktreeBranch?: string;
|
|
1320
1471
|
parentSessionId?: string;
|
|
@@ -1342,8 +1493,18 @@ export interface SessionSummary {
|
|
|
1342
1493
|
runCount: number;
|
|
1343
1494
|
/** True when the session file lives in the project archive/ directory. */
|
|
1344
1495
|
archived?: boolean;
|
|
1345
|
-
/** Session kind —
|
|
1346
|
-
kind?: 'main' | 'worktree' | 'manager';
|
|
1496
|
+
/** Session kind — Agent sessions are independent child conversations. */
|
|
1497
|
+
kind?: 'main' | 'worktree' | 'manager' | 'agent';
|
|
1498
|
+
/** Direct parent conversation for an Agent/worktree session. */
|
|
1499
|
+
parentSessionId?: string;
|
|
1500
|
+
/** Stable Agent execution node linked to this conversation. */
|
|
1501
|
+
executionId?: string;
|
|
1502
|
+
/** Root execution tree containing this Agent. */
|
|
1503
|
+
rootExecutionId?: string;
|
|
1504
|
+
/** Named Agent definition or assigned nickname. */
|
|
1505
|
+
agentName?: string;
|
|
1506
|
+
/** Stable canonical Agent path such as `/root/reviewer`. */
|
|
1507
|
+
agentPath?: string;
|
|
1347
1508
|
/** Project issue linked to this session, when the session was created from an issue dispatch. */
|
|
1348
1509
|
issueId?: string;
|
|
1349
1510
|
issueNumber?: number;
|
|
@@ -1781,6 +1942,8 @@ export type ActoviqBridgeToolsOption = 'default' | 'none' | string[];
|
|
|
1781
1942
|
* pipeline with their own wire protocols.
|
|
1782
1943
|
*/
|
|
1783
1944
|
export type RuntimeProviderId = 'claude' | 'pi' | 'codex' | 'codewhale' | 'reasonix' | 'crush';
|
|
1945
|
+
/** Authentication source for an externally launched agent CLI. */
|
|
1946
|
+
export type ActoviqBridgeAuthSource = 'native' | 'apiKey';
|
|
1784
1947
|
/** Result of `detectBridgeProviders()` — one entry per known provider. */
|
|
1785
1948
|
export interface BridgeProviderDetection {
|
|
1786
1949
|
id: RuntimeProviderId;
|
|
@@ -1805,7 +1968,8 @@ export interface CreateActoviqBridgeSdkOptions {
|
|
|
1805
1968
|
* Spawn a locally installed agent CLI directly, bypassing the vendored
|
|
1806
1969
|
* `runtime.bundle.br` + Bun wrapper. When true, `executable` is the CLI to
|
|
1807
1970
|
* spawn (defaults to the provider's binary on PATH). Provider isolation
|
|
1808
|
-
*
|
|
1971
|
+
* follows `authSource`: native CLI state by default, or explicit child-only
|
|
1972
|
+
* environment injection for `apiKey`.
|
|
1809
1973
|
*/
|
|
1810
1974
|
directCli?: boolean;
|
|
1811
1975
|
/**
|
|
@@ -1815,6 +1979,25 @@ export interface CreateActoviqBridgeSdkOptions {
|
|
|
1815
1979
|
* Only consulted when `directCli` is true; ignored by the bundle path.
|
|
1816
1980
|
*/
|
|
1817
1981
|
directCliProvider?: RuntimeProviderId;
|
|
1982
|
+
/**
|
|
1983
|
+
* `native` reuses the CLI's own login/configuration without mapping Actoviq
|
|
1984
|
+
* API settings into provider credential variables. `apiKey` injects the
|
|
1985
|
+
* explicit key below into this child process only. Direct CLI mode defaults
|
|
1986
|
+
* to `native`; the vendored bridge keeps its legacy settings mapping.
|
|
1987
|
+
*/
|
|
1988
|
+
authSource?: ActoviqBridgeAuthSource;
|
|
1989
|
+
/** Explicit per-child credential used only when authSource is `apiKey`. */
|
|
1990
|
+
apiKey?: string;
|
|
1991
|
+
/** Optional per-child provider endpoint used only when authSource is `apiKey`. */
|
|
1992
|
+
baseURL?: string;
|
|
1993
|
+
/** Native provider id used by multi-provider CLIs for child-only API-key mapping. */
|
|
1994
|
+
credentialProvider?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* Stable, non-secret identity for a managed external CLI configuration.
|
|
1997
|
+
* Actoviq-owned session profiles use it across process restarts without
|
|
1998
|
+
* including the credential itself in a filesystem path or hash.
|
|
1999
|
+
*/
|
|
2000
|
+
profileName?: string;
|
|
1818
2001
|
homeDir?: string;
|
|
1819
2002
|
workDir?: string;
|
|
1820
2003
|
model?: string;
|
|
@@ -1823,6 +2006,8 @@ export interface CreateActoviqBridgeSdkOptions {
|
|
|
1823
2006
|
systemPrompt?: string;
|
|
1824
2007
|
appendSystemPrompt?: string;
|
|
1825
2008
|
permissionMode?: ActoviqBridgePermissionMode;
|
|
2009
|
+
/** Trust and load project-local runtime resources when the selected CLI supports it (Pi). */
|
|
2010
|
+
trustProjectResources?: boolean;
|
|
1826
2011
|
dangerouslySkipPermissions?: boolean;
|
|
1827
2012
|
maxTurns?: number;
|
|
1828
2013
|
maxBudgetUsd?: number;
|
|
@@ -2225,7 +2410,7 @@ export type TeamGraphReturnMode = 'void' | 'payload';
|
|
|
2225
2410
|
* confirmation (product rule, enforced at the UI layer).
|
|
2226
2411
|
*
|
|
2227
2412
|
* v3: `kind: 'task'` (exactly one per graph) dispatches `run.prompt`; `kind:
|
|
2228
|
-
* 'return'` (
|
|
2413
|
+
* 'return'` (exactly one Caller Exit) terminates the run. Absent `kind` → `agent` (v2 compat).
|
|
2229
2414
|
*/
|
|
2230
2415
|
export interface TeamGraphNode extends Omit<TeamMember, 'model'> {
|
|
2231
2416
|
/** Agent nodes require a model; task/return ports omit it. */
|
|
@@ -2256,10 +2441,14 @@ export interface TeamGraphNode extends Omit<TeamMember, 'model'> {
|
|
|
2256
2441
|
* `any`: OR-join — wake on the first in-edge that delivers a payload.
|
|
2257
2442
|
*/
|
|
2258
2443
|
join?: 'all' | 'any';
|
|
2259
|
-
/**
|
|
2444
|
+
/**
|
|
2445
|
+
* GUI canvas position / grouping (pixels). Ignored by the graph engine.
|
|
2446
|
+
* `groupId` ties the node to a visual `TeamDefinition.uiGroups` cluster.
|
|
2447
|
+
*/
|
|
2260
2448
|
ui?: {
|
|
2261
2449
|
x?: number;
|
|
2262
2450
|
y?: number;
|
|
2451
|
+
groupId?: string;
|
|
2263
2452
|
};
|
|
2264
2453
|
/** Per-node ReAct tool-iteration cap. Omit or ≤0 = unlimited. */
|
|
2265
2454
|
maxIterations?: number;
|
|
@@ -2322,8 +2511,23 @@ export interface TeamGraphEdge {
|
|
|
2322
2511
|
*/
|
|
2323
2512
|
fromPort?: number;
|
|
2324
2513
|
toPort?: number;
|
|
2514
|
+
/**
|
|
2515
|
+
* GUI-only attachment side for smart routing (`n`/`e`/`s`/`w`).
|
|
2516
|
+
* When absent, the canvas migrates from legacy top-in/bottom-out ports.
|
|
2517
|
+
*/
|
|
2518
|
+
fromSide?: 'n' | 'e' | 's' | 'w';
|
|
2519
|
+
toSide?: 'n' | 'e' | 's' | 'w';
|
|
2520
|
+
/** When true, auto `pickShortestSides` skips this edge after a manual endpoint drag. */
|
|
2521
|
+
sideLocked?: boolean;
|
|
2325
2522
|
};
|
|
2326
2523
|
}
|
|
2524
|
+
/** GUI-only visual cluster for Parallel/Loop insert shortcuts (engine ignores). */
|
|
2525
|
+
export interface TeamGraphUiGroup {
|
|
2526
|
+
id: string;
|
|
2527
|
+
kind: 'parallel' | 'loop';
|
|
2528
|
+
label?: string;
|
|
2529
|
+
memberRefs: string[];
|
|
2530
|
+
}
|
|
2327
2531
|
export interface TeamDefinition {
|
|
2328
2532
|
name: string;
|
|
2329
2533
|
description?: string;
|
|
@@ -2357,6 +2561,11 @@ export interface TeamDefinition {
|
|
|
2357
2561
|
nodes?: TeamGraphNode[];
|
|
2358
2562
|
/** Graph edges (mode `graph`, version 2). */
|
|
2359
2563
|
edges?: TeamGraphEdge[];
|
|
2564
|
+
/**
|
|
2565
|
+
* GUI-only Parallel/Loop visual clusters. Ignored by the graph engine.
|
|
2566
|
+
* Insert Parallel/Loop writes these; users can ungroup without changing topology.
|
|
2567
|
+
*/
|
|
2568
|
+
uiGroups?: TeamGraphUiGroup[];
|
|
2360
2569
|
/** Entry node refs; alternative to per-node `entry: true` (union of both applies). */
|
|
2361
2570
|
entryNodeIds?: string[];
|
|
2362
2571
|
/** Max panel members dispatched concurrently within this team (still bounded by the global AgentPool). Default: all members. */
|