@openagentpack/sdk 0.6.0 → 0.7.0
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 +17 -0
- package/dist/chunk-56BB46YT.js +1191 -0
- package/dist/chunk-HIK5DY4I.js +2429 -0
- package/dist/chunk-ZBJDMUJT.js +6989 -0
- package/dist/directory-nY2Slsfi.d.ts +98 -0
- package/dist/{session-event-B63Rbjim.d.ts → dto-BT1Q1Ii6.d.ts} +1 -50
- package/dist/errors-BcVE1wZB.d.ts +5 -0
- package/dist/index.d.ts +7 -1128
- package/dist/index.js +249 -9534
- package/dist/project-versions.d.ts +105 -0
- package/dist/project-versions.js +35 -0
- package/dist/project-workspace.d.ts +150 -0
- package/dist/project-workspace.js +1720 -0
- package/dist/resource-runtime-DZDY45_Q.d.ts +1126 -0
- package/dist/session-event-DB_YlDiK.d.ts +52 -0
- package/dist/session-events.d.ts +2 -1
- package/package.json +13 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { an as SessionEventType } from './dto-BT1Q1Ii6.js';
|
|
2
|
+
|
|
3
|
+
interface ProviderSessionEvent {
|
|
4
|
+
type: SessionEventType;
|
|
5
|
+
raw_type: string;
|
|
6
|
+
/** Stable per-event id when the provider supplies one; used to de-dupe history replay vs. live stream. */
|
|
7
|
+
id?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
tool_name?: string;
|
|
11
|
+
tool_input?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
stop_reason?: string;
|
|
14
|
+
/** Child-agent thread id when a Managed Agents multi-agent event carries one. */
|
|
15
|
+
session_thread_id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* A file the agent delivered to the provider's Files API (qoder DeliverArtifacts /
|
|
18
|
+
* bailian download_file). Structured so the webui can show a download card without
|
|
19
|
+
* scraping tool-result free text. Populated by the provider mapper; surfaced onto the
|
|
20
|
+
* contract event as `metadata.artifact` by the shared sanitizer.
|
|
21
|
+
*/
|
|
22
|
+
artifact?: {
|
|
23
|
+
file_id: string;
|
|
24
|
+
filename?: string;
|
|
25
|
+
content_type?: string;
|
|
26
|
+
size?: number;
|
|
27
|
+
};
|
|
28
|
+
raw: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
interface EventListOptions {
|
|
31
|
+
limit?: number;
|
|
32
|
+
after_id?: string;
|
|
33
|
+
order?: string;
|
|
34
|
+
page_token?: string;
|
|
35
|
+
/** Legacy alias for page_token used by some provider adapters. */
|
|
36
|
+
page?: string;
|
|
37
|
+
types?: string[];
|
|
38
|
+
created_at_gt?: string;
|
|
39
|
+
created_at_gte?: string;
|
|
40
|
+
created_at_lt?: string;
|
|
41
|
+
created_at_lte?: string;
|
|
42
|
+
}
|
|
43
|
+
interface EventStreamOptions {
|
|
44
|
+
after_id?: string;
|
|
45
|
+
}
|
|
46
|
+
interface ProviderSessionEventList {
|
|
47
|
+
events: ProviderSessionEvent[];
|
|
48
|
+
has_more: boolean;
|
|
49
|
+
next_page?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type { EventListOptions as E, ProviderSessionEventList as P, ProviderSessionEvent as a, EventStreamOptions as b };
|
package/dist/session-events.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { al as SessionEvent } from './dto-BT1Q1Ii6.js';
|
|
2
|
+
import { a as ProviderSessionEvent } from './session-event-DB_YlDiK.js';
|
|
2
3
|
import 'zod';
|
|
3
4
|
|
|
4
5
|
declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openagentpack/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "OpenAgentPack SDK (Node-compatible runtime)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -33,6 +33,18 @@
|
|
|
33
33
|
"import": "./dist/index.js",
|
|
34
34
|
"default": "./dist/index.js"
|
|
35
35
|
},
|
|
36
|
+
"./project-versions": {
|
|
37
|
+
"bun": "./dist/project-versions.js",
|
|
38
|
+
"types": "./dist/project-versions.d.ts",
|
|
39
|
+
"import": "./dist/project-versions.js",
|
|
40
|
+
"default": "./dist/project-versions.js"
|
|
41
|
+
},
|
|
42
|
+
"./project-workspace": {
|
|
43
|
+
"bun": "./dist/project-workspace.js",
|
|
44
|
+
"types": "./dist/project-workspace.d.ts",
|
|
45
|
+
"import": "./dist/project-workspace.js",
|
|
46
|
+
"default": "./dist/project-workspace.js"
|
|
47
|
+
},
|
|
36
48
|
"./session-events": {
|
|
37
49
|
"bun": "./dist/session-events.js",
|
|
38
50
|
"types": "./dist/session-events.d.ts",
|