@robbeverhelst/do 1.148.0 → 1.150.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/do.js +42 -1
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -20172,6 +20172,16 @@ var orcaSendMessageResultSchema = exports_external.object({
|
|
|
20172
20172
|
handle: orcaTerminalHandleSchema,
|
|
20173
20173
|
accepted: exports_external.literal(true)
|
|
20174
20174
|
});
|
|
20175
|
+
var orcaAgentKindSchema = exports_external.enum(["claude", "codex"]);
|
|
20176
|
+
var orcaRestartSessionInputSchema = exports_external.object({
|
|
20177
|
+
worktreeId: exports_external.string().trim().min(1).max(2000),
|
|
20178
|
+
agent: orcaAgentKindSchema
|
|
20179
|
+
}).strict();
|
|
20180
|
+
var orcaRestartSessionResultSchema = exports_external.object({
|
|
20181
|
+
host: orcaHostNameSchema,
|
|
20182
|
+
worktreeId: exports_external.string(),
|
|
20183
|
+
handle: orcaTerminalHandleSchema
|
|
20184
|
+
});
|
|
20175
20185
|
var orcaBridgeErrorSchema = exports_external.object({
|
|
20176
20186
|
error: exports_external.object({
|
|
20177
20187
|
code: exports_external.enum([
|
|
@@ -25100,7 +25110,7 @@ function parseCapture2(input, now) {
|
|
|
25100
25110
|
|
|
25101
25111
|
// src/meta.ts
|
|
25102
25112
|
var CLI_NAME = "do";
|
|
25103
|
-
var VERSION = "1.
|
|
25113
|
+
var VERSION = "1.150.0";
|
|
25104
25114
|
var API_PREFIX = "/api/v1";
|
|
25105
25115
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
25106
25116
|
|
|
@@ -25924,6 +25934,22 @@ var COMMAND_SPECS = [
|
|
|
25924
25934
|
returns: "OrcaSendMessageResult",
|
|
25925
25935
|
notes: "An Agent's key gets a 428 confirmation_required; it runs once the member confirms in the Echo panel (#678)."
|
|
25926
25936
|
},
|
|
25937
|
+
{
|
|
25938
|
+
path: ["orca", "restart"],
|
|
25939
|
+
summary: "Restart a session: start the agent afresh in an Orca worktree.",
|
|
25940
|
+
args: [{ name: "host", required: true, description: "The Orca host (e.g. zelos)." }],
|
|
25941
|
+
flags: [
|
|
25942
|
+
{
|
|
25943
|
+
name: "worktree",
|
|
25944
|
+
type: "string",
|
|
25945
|
+
description: "Orca's worktree id (`<repoId>::<path>`, as `orca list` reports it)."
|
|
25946
|
+
},
|
|
25947
|
+
{ name: "agent", type: "string", description: "The agent to start: claude or codex." }
|
|
25948
|
+
],
|
|
25949
|
+
scopes: ["orca:write"],
|
|
25950
|
+
returns: "OrcaRestartSessionResult",
|
|
25951
|
+
notes: "Starts a new session; the old one is left as it was. Gated like orca send: an Agent's key gets a 428 confirmation_required until the member confirms."
|
|
25952
|
+
},
|
|
25927
25953
|
{
|
|
25928
25954
|
path: ["worktree-links", "list"],
|
|
25929
25955
|
summary: "List the Space's Worktree links (Task/Project \u2194 Orca worktree).",
|
|
@@ -27512,6 +27538,21 @@ var HANDLERS = {
|
|
|
27512
27538
|
render: renderRecord
|
|
27513
27539
|
};
|
|
27514
27540
|
},
|
|
27541
|
+
"orca restart": async ({ args, flags, requireClient }) => {
|
|
27542
|
+
const host = requireArg(args, 0, "host");
|
|
27543
|
+
const worktreeId = flagString(flags, "worktree");
|
|
27544
|
+
if (worktreeId === undefined) {
|
|
27545
|
+
throw usageError("orca restart needs the worktree: --worktree <id>");
|
|
27546
|
+
}
|
|
27547
|
+
const body = parseInput(orcaRestartSessionInputSchema, {
|
|
27548
|
+
worktreeId,
|
|
27549
|
+
agent: flagString(flags, "agent")
|
|
27550
|
+
});
|
|
27551
|
+
return {
|
|
27552
|
+
data: await requireClient().post(`/orca/hosts/${encodeURIComponent(host)}/sessions`, body),
|
|
27553
|
+
render: renderRecord
|
|
27554
|
+
};
|
|
27555
|
+
},
|
|
27515
27556
|
"worktree-links list": async ({ flags, requireClient }) => ({
|
|
27516
27557
|
data: await requireClient().get("/worktree-links", {
|
|
27517
27558
|
query: {
|