@kmlckj/aios-agent-server-sdk 0.0.1 → 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/README.md +34 -6
- package/dist/core/auth/platform-client.d.ts +7 -1
- package/dist/index.js +4 -4
- package/dist/sdk/src/index.d.ts +19 -16
- package/dist/sdk/src/platform.d.ts +4 -0
- package/dist/sdk/src/types.d.ts +6 -93
- package/dist/shared/account-schedules-api.d.ts +110 -0
- package/dist/shared/agent-team.d.ts +2 -0
- package/dist/shared/cloud-assistant-api.d.ts +11 -499
- 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 +3 -2
- package/dist/shared/collaboration-deep-link.d.ts +0 -3
- package/dist/shared/collaboration-task-api.d.ts +3 -99
- package/dist/shared/collaboration-task-execution.d.ts +39 -0
- package/dist/shared/desktop-api.d.ts +1 -0
- package/dist/shared/execution-context.d.ts +25 -0
- package/dist/shared/expert-selection.d.ts +22 -0
- package/dist/shared/local-task-command.d.ts +2 -0
- package/dist/shared/managed-authorization.d.ts +2 -0
- package/dist/shared/profession-market-api.d.ts +1 -1
- package/dist/shared/sdk-session-contract.d.ts +96 -0
- package/dist/shared/task-enterprise-project-api.d.ts +75 -0
- package/dist/shared/task-execution-api.d.ts +35 -0
- package/package.json +32 -12
- package/dist/shared/cloud-task-event-api.d.ts +0 -22
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
2
|
+
[key: string]: JsonValue;
|
|
3
|
+
};
|
|
4
|
+
export interface EnterpriseProjectInteraction {
|
|
5
|
+
interaction_id: string;
|
|
6
|
+
type: 'approval' | 'single_select' | 'multi_select' | 'form' | 'text';
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
details?: JsonValue;
|
|
10
|
+
options: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
value: JsonValue;
|
|
14
|
+
}[];
|
|
15
|
+
schema: JsonSchema;
|
|
16
|
+
expires_at?: string | null;
|
|
17
|
+
status: 'pending' | 'resolved' | 'expired';
|
|
18
|
+
}
|
|
19
|
+
export interface JsonSchema {
|
|
20
|
+
[keyword: string]: unknown;
|
|
21
|
+
type?: 'object' | 'array' | 'string' | 'number' | 'integer' | 'boolean' | 'null';
|
|
22
|
+
title?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
properties?: Record<string, JsonSchema>;
|
|
25
|
+
required?: string[];
|
|
26
|
+
items?: JsonSchema;
|
|
27
|
+
enum?: JsonValue[];
|
|
28
|
+
minLength?: number;
|
|
29
|
+
maxLength?: number;
|
|
30
|
+
minimum?: number;
|
|
31
|
+
maximum?: number;
|
|
32
|
+
minItems?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
pattern?: string;
|
|
35
|
+
format?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface EnterpriseProjectArtifact {
|
|
38
|
+
name: string;
|
|
39
|
+
url: string;
|
|
40
|
+
mime_type?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface EnterpriseProjectInvocation {
|
|
43
|
+
invocation_id: string;
|
|
44
|
+
record_id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
task_id: string;
|
|
47
|
+
session_id: string;
|
|
48
|
+
status: 'queued' | 'running' | 'waiting_input' | 'waiting_approval' | 'succeeded' | 'incomplete' | 'failed' | 'cancelled' | 'interrupted';
|
|
49
|
+
result: JsonValue;
|
|
50
|
+
artifacts: EnterpriseProjectArtifact[];
|
|
51
|
+
required_action: EnterpriseProjectInteraction[];
|
|
52
|
+
error: JsonValue;
|
|
53
|
+
revision: number;
|
|
54
|
+
created_at: string;
|
|
55
|
+
updated_at: string;
|
|
56
|
+
}
|
|
57
|
+
export interface EnterpriseProjectResource {
|
|
58
|
+
tenant_id: string;
|
|
59
|
+
workspace_id: string;
|
|
60
|
+
resource_type: 'AGENT' | 'AICODING_AGENT' | 'AICODING_WORKFLOW';
|
|
61
|
+
resource_id: string;
|
|
62
|
+
}
|
|
63
|
+
export interface EnterpriseProjectCapability extends EnterpriseProjectResource {
|
|
64
|
+
record_id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
description?: string | null;
|
|
67
|
+
contract_revision: string;
|
|
68
|
+
}
|
|
69
|
+
export interface EnterpriseProjectCapabilityPage {
|
|
70
|
+
list: EnterpriseProjectCapability[];
|
|
71
|
+
page: number;
|
|
72
|
+
page_size: number;
|
|
73
|
+
has_next: boolean;
|
|
74
|
+
verification_pending: number;
|
|
75
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type TaskExecutionProvider = 'LICOS' | 'CLAUDE' | 'CODEX';
|
|
2
|
+
export interface TaskExecutionEndpoint {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
provider: TaskExecutionProvider;
|
|
6
|
+
status: 'PENDING' | 'ACTIVE' | 'REVOKED';
|
|
7
|
+
connected: boolean;
|
|
8
|
+
deviceId: string | null;
|
|
9
|
+
capabilities: {
|
|
10
|
+
protocolVersion?: number;
|
|
11
|
+
methods?: string[];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface TaskEndpointPairing {
|
|
15
|
+
id: string;
|
|
16
|
+
endpointId: string;
|
|
17
|
+
token: string;
|
|
18
|
+
expiresAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface TaskExecutionBinding {
|
|
21
|
+
endpointId: string;
|
|
22
|
+
deviceId: string;
|
|
23
|
+
provider: TaskExecutionProvider;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
export interface TaskExecutionEndpointsApi {
|
|
27
|
+
executionEndpoints(actor: string, offset: number): Promise<TaskExecutionEndpoint[]>;
|
|
28
|
+
createExecutionEndpoint(actor: string, name: string, provider: TaskExecutionProvider): Promise<TaskEndpointPairing>;
|
|
29
|
+
pairExecutionEndpoint(actor: string, id: string): Promise<TaskEndpointPairing>;
|
|
30
|
+
executionPairingStatus(actor: string, pair: TaskEndpointPairing): Promise<{
|
|
31
|
+
status: 'PENDING' | 'CLAIMED' | 'CANCELLED' | 'EXPIRED';
|
|
32
|
+
}>;
|
|
33
|
+
cancelExecutionPairing(actor: string, pair: TaskEndpointPairing): Promise<void>;
|
|
34
|
+
revokeExecutionEndpoint(actor: string, id: string): Promise<void>;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmlckj/aios-agent-server-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "AIOS agent application SDK for Node.js",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "^22.23.2 || ^24.0.0"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"ajv": "8.20.0",
|
|
15
|
+
"tar": "7.5.22"
|
|
16
|
+
},
|
|
9
17
|
"optionalDependencies": {
|
|
10
|
-
"@kmlckj/aios-runtime-win32-x64": "0.0.
|
|
11
|
-
"@kmlckj/aios-runtime-darwin-x64": "0.0.
|
|
12
|
-
"@kmlckj/aios-runtime-darwin-arm64": "0.0.
|
|
13
|
-
"@kmlckj/aios-runtime-linux-x64": "0.0.
|
|
14
|
-
"@kmlckj/aios-runtime-linux-arm64": "0.0.
|
|
18
|
+
"@kmlckj/aios-runtime-win32-x64": "0.0.2",
|
|
19
|
+
"@kmlckj/aios-runtime-darwin-x64": "0.0.2",
|
|
20
|
+
"@kmlckj/aios-runtime-darwin-arm64": "0.0.2",
|
|
21
|
+
"@kmlckj/aios-runtime-linux-x64": "0.0.2",
|
|
22
|
+
"@kmlckj/aios-runtime-linux-arm64": "0.0.2"
|
|
15
23
|
},
|
|
16
24
|
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/sdk/src/index.d.ts",
|
|
27
|
+
"import": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./events": {
|
|
30
|
+
"types": "./dist/sdk/src/events.d.ts",
|
|
31
|
+
"import": "./dist/events.js"
|
|
32
|
+
}
|
|
19
33
|
},
|
|
20
|
-
"files": [
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"README.md",
|
|
37
|
+
"EVENTS.md",
|
|
38
|
+
"examples",
|
|
39
|
+
"capabilities.json"
|
|
40
|
+
],
|
|
21
41
|
"license": "UNLICENSED"
|
|
22
42
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CloudTaskEvent, CloudTaskEventSubscriptionRequest } from './collaboration-task-api.js';
|
|
2
|
-
export interface CloudTaskEventSubscription {
|
|
3
|
-
subscriptionId: string;
|
|
4
|
-
}
|
|
5
|
-
export type CloudTaskEventStreamMessage = {
|
|
6
|
-
type: 'event';
|
|
7
|
-
subscriptionId: string;
|
|
8
|
-
generation: number;
|
|
9
|
-
event: CloudTaskEvent;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'connection';
|
|
12
|
-
subscriptionId: string;
|
|
13
|
-
generation: number;
|
|
14
|
-
state: 'connecting' | 'connected' | 'recovering' | 'closed';
|
|
15
|
-
lastSeqId: number;
|
|
16
|
-
reason?: string;
|
|
17
|
-
};
|
|
18
|
-
export interface CloudTaskEventApi {
|
|
19
|
-
subscribe(request: CloudTaskEventSubscriptionRequest): Promise<CloudTaskEventSubscription>;
|
|
20
|
-
unsubscribe(subscriptionId: string): Promise<void>;
|
|
21
|
-
onEvent(listener: (message: CloudTaskEventStreamMessage) => void): () => void;
|
|
22
|
-
}
|