@ellipsis-dev/sdk 0.18.0 → 0.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipsis-dev/sdk",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "TypeScript SDK for the Ellipsis agents platform: /v1 REST types + client, the session stream WebSocket client, and the session transcript store.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -4317,13 +4317,9 @@
4317
4317
  "type": "object"
4318
4318
  },
4319
4319
  "SessionAgent": {
4320
- "description": "The agent this session ran: the config it actually executed, where that\nconfig came from, and the diff that was merged in \u2014 the same\neffective-value-plus-provenance shape `SessionBudget` uses.\n\n`config` is the snapshot frozen when the session was created; `config_id`\npoints at the saved config as it exists NOW. They diverge legitimately: a\nYAML edit after the session started, or any `override`, leaves the pointer\ndescribing something the session never ran.",
4320
+ "description": "The agent this session ran: the definition it actually executed, where\nthat definition came from, and the diff that was merged in \u2014 the same\neffective-value-plus-provenance shape `SessionBudget` uses.\n\n`config` is the snapshot frozen when the session was created;\n`automation_id` points at the automation as it exists NOW. They diverge\nlegitimately: a YAML edit after the session started, or any `override`,\nleaves the pointer describing something the session never ran.",
4321
4321
  "properties": {
4322
- "config": {
4323
- "$ref": "#/$defs/AgentConfig",
4324
- "description": "The agent config the session actually ran, frozen when the session was created."
4325
- },
4326
- "config_id": {
4322
+ "automation_id": {
4327
4323
  "anyOf": [
4328
4324
  {
4329
4325
  "type": "string"
@@ -4333,8 +4329,12 @@
4333
4329
  }
4334
4330
  ],
4335
4331
  "default": null,
4336
- "description": "Identifier of the saved config this session's snapshot was taken from. Null for inline, platform-default, and built-in configs. Points at the config as it exists now, which may have changed since.",
4337
- "title": "Config Id"
4332
+ "description": "Identifier of the automation this session's snapshot was taken from. Null for raw sessions (nothing saved behind them), templates, and built-in agents. Points at the automation as it exists now, which may have changed since.",
4333
+ "title": "Automation Id"
4334
+ },
4335
+ "config": {
4336
+ "$ref": "#/$defs/AgentConfig",
4337
+ "description": "The agent definition the session actually ran, frozen when the session was created."
4338
4338
  },
4339
4339
  "override": {
4340
4340
  "anyOf": [
@@ -4356,8 +4356,8 @@
4356
4356
  }
4357
4357
  },
4358
4358
  "required": [
4359
+ "automation_id",
4359
4360
  "config",
4360
- "config_id",
4361
4361
  "override",
4362
4362
  "source"
4363
4363
  ],
@@ -4575,6 +4575,36 @@
4575
4575
  "title": "SessionGit",
4576
4576
  "type": "object"
4577
4577
  },
4578
+ "SessionGitCommit": {
4579
+ "description": "One commit the session created in this repo (everything past the\nprovisioning checkout's sha), captured from the sandbox rather than the\ntranscript so it stays correct through amends, rebases, and commits made by\nscripts. The repo is the parent object, so it is not repeated here.",
4580
+ "properties": {
4581
+ "committed_at": {
4582
+ "format": "date-time",
4583
+ "title": "Committed At",
4584
+ "type": "string"
4585
+ },
4586
+ "pushed": {
4587
+ "title": "Pushed",
4588
+ "type": "boolean"
4589
+ },
4590
+ "sha": {
4591
+ "title": "Sha",
4592
+ "type": "string"
4593
+ },
4594
+ "subject": {
4595
+ "title": "Subject",
4596
+ "type": "string"
4597
+ }
4598
+ },
4599
+ "required": [
4600
+ "committed_at",
4601
+ "pushed",
4602
+ "sha",
4603
+ "subject"
4604
+ ],
4605
+ "title": "SessionGitCommit",
4606
+ "type": "object"
4607
+ },
4578
4608
  "SessionGitFile": {
4579
4609
  "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).",
4580
4610
  "properties": {
@@ -4605,7 +4635,7 @@
4605
4635
  "type": "object"
4606
4636
  },
4607
4637
  "SessionGitPr": {
4608
- "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.",
4638
+ "description": "A pull request the session opened in this repo, written the moment the\ncreating tool call's result lands (see extract_session_prs.PrCreateWatcher).\nLive PR state (open/merged/closed) is not stored \u2014 it lives on gh_prs,\njoined via `gh_pr_id` (GET /frontend/agents/sessions/{id}/git). The repo is\nthe parent object, so it is not repeated here.",
4609
4639
  "properties": {
4610
4640
  "gh_pr_id": {
4611
4641
  "anyOf": [
@@ -4652,6 +4682,19 @@
4652
4682
  "SessionGitRepo": {
4653
4683
  "description": "One checkout in the session's sandbox and everything the session did to\nit, split by whether it survived the sandbox.",
4654
4684
  "properties": {
4685
+ "commits": {
4686
+ "default": [],
4687
+ "items": {
4688
+ "$ref": "#/$defs/SessionGitCommit"
4689
+ },
4690
+ "title": "Commits",
4691
+ "type": "array"
4692
+ },
4693
+ "commits_total": {
4694
+ "default": 0,
4695
+ "title": "Commits Total",
4696
+ "type": "integer"
4697
+ },
4655
4698
  "full_name": {
4656
4699
  "title": "Full Name",
4657
4700
  "type": "string"
@@ -4710,6 +4753,8 @@
4710
4753
  }
4711
4754
  },
4712
4755
  "required": [
4756
+ "commits",
4757
+ "commits_total",
4713
4758
  "full_name",
4714
4759
  "local_commit",
4715
4760
  "local_uncommitted_files",