@ellipsis-dev/sdk 0.15.1 → 0.16.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/chunk-RMPAMUAE.js +208 -0
- package/dist/index.d.ts +2 -2
- package/dist/store/index.d.ts +45 -2
- package/dist/store/index.js +318 -4
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.js +18 -189
- package/dist/{types-D9g-eZui.d.ts → types-DB1hOyQE.d.ts} +106 -98
- package/package.json +1 -1
- package/schema/frames.schema.json +172 -127
- package/schema/openapi.v1.json +167 -135
|
@@ -4036,6 +4036,18 @@
|
|
|
4036
4036
|
"default": null,
|
|
4037
4037
|
"description": "How the session ended; null until it is terminal."
|
|
4038
4038
|
},
|
|
4039
|
+
"git": {
|
|
4040
|
+
"anyOf": [
|
|
4041
|
+
{
|
|
4042
|
+
"$ref": "#/$defs/SessionGit"
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
"type": "null"
|
|
4046
|
+
}
|
|
4047
|
+
],
|
|
4048
|
+
"default": null,
|
|
4049
|
+
"description": "What the session did to git, one entry per repository in its workspace: the commit and branch it sits on, per-file line counts for its uncommitted changes, and the pull requests it opened. Null if nothing was ever captured."
|
|
4050
|
+
},
|
|
4039
4051
|
"harness": {
|
|
4040
4052
|
"$ref": "#/$defs/Harness",
|
|
4041
4053
|
"description": "The coding-agent harness the session runs on."
|
|
@@ -4082,34 +4094,6 @@
|
|
|
4082
4094
|
"title": "Metadata",
|
|
4083
4095
|
"type": "object"
|
|
4084
4096
|
},
|
|
4085
|
-
"output_diff": {
|
|
4086
|
-
"anyOf": [
|
|
4087
|
-
{
|
|
4088
|
-
"$ref": "#/$defs/SessionDiff"
|
|
4089
|
-
},
|
|
4090
|
-
{
|
|
4091
|
-
"type": "null"
|
|
4092
|
-
}
|
|
4093
|
-
],
|
|
4094
|
-
"default": null,
|
|
4095
|
-
"description": "Per-file line counts for the uncommitted changes in the session's workspace. Work the session committed is not included here \u2014 see output_prs. Null if no diff was ever captured."
|
|
4096
|
-
},
|
|
4097
|
-
"output_prs": {
|
|
4098
|
-
"anyOf": [
|
|
4099
|
-
{
|
|
4100
|
-
"items": {
|
|
4101
|
-
"$ref": "#/$defs/SessionPr"
|
|
4102
|
-
},
|
|
4103
|
-
"type": "array"
|
|
4104
|
-
},
|
|
4105
|
-
{
|
|
4106
|
-
"type": "null"
|
|
4107
|
-
}
|
|
4108
|
-
],
|
|
4109
|
-
"default": null,
|
|
4110
|
-
"description": "Pull requests the session created or updated.",
|
|
4111
|
-
"title": "Output Prs"
|
|
4112
|
-
},
|
|
4113
4097
|
"parent": {
|
|
4114
4098
|
"$ref": "#/$defs/SessionParent",
|
|
4115
4099
|
"description": "What preceded this session, if anything."
|
|
@@ -4211,13 +4195,12 @@
|
|
|
4211
4195
|
"cost",
|
|
4212
4196
|
"created_at",
|
|
4213
4197
|
"exit_status",
|
|
4198
|
+
"git",
|
|
4214
4199
|
"harness",
|
|
4215
4200
|
"id",
|
|
4216
4201
|
"last_activity_at",
|
|
4217
4202
|
"last_message_at",
|
|
4218
4203
|
"metadata",
|
|
4219
|
-
"output_diff",
|
|
4220
|
-
"output_prs",
|
|
4221
4204
|
"parent",
|
|
4222
4205
|
"prompt",
|
|
4223
4206
|
"prompting",
|
|
@@ -4397,25 +4380,68 @@
|
|
|
4397
4380
|
"title": "SessionCost",
|
|
4398
4381
|
"type": "object"
|
|
4399
4382
|
},
|
|
4400
|
-
"
|
|
4401
|
-
"description": "
|
|
4383
|
+
"SessionExitStatus": {
|
|
4384
|
+
"description": "Why a terminal agent session ended \u2014 a finer-grained reason than `status`.\n\n`status` (SessionStatus) is the lifecycle state: COMPLETED / ERROR /\nCANCELLED. `exit_status` explains *why* a run reached that terminal state, so\nthe UI and metrics can tell a budget cutoff apart from a crashed tool call or\na deliberate cancellation. It is None until the run reaches a terminal state.",
|
|
4385
|
+
"enum": [
|
|
4386
|
+
"completed",
|
|
4387
|
+
"budget_hit",
|
|
4388
|
+
"payment_required",
|
|
4389
|
+
"tool_call_failed",
|
|
4390
|
+
"lifecycle_hook_failed",
|
|
4391
|
+
"missing_repo_access",
|
|
4392
|
+
"missing_token_permissions",
|
|
4393
|
+
"missing_sandbox_variables",
|
|
4394
|
+
"blocked",
|
|
4395
|
+
"contact_email_required",
|
|
4396
|
+
"cancelled",
|
|
4397
|
+
"interrupted",
|
|
4398
|
+
"error",
|
|
4399
|
+
"stopped"
|
|
4400
|
+
],
|
|
4401
|
+
"title": "SessionExitStatus",
|
|
4402
|
+
"type": "string"
|
|
4403
|
+
},
|
|
4404
|
+
"SessionFrame": {
|
|
4405
|
+
"description": "A last-writer-wins snapshot of the session \u2014 the only way status,\nstate, and cost updates arrive. Resent whole on any field change.",
|
|
4406
|
+
"properties": {
|
|
4407
|
+
"session": {
|
|
4408
|
+
"$ref": "#/$defs/Session",
|
|
4409
|
+
"description": "The session's current state."
|
|
4410
|
+
},
|
|
4411
|
+
"type": {
|
|
4412
|
+
"const": "session",
|
|
4413
|
+
"default": "session",
|
|
4414
|
+
"title": "Type",
|
|
4415
|
+
"type": "string"
|
|
4416
|
+
}
|
|
4417
|
+
},
|
|
4418
|
+
"required": [
|
|
4419
|
+
"session",
|
|
4420
|
+
"type"
|
|
4421
|
+
],
|
|
4422
|
+
"title": "SessionFrame",
|
|
4423
|
+
"type": "object"
|
|
4424
|
+
},
|
|
4425
|
+
"SessionGit": {
|
|
4426
|
+
"description": "Every repo the session touched. Small enough to ride on `agent_sessions`\nand be returned by every session read.",
|
|
4402
4427
|
"properties": {
|
|
4403
|
-
"
|
|
4428
|
+
"repos": {
|
|
4429
|
+
"default": [],
|
|
4404
4430
|
"items": {
|
|
4405
|
-
"$ref": "#/$defs/
|
|
4431
|
+
"$ref": "#/$defs/SessionGitRepo"
|
|
4406
4432
|
},
|
|
4407
|
-
"title": "
|
|
4433
|
+
"title": "Repos",
|
|
4408
4434
|
"type": "array"
|
|
4409
4435
|
}
|
|
4410
4436
|
},
|
|
4411
4437
|
"required": [
|
|
4412
|
-
"
|
|
4438
|
+
"repos"
|
|
4413
4439
|
],
|
|
4414
|
-
"title": "
|
|
4440
|
+
"title": "SessionGit",
|
|
4415
4441
|
"type": "object"
|
|
4416
4442
|
},
|
|
4417
|
-
"
|
|
4418
|
-
"description": "One file's uncommitted change
|
|
4443
|
+
"SessionGitFile": {
|
|
4444
|
+
"description": "One file's uncommitted change, as `git diff HEAD --numstat` reports it\n(with intent-to-add, so a brand-new file still counts).",
|
|
4419
4445
|
"properties": {
|
|
4420
4446
|
"additions": {
|
|
4421
4447
|
"title": "Additions",
|
|
@@ -4429,10 +4455,6 @@
|
|
|
4429
4455
|
"title": "Path",
|
|
4430
4456
|
"type": "string"
|
|
4431
4457
|
},
|
|
4432
|
-
"repo": {
|
|
4433
|
-
"title": "Repo",
|
|
4434
|
-
"type": "string"
|
|
4435
|
-
},
|
|
4436
4458
|
"status": {
|
|
4437
4459
|
"title": "Status",
|
|
4438
4460
|
"type": "string"
|
|
@@ -4442,52 +4464,125 @@
|
|
|
4442
4464
|
"additions",
|
|
4443
4465
|
"deletions",
|
|
4444
4466
|
"path",
|
|
4445
|
-
"repo",
|
|
4446
4467
|
"status"
|
|
4447
4468
|
],
|
|
4448
|
-
"title": "
|
|
4469
|
+
"title": "SessionGitFile",
|
|
4449
4470
|
"type": "object"
|
|
4450
4471
|
},
|
|
4451
|
-
"
|
|
4452
|
-
"description": "
|
|
4453
|
-
"
|
|
4454
|
-
"
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
"
|
|
4467
|
-
|
|
4472
|
+
"SessionGitPr": {
|
|
4473
|
+
"description": "A pull request the session opened in this repo, denormalized at capture\ntime so a surface renders a labeled link without joining gh_prs. Live PR\nstate (open/merged/closed) is not stored \u2014 read gh_prs where a view needs\nit. The repo is the parent object, so it is not repeated here.",
|
|
4474
|
+
"properties": {
|
|
4475
|
+
"gh_pr_id": {
|
|
4476
|
+
"anyOf": [
|
|
4477
|
+
{
|
|
4478
|
+
"type": "integer"
|
|
4479
|
+
},
|
|
4480
|
+
{
|
|
4481
|
+
"type": "null"
|
|
4482
|
+
}
|
|
4483
|
+
],
|
|
4484
|
+
"default": null,
|
|
4485
|
+
"title": "Gh Pr Id"
|
|
4486
|
+
},
|
|
4487
|
+
"number": {
|
|
4488
|
+
"title": "Number",
|
|
4489
|
+
"type": "integer"
|
|
4490
|
+
},
|
|
4491
|
+
"title": {
|
|
4492
|
+
"anyOf": [
|
|
4493
|
+
{
|
|
4494
|
+
"type": "string"
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
"type": "null"
|
|
4498
|
+
}
|
|
4499
|
+
],
|
|
4500
|
+
"default": null,
|
|
4501
|
+
"title": "Title"
|
|
4502
|
+
},
|
|
4503
|
+
"url": {
|
|
4504
|
+
"title": "Url",
|
|
4505
|
+
"type": "string"
|
|
4506
|
+
}
|
|
4507
|
+
},
|
|
4508
|
+
"required": [
|
|
4509
|
+
"gh_pr_id",
|
|
4510
|
+
"number",
|
|
4511
|
+
"title",
|
|
4512
|
+
"url"
|
|
4468
4513
|
],
|
|
4469
|
-
"title": "
|
|
4470
|
-
"type": "
|
|
4514
|
+
"title": "SessionGitPr",
|
|
4515
|
+
"type": "object"
|
|
4471
4516
|
},
|
|
4472
|
-
"
|
|
4473
|
-
"description": "
|
|
4517
|
+
"SessionGitRepo": {
|
|
4518
|
+
"description": "One checkout in the session's sandbox and everything the session did to\nit, split by whether it survived the sandbox.",
|
|
4474
4519
|
"properties": {
|
|
4475
|
-
"
|
|
4476
|
-
"
|
|
4477
|
-
"description": "The session's current state."
|
|
4478
|
-
},
|
|
4479
|
-
"type": {
|
|
4480
|
-
"const": "session",
|
|
4481
|
-
"default": "session",
|
|
4482
|
-
"title": "Type",
|
|
4520
|
+
"full_name": {
|
|
4521
|
+
"title": "Full Name",
|
|
4483
4522
|
"type": "string"
|
|
4523
|
+
},
|
|
4524
|
+
"local_commit": {
|
|
4525
|
+
"anyOf": [
|
|
4526
|
+
{
|
|
4527
|
+
"type": "string"
|
|
4528
|
+
},
|
|
4529
|
+
{
|
|
4530
|
+
"type": "null"
|
|
4531
|
+
}
|
|
4532
|
+
],
|
|
4533
|
+
"default": null,
|
|
4534
|
+
"title": "Local Commit"
|
|
4535
|
+
},
|
|
4536
|
+
"local_uncommitted_files": {
|
|
4537
|
+
"default": [],
|
|
4538
|
+
"items": {
|
|
4539
|
+
"$ref": "#/$defs/SessionGitFile"
|
|
4540
|
+
},
|
|
4541
|
+
"title": "Local Uncommitted Files",
|
|
4542
|
+
"type": "array"
|
|
4543
|
+
},
|
|
4544
|
+
"prs": {
|
|
4545
|
+
"default": [],
|
|
4546
|
+
"items": {
|
|
4547
|
+
"$ref": "#/$defs/SessionGitPr"
|
|
4548
|
+
},
|
|
4549
|
+
"title": "Prs",
|
|
4550
|
+
"type": "array"
|
|
4551
|
+
},
|
|
4552
|
+
"remote_branch": {
|
|
4553
|
+
"anyOf": [
|
|
4554
|
+
{
|
|
4555
|
+
"type": "string"
|
|
4556
|
+
},
|
|
4557
|
+
{
|
|
4558
|
+
"type": "null"
|
|
4559
|
+
}
|
|
4560
|
+
],
|
|
4561
|
+
"default": null,
|
|
4562
|
+
"title": "Remote Branch"
|
|
4563
|
+
},
|
|
4564
|
+
"remote_commit": {
|
|
4565
|
+
"anyOf": [
|
|
4566
|
+
{
|
|
4567
|
+
"type": "string"
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
"type": "null"
|
|
4571
|
+
}
|
|
4572
|
+
],
|
|
4573
|
+
"default": null,
|
|
4574
|
+
"title": "Remote Commit"
|
|
4484
4575
|
}
|
|
4485
4576
|
},
|
|
4486
4577
|
"required": [
|
|
4487
|
-
"
|
|
4488
|
-
"
|
|
4578
|
+
"full_name",
|
|
4579
|
+
"local_commit",
|
|
4580
|
+
"local_uncommitted_files",
|
|
4581
|
+
"prs",
|
|
4582
|
+
"remote_branch",
|
|
4583
|
+
"remote_commit"
|
|
4489
4584
|
],
|
|
4490
|
-
"title": "
|
|
4585
|
+
"title": "SessionGitRepo",
|
|
4491
4586
|
"type": "object"
|
|
4492
4587
|
},
|
|
4493
4588
|
"SessionLiveness": {
|
|
@@ -4681,56 +4776,6 @@
|
|
|
4681
4776
|
"title": "SessionParent",
|
|
4682
4777
|
"type": "object"
|
|
4683
4778
|
},
|
|
4684
|
-
"SessionPr": {
|
|
4685
|
-
"description": "A pull request this session created, denormalized at capture time so\nsession surfaces render a labeled link without joining gh_prs. Live PR\nstate (open/merged/closed) is not stored here \u2014 read it from gh_prs where\na view needs it.",
|
|
4686
|
-
"properties": {
|
|
4687
|
-
"gh_pr_id": {
|
|
4688
|
-
"anyOf": [
|
|
4689
|
-
{
|
|
4690
|
-
"type": "integer"
|
|
4691
|
-
},
|
|
4692
|
-
{
|
|
4693
|
-
"type": "null"
|
|
4694
|
-
}
|
|
4695
|
-
],
|
|
4696
|
-
"default": null,
|
|
4697
|
-
"title": "Gh Pr Id"
|
|
4698
|
-
},
|
|
4699
|
-
"number": {
|
|
4700
|
-
"title": "Number",
|
|
4701
|
-
"type": "integer"
|
|
4702
|
-
},
|
|
4703
|
-
"repo_full_name": {
|
|
4704
|
-
"title": "Repo Full Name",
|
|
4705
|
-
"type": "string"
|
|
4706
|
-
},
|
|
4707
|
-
"title": {
|
|
4708
|
-
"anyOf": [
|
|
4709
|
-
{
|
|
4710
|
-
"type": "string"
|
|
4711
|
-
},
|
|
4712
|
-
{
|
|
4713
|
-
"type": "null"
|
|
4714
|
-
}
|
|
4715
|
-
],
|
|
4716
|
-
"default": null,
|
|
4717
|
-
"title": "Title"
|
|
4718
|
-
},
|
|
4719
|
-
"url": {
|
|
4720
|
-
"title": "Url",
|
|
4721
|
-
"type": "string"
|
|
4722
|
-
}
|
|
4723
|
-
},
|
|
4724
|
-
"required": [
|
|
4725
|
-
"gh_pr_id",
|
|
4726
|
-
"number",
|
|
4727
|
-
"repo_full_name",
|
|
4728
|
-
"title",
|
|
4729
|
-
"url"
|
|
4730
|
-
],
|
|
4731
|
-
"title": "SessionPr",
|
|
4732
|
-
"type": "object"
|
|
4733
|
-
},
|
|
4734
4779
|
"SessionPrompting": {
|
|
4735
4780
|
"description": "The prompt-affordance projection. `enabled` answers \"would a send work\",\nand when it wouldn't, `blocked_reason` + `detail` say why.\n\n`surface_name` is set only for MENTION_SURFACE, naming where to reply.",
|
|
4736
4781
|
"properties": {
|