@openagentpack/sdk 0.3.2 → 0.4.0-beta-2472720-20260827
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/dist/{chunk-GAAU67HX.js → chunk-6PDVAFLK.js} +13 -0
- package/dist/{file-URqwlxLf.d.ts → file-Cj5-Vx27.d.ts} +5 -0
- package/dist/file-lifecycle.d.ts +1 -1
- package/dist/index.d.ts +359 -47
- package/dist/index.js +1982 -511
- package/dist/{session-event-mzuENtyH.d.ts → session-event-DHLkM9iF.d.ts} +20 -8
- package/dist/session-events.d.ts +1 -1
- package/dist/session-events.js +2 -1
- package/package.json +1 -1
|
@@ -155,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
|
|
|
155
155
|
}, z.core.$strip>;
|
|
156
156
|
type PlannedAction = z.infer<typeof PlannedActionSchema>;
|
|
157
157
|
declare const AgentReadinessStatusSchema: z.ZodEnum<{
|
|
158
|
-
error: "error";
|
|
159
158
|
ready: "ready";
|
|
159
|
+
error: "error";
|
|
160
160
|
missing: "missing";
|
|
161
161
|
creating: "creating";
|
|
162
162
|
updating: "updating";
|
|
@@ -203,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
|
|
|
203
203
|
type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
|
|
204
204
|
declare const AgentReadinessSchema: z.ZodObject<{
|
|
205
205
|
status: z.ZodEnum<{
|
|
206
|
-
error: "error";
|
|
207
206
|
ready: "ready";
|
|
207
|
+
error: "error";
|
|
208
208
|
missing: "missing";
|
|
209
209
|
creating: "creating";
|
|
210
210
|
updating: "updating";
|
|
@@ -353,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
|
|
|
353
353
|
}, z.core.$strip>;
|
|
354
354
|
readiness: z.ZodObject<{
|
|
355
355
|
status: z.ZodEnum<{
|
|
356
|
-
error: "error";
|
|
357
356
|
ready: "ready";
|
|
357
|
+
error: "error";
|
|
358
358
|
missing: "missing";
|
|
359
359
|
creating: "creating";
|
|
360
360
|
updating: "updating";
|
|
@@ -505,6 +505,7 @@ declare const CloudAgentSchema: z.ZodObject<{
|
|
|
505
505
|
created_at: z.ZodOptional<z.ZodString>;
|
|
506
506
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
507
507
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
508
509
|
}, z.core.$strip>;
|
|
509
510
|
type CloudAgent = z.infer<typeof CloudAgentSchema>;
|
|
510
511
|
declare const ListCloudAgentsResponseSchema: z.ZodObject<{
|
|
@@ -524,6 +525,7 @@ declare const ListCloudAgentsResponseSchema: z.ZodObject<{
|
|
|
524
525
|
created_at: z.ZodOptional<z.ZodString>;
|
|
525
526
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
526
527
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
527
529
|
}, z.core.$strip>>;
|
|
528
530
|
}, z.core.$strip>;
|
|
529
531
|
type ListCloudAgentsResponse = z.infer<typeof ListCloudAgentsResponseSchema>;
|
|
@@ -540,6 +542,7 @@ declare const CloudEnvironmentSchema: z.ZodObject<{
|
|
|
540
542
|
created_at: z.ZodOptional<z.ZodString>;
|
|
541
543
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
542
544
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
543
546
|
}, z.core.$strip>;
|
|
544
547
|
type CloudEnvironment = z.infer<typeof CloudEnvironmentSchema>;
|
|
545
548
|
declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
|
|
@@ -556,6 +559,7 @@ declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
|
|
|
556
559
|
created_at: z.ZodOptional<z.ZodString>;
|
|
557
560
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
558
561
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
559
563
|
}, z.core.$strip>>;
|
|
560
564
|
}, z.core.$strip>;
|
|
561
565
|
type ListCloudEnvironmentsResponse = z.infer<typeof ListCloudEnvironmentsResponseSchema>;
|
|
@@ -567,6 +571,7 @@ declare const CloudVaultSchema: z.ZodObject<{
|
|
|
567
571
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
568
572
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
569
573
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
570
575
|
}, z.core.$strip>;
|
|
571
576
|
type CloudVault = z.infer<typeof CloudVaultSchema>;
|
|
572
577
|
declare const SessionEventTypeSchema: z.ZodEnum<{
|
|
@@ -580,9 +585,9 @@ declare const SessionEventTypeSchema: z.ZodEnum<{
|
|
|
580
585
|
}>;
|
|
581
586
|
type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
|
|
582
587
|
declare const AgentSyncStatusSchema: z.ZodEnum<{
|
|
588
|
+
failed: "failed";
|
|
583
589
|
completed: "completed";
|
|
584
590
|
blocked: "blocked";
|
|
585
|
-
failed: "failed";
|
|
586
591
|
}>;
|
|
587
592
|
type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
|
|
588
593
|
declare const AgentSyncResultSchema: z.ZodObject<{
|
|
@@ -658,8 +663,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
|
|
|
658
663
|
}, z.core.$strip>>;
|
|
659
664
|
}, z.core.$strip>;
|
|
660
665
|
status: z.ZodEnum<{
|
|
661
|
-
success: "success";
|
|
662
666
|
failed: "failed";
|
|
667
|
+
success: "success";
|
|
663
668
|
skipped: "skipped";
|
|
664
669
|
}>;
|
|
665
670
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -669,9 +674,9 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
669
674
|
agentId: z.ZodString;
|
|
670
675
|
provider: z.ZodOptional<z.ZodString>;
|
|
671
676
|
status: z.ZodEnum<{
|
|
677
|
+
failed: "failed";
|
|
672
678
|
completed: "completed";
|
|
673
679
|
blocked: "blocked";
|
|
674
|
-
failed: "failed";
|
|
675
680
|
}>;
|
|
676
681
|
actions: z.ZodArray<z.ZodObject<{
|
|
677
682
|
action: z.ZodEnum<{
|
|
@@ -913,8 +918,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
913
918
|
}, z.core.$strip>>;
|
|
914
919
|
}, z.core.$strip>;
|
|
915
920
|
status: z.ZodEnum<{
|
|
916
|
-
success: "success";
|
|
917
921
|
failed: "failed";
|
|
922
|
+
success: "success";
|
|
918
923
|
skipped: "skipped";
|
|
919
924
|
}>;
|
|
920
925
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -1090,6 +1095,8 @@ interface ProviderSessionEvent {
|
|
|
1090
1095
|
tool_input?: string;
|
|
1091
1096
|
status?: string;
|
|
1092
1097
|
stop_reason?: string;
|
|
1098
|
+
/** Child-agent thread id when a Managed Agents multi-agent event carries one. */
|
|
1099
|
+
session_thread_id?: string;
|
|
1093
1100
|
/**
|
|
1094
1101
|
* A file the agent delivered to the provider's Files API (qoder DeliverArtifacts /
|
|
1095
1102
|
* bailian download_file). Structured so the webui can show a download card without
|
|
@@ -1111,6 +1118,11 @@ interface EventListOptions {
|
|
|
1111
1118
|
page_token?: string;
|
|
1112
1119
|
/** Legacy alias for page_token used by some provider adapters. */
|
|
1113
1120
|
page?: string;
|
|
1121
|
+
types?: string[];
|
|
1122
|
+
created_at_gt?: string;
|
|
1123
|
+
created_at_gte?: string;
|
|
1124
|
+
created_at_lt?: string;
|
|
1125
|
+
created_at_lte?: string;
|
|
1114
1126
|
}
|
|
1115
1127
|
interface EventStreamOptions {
|
|
1116
1128
|
after_id?: string;
|
|
@@ -1121,4 +1133,4 @@ interface ProviderSessionEventList {
|
|
|
1121
1133
|
next_page?: string;
|
|
1122
1134
|
}
|
|
1123
1135
|
|
|
1124
|
-
export { type ListCloudEnvironmentsResponse as $, type AgentDefinition as A, type AgentSyncStatus as B, type CloudAgent as C, type Diagnostic as D, type EventStreamOptions as E, AgentSyncStatusSchema as F, AgentWithReadinessSchema as G, CloudAgentSchema as H, CloudEnvironmentSchema as I, CloudVaultSchema as J, type CreateSessionRequest as K, CreateSessionRequestSchema as L, type CreateSessionResponse as M, CreateSessionResponseSchema as N, DiagnosticSchema as O, type ProviderSessionEvent as P, type DiagnosticSeverity as Q, type ResourceAddress as R, DiagnosticSeveritySchema as S, type DriftKind as T, DriftKindSchema as U, type GetSessionRequest as V, GetSessionRequestSchema as W, KNOWN_SESSION_EVENT_TYPES as X, type KnownSessionEventType as Y, type ListCloudAgentsResponse as Z, ListCloudAgentsResponseSchema as _, type
|
|
1136
|
+
export { type ListCloudEnvironmentsResponse as $, type AgentDefinition as A, type AgentSyncStatus as B, type CloudAgent as C, type Diagnostic as D, type EventStreamOptions as E, AgentSyncStatusSchema as F, AgentWithReadinessSchema as G, CloudAgentSchema as H, CloudEnvironmentSchema as I, CloudVaultSchema as J, type CreateSessionRequest as K, CreateSessionRequestSchema as L, type CreateSessionResponse as M, CreateSessionResponseSchema as N, DiagnosticSchema as O, type ProviderSessionEvent as P, type DiagnosticSeverity as Q, type ResourceAddress as R, DiagnosticSeveritySchema as S, type DriftKind as T, DriftKindSchema as U, type GetSessionRequest as V, GetSessionRequestSchema as W, KNOWN_SESSION_EVENT_TYPES as X, type KnownSessionEventType as Y, type ListCloudAgentsResponse as Z, ListCloudAgentsResponseSchema as _, type CloudEnvironment as a, ListCloudEnvironmentsResponseSchema as a0, type ListSessionEventsRequest as a1, ListSessionEventsRequestSchema as a2, type ListSessionEventsResponse as a3, ListSessionEventsResponseSchema as a4, type ListSessionsRequest as a5, ListSessionsRequestSchema as a6, type ListSessionsResponse as a7, ListSessionsResponseSchema as a8, type PlanReadinessImpact as a9, PlanReadinessImpactSchema as aa, PlannedActionSchema as ab, ResourceAddressSchema as ac, ResourceTypeSchema as ad, type SendEventRequest as ae, SendEventRequestSchema as af, type SendEventResponse as ag, SendEventResponseSchema as ah, type Session as ai, type SessionAgent as aj, SessionAgentSchema as ak, type SessionContentBlock as al, SessionContentBlockSchema as am, type SessionEvent as an, SessionEventSchema as ao, type SessionEventType as ap, type SessionEventTypeName as aq, SessionEventTypeSchema as ar, SessionSchema as as, type CloudVault as b, type ResourceType as c, type EventListOptions as d, type ProviderSessionEventList as e, type PlannedAction as f, type AgentWithReadiness as g, type AgentSyncRun as h, type ActionType as i, ActionTypeSchema as j, AgentDefinitionSchema as k, type AgentDriftSeverity as l, AgentDriftSeveritySchema as m, type AgentModel as n, AgentModelSchema as o, type AgentReadiness as p, AgentReadinessSchema as q, type AgentReadinessStatus as r, AgentReadinessStatusSchema as s, type AgentRecoveryAction as t, AgentRecoveryActionSchema as u, type AgentSkillRef as v, AgentSkillRefSchema as w, type AgentSyncResult as x, AgentSyncResultSchema as y, AgentSyncRunSchema as z };
|
package/dist/session-events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-
|
|
1
|
+
import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-DHLkM9iF.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
|
package/dist/session-events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toSessionEvent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6PDVAFLK.js";
|
|
4
4
|
|
|
5
5
|
// src/redaction.ts
|
|
6
6
|
var REDACTED = "[redacted]";
|
|
@@ -142,6 +142,7 @@ function sanitizeSessionEvent(event, options = {}) {
|
|
|
142
142
|
if (event.tool_input !== void 0) metadata.tool_input = event.tool_input;
|
|
143
143
|
if (event.status !== void 0) metadata.status = event.status;
|
|
144
144
|
if (event.stop_reason !== void 0) metadata.stop_reason = event.stop_reason;
|
|
145
|
+
if (event.session_thread_id !== void 0) metadata.session_thread_id = event.session_thread_id;
|
|
145
146
|
if (event.type !== "unknown") metadata.display_bucket = event.type;
|
|
146
147
|
if (event.artifact) metadata.artifact = event.artifact;
|
|
147
148
|
if (redacted) metadata.redacted = true;
|