@kmlckj/aios-agent-server-sdk 0.0.0-stage → 0.0.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.
Files changed (134) hide show
  1. package/EVENTS.md +88 -0
  2. package/README.md +628 -2
  3. package/capabilities.json +2398 -0
  4. package/dist/cli/daemon/preferences.d.ts +67 -0
  5. package/dist/cli/daemon/protocol.d.ts +26 -0
  6. package/dist/cli/daemon/resource-limits.d.ts +39 -0
  7. package/dist/core/auth/platform-client.d.ts +59 -0
  8. package/dist/core/host/runtime-dependencies.d.ts +26 -0
  9. package/dist/core/skills/skill-bindings.d.ts +19 -0
  10. package/dist/core/skills/skill-versions.d.ts +31 -0
  11. package/dist/electron/main/bundled-runtime-tools.d.ts +24 -0
  12. package/dist/events.js +1 -0
  13. package/dist/index.js +55 -0
  14. package/dist/sdk/src/auth.d.ts +43 -0
  15. package/dist/sdk/src/authorization-events.d.ts +16 -0
  16. package/dist/sdk/src/authorization.d.ts +10 -0
  17. package/dist/sdk/src/communication.d.ts +9 -0
  18. package/dist/sdk/src/diagnostics.d.ts +24 -0
  19. package/dist/sdk/src/errors.d.ts +4 -0
  20. package/dist/sdk/src/events.d.ts +4 -0
  21. package/dist/sdk/src/file-api.d.ts +29 -0
  22. package/dist/sdk/src/file-storage.d.ts +34 -0
  23. package/dist/sdk/src/index.d.ts +257 -0
  24. package/dist/sdk/src/local-connection.d.ts +9 -0
  25. package/dist/sdk/src/managed-host.d.ts +32 -0
  26. package/dist/sdk/src/native-status.d.ts +59 -0
  27. package/dist/sdk/src/platform.d.ts +35 -0
  28. package/dist/sdk/src/runtime-control.d.ts +111 -0
  29. package/dist/sdk/src/runtime-integrity.d.ts +10 -0
  30. package/dist/sdk/src/tool-reference.d.ts +11 -0
  31. package/dist/sdk/src/tool-result.d.ts +36 -0
  32. package/dist/sdk/src/tool-server.d.ts +14 -0
  33. package/dist/sdk/src/transport.d.ts +25 -0
  34. package/dist/sdk/src/types.d.ts +492 -0
  35. package/dist/shared/account-context-api.d.ts +47 -0
  36. package/dist/shared/action-center-api.d.ts +50 -0
  37. package/dist/shared/agent-capabilities.d.ts +42 -0
  38. package/dist/shared/agent-hooks.d.ts +10 -0
  39. package/dist/shared/agent-team.d.ts +17 -0
  40. package/dist/shared/artifact-evidence.d.ts +18 -0
  41. package/dist/shared/automation-api.d.ts +112 -0
  42. package/dist/shared/client-downloads-api.d.ts +20 -0
  43. package/dist/shared/cloud-assistant-api.d.ts +1020 -0
  44. package/dist/shared/cloud-task-event-api.d.ts +22 -0
  45. package/dist/shared/collaboration-api.d.ts +16 -0
  46. package/dist/shared/collaboration-automation-api.d.ts +55 -0
  47. package/dist/shared/collaboration-deep-link.d.ts +18 -0
  48. package/dist/shared/collaboration-event-api.d.ts +19 -0
  49. package/dist/shared/collaboration-plan-api.d.ts +159 -0
  50. package/dist/shared/collaboration-project-api.d.ts +206 -0
  51. package/dist/shared/collaboration-resource-api.d.ts +41 -0
  52. package/dist/shared/collaboration-task-api.d.ts +372 -0
  53. package/dist/shared/computer-use-api.d.ts +80 -0
  54. package/dist/shared/computer-use-handshake.d.ts +19 -0
  55. package/dist/shared/computer-use-protocol.d.ts +488 -0
  56. package/dist/shared/context-usage.d.ts +15 -0
  57. package/dist/shared/desktop-api.d.ts +449 -0
  58. package/dist/shared/desktop-diagnostics-api.d.ts +56 -0
  59. package/dist/shared/desktop-language.d.ts +3 -0
  60. package/dist/shared/desktop-mcp-service-api.d.ts +157 -0
  61. package/dist/shared/document-session-api.d.ts +91 -0
  62. package/dist/shared/enterprise-knowledge-api.d.ts +103 -0
  63. package/dist/shared/enterprise-project-api.d.ts +26 -0
  64. package/dist/shared/execution-activity.d.ts +3 -0
  65. package/dist/shared/execution-context.d.ts +37 -0
  66. package/dist/shared/execution-identity.d.ts +7 -0
  67. package/dist/shared/execution-profile.d.ts +6 -0
  68. package/dist/shared/execution-target.d.ts +71 -0
  69. package/dist/shared/expert-team-api.d.ts +54 -0
  70. package/dist/shared/feedback-api.d.ts +20 -0
  71. package/dist/shared/git-api.d.ts +227 -0
  72. package/dist/shared/git-http-api.d.ts +12 -0
  73. package/dist/shared/hosted-git-api.d.ts +132 -0
  74. package/dist/shared/js-agent-hooks.d.ts +23 -0
  75. package/dist/shared/local-custom-model-api.d.ts +55 -0
  76. package/dist/shared/local-environment-api.d.ts +110 -0
  77. package/dist/shared/local-mcp-server-api.d.ts +91 -0
  78. package/dist/shared/local-memory.d.ts +165 -0
  79. package/dist/shared/local-plugin-api.d.ts +26 -0
  80. package/dist/shared/local-runtime-api.d.ts +32 -0
  81. package/dist/shared/local-skill-api.d.ts +42 -0
  82. package/dist/shared/local-task-api.d.ts +658 -0
  83. package/dist/shared/local-task-command-client.d.ts +55 -0
  84. package/dist/shared/local-task-command.d.ts +91 -0
  85. package/dist/shared/local-task-event-projection.d.ts +29 -0
  86. package/dist/shared/local-task-projection.d.ts +29 -0
  87. package/dist/shared/local-workspace.d.ts +9 -0
  88. package/dist/shared/managed-authorization.d.ts +70 -0
  89. package/dist/shared/memory-customization.d.ts +32 -0
  90. package/dist/shared/model-routing.d.ts +31 -0
  91. package/dist/shared/model-selection.d.ts +11 -0
  92. package/dist/shared/my-expert-api.d.ts +119 -0
  93. package/dist/shared/navigation-api.d.ts +20 -0
  94. package/dist/shared/office-window-api.d.ts +81 -0
  95. package/dist/shared/platform-branding-api.d.ts +66 -0
  96. package/dist/shared/plugin-market-api.d.ts +120 -0
  97. package/dist/shared/profession-market-api.d.ts +96 -0
  98. package/dist/shared/project-local-skill-api.d.ts +8 -0
  99. package/dist/shared/remote-connection-api.d.ts +97 -0
  100. package/dist/shared/remote-connection.d.ts +62 -0
  101. package/dist/shared/remote-installation-api.d.ts +50 -0
  102. package/dist/shared/remote-tasks-api.d.ts +118 -0
  103. package/dist/shared/runtime-tuning.d.ts +44 -0
  104. package/dist/shared/scene-case-api.d.ts +42 -0
  105. package/dist/shared/security-center-api.d.ts +74 -0
  106. package/dist/shared/sensitive-protection-api.d.ts +71 -0
  107. package/dist/shared/session-policy.d.ts +26 -0
  108. package/dist/shared/shortcut-api.d.ts +7 -0
  109. package/dist/shared/skill-activation-api.d.ts +8 -0
  110. package/dist/shared/skill-asset-api.d.ts +12 -0
  111. package/dist/shared/skill-market-api.d.ts +119 -0
  112. package/dist/shared/skill-upload.d.ts +16 -0
  113. package/dist/shared/speech-recognition-api.d.ts +12 -0
  114. package/dist/shared/storage-integrity.d.ts +15 -0
  115. package/dist/shared/target-bridge-protocol.d.ts +67 -0
  116. package/dist/shared/target-environments.d.ts +15 -0
  117. package/dist/shared/target-resources.d.ts +105 -0
  118. package/dist/shared/task-initialization-api.d.ts +44 -0
  119. package/dist/shared/task-menu-api.d.ts +27 -0
  120. package/dist/shared/task-operation.d.ts +19 -0
  121. package/dist/shared/task-path-policy.d.ts +14 -0
  122. package/dist/shared/task-resource-manifest.d.ts +33 -0
  123. package/dist/shared/task-storage-recovery.d.ts +33 -0
  124. package/dist/shared/task-terminal-api.d.ts +48 -0
  125. package/dist/shared/team-control.d.ts +60 -0
  126. package/dist/shared/tool-activity.d.ts +18 -0
  127. package/dist/shared/update-api.d.ts +65 -0
  128. package/dist/shared/usage-statistics-api.d.ts +18 -0
  129. package/dist/shared/worktree-api.d.ts +188 -0
  130. package/examples/business-assistant.mjs +19 -0
  131. package/examples/common.mjs +51 -0
  132. package/examples/platform-assistant.mjs +9 -0
  133. package/examples/standalone-assistant.mjs +16 -0
  134. package/package.json +20 -4
@@ -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
+ }