@openagents-org/agent-launcher 0.2.227 → 0.2.229
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 +1 -1
- package/src/adapters/base.js +9 -1
- package/src/adapters/codex.js +104 -8
- package/src/adapters/cursor.js +1 -1
- package/src/adapters/opencode-server.js +254 -0
- package/src/adapters/opencode.js +355 -37
- package/src/adapters/workspace-prompt.js +65 -18
- package/src/cli-models.js +37 -1
- package/src/cli.js +1 -1
- package/src/installer.js +26 -2
- package/src/mcp-server.js +53 -3
- package/src/probe.js +162 -15
- package/src/workspace-client.js +21 -0
package/src/workspace-client.js
CHANGED
|
@@ -1199,6 +1199,27 @@ class WorkspaceClient {
|
|
|
1199
1199
|
return data.data || data;
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
+
/** Ask for a public "anyone with the link" link to an artifact (POST
|
|
1203
|
+
* /v1/public-shares/requests). Nothing is published: the workspace files
|
|
1204
|
+
* an approval in the thread, and a person who can manage the artifact
|
|
1205
|
+
* decides. Returns the approval record (status "pending"). */
|
|
1206
|
+
async requestPublicShare(workspaceId, token, {
|
|
1207
|
+
channel, kind, id, expires_at, reason, source, requester_email,
|
|
1208
|
+
} = {}) {
|
|
1209
|
+
const body = {
|
|
1210
|
+
network: workspaceId,
|
|
1211
|
+
channel,
|
|
1212
|
+
kind: kind || 'file',
|
|
1213
|
+
id,
|
|
1214
|
+
source: source || 'openagents:unknown',
|
|
1215
|
+
};
|
|
1216
|
+
if (expires_at) body.expires_at = expires_at;
|
|
1217
|
+
if (reason) body.reason = String(reason).slice(0, 500);
|
|
1218
|
+
if (requester_email) body.requester_email = requester_email;
|
|
1219
|
+
const data = await this._post('/v1/public-shares/requests', body, this._wsHeaders(token));
|
|
1220
|
+
return data.data || data;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1202
1223
|
async getApproval(workspaceId, token, approvalId) {
|
|
1203
1224
|
const params = new URLSearchParams({ network: workspaceId });
|
|
1204
1225
|
const data = await this._get(`/v1/approvals/${encodeURIComponent(approvalId)}?${params}`, this._wsHeaders(token));
|