@ellipsis-dev/sdk 0.10.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 CHANGED
@@ -1,5 +1,5 @@
1
- import { c as components } from './types-BME-7Lbt.js';
2
- export { A as AttributionType, B as BudgetSource, C as CreateReviewRequest, D as DefaultResolution, a as DeltaFrame, b as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, d as GithubAccountType, H as Harness, e as HeartbeatFrame, P as ParentKind, f as PromptBlockedReason, R as RecordsAppendFrame, g as ResolvedReviewScope, h as Review, i as ReviewConfiguration, j as ReviewCounters, k as ReviewFinding, l as ReviewRequester, m as ReviewScope, n as ReviewScopeKind, o as ReviewStage, p as ReviewedCommit, q as ReviewsListResponse, S as SendSessionMessageRequest, r as Session, s as SessionExecution, t as SessionExecutionsListResponse, u as SessionExitStatus, v as SessionFrame, w as SessionLiveness, x as SessionMessage, y as SessionMessageResponse, z as SessionMessageStatus, I as SessionPr, J as SessionPrompting, K as SessionRecord, L as SessionRecordsListResponse, M as SessionResponse, N as SessionSource, O as SessionState, Q as SessionStatus, T as SessionStreamFrame, U as SessionSurface, V as SessionsListResponse, W as SnapshotFrame, X as StreamFrame, Y as TokensInfo, Z as paths } from './types-BME-7Lbt.js';
1
+ import { c as components } from './types-BN5YExTm.js';
2
+ export { A as AttributionType, B as BudgetSource, C as CreateReviewRequest, D as DefaultResolution, a as DeltaFrame, b as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, d as GithubAccountType, H as Harness, e as HeartbeatFrame, P as ParentKind, f as PromptBlockedReason, R as RecordsAppendFrame, g as ResolvedReviewScope, h as Review, i as ReviewConfiguration, j as ReviewCounters, k as ReviewFinding, l as ReviewRequester, m as ReviewScope, n as ReviewScopeKind, o as ReviewStage, p as ReviewedCommit, q as ReviewsListResponse, S as SendSessionMessageRequest, r as Session, s as SessionExecution, t as SessionExecutionsListResponse, u as SessionExitStatus, v as SessionFrame, w as SessionLiveness, x as SessionMessage, y as SessionMessageResponse, z as SessionMessageStatus, I as SessionPr, J as SessionPrompting, K as SessionRecord, L as SessionRecordsListResponse, M as SessionResponse, N as SessionSource, O as SessionState, Q as SessionStatus, T as SessionStreamFrame, U as SessionSurface, V as SessionsListResponse, W as SnapshotFrame, X as StreamFrame, Y as TokensInfo, Z as paths } from './types-BN5YExTm.js';
3
3
 
