@ellipsis-dev/sdk 0.11.0 → 0.12.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/dist/index.d.ts +3 -28
- package/dist/index.js +60 -91
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-DDQQ1Yfh.d.ts → types-BN5YExTm.d.ts} +68 -397
- package/package.json +1 -1
- package/schema/cc_step.schema.json +6036 -0
- package/schema/frames.schema.json +3 -108
- package/schema/openapi.v1.json +57 -430
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"type": "string"
|
|
267
267
|
},
|
|
268
268
|
"Session": {
|
|
269
|
-
"description": "An agent session: one conversation with an agent, from trigger to\nterminal state. Returned by `GET /sessions/{id}` and carried by the\nsession stream's `session`/`snapshot` frames \u2014 REST and stream never\ndisagree about what a session looks like.",
|
|
269
|
+
"description": "An agent session: one conversation with an agent, from trigger to\nterminal state. Returned by `GET /v1/sessions/{id}` and carried by the\nsession stream's `session`/`snapshot` frames \u2014 REST and stream never\ndisagree about what a session looks like.",
|
|
270
270
|
"properties": {
|
|
271
271
|
"attribution": {
|
|
272
272
|
"$ref": "#/$defs/SessionAttribution",
|
|
@@ -276,19 +276,6 @@
|
|
|
276
276
|
"$ref": "#/$defs/SessionBudget",
|
|
277
277
|
"description": "The spend budget enforced for this session."
|
|
278
278
|
},
|
|
279
|
-
"client_version": {
|
|
280
|
-
"anyOf": [
|
|
281
|
-
{
|
|
282
|
-
"type": "string"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"type": "null"
|
|
286
|
-
}
|
|
287
|
-
],
|
|
288
|
-
"default": null,
|
|
289
|
-
"description": "Version of the client that started the session, if reported.",
|
|
290
|
-
"title": "Client Version"
|
|
291
|
-
},
|
|
292
279
|
"config_id": {
|
|
293
280
|
"anyOf": [
|
|
294
281
|
{
|
|
@@ -302,20 +289,6 @@
|
|
|
302
289
|
"description": "Identifier of the saved agent config the session ran on, if any.",
|
|
303
290
|
"title": "Config Id"
|
|
304
291
|
},
|
|
305
|
-
"config_override": {
|
|
306
|
-
"anyOf": [
|
|
307
|
-
{
|
|
308
|
-
"additionalProperties": true,
|
|
309
|
-
"type": "object"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"type": "null"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"default": null,
|
|
316
|
-
"description": "The partial-config diff applied for this run; null when the config was unmodified.",
|
|
317
|
-
"title": "Config Override"
|
|
318
|
-
},
|
|
319
292
|
"context_repository": {
|
|
320
293
|
"anyOf": [
|
|
321
294
|
{
|
|
@@ -459,32 +432,6 @@
|
|
|
459
432
|
"$ref": "#/$defs/SessionPrompting",
|
|
460
433
|
"description": "Whether a client may send this session a message and, when it may not, the reason to show instead of a composer."
|
|
461
434
|
},
|
|
462
|
-
"sandbox_id": {
|
|
463
|
-
"anyOf": [
|
|
464
|
-
{
|
|
465
|
-
"type": "string"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"type": "null"
|
|
469
|
-
}
|
|
470
|
-
],
|
|
471
|
-
"default": null,
|
|
472
|
-
"description": "Identifier of the sandbox the session runs in, if any.",
|
|
473
|
-
"title": "Sandbox Id"
|
|
474
|
-
},
|
|
475
|
-
"session_key": {
|
|
476
|
-
"anyOf": [
|
|
477
|
-
{
|
|
478
|
-
"type": "string"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"type": "null"
|
|
482
|
-
}
|
|
483
|
-
],
|
|
484
|
-
"default": null,
|
|
485
|
-
"description": "Key identifying the durable conversation this session belongs to, or null for single-shot sessions.",
|
|
486
|
-
"title": "Session Key"
|
|
487
|
-
},
|
|
488
435
|
"session_state": {
|
|
489
436
|
"anyOf": [
|
|
490
437
|
{
|
|
@@ -543,39 +490,12 @@
|
|
|
543
490
|
"format": "date-time",
|
|
544
491
|
"title": "Updated At",
|
|
545
492
|
"type": "string"
|
|
546
|
-
},
|
|
547
|
-
"webhook_id": {
|
|
548
|
-
"anyOf": [
|
|
549
|
-
{
|
|
550
|
-
"type": "string"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"type": "null"
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"default": null,
|
|
557
|
-
"description": "Identifier of the webhook event that triggered the session, if any.",
|
|
558
|
-
"title": "Webhook Id"
|
|
559
|
-
},
|
|
560
|
-
"webhook_type": {
|
|
561
|
-
"anyOf": [
|
|
562
|
-
{
|
|
563
|
-
"$ref": "#/$defs/WebhookType"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"type": "null"
|
|
567
|
-
}
|
|
568
|
-
],
|
|
569
|
-
"default": null,
|
|
570
|
-
"description": "Type of the webhook event that triggered the session, if any."
|
|
571
493
|
}
|
|
572
494
|
},
|
|
573
495
|
"required": [
|
|
574
496
|
"attribution",
|
|
575
497
|
"budget",
|
|
576
|
-
"client_version",
|
|
577
498
|
"config_id",
|
|
578
|
-
"config_override",
|
|
579
499
|
"context_repository",
|
|
580
500
|
"cost",
|
|
581
501
|
"created_at",
|
|
@@ -591,8 +511,6 @@
|
|
|
591
511
|
"parent",
|
|
592
512
|
"prompt",
|
|
593
513
|
"prompting",
|
|
594
|
-
"sandbox_id",
|
|
595
|
-
"session_key",
|
|
596
514
|
"session_state",
|
|
597
515
|
"source",
|
|
598
516
|
"status",
|
|
@@ -600,9 +518,7 @@
|
|
|
600
518
|
"stopped",
|
|
601
519
|
"surface",
|
|
602
520
|
"tokens",
|
|
603
|
-
"updated_at"
|
|
604
|
-
"webhook_id",
|
|
605
|
-
"webhook_type"
|
|
521
|
+
"updated_at"
|
|
606
522
|
],
|
|
607
523
|
"title": "Session",
|
|
608
524
|
"type": "object"
|
|
@@ -1496,31 +1412,10 @@
|
|
|
1496
1412
|
],
|
|
1497
1413
|
"title": "TokensInfo",
|
|
1498
1414
|
"type": "object"
|
|
1499
|
-
},
|
|
1500
|
-
"WebhookType": {
|
|
1501
|
-
"enum": [
|
|
1502
|
-
"github.issue",
|
|
1503
|
-
"github.issue_comment",
|
|
1504
|
-
"github.push",
|
|
1505
|
-
"github.pull_request",
|
|
1506
|
-
"github.pull_request_comment",
|
|
1507
|
-
"github.pull_request_review",
|
|
1508
|
-
"github.pull_request_review_comment",
|
|
1509
|
-
"slack.app_mention",
|
|
1510
|
-
"slack.message",
|
|
1511
|
-
"slack.channel_created",
|
|
1512
|
-
"linear.issue",
|
|
1513
|
-
"linear.issue_comment",
|
|
1514
|
-
"sentry.event_alert",
|
|
1515
|
-
"sentry.metric_alert",
|
|
1516
|
-
"user.message"
|
|
1517
|
-
],
|
|
1518
|
-
"title": "WebhookType",
|
|
1519
|
-
"type": "string"
|
|
1520
1415
|
}
|
|
1521
1416
|
},
|
|
1522
1417
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1523
|
-
"description": "One server-to-client frame of the Ellipsis session stream protocol v3 (WS /sessions/{id}/stream?protocol=3). Clients MUST ignore frames with unknown `type` values \u2014 additive frames are not a protocol break.",
|
|
1418
|
+
"description": "One server-to-client frame of the Ellipsis session stream protocol v3 (WS /v1/sessions/{id}/stream?protocol=3). Clients MUST ignore frames with unknown `type` values \u2014 additive frames are not a protocol break.",
|
|
1524
1419
|
"oneOf": [
|
|
1525
1420
|
{
|
|
1526
1421
|
"$ref": "#/$defs/SnapshotFrame"
|