@openagentpack/sdk 0.3.1 → 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 +370 -48
- package/dist/index.js +2486 -632
- package/dist/{session-event-CxLg_XqS.d.ts → session-event-DHLkM9iF.d.ts} +132 -8
- package/dist/session-events.d.ts +1 -1
- package/dist/session-events.js +2 -1
- package/package.json +1 -1
|
@@ -105,6 +105,22 @@ declare const PlannedActionSchema: z.ZodObject<{
|
|
|
105
105
|
name: z.ZodString;
|
|
106
106
|
provider: z.ZodString;
|
|
107
107
|
}, z.core.$strip>;
|
|
108
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
type: z.ZodEnum<{
|
|
110
|
+
file: "file";
|
|
111
|
+
memory_store: "memory_store";
|
|
112
|
+
environment: "environment";
|
|
113
|
+
vault: "vault";
|
|
114
|
+
skill: "skill";
|
|
115
|
+
agent: "agent";
|
|
116
|
+
template: "template";
|
|
117
|
+
deployment: "deployment";
|
|
118
|
+
identity: "identity";
|
|
119
|
+
channel: "channel";
|
|
120
|
+
}>;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
provider: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>;
|
|
108
124
|
reason: z.ZodString;
|
|
109
125
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
110
126
|
none: "none";
|
|
@@ -139,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
|
|
|
139
155
|
}, z.core.$strip>;
|
|
140
156
|
type PlannedAction = z.infer<typeof PlannedActionSchema>;
|
|
141
157
|
declare const AgentReadinessStatusSchema: z.ZodEnum<{
|
|
142
|
-
error: "error";
|
|
143
158
|
ready: "ready";
|
|
159
|
+
error: "error";
|
|
144
160
|
missing: "missing";
|
|
145
161
|
creating: "creating";
|
|
146
162
|
updating: "updating";
|
|
@@ -187,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
|
|
|
187
203
|
type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
|
|
188
204
|
declare const AgentReadinessSchema: z.ZodObject<{
|
|
189
205
|
status: z.ZodEnum<{
|
|
190
|
-
error: "error";
|
|
191
206
|
ready: "ready";
|
|
207
|
+
error: "error";
|
|
192
208
|
missing: "missing";
|
|
193
209
|
creating: "creating";
|
|
194
210
|
updating: "updating";
|
|
@@ -265,6 +281,22 @@ declare const AgentReadinessSchema: z.ZodObject<{
|
|
|
265
281
|
name: z.ZodString;
|
|
266
282
|
provider: z.ZodString;
|
|
267
283
|
}, z.core.$strip>;
|
|
284
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
type: z.ZodEnum<{
|
|
286
|
+
file: "file";
|
|
287
|
+
memory_store: "memory_store";
|
|
288
|
+
environment: "environment";
|
|
289
|
+
vault: "vault";
|
|
290
|
+
skill: "skill";
|
|
291
|
+
agent: "agent";
|
|
292
|
+
template: "template";
|
|
293
|
+
deployment: "deployment";
|
|
294
|
+
identity: "identity";
|
|
295
|
+
channel: "channel";
|
|
296
|
+
}>;
|
|
297
|
+
name: z.ZodString;
|
|
298
|
+
provider: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
268
300
|
reason: z.ZodString;
|
|
269
301
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
270
302
|
none: "none";
|
|
@@ -321,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
|
|
|
321
353
|
}, z.core.$strip>;
|
|
322
354
|
readiness: z.ZodObject<{
|
|
323
355
|
status: z.ZodEnum<{
|
|
324
|
-
error: "error";
|
|
325
356
|
ready: "ready";
|
|
357
|
+
error: "error";
|
|
326
358
|
missing: "missing";
|
|
327
359
|
creating: "creating";
|
|
328
360
|
updating: "updating";
|
|
@@ -399,6 +431,22 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
|
|
|
399
431
|
name: z.ZodString;
|
|
400
432
|
provider: z.ZodString;
|
|
401
433
|
}, z.core.$strip>;
|
|
434
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
435
|
+
type: z.ZodEnum<{
|
|
436
|
+
file: "file";
|
|
437
|
+
memory_store: "memory_store";
|
|
438
|
+
environment: "environment";
|
|
439
|
+
vault: "vault";
|
|
440
|
+
skill: "skill";
|
|
441
|
+
agent: "agent";
|
|
442
|
+
template: "template";
|
|
443
|
+
deployment: "deployment";
|
|
444
|
+
identity: "identity";
|
|
445
|
+
channel: "channel";
|
|
446
|
+
}>;
|
|
447
|
+
name: z.ZodString;
|
|
448
|
+
provider: z.ZodString;
|
|
449
|
+
}, z.core.$strip>>;
|
|
402
450
|
reason: z.ZodString;
|
|
403
451
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
404
452
|
none: "none";
|
|
@@ -457,6 +505,7 @@ declare const CloudAgentSchema: z.ZodObject<{
|
|
|
457
505
|
created_at: z.ZodOptional<z.ZodString>;
|
|
458
506
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
459
507
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
460
509
|
}, z.core.$strip>;
|
|
461
510
|
type CloudAgent = z.infer<typeof CloudAgentSchema>;
|
|
462
511
|
declare const ListCloudAgentsResponseSchema: z.ZodObject<{
|
|
@@ -476,6 +525,7 @@ declare const ListCloudAgentsResponseSchema: z.ZodObject<{
|
|
|
476
525
|
created_at: z.ZodOptional<z.ZodString>;
|
|
477
526
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
478
527
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
479
529
|
}, z.core.$strip>>;
|
|
480
530
|
}, z.core.$strip>;
|
|
481
531
|
type ListCloudAgentsResponse = z.infer<typeof ListCloudAgentsResponseSchema>;
|
|
@@ -492,6 +542,7 @@ declare const CloudEnvironmentSchema: z.ZodObject<{
|
|
|
492
542
|
created_at: z.ZodOptional<z.ZodString>;
|
|
493
543
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
494
544
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
495
546
|
}, z.core.$strip>;
|
|
496
547
|
type CloudEnvironment = z.infer<typeof CloudEnvironmentSchema>;
|
|
497
548
|
declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
|
|
@@ -508,6 +559,7 @@ declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
|
|
|
508
559
|
created_at: z.ZodOptional<z.ZodString>;
|
|
509
560
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
510
561
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
511
563
|
}, z.core.$strip>>;
|
|
512
564
|
}, z.core.$strip>;
|
|
513
565
|
type ListCloudEnvironmentsResponse = z.infer<typeof ListCloudEnvironmentsResponseSchema>;
|
|
@@ -519,6 +571,7 @@ declare const CloudVaultSchema: z.ZodObject<{
|
|
|
519
571
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
572
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
573
|
archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
522
575
|
}, z.core.$strip>;
|
|
523
576
|
type CloudVault = z.infer<typeof CloudVaultSchema>;
|
|
524
577
|
declare const SessionEventTypeSchema: z.ZodEnum<{
|
|
@@ -532,9 +585,9 @@ declare const SessionEventTypeSchema: z.ZodEnum<{
|
|
|
532
585
|
}>;
|
|
533
586
|
type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
|
|
534
587
|
declare const AgentSyncStatusSchema: z.ZodEnum<{
|
|
588
|
+
failed: "failed";
|
|
535
589
|
completed: "completed";
|
|
536
590
|
blocked: "blocked";
|
|
537
|
-
failed: "failed";
|
|
538
591
|
}>;
|
|
539
592
|
type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
|
|
540
593
|
declare const AgentSyncResultSchema: z.ZodObject<{
|
|
@@ -561,6 +614,22 @@ declare const AgentSyncResultSchema: z.ZodObject<{
|
|
|
561
614
|
name: z.ZodString;
|
|
562
615
|
provider: z.ZodString;
|
|
563
616
|
}, z.core.$strip>;
|
|
617
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
618
|
+
type: z.ZodEnum<{
|
|
619
|
+
file: "file";
|
|
620
|
+
memory_store: "memory_store";
|
|
621
|
+
environment: "environment";
|
|
622
|
+
vault: "vault";
|
|
623
|
+
skill: "skill";
|
|
624
|
+
agent: "agent";
|
|
625
|
+
template: "template";
|
|
626
|
+
deployment: "deployment";
|
|
627
|
+
identity: "identity";
|
|
628
|
+
channel: "channel";
|
|
629
|
+
}>;
|
|
630
|
+
name: z.ZodString;
|
|
631
|
+
provider: z.ZodString;
|
|
632
|
+
}, z.core.$strip>>;
|
|
564
633
|
reason: z.ZodString;
|
|
565
634
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
566
635
|
none: "none";
|
|
@@ -594,8 +663,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
|
|
|
594
663
|
}, z.core.$strip>>;
|
|
595
664
|
}, z.core.$strip>;
|
|
596
665
|
status: z.ZodEnum<{
|
|
597
|
-
success: "success";
|
|
598
666
|
failed: "failed";
|
|
667
|
+
success: "success";
|
|
599
668
|
skipped: "skipped";
|
|
600
669
|
}>;
|
|
601
670
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -605,9 +674,9 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
605
674
|
agentId: z.ZodString;
|
|
606
675
|
provider: z.ZodOptional<z.ZodString>;
|
|
607
676
|
status: z.ZodEnum<{
|
|
677
|
+
failed: "failed";
|
|
608
678
|
completed: "completed";
|
|
609
679
|
blocked: "blocked";
|
|
610
|
-
failed: "failed";
|
|
611
680
|
}>;
|
|
612
681
|
actions: z.ZodArray<z.ZodObject<{
|
|
613
682
|
action: z.ZodEnum<{
|
|
@@ -632,6 +701,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
632
701
|
name: z.ZodString;
|
|
633
702
|
provider: z.ZodString;
|
|
634
703
|
}, z.core.$strip>;
|
|
704
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
705
|
+
type: z.ZodEnum<{
|
|
706
|
+
file: "file";
|
|
707
|
+
memory_store: "memory_store";
|
|
708
|
+
environment: "environment";
|
|
709
|
+
vault: "vault";
|
|
710
|
+
skill: "skill";
|
|
711
|
+
agent: "agent";
|
|
712
|
+
template: "template";
|
|
713
|
+
deployment: "deployment";
|
|
714
|
+
identity: "identity";
|
|
715
|
+
channel: "channel";
|
|
716
|
+
}>;
|
|
717
|
+
name: z.ZodString;
|
|
718
|
+
provider: z.ZodString;
|
|
719
|
+
}, z.core.$strip>>;
|
|
635
720
|
reason: z.ZodString;
|
|
636
721
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
637
722
|
none: "none";
|
|
@@ -712,6 +797,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
712
797
|
name: z.ZodString;
|
|
713
798
|
provider: z.ZodString;
|
|
714
799
|
}, z.core.$strip>;
|
|
800
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
801
|
+
type: z.ZodEnum<{
|
|
802
|
+
file: "file";
|
|
803
|
+
memory_store: "memory_store";
|
|
804
|
+
environment: "environment";
|
|
805
|
+
vault: "vault";
|
|
806
|
+
skill: "skill";
|
|
807
|
+
agent: "agent";
|
|
808
|
+
template: "template";
|
|
809
|
+
deployment: "deployment";
|
|
810
|
+
identity: "identity";
|
|
811
|
+
channel: "channel";
|
|
812
|
+
}>;
|
|
813
|
+
name: z.ZodString;
|
|
814
|
+
provider: z.ZodString;
|
|
815
|
+
}, z.core.$strip>>;
|
|
715
816
|
reason: z.ZodString;
|
|
716
817
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
717
818
|
none: "none";
|
|
@@ -768,6 +869,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
768
869
|
name: z.ZodString;
|
|
769
870
|
provider: z.ZodString;
|
|
770
871
|
}, z.core.$strip>;
|
|
872
|
+
previousAddress: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
type: z.ZodEnum<{
|
|
874
|
+
file: "file";
|
|
875
|
+
memory_store: "memory_store";
|
|
876
|
+
environment: "environment";
|
|
877
|
+
vault: "vault";
|
|
878
|
+
skill: "skill";
|
|
879
|
+
agent: "agent";
|
|
880
|
+
template: "template";
|
|
881
|
+
deployment: "deployment";
|
|
882
|
+
identity: "identity";
|
|
883
|
+
channel: "channel";
|
|
884
|
+
}>;
|
|
885
|
+
name: z.ZodString;
|
|
886
|
+
provider: z.ZodString;
|
|
887
|
+
}, z.core.$strip>>;
|
|
771
888
|
reason: z.ZodString;
|
|
772
889
|
driftKind: z.ZodOptional<z.ZodEnum<{
|
|
773
890
|
none: "none";
|
|
@@ -801,8 +918,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
|
|
|
801
918
|
}, z.core.$strip>>;
|
|
802
919
|
}, z.core.$strip>;
|
|
803
920
|
status: z.ZodEnum<{
|
|
804
|
-
success: "success";
|
|
805
921
|
failed: "failed";
|
|
922
|
+
success: "success";
|
|
806
923
|
skipped: "skipped";
|
|
807
924
|
}>;
|
|
808
925
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -978,6 +1095,8 @@ interface ProviderSessionEvent {
|
|
|
978
1095
|
tool_input?: string;
|
|
979
1096
|
status?: string;
|
|
980
1097
|
stop_reason?: string;
|
|
1098
|
+
/** Child-agent thread id when a Managed Agents multi-agent event carries one. */
|
|
1099
|
+
session_thread_id?: string;
|
|
981
1100
|
/**
|
|
982
1101
|
* A file the agent delivered to the provider's Files API (qoder DeliverArtifacts /
|
|
983
1102
|
* bailian download_file). Structured so the webui can show a download card without
|
|
@@ -999,6 +1118,11 @@ interface EventListOptions {
|
|
|
999
1118
|
page_token?: string;
|
|
1000
1119
|
/** Legacy alias for page_token used by some provider adapters. */
|
|
1001
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;
|
|
1002
1126
|
}
|
|
1003
1127
|
interface EventStreamOptions {
|
|
1004
1128
|
after_id?: string;
|
|
@@ -1009,4 +1133,4 @@ interface ProviderSessionEventList {
|
|
|
1009
1133
|
next_page?: string;
|
|
1010
1134
|
}
|
|
1011
1135
|
|
|
1012
|
-
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;
|