4
4
  interface CursorResponse {
5
5
  has_more: boolean;
@@ -75,32 +75,83 @@ declare class EllipsisAgentsConfigs {
75
75
  /**
76
76
  * Create Agent Config
77
77
  *
78
- * Create an agent config via pull request.
78
+ * Create an agent config.
79
79
  *
80
- * The PR adds the config file to agents/ on the target
81
- * repository; the agent goes live when it merges.
80
+ * Name a repository and Ellipsis opens a pull request adding the
81
+ * config file to agents/ there; the agent goes live when it
82
+ * merges. Omit it and the agent is created here, with no file,
83
+ * live immediately — and every file reference in it must name the
84
+ * repository it lives in.
82
85
  *
83
86
  * Accepts an inline config or a gallery template slug. 409 when
84
87
  * another live agent already holds the name.
85
88
  */
86
- create(options: {
89
+ create(options?: {
87
90
  config?: S['AgentConfig'] | null;
88
91
  path?: string | null;
89
- repository: string;
92
+ repository?: string | null;
90
93
  template_id?: string | null;
91
94
  }): Promise<S['CreateAgentConfigResponse']>;
95
+ /**
96
+ * Delete Agent Config
97
+ *
98
+ * Delete an agent, by id or by the agent's name.
99
+ *
100
+ * The agent stops running and its name is freed immediately; its
101
+ * past sessions remain readable. Only for agents managed through
102
+ * this API — delete the file to remove one defined by a
103
+ * repository.
104
+ */
105
+ delete(config_id: string): Promise<void>;
92
106
  /**
93
107
  * Get Agent Config
94
108
  *
95
109
  * Return one saved agent config, by id or by the agent's name.
96
110
  */
97
111
  get(config_id: string): Promise<S['AgentConfigResponse']>;
112
+ /**
113
+ * Link Agent Config
114
+ *
115
+ * Move an agent into a repository, by id or by the agent's name.
116
+ *
117
+ * Opens a pull request adding the agent's config file. The agent
118
+ * keeps running unchanged meanwhile; merging hands it over to the
119
+ * file, after which the file is what changes it. Nothing happens
120
+ * if the pull request is never merged.
121
+ */
122
+ link(config_id: string, options: {
123
+ path?: string | null;
124
+ repository: string;
125
+ }): Promise<S['LinkAgentConfigResponse']>;
98
126
  /**
99
127
  * List Agent Configs
100
128
  *
101
129
  * List saved agent configs.
102
130
  */
103
131
  list(): Promise<S['AgentConfigsListResponse']>;
132
+ /**
133
+ * Unlink Agent Config
134
+ *
135
+ * Take over an agent from its file, by id or by the agent's name.
136
+ *
137
+ * The file stops governing the agent immediately and further
138
+ * changes go through this API. The file is left in place, inert —
139
+ * delete it whenever you like.
140
+ */
141
+ unlink(config_id: string): Promise<S['AgentConfigResponse']>;
142
+ /**
143
+ * Update Agent Config
144
+ *
145
+ * Replace an agent's definition, by id or by the agent's name.
146
+ *
147
+ * The whole definition is replaced, and the change is live at
148
+ * once. Only for agents managed through this API: one defined by a
149
+ * repository file is a 409, since the next push to that file would
150
+ * revert the change — unlink it first to take ownership.
151
+ */
152
+ update(config_id: string, options: {
153
+ config: S['AgentConfig'];
154
+ }): Promise<S['AgentConfigResponse']>;
104
155
  }
105
156
  declare class EllipsisAgentsDefaults {
106
157
  private readonly transport;
@@ -666,20 +717,6 @@ declare class EllipsisSessions {
666
717
  * live on the detail endpoints, not here.
667
718
  */
668
719
  get(session_id: string): Promise<S['SessionResponse']>;
669
- /**
670
- * Get Agent Session Ide
671
- *
672
- * Return the IDE link for the session's sandbox.
673
- *
674
- * The membership-gated dashboard page, which performs the sandbox
675
- * proxy handoff itself.
676
- *
677
- * No credential is minted here — the URL grants nothing by
678
- * possession. 409 when the sandbox isn't running (send the
679
- * session a message to wake it first). Backs the `agent session
680
- * ide` CLI verb.
681
- */
682
- ide(session_id: string): Promise<S['GetSessionIdeResponse']>;
683
720
  /**
684
721
  * Ingest Agent Session Transcript
685
722
  *
@@ -722,22 +759,11 @@ declare class EllipsisSessions {
722
759
  *
723
760
  * The payload the agent submitted through its config-declared
724
761
  * output.json_schema, as the raw JSON body with no envelope. 404
725
- * while the session is still running (poll GET /sessions/{id}),
762
+ * while the session is still running (poll GET /v1/sessions/{id}),
726
763
  * when the agent declares no output block, or when no execution
727
764
  * produced output.
728
765
  */
729
766
  output(session_id: string): Promise<void>;
730
- /**
731
- * Get Agent Session Port
732
- *
733
- * Return a preview link for a sandbox port.
734
- *
735
- * For a dev server running in the session's live sandbox: the
736
- * same dashboard page as the IDE, deep-linked to the port.
737
- *
738
- * Backs `agent session port`.
739
- */
740
- port(session_id: string, port: number): Promise<S['GetSessionPortResponse']>;
741
767
  /**
742
768
  * Get Agent Session Records
743
769
  *