@deepraxis/sdk 0.2.0-dev.936d133 → 0.2.0-dev.b859571

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.
@@ -14994,7 +14994,7 @@ export const operations = [
14994
14994
  "resource": "devops.changes",
14995
14995
  "method": "openPullRequest",
14996
14996
  "summary": "Open a change's pull request",
14997
- "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
14997
+ "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
14998
14998
  "http": "POST",
14999
14999
  "path": "/devops/v1/changes/{id}:openPullRequest",
15000
15000
  "streaming": "no",
@@ -15027,6 +15027,12 @@ export const operations = [
15027
15027
  "type": "boolean",
15028
15028
  "required": false,
15029
15029
  "description": "Open it as a draft. Defaults to false."
15030
+ },
15031
+ {
15032
+ "name": "head",
15033
+ "type": "string",
15034
+ "required": false,
15035
+ "description": "The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT."
15030
15036
  }
15031
15037
  ]
15032
15038
  }
@@ -15945,6 +15951,40 @@ export const operations = [
15945
15951
  }
15946
15952
  }
15947
15953
  },
15954
+ {
15955
+ "resource": "devops.changes.slices",
15956
+ "method": "create",
15957
+ "summary": "Open a new slice",
15958
+ "description": "Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.",
15959
+ "http": "POST",
15960
+ "path": "/devops/v1/projects/{project}/changes/{change}/slices",
15961
+ "streaming": "no",
15962
+ "pagination": false,
15963
+ "pathParams": [
15964
+ {
15965
+ "name": "project",
15966
+ "sdkName": "project",
15967
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
15968
+ },
15969
+ {
15970
+ "name": "change",
15971
+ "sdkName": "change",
15972
+ "description": "The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves."
15973
+ }
15974
+ ],
15975
+ "query": [],
15976
+ "body": {
15977
+ "required": false,
15978
+ "fields": [
15979
+ {
15980
+ "name": "from",
15981
+ "type": "string",
15982
+ "required": false,
15983
+ "description": "Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges."
15984
+ }
15985
+ ]
15986
+ }
15987
+ },
15948
15988
  {
15949
15989
  "resource": "devops.projects.cleanups",
15950
15990
  "method": "list",
@@ -18886,7 +18926,7 @@ export const operations = [
18886
18926
  "resource": "file.uploads",
18887
18927
  "method": "createSigned",
18888
18928
  "summary": "Create a one-time upload URL",
18889
- "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid or cross-organization URLs return 404, and so does a link whose upload record no longer exists. A URL that is authentic but names another action returns 403 CAPABILITY_MISMATCH: a status link posted to complete_url answers it, and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
18929
+ "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
18890
18930
  "http": "POST",
18891
18931
  "path": "/file/v1/uploads/signed",
18892
18932
  "streaming": "no",
@@ -22558,7 +22598,7 @@ export const operations = [
22558
22598
  "resource": "media.streams.outputs",
22559
22599
  "method": "list",
22560
22600
  "summary": "List a stream's re-broadcast targets",
22561
- "description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the error of an errored one. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
22601
+ "description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the reason of one that is errored or trying again. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
22562
22602
  "http": "GET",
22563
22603
  "path": "/media/v1/streams/{stream_id}/outputs",
22564
22604
  "streaming": "no",
@@ -22634,7 +22674,7 @@ export const operations = [
22634
22674
  "resource": "media.streams.outputs",
22635
22675
  "method": "retrieve",
22636
22676
  "summary": "Read one re-broadcast target",
22637
- "description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22677
+ "description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored or trying again, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22638
22678
  "http": "GET",
22639
22679
  "path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
22640
22680
  "streaming": "no",
@@ -833,6 +833,13 @@ export declare function createAgent(transport: Transport): {
833
833
  reason?: "project_removed";
834
834
  message_id?: string;
835
835
  session_thread_id?: string | null;
836
+ } | {
837
+ id: string;
838
+ type: "session.status_preparing";
839
+ processed_at: string;
840
+ stage: "launching" | "loading" | "ready";
841
+ message_id?: string;
842
+ session_thread_id?: string | null;
836
843
  }>;
837
844
  next_page: string | null;
838
845
  }>;
@@ -4080,6 +4087,13 @@ export declare function createAgent(transport: Transport): {
4080
4087
  reason?: "project_removed";
4081
4088
  message_id?: string;
4082
4089
  session_thread_id?: string | null;
4090
+ } | {
4091
+ id: string;
4092
+ type: "session.status_preparing";
4093
+ processed_at: string;
4094
+ stage: "launching" | "loading" | "ready";
4095
+ message_id?: string;
4096
+ session_thread_id?: string | null;
4083
4097
  }>;
4084
4098
  next_page: string | null;
4085
4099
  }>;
@@ -5810,6 +5824,13 @@ export declare function createAgent(transport: Transport): {
5810
5824
  reason?: "project_removed";
5811
5825
  message_id?: string;
5812
5826
  session_thread_id?: string | null;
5827
+ } | {
5828
+ id: string;
5829
+ type: "session.status_preparing";
5830
+ processed_at: string;
5831
+ stage: "launching" | "loading" | "ready";
5832
+ message_id?: string;
5833
+ session_thread_id?: string | null;
5813
5834
  }>;
5814
5835
  next_page: string | null;
5815
5836
  }>;
@@ -6687,6 +6708,9 @@ export declare function createDevops(transport: Transport): {
6687
6708
  markLastSlice: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesMarkLastSliceData>) => Promise<Types.DevopsChange>;
6688
6709
  openPullRequest: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesOpenPullRequestData>) => Promise<Types.DevopsChangePullRequestOpened>;
6689
6710
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGetData>) => Promise<Types.DevopsChange>;
6711
+ slices: {
6712
+ create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesSlicesCreateData>) => Promise<Types.DevopsChangeSliceOpened>;
6713
+ };
6690
6714
  };
6691
6715
  connections: {
6692
6716
  complete: (options: import("./core/transport.js").CallOptions<Types.DevopsConnectionsCompleteData>) => Promise<Types.DevopsConnection>;
@@ -890,6 +890,9 @@ export function createDevops(transport) {
890
890
  markLastSlice: bind(transport, sdk.devopsChangesMarkLastSlice),
891
891
  openPullRequest: bind(transport, sdk.devopsChangesOpenPullRequest),
892
892
  retrieve: bind(transport, sdk.devopsChangesGet),
893
+ slices: {
894
+ create: bind(transport, sdk.devopsChangesSlicesCreate),
895
+ },
893
896
  },
894
897
  connections: {
895
898
  complete: bind(transport, sdk.devopsConnectionsComplete),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.936d133",
3
+ "version": "0.2.0-dev.b859571",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {