@kmlckj/aios-agent-server-sdk 0.0.0-stage → 0.0.2
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/EVENTS.md +88 -0
- package/README.md +656 -2
- package/capabilities.json +2398 -0
- package/dist/cli/daemon/preferences.d.ts +67 -0
- package/dist/cli/daemon/protocol.d.ts +26 -0
- package/dist/cli/daemon/resource-limits.d.ts +39 -0
- package/dist/core/auth/platform-client.d.ts +65 -0
- package/dist/core/host/runtime-dependencies.d.ts +26 -0
- package/dist/core/skills/skill-bindings.d.ts +19 -0
- package/dist/core/skills/skill-versions.d.ts +31 -0
- package/dist/electron/main/bundled-runtime-tools.d.ts +24 -0
- package/dist/events.js +1 -0
- package/dist/index.js +55 -0
- package/dist/sdk/src/auth.d.ts +43 -0
- package/dist/sdk/src/authorization-events.d.ts +16 -0
- package/dist/sdk/src/authorization.d.ts +10 -0
- package/dist/sdk/src/communication.d.ts +9 -0
- package/dist/sdk/src/diagnostics.d.ts +24 -0
- package/dist/sdk/src/errors.d.ts +4 -0
- package/dist/sdk/src/events.d.ts +4 -0
- package/dist/sdk/src/file-api.d.ts +29 -0
- package/dist/sdk/src/file-storage.d.ts +34 -0
- package/dist/sdk/src/index.d.ts +260 -0
- package/dist/sdk/src/local-connection.d.ts +9 -0
- package/dist/sdk/src/managed-host.d.ts +32 -0
- package/dist/sdk/src/native-status.d.ts +59 -0
- package/dist/sdk/src/platform.d.ts +39 -0
- package/dist/sdk/src/runtime-control.d.ts +111 -0
- package/dist/sdk/src/runtime-integrity.d.ts +10 -0
- package/dist/sdk/src/tool-reference.d.ts +11 -0
- package/dist/sdk/src/tool-result.d.ts +36 -0
- package/dist/sdk/src/tool-server.d.ts +14 -0
- package/dist/sdk/src/transport.d.ts +25 -0
- package/dist/sdk/src/types.d.ts +405 -0
- package/dist/shared/account-context-api.d.ts +47 -0
- package/dist/shared/account-schedules-api.d.ts +110 -0
- package/dist/shared/action-center-api.d.ts +50 -0
- package/dist/shared/agent-capabilities.d.ts +42 -0
- package/dist/shared/agent-hooks.d.ts +10 -0
- package/dist/shared/agent-team.d.ts +19 -0
- package/dist/shared/artifact-evidence.d.ts +18 -0
- package/dist/shared/automation-api.d.ts +112 -0
- package/dist/shared/client-downloads-api.d.ts +20 -0
- package/dist/shared/cloud-assistant-api.d.ts +532 -0
- package/dist/shared/cloud-task-resources.d.ts +24 -0
- package/dist/shared/cloud-task-runtime-api.d.ts +253 -0
- package/dist/shared/collaboration-api.d.ts +17 -0
- package/dist/shared/collaboration-automation-api.d.ts +55 -0
- package/dist/shared/collaboration-deep-link.d.ts +15 -0
- package/dist/shared/collaboration-event-api.d.ts +19 -0
- package/dist/shared/collaboration-plan-api.d.ts +159 -0
- package/dist/shared/collaboration-project-api.d.ts +206 -0
- package/dist/shared/collaboration-resource-api.d.ts +41 -0
- package/dist/shared/collaboration-task-api.d.ts +276 -0
- package/dist/shared/collaboration-task-execution.d.ts +39 -0
- package/dist/shared/computer-use-api.d.ts +80 -0
- package/dist/shared/computer-use-handshake.d.ts +19 -0
- package/dist/shared/computer-use-protocol.d.ts +488 -0
- package/dist/shared/context-usage.d.ts +15 -0
- package/dist/shared/desktop-api.d.ts +450 -0
- package/dist/shared/desktop-diagnostics-api.d.ts +56 -0
- package/dist/shared/desktop-language.d.ts +3 -0
- package/dist/shared/desktop-mcp-service-api.d.ts +157 -0
- package/dist/shared/document-session-api.d.ts +91 -0
- package/dist/shared/enterprise-knowledge-api.d.ts +103 -0
- package/dist/shared/enterprise-project-api.d.ts +26 -0
- package/dist/shared/execution-activity.d.ts +3 -0
- package/dist/shared/execution-context.d.ts +62 -0
- package/dist/shared/execution-identity.d.ts +7 -0
- package/dist/shared/execution-profile.d.ts +6 -0
- package/dist/shared/execution-target.d.ts +71 -0
- package/dist/shared/expert-selection.d.ts +22 -0
- package/dist/shared/expert-team-api.d.ts +54 -0
- package/dist/shared/feedback-api.d.ts +20 -0
- package/dist/shared/git-api.d.ts +227 -0
- package/dist/shared/git-http-api.d.ts +12 -0
- package/dist/shared/hosted-git-api.d.ts +132 -0
- package/dist/shared/js-agent-hooks.d.ts +23 -0
- package/dist/shared/local-custom-model-api.d.ts +55 -0
- package/dist/shared/local-environment-api.d.ts +110 -0
- package/dist/shared/local-mcp-server-api.d.ts +91 -0
- package/dist/shared/local-memory.d.ts +165 -0
- package/dist/shared/local-plugin-api.d.ts +26 -0
- package/dist/shared/local-runtime-api.d.ts +32 -0
- package/dist/shared/local-skill-api.d.ts +42 -0
- package/dist/shared/local-task-api.d.ts +658 -0
- package/dist/shared/local-task-command-client.d.ts +55 -0
- package/dist/shared/local-task-command.d.ts +93 -0
- package/dist/shared/local-task-event-projection.d.ts +29 -0
- package/dist/shared/local-task-projection.d.ts +29 -0
- package/dist/shared/local-workspace.d.ts +9 -0
- package/dist/shared/managed-authorization.d.ts +72 -0
- package/dist/shared/memory-customization.d.ts +32 -0
- package/dist/shared/model-routing.d.ts +31 -0
- package/dist/shared/model-selection.d.ts +11 -0
- package/dist/shared/my-expert-api.d.ts +119 -0
- package/dist/shared/navigation-api.d.ts +20 -0
- package/dist/shared/office-window-api.d.ts +81 -0
- package/dist/shared/platform-branding-api.d.ts +66 -0
- package/dist/shared/plugin-market-api.d.ts +120 -0
- package/dist/shared/profession-market-api.d.ts +96 -0
- package/dist/shared/project-local-skill-api.d.ts +8 -0
- package/dist/shared/remote-connection-api.d.ts +97 -0
- package/dist/shared/remote-connection.d.ts +62 -0
- package/dist/shared/remote-installation-api.d.ts +50 -0
- package/dist/shared/remote-tasks-api.d.ts +118 -0
- package/dist/shared/runtime-tuning.d.ts +44 -0
- package/dist/shared/scene-case-api.d.ts +42 -0
- package/dist/shared/sdk-session-contract.d.ts +96 -0
- package/dist/shared/security-center-api.d.ts +74 -0
- package/dist/shared/sensitive-protection-api.d.ts +71 -0
- package/dist/shared/session-policy.d.ts +26 -0
- package/dist/shared/shortcut-api.d.ts +7 -0
- package/dist/shared/skill-activation-api.d.ts +8 -0
- package/dist/shared/skill-asset-api.d.ts +12 -0
- package/dist/shared/skill-market-api.d.ts +119 -0
- package/dist/shared/skill-upload.d.ts +16 -0
- package/dist/shared/speech-recognition-api.d.ts +12 -0
- package/dist/shared/storage-integrity.d.ts +15 -0
- package/dist/shared/target-bridge-protocol.d.ts +67 -0
- package/dist/shared/target-environments.d.ts +15 -0
- package/dist/shared/target-resources.d.ts +105 -0
- package/dist/shared/task-enterprise-project-api.d.ts +75 -0
- package/dist/shared/task-execution-api.d.ts +35 -0
- package/dist/shared/task-initialization-api.d.ts +44 -0
- package/dist/shared/task-menu-api.d.ts +27 -0
- package/dist/shared/task-operation.d.ts +19 -0
- package/dist/shared/task-path-policy.d.ts +14 -0
- package/dist/shared/task-resource-manifest.d.ts +33 -0
- package/dist/shared/task-storage-recovery.d.ts +33 -0
- package/dist/shared/task-terminal-api.d.ts +48 -0
- package/dist/shared/team-control.d.ts +60 -0
- package/dist/shared/tool-activity.d.ts +18 -0
- package/dist/shared/update-api.d.ts +65 -0
- package/dist/shared/usage-statistics-api.d.ts +18 -0
- package/dist/shared/worktree-api.d.ts +188 -0
- package/examples/business-assistant.mjs +19 -0
- package/examples/common.mjs +51 -0
- package/examples/platform-assistant.mjs +9 -0
- package/examples/standalone-assistant.mjs +16 -0
- package/package.json +40 -4
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { AvailableChatModel } from './cloud-assistant-api.js';
|
|
2
|
+
import type { PluginAuthorizationSaveRequest, PluginAuthorizationStatus } from './plugin-market-api.js';
|
|
3
|
+
export type ScheduleTriggerType = 'ONCE' | 'DAILY' | 'CRON';
|
|
4
|
+
export interface ScheduleTaskConfiguration {
|
|
5
|
+
model: string;
|
|
6
|
+
thinkingEnabled: boolean;
|
|
7
|
+
reasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
8
|
+
permissionMode: 'ask_dangerous' | 'allow_all';
|
|
9
|
+
memoryRead: boolean;
|
|
10
|
+
memoryWrite: boolean;
|
|
11
|
+
timeoutSeconds: number;
|
|
12
|
+
resources: {
|
|
13
|
+
skills: Record<string, string | null>[];
|
|
14
|
+
plugins: Record<string, string | null>[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface WorkbenchSchedule {
|
|
18
|
+
scheduleId: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
workspaceId: string;
|
|
21
|
+
taskConfiguration: ScheduleTaskConfiguration;
|
|
22
|
+
content: string;
|
|
23
|
+
triggerType: ScheduleTriggerType;
|
|
24
|
+
triggerAt: string;
|
|
25
|
+
timezone: string;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
createdAt: string | null;
|
|
28
|
+
updatedAt: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface WorkbenchScheduleRun {
|
|
31
|
+
runId: string;
|
|
32
|
+
scheduleId: string;
|
|
33
|
+
workspaceId: string;
|
|
34
|
+
taskId: string | null;
|
|
35
|
+
plannedTriggerAt: string;
|
|
36
|
+
triggerKey: string;
|
|
37
|
+
status: string;
|
|
38
|
+
resultContent: string | null;
|
|
39
|
+
errorMessage: string | null;
|
|
40
|
+
startedAt: string | null;
|
|
41
|
+
finishedAt: string | null;
|
|
42
|
+
createdAt: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface SaveScheduleRequest {
|
|
45
|
+
actorUserId: string;
|
|
46
|
+
workspaceId: string;
|
|
47
|
+
taskConfiguration: ScheduleTaskConfiguration;
|
|
48
|
+
content: string;
|
|
49
|
+
triggerType: ScheduleTriggerType;
|
|
50
|
+
triggerAt: string;
|
|
51
|
+
timezone: string;
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type UpdateScheduleRequest = {
|
|
55
|
+
actorUserId: string;
|
|
56
|
+
scheduleId: string;
|
|
57
|
+
} & Partial<Omit<SaveScheduleRequest, 'actorUserId'>>;
|
|
58
|
+
export interface ScheduleListQuery {
|
|
59
|
+
actorUserId: string;
|
|
60
|
+
enabled?: boolean;
|
|
61
|
+
limit?: number;
|
|
62
|
+
offset?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface ScheduleRunQuery {
|
|
65
|
+
actorUserId: string;
|
|
66
|
+
from: string;
|
|
67
|
+
before: string;
|
|
68
|
+
limit?: number;
|
|
69
|
+
offset?: number;
|
|
70
|
+
}
|
|
71
|
+
export interface SchedulePage<T> {
|
|
72
|
+
items: T[];
|
|
73
|
+
total: number;
|
|
74
|
+
}
|
|
75
|
+
export type TaskResourceScope = 'PLATFORM_SKILL' | 'ENTERPRISE_SKILL' | 'CREATED_SKILL' | 'INSTALLED_SKILL' | 'PLATFORM_PLUGIN' | 'ENTERPRISE_PLUGIN';
|
|
76
|
+
export interface TaskSelectedResource {
|
|
77
|
+
kind: 'skill' | 'plugin';
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
selection: Record<string, string | null>;
|
|
81
|
+
}
|
|
82
|
+
export interface ScheduleResourceQuery {
|
|
83
|
+
actorUserId: string;
|
|
84
|
+
workspaceId: string;
|
|
85
|
+
scope: TaskResourceScope;
|
|
86
|
+
keyword: string;
|
|
87
|
+
page: number;
|
|
88
|
+
}
|
|
89
|
+
export interface AccountSchedulesApi {
|
|
90
|
+
list(query: ScheduleListQuery): Promise<SchedulePage<WorkbenchSchedule>>;
|
|
91
|
+
get(scheduleId: string, actorUserId: string): Promise<WorkbenchSchedule>;
|
|
92
|
+
create(request: SaveScheduleRequest): Promise<WorkbenchSchedule>;
|
|
93
|
+
update(request: UpdateScheduleRequest): Promise<WorkbenchSchedule>;
|
|
94
|
+
delete(scheduleId: string, actorUserId: string): Promise<void>;
|
|
95
|
+
listRuns(scheduleId: string, actorUserId: string, offset?: number): Promise<SchedulePage<WorkbenchScheduleRun>>;
|
|
96
|
+
listRunsByWindow(query: ScheduleRunQuery): Promise<SchedulePage<WorkbenchScheduleRun>>;
|
|
97
|
+
workspaces(actorUserId: string): Promise<{
|
|
98
|
+
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
}[]>;
|
|
101
|
+
models(actorUserId: string, workspaceId: string): Promise<AvailableChatModel[]>;
|
|
102
|
+
resources(query: ScheduleResourceQuery): Promise<{
|
|
103
|
+
list: TaskSelectedResource[];
|
|
104
|
+
hasNext: boolean;
|
|
105
|
+
}>;
|
|
106
|
+
selectResource(actorUserId: string, workspaceId: string, resource: TaskSelectedResource): Promise<TaskSelectedResource>;
|
|
107
|
+
getPluginAuthorization(actorUserId: string, workspaceId: string, pluginId: string): Promise<PluginAuthorizationStatus>;
|
|
108
|
+
savePluginAuthorization(actorUserId: string, workspaceId: string, pluginId: string, request: PluginAuthorizationSaveRequest): Promise<PluginAuthorizationStatus>;
|
|
109
|
+
verifyPluginAuthorization(actorUserId: string, workspaceId: string, pluginId: string): Promise<PluginAuthorizationStatus>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface ActionCenterSummary {
|
|
2
|
+
todoPendingCount: number;
|
|
3
|
+
messageUnreadCount: number;
|
|
4
|
+
announcementUnreadCount: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ActionCenterTarget {
|
|
7
|
+
targetType: string | null;
|
|
8
|
+
targetRoute: string | null;
|
|
9
|
+
targetUrl: string | null;
|
|
10
|
+
openMode: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ActionCenterMessage {
|
|
13
|
+
id: string;
|
|
14
|
+
sourceAppId: string | null;
|
|
15
|
+
sourceModule: string | null;
|
|
16
|
+
category: string | null;
|
|
17
|
+
level: string | null;
|
|
18
|
+
title: string;
|
|
19
|
+
content: string | null;
|
|
20
|
+
readStatus: string;
|
|
21
|
+
publishedAt: string | null;
|
|
22
|
+
createdAt: string | null;
|
|
23
|
+
target: ActionCenterTarget | null;
|
|
24
|
+
businessType?: string | null;
|
|
25
|
+
businessId?: string | null;
|
|
26
|
+
status?: string | null;
|
|
27
|
+
payload?: Record<string, unknown> | null;
|
|
28
|
+
}
|
|
29
|
+
export interface ActionCenterMessageQuery {
|
|
30
|
+
page: number;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
readStatus?: 'unread';
|
|
33
|
+
}
|
|
34
|
+
export interface ActionCenterMessagePage {
|
|
35
|
+
list: ActionCenterMessage[];
|
|
36
|
+
page: number;
|
|
37
|
+
pageSize: number;
|
|
38
|
+
total: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ActionCenterNavigation {
|
|
41
|
+
url: string;
|
|
42
|
+
openMode: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface ActionCenterApi {
|
|
45
|
+
getSummary: () => Promise<ActionCenterSummary>;
|
|
46
|
+
listMessages: (query: ActionCenterMessageQuery) => Promise<ActionCenterMessagePage>;
|
|
47
|
+
markMessageRead: (messageId: string) => Promise<void>;
|
|
48
|
+
markAllMessagesRead: () => Promise<void>;
|
|
49
|
+
openMessageTarget: (messageId: string) => Promise<void>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Public capability IDs are independent of transport names and permissions. */
|
|
2
|
+
export declare const TOOL_CATEGORIES: readonly ["workspace", "process", "repository", "web", "documents", "data", "media", "knowledge", "memory", "task-coordination", "automation", "computer", "extensions"];
|
|
3
|
+
export declare const SKILL_CATEGORIES: readonly ["development", "documents", "data-research", "design", "media", "business", "automation", "agent-building"];
|
|
4
|
+
export type ToolCategory = typeof TOOL_CATEGORIES[number];
|
|
5
|
+
export type SkillCategory = typeof SKILL_CATEGORIES[number];
|
|
6
|
+
export type AgentRuntimeMode = 'platform' | 'standalone';
|
|
7
|
+
export interface CapabilitySelection<Category extends string = string> {
|
|
8
|
+
categories?: readonly Category[];
|
|
9
|
+
include?: readonly string[];
|
|
10
|
+
exclude?: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
export interface BuiltinSelection {
|
|
13
|
+
/** AIOS-provided tools only; false leaves them unregistered. Engine tools are unchanged. */
|
|
14
|
+
tools?: boolean | CapabilitySelection<ToolCategory>;
|
|
15
|
+
/** AIOS-provided skills only; false skips materialization, discovery and injection. */
|
|
16
|
+
skills?: boolean | CapabilitySelection<SkillCategory>;
|
|
17
|
+
}
|
|
18
|
+
export interface CapabilityDescriptor<Category extends string = string> {
|
|
19
|
+
id: string;
|
|
20
|
+
kind: 'tool' | 'skill';
|
|
21
|
+
category: Category;
|
|
22
|
+
source: 'builtin' | 'platform' | 'application' | 'local';
|
|
23
|
+
integration: 'dynamic' | 'mcp' | 'skill';
|
|
24
|
+
requiresPlatform: boolean;
|
|
25
|
+
dependencies: readonly string[];
|
|
26
|
+
tags: readonly string[];
|
|
27
|
+
supported: boolean;
|
|
28
|
+
unavailableReason?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface BuiltinSnapshot {
|
|
31
|
+
catalogVersion: 1;
|
|
32
|
+
mode: AgentRuntimeMode;
|
|
33
|
+
tools: string[];
|
|
34
|
+
skills: string[];
|
|
35
|
+
}
|
|
36
|
+
/** A saved list is the ceiling. New catalog members never expand an old task. */
|
|
37
|
+
export declare function selectCapabilities<C extends string>(selection: boolean | CapabilitySelection<C>, catalog: readonly CapabilityDescriptor<C>[], categories: readonly C[], mode: AgentRuntimeMode, parent?: readonly string[]): string[];
|
|
38
|
+
export declare function resolveBuiltinSnapshot(mode: AgentRuntimeMode, selection: BuiltinSelection, catalog: readonly CapabilityDescriptor[], parent?: BuiltinSnapshot): BuiltinSnapshot;
|
|
39
|
+
export declare const BUILTIN_SKILL_GROUPS: Readonly<Record<SkillCategory, readonly string[]>>;
|
|
40
|
+
/** Prefix families come from named registries; arbitrary extension tools never enter here. */
|
|
41
|
+
export declare function describeBuiltinTool(name: string, integration: CapabilityDescriptor['integration']): CapabilityDescriptor<ToolCategory>;
|
|
42
|
+
export declare const BUILTIN_SKILL_CATALOG: CapabilityDescriptor<SkillCategory>[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Host-owned lifecycle commands. They receive one JSON event on stdin and return hook JSON on stdout. */
|
|
2
|
+
export interface AgentCommandHook {
|
|
3
|
+
event: 'UserPromptSubmit' | 'PreToolUse' | 'PostToolUse' | 'PreCompact' | 'PostCompact' | 'SessionStart' | 'SessionEnd' | 'SubagentStart' | 'SubagentStop' | 'Stop' | 'Interrupt';
|
|
4
|
+
command: string;
|
|
5
|
+
commandWindows?: string;
|
|
6
|
+
matcher?: string;
|
|
7
|
+
/** Hook execution limit only; this does not impose a task deadline. */
|
|
8
|
+
timeoutSeconds: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function parseAgentHooks(value: unknown): AgentCommandHook[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TaskPathPolicy } from './task-path-policy.js';
|
|
2
|
+
import { type ModelReasoningEffort } from './model-selection.js';
|
|
3
|
+
export interface AgentTeamMember {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
instructions: string;
|
|
7
|
+
model?: string;
|
|
8
|
+
reasoningEffort?: ModelReasoningEffort;
|
|
9
|
+
/** AIOS tool names, intersected with the parent selection. Native tools remain constrained by the filesystem policy. */
|
|
10
|
+
tools?: string[];
|
|
11
|
+
paths?: TaskPathPolicy;
|
|
12
|
+
}
|
|
13
|
+
export interface AgentTeamDefinition {
|
|
14
|
+
members: AgentTeamMember[];
|
|
15
|
+
workflow?: string;
|
|
16
|
+
/** Validated platform package; keeps the desktop's roles, limits and write policy. */
|
|
17
|
+
package?: import('./expert-team-api.js').ExpertTeamRunSnapshot;
|
|
18
|
+
}
|
|
19
|
+
export declare function parseAgentTeam(value: unknown): AgentTeamDefinition;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ArtifactVerification {
|
|
2
|
+
tool: string;
|
|
3
|
+
at: string;
|
|
4
|
+
fileVersion?: string;
|
|
5
|
+
origin?: 'tool_reported' | 'file_registration';
|
|
6
|
+
action?: string;
|
|
7
|
+
coverage?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
/** Evidence concerns only the reported checks, never a platform business verdict. */
|
|
10
|
+
export interface ArtifactEvidence {
|
|
11
|
+
path: string;
|
|
12
|
+
threadId: string;
|
|
13
|
+
reportedVerified: boolean;
|
|
14
|
+
validity: 'current' | 'stale' | 'unversioned';
|
|
15
|
+
verification: ArtifactVerification;
|
|
16
|
+
previousVerification?: ArtifactVerification;
|
|
17
|
+
invalidation?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { LocalTaskPermissionMode, LocalTaskPluginReference, LocalTaskSkillReference } from './local-task-api.js';
|
|
2
|
+
import type { ModelReasoningEffort } from './model-selection.js';
|
|
3
|
+
export type AutomationStatus = 'active' | 'paused';
|
|
4
|
+
export type AutomationRunKind = 'scheduled' | 'missed' | 'manual_test';
|
|
5
|
+
export type AutomationRunStatus = 'queued' | 'waiting_login' | 'running' | 'completed' | 'failed' | 'interrupted' | 'skipped';
|
|
6
|
+
export type AutomationRunFilter = 'all' | 'completed' | 'failed' | 'running' | 'archived';
|
|
7
|
+
export type AutomationRemoveMode = 'reject_if_running' | 'keep_running' | 'stop_running';
|
|
8
|
+
export type AutomationSchedule = {
|
|
9
|
+
type: 'recurring';
|
|
10
|
+
frequency: 'daily' | 'weekdays' | 'weekly' | 'monthly';
|
|
11
|
+
time: string;
|
|
12
|
+
daysOfWeek?: number[];
|
|
13
|
+
dayOfMonth?: number;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'interval';
|
|
16
|
+
intervalMinutes: number;
|
|
17
|
+
anchorAt: string;
|
|
18
|
+
daysOfWeek?: number[];
|
|
19
|
+
} | {
|
|
20
|
+
type: 'once';
|
|
21
|
+
runAt: string;
|
|
22
|
+
};
|
|
23
|
+
export interface DesktopAutomation {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
prompt: string;
|
|
27
|
+
workspacePaths: string[];
|
|
28
|
+
model?: string;
|
|
29
|
+
thinkingEnabled: boolean;
|
|
30
|
+
reasoningEffort: ModelReasoningEffort | undefined;
|
|
31
|
+
skills: LocalTaskSkillReference[];
|
|
32
|
+
plugins: LocalTaskPluginReference[];
|
|
33
|
+
permissionMode: LocalTaskPermissionMode;
|
|
34
|
+
schedule: AutomationSchedule;
|
|
35
|
+
timezone: string;
|
|
36
|
+
validFrom?: string;
|
|
37
|
+
validUntil?: string;
|
|
38
|
+
status: AutomationStatus;
|
|
39
|
+
nextRunAt?: string;
|
|
40
|
+
lastRunAt?: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AutomationRunTarget {
|
|
45
|
+
workspacePath?: string;
|
|
46
|
+
taskId?: string;
|
|
47
|
+
runId?: string;
|
|
48
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'interrupted' | 'skipped';
|
|
49
|
+
error?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface AutomationExecutionSnapshot {
|
|
52
|
+
prompt: string;
|
|
53
|
+
model?: string;
|
|
54
|
+
thinkingEnabled: boolean;
|
|
55
|
+
reasoningEffort: ModelReasoningEffort | undefined;
|
|
56
|
+
skills: LocalTaskSkillReference[];
|
|
57
|
+
plugins: LocalTaskPluginReference[];
|
|
58
|
+
permissionMode: LocalTaskPermissionMode;
|
|
59
|
+
}
|
|
60
|
+
export interface AutomationRun {
|
|
61
|
+
id: string;
|
|
62
|
+
automationId: string;
|
|
63
|
+
automationName: string;
|
|
64
|
+
scheduleSlotId: string;
|
|
65
|
+
scheduledAt: string;
|
|
66
|
+
runKind: AutomationRunKind;
|
|
67
|
+
status: AutomationRunStatus;
|
|
68
|
+
configuration?: AutomationExecutionSnapshot;
|
|
69
|
+
taskIds: string[];
|
|
70
|
+
targets: AutomationRunTarget[];
|
|
71
|
+
error?: string;
|
|
72
|
+
archivedAt?: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
startedAt?: string;
|
|
75
|
+
completedAt?: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
}
|
|
78
|
+
export interface SaveAutomationRequest {
|
|
79
|
+
id?: string;
|
|
80
|
+
name: string;
|
|
81
|
+
prompt: string;
|
|
82
|
+
workspacePaths: string[];
|
|
83
|
+
model?: string;
|
|
84
|
+
thinkingEnabled?: boolean;
|
|
85
|
+
reasoningEffort?: ModelReasoningEffort;
|
|
86
|
+
skills: LocalTaskSkillReference[];
|
|
87
|
+
plugins: LocalTaskPluginReference[];
|
|
88
|
+
permissionMode: LocalTaskPermissionMode;
|
|
89
|
+
schedule: AutomationSchedule;
|
|
90
|
+
timezone: string;
|
|
91
|
+
validFrom?: string;
|
|
92
|
+
validUntil?: string;
|
|
93
|
+
status?: AutomationStatus;
|
|
94
|
+
}
|
|
95
|
+
export interface ListAutomationRunsQuery {
|
|
96
|
+
automationId?: string;
|
|
97
|
+
filter?: AutomationRunFilter;
|
|
98
|
+
keyword?: string;
|
|
99
|
+
limit?: number;
|
|
100
|
+
}
|
|
101
|
+
export interface AutomationApi {
|
|
102
|
+
list: () => Promise<DesktopAutomation[]>;
|
|
103
|
+
get: (automationId: string) => Promise<DesktopAutomation>;
|
|
104
|
+
save: (request: SaveAutomationRequest) => Promise<DesktopAutomation>;
|
|
105
|
+
setPaused: (automationId: string, paused: boolean) => Promise<DesktopAutomation>;
|
|
106
|
+
remove: (automationId: string, mode?: AutomationRemoveMode) => Promise<void>;
|
|
107
|
+
runNow: (automationId: string) => Promise<AutomationRun>;
|
|
108
|
+
listRuns: (query?: ListAutomationRunsQuery) => Promise<AutomationRun[]>;
|
|
109
|
+
archiveRun: (runId: string, archived: boolean) => Promise<AutomationRun>;
|
|
110
|
+
removeRun: (runId: string) => Promise<void>;
|
|
111
|
+
onChanged: (listener: () => void) => () => void;
|
|
112
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const CLIENT_DOWNLOAD_PLATFORMS: readonly ["IOS", "ANDROID", "WINDOWS", "MACOS_INTEL", "MACOS_APPLE_SILICON"];
|
|
2
|
+
export type ClientDownloadPlatform = (typeof CLIENT_DOWNLOAD_PLATFORMS)[number];
|
|
3
|
+
export interface CurrentClientRelease {
|
|
4
|
+
id: string;
|
|
5
|
+
platform: ClientDownloadPlatform;
|
|
6
|
+
version: string;
|
|
7
|
+
downloadUrl: string;
|
|
8
|
+
minimumOsVersion?: string | null;
|
|
9
|
+
fileSizeBytes?: number | null;
|
|
10
|
+
publishedAt?: string | null;
|
|
11
|
+
activatedAt?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface ClientDownloadCatalog {
|
|
14
|
+
releases: CurrentClientRelease[];
|
|
15
|
+
mobileDownloadUrl: string;
|
|
16
|
+
recommendedDesktopPlatform: Extract<ClientDownloadPlatform, 'WINDOWS' | 'MACOS_INTEL' | 'MACOS_APPLE_SILICON'> | null;
|
|
17
|
+
}
|
|
18
|
+
export interface ClientDownloadsApi {
|
|
19
|
+
getCatalog: () => Promise<ClientDownloadCatalog>;
|
|
20
|
+
}
|