@ellipsis-dev/sdk 0.38.0 → 0.44.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.38.0",
3
+ "version": "0.44.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",
@@ -599,7 +599,7 @@
599
599
  },
600
600
  "ComputeConfig": {
601
601
  "additionalProperties": false,
602
- "description": "Environment compute sizing. Every field is optional; an omitted field\ninherits the platform default (2 vCPU / 4096 MiB / 3600s). A resolved value\noutside the platform bounds fails validation loudly (a sync error on the\nconfig) rather than being clamped silently.\n\n`memory` and `timeout` each accept a shorthand string (\"8GB\", \"30m\") or an\nexplicit units object ({gb: 8}, {minutes: 30}); the `memory_mib` /\n`timeout_seconds` properties resolve either form to the canonical integer\nthe environment is sized with.\n\n`timeout` is the max wall-clock the agent may run in one environment before\nit is stopped, capped at 1h (equal to the default, so today the knob only\nshortens a session; the cap matches the 1-hour validity of the session's\nGitHub token).\n\nCompute currently uses a temporary flat one-cent amount each time an\nenvironment is started for a session, subject to the account's existing\nfree-compute exemptions.",
602
+ "description": "The size and lifetime of the environment. Every field is optional. An\nomitted field takes the platform default (2 vCPUs, 4096 MiB, a 4h timeout,\n10m idle). A value outside the platform bounds fails validation.\n\n`memory` accepts a string such as `8GB` or an object such as `{gb: 8}`.\n`timeout` and `idle` accept a duration string such as `30m`, `8h`, or\n`1h30m`.\n\n`timeout` is the longest one message's work may run before it is stopped,\n1m to 22h, default 4h. The message ends `stopped` with reason `timeout`.\n\n`idle` is how long the environment stays awake after the agent finishes\nwith no message waiting, 10s to 1h, default 10m. Then it pauses, and the\nnext message resumes it. Only an interactive session pauses. A session\nthat runs once ends when its message ends.",
603
603
  "properties": {
604
604
  "cpu": {
605
605
  "anyOf": [
@@ -615,6 +615,18 @@
615
615
  "default": null,
616
616
  "title": "Cpu"
617
617
  },
618
+ "idle": {
619
+ "anyOf": [
620
+ {
621
+ "type": "string"
622
+ },
623
+ {
624
+ "type": "null"
625
+ }
626
+ ],
627
+ "default": null,
628
+ "title": "Idle"
629
+ },
618
630
  "memory": {
619
631
  "anyOf": [
620
632
  {
@@ -635,9 +647,6 @@
635
647
  {
636
648
  "type": "string"
637
649
  },
638
- {
639
- "$ref": "#/$defs/Duration"
640
- },
641
650
  {
642
651
  "type": "null"
643
652
  }
@@ -648,6 +657,7 @@
648
657
  },
649
658
  "required": [
650
659
  "cpu",
660
+ "idle",
651
661
  "memory",
652
662
  "timeout"
653
663
  ],
@@ -767,58 +777,6 @@
767
777
  "title": "CronTrigger",
768
778
  "type": "object"
769
779
  },
770
- "Duration": {
771
- "additionalProperties": false,
772
- "description": "A duration as explicit units, summed. Set any of `hours`/`minutes`/\n`seconds` (at least one). The alternative to the `30m`-style shorthand\nstring wherever a duration is accepted.",
773
- "properties": {
774
- "hours": {
775
- "anyOf": [
776
- {
777
- "minimum": 0,
778
- "type": "integer"
779
- },
780
- {
781
- "type": "null"
782
- }
783
- ],
784
- "default": null,
785
- "title": "Hours"
786
- },
787
- "minutes": {
788
- "anyOf": [
789
- {
790
- "minimum": 0,
791
- "type": "integer"
792
- },
793
- {
794
- "type": "null"
795
- }
796
- ],
797
- "default": null,
798
- "title": "Minutes"
799
- },
800
- "seconds": {
801
- "anyOf": [
802
- {
803
- "minimum": 0,
804
- "type": "integer"
805
- },
806
- {
807
- "type": "null"
808
- }
809
- ],
810
- "default": null,
811
- "title": "Seconds"
812
- }
813
- },
814
- "required": [
815
- "hours",
816
- "minutes",
817
- "seconds"
818
- ],
819
- "title": "Duration",
820
- "type": "object"
821
- },
822
780
  "EffortLevel": {
823
781
  "enum": [
824
782
  "low",
@@ -933,6 +891,7 @@
933
891
  "$ref": "#/$defs/ComputeConfig",
934
892
  "default": {
935
893
  "cpu": null,
894
+ "idle": null,
936
895
  "memory": null,
937
896
  "timeout": null
938
897
  }
@@ -1178,7 +1137,8 @@
1178
1137
  "unsupported_configuration",
1179
1138
  "execution_disabled",
1180
1139
  "interrupted",
1181
- "stopped"
1140
+ "stopped",
1141
+ "timeout"
1182
1142
  ],
1183
1143
  "title": "ErrorReason",
1184
1144
  "type": "string"
@@ -4370,6 +4330,7 @@
4370
4330
  "default": {
4371
4331
  "compute": {
4372
4332
  "cpu": null,
4333
+ "idle": null,
4373
4334
  "memory": null,
4374
4335
  "timeout": null
4375
4336
  },
@@ -4504,6 +4465,7 @@
4504
4465
  "$ref": "#/$defs/ComputeConfig",
4505
4466
  "default": {
4506
4467
  "cpu": null,
4468
+ "idle": null,
4507
4469
  "memory": null,
4508
4470
  "timeout": null
4509
4471
  }
@@ -3799,7 +3799,7 @@
3799
3799
  },
3800
3800
  "ComputeConfig": {
3801
3801
  "additionalProperties": false,
3802
- "description": "Environment compute sizing. Every field is optional; an omitted field\ninherits the platform default (2 vCPU / 4096 MiB / 3600s). A resolved value\noutside the platform bounds fails validation loudly (a sync error on the\nconfig) rather than being clamped silently.\n\n`memory` and `timeout` each accept a shorthand string (\"8GB\", \"30m\") or an\nexplicit units object ({gb: 8}, {minutes: 30}); the `memory_mib` /\n`timeout_seconds` properties resolve either form to the canonical integer\nthe environment is sized with.\n\n`timeout` is the max wall-clock the agent may run in one environment before\nit is stopped, capped at 1h (equal to the default, so today the knob only\nshortens a session; the cap matches the 1-hour validity of the session's\nGitHub token).\n\nCompute currently uses a temporary flat one-cent amount each time an\nenvironment is started for a session, subject to the account's existing\nfree-compute exemptions.",
3802
+ "description": "The size and lifetime of the environment. Every field is optional. An\nomitted field takes the platform default (2 vCPUs, 4096 MiB, a 4h timeout,\n10m idle). A value outside the platform bounds fails validation.\n\n`memory` accepts a string such as `8GB` or an object such as `{gb: 8}`.\n`timeout` and `idle` accept a duration string such as `30m`, `8h`, or\n`1h30m`.\n\n`timeout` is the longest one message's work may run before it is stopped,\n1m to 22h, default 4h. The message ends `stopped` with reason `timeout`.\n\n`idle` is how long the environment stays awake after the agent finishes\nwith no message waiting, 10s to 1h, default 10m. Then it pauses, and the\nnext message resumes it. Only an interactive session pauses. A session\nthat runs once ends when its message ends.",
3803
3803
  "properties": {
3804
3804
  "cpu": {
3805
3805
  "anyOf": [
@@ -3815,6 +3815,18 @@
3815
3815
  "default": null,
3816
3816
  "title": "Cpu"
3817
3817
  },
3818
+ "idle": {
3819
+ "anyOf": [
3820
+ {
3821
+ "type": "string"
3822
+ },
3823
+ {
3824
+ "type": "null"
3825
+ }
3826
+ ],
3827
+ "default": null,
3828
+ "title": "Idle"
3829
+ },
3818
3830
  "memory": {
3819
3831
  "anyOf": [
3820
3832
  {
@@ -3835,9 +3847,6 @@
3835
3847
  {
3836
3848
  "type": "string"
3837
3849
  },
3838
- {
3839
- "$ref": "#/$defs/Duration"
3840
- },
3841
3850
  {
3842
3851
  "type": "null"
3843
3852
  }
@@ -3848,6 +3857,7 @@
3848
3857
  },
3849
3858
  "required": [
3850
3859
  "cpu",
3860
+ "idle",
3851
3861
  "memory",
3852
3862
  "timeout"
3853
3863
  ],
@@ -4021,58 +4031,6 @@
4021
4031
  "title": "DeltaFrame",
4022
4032
  "type": "object"
4023
4033
  },
4024
- "Duration": {
4025
- "additionalProperties": false,
4026
- "description": "A duration as explicit units, summed. Set any of `hours`/`minutes`/\n`seconds` (at least one). The alternative to the `30m`-style shorthand\nstring wherever a duration is accepted.",
4027
- "properties": {
4028
- "hours": {
4029
- "anyOf": [
4030
- {
4031
- "minimum": 0,
4032
- "type": "integer"
4033
- },
4034
- {
4035
- "type": "null"
4036
- }
4037
- ],
4038
- "default": null,
4039
- "title": "Hours"
4040
- },
4041
- "minutes": {
4042
- "anyOf": [
4043
- {
4044
- "minimum": 0,
4045
- "type": "integer"
4046
- },
4047
- {
4048
- "type": "null"
4049
- }
4050
- ],
4051
- "default": null,
4052
- "title": "Minutes"
4053
- },
4054
- "seconds": {
4055
- "anyOf": [
4056
- {
4057
- "minimum": 0,
4058
- "type": "integer"
4059
- },
4060
- {
4061
- "type": "null"
4062
- }
4063
- ],
4064
- "default": null,
4065
- "title": "Seconds"
4066
- }
4067
- },
4068
- "required": [
4069
- "hours",
4070
- "minutes",
4071
- "seconds"
4072
- ],
4073
- "title": "Duration",
4074
- "type": "object"
4075
- },
4076
4034
  "EffortLevel": {
4077
4035
  "enum": [
4078
4036
  "low",
@@ -4187,6 +4145,7 @@
4187
4145
  "$ref": "#/$defs/ComputeConfig",
4188
4146
  "default": {
4189
4147
  "cpu": null,
4148
+ "idle": null,
4190
4149
  "memory": null,
4191
4150
  "timeout": null
4192
4151
  }
@@ -5024,7 +4983,8 @@
5024
4983
  "unsupported_configuration",
5025
4984
  "execution_disabled",
5026
4985
  "interrupted",
5027
- "stopped"
4986
+ "stopped",
4987
+ "timeout"
5028
4988
  ],
5029
4989
  "title": "ErrorReason",
5030
4990
  "type": "string"
@@ -10397,6 +10357,7 @@
10397
10357
  "default": {
10398
10358
  "compute": {
10399
10359
  "cpu": null,
10360
+ "idle": null,
10400
10361
  "memory": null,
10401
10362
  "timeout": null
10402
10363
  },
@@ -10531,6 +10492,7 @@
10531
10492
  "$ref": "#/$defs/ComputeConfig",
10532
10493
  "default": {
10533
10494
  "cpu": null,
10495
+ "idle": null,
10534
10496
  "memory": null,
10535
10497
  "timeout": null
10536
10498
  }
@@ -11019,6 +10981,19 @@
11019
10981
  "SessionMessageImage": {
11020
10982
  "description": "One image on a message, metadata only. `index` is the N in the\n`[Image #N]` placeholder in the message body.",
11021
10983
  "properties": {
10984
+ "id": {
10985
+ "anyOf": [
10986
+ {
10987
+ "type": "string"
10988
+ },
10989
+ {
10990
+ "type": "null"
10991
+ }
10992
+ ],
10993
+ "default": null,
10994
+ "description": "The image's ID. `GET /v1/sessions/{session_id}/images/{id}` returns its bytes. Null when the image can't be fetched.",
10995
+ "title": "Id"
10996
+ },
11022
10997
  "index": {
11023
10998
  "description": "1-based position: the N in `[Image #N]`.",
11024
10999
  "title": "Index",
@@ -192,7 +192,8 @@
192
192
  "unsupported_configuration",
193
193
  "execution_disabled",
194
194
  "interrupted",
195
- "stopped"
195
+ "stopped",
196
+ "timeout"
196
197
  ],
197
198
  "title": "ErrorReason",
198
199
  "type": "string"
@@ -533,6 +534,19 @@
533
534
  "SessionMessageImage": {
534
535
  "description": "One image on a message, metadata only. `index` is the N in the\n`[Image #N]` placeholder in the message body.",
535
536
  "properties": {
537
+ "id": {
538
+ "anyOf": [
539
+ {
540
+ "type": "string"
541
+ },
542
+ {
543
+ "type": "null"
544
+ }
545
+ ],
546
+ "default": null,
547
+ "description": "The image's ID. `GET /v1/sessions/{session_id}/images/{id}` returns its bytes. Null when the image can't be fetched.",
548
+ "title": "Id"
549
+ },
536
550
  "index": {
537
551
  "description": "1-based position: the N in `[Image #N]`.",
538
552
  "title": "Index",