overlord-cli 4.14.0 → 4.15.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/bin/_cli/protocol.mjs
CHANGED
|
@@ -1044,8 +1044,9 @@ async function protocolSpawn(args) {
|
|
|
1044
1044
|
const agentIdentifier = resolveProtocolAgentIdentifier(flags);
|
|
1045
1045
|
const modelIdentifier = resolveProtocolModelIdentifier(flags);
|
|
1046
1046
|
|
|
1047
|
-
// When --project-id is not provided, auto-send cwd as workingDirectory
|
|
1048
|
-
//
|
|
1047
|
+
// When --project-id is not provided, auto-send cwd as workingDirectory so
|
|
1048
|
+
// the server can resolve the project from the caller's project_user
|
|
1049
|
+
// local_working_directory setting.
|
|
1049
1050
|
const workingDirectory = flags['working-directory'] ?? (!flags['project-id'] ? process.cwd() : undefined);
|
|
1050
1051
|
|
|
1051
1052
|
const body = {
|
|
@@ -1147,7 +1148,7 @@ async function protocolCreateTicket(args) {
|
|
|
1147
1148
|
const projectId = discovered?.project?.id;
|
|
1148
1149
|
if (!projectId) {
|
|
1149
1150
|
throw new Error(
|
|
1150
|
-
|
|
1151
|
+
"Could not resolve project from working directory. Set your local working directory for this project in Overlord or pass --working-directory."
|
|
1151
1152
|
);
|
|
1152
1153
|
}
|
|
1153
1154
|
|
|
@@ -1215,8 +1216,8 @@ or attach to an existing ticket with \`ovld protocol attach --ticket-id <id>\`.
|
|
|
1215
1216
|
|
|
1216
1217
|
Project discovery:
|
|
1217
1218
|
When spawning or creating tickets, the CLI automatically resolves the correct
|
|
1218
|
-
project by matching your current working directory against
|
|
1219
|
-
|
|
1219
|
+
project by matching your current working directory against your configured
|
|
1220
|
+
"Local working directory" for that project (stored per user in Overlord).
|
|
1220
1221
|
You can also discover the project explicitly:
|
|
1221
1222
|
|
|
1222
1223
|
ovld protocol discover-project
|
|
@@ -1267,13 +1268,13 @@ auth-status:
|
|
|
1267
1268
|
discover-project:
|
|
1268
1269
|
Purpose:
|
|
1269
1270
|
Resolve the Overlord project that corresponds to the current (or given) working directory.
|
|
1270
|
-
Uses
|
|
1271
|
+
Uses the caller's configured "Local working directory" for matching.
|
|
1271
1272
|
Optional:
|
|
1272
1273
|
--working-directory <path> Directory to match (default: current working directory)
|
|
1273
1274
|
Returns:
|
|
1274
1275
|
Project JSON with id, name, organizationId. Prints PROJECT_ID=<id> on stderr.
|
|
1275
1276
|
Notes:
|
|
1276
|
-
Set
|
|
1277
|
+
Set your local working directory for a project in the Overlord UI under Project Settings.
|
|
1277
1278
|
When no match is found, returns a 404 with a hint.
|
|
1278
1279
|
|
|
1279
1280
|
attach:
|
|
@@ -1406,7 +1407,7 @@ spawn:
|
|
|
1406
1407
|
Purpose:
|
|
1407
1408
|
Create a follow-up ticket and attach to it in one call.
|
|
1408
1409
|
When --project-id is omitted, automatically resolves the project from the
|
|
1409
|
-
current working directory (matching against
|
|
1410
|
+
current working directory (matching against the caller's project_user.local_working_directory).
|
|
1410
1411
|
Required:
|
|
1411
1412
|
--objective <text>
|
|
1412
1413
|
Optional:
|
|
@@ -1437,7 +1438,7 @@ create:
|
|
|
1437
1438
|
Optional:
|
|
1438
1439
|
--session-key <key>
|
|
1439
1440
|
--ticket-id <id>
|
|
1440
|
-
--working-directory <path> Resolve project by local working directory (default: cwd)
|
|
1441
|
+
--working-directory <path> Resolve project by your configured local working directory (default: cwd)
|
|
1441
1442
|
--title <text>
|
|
1442
1443
|
--priority <level> low | medium | high | urgent
|
|
1443
1444
|
--acceptance-criteria <text>
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ Use this mode when the conversation starts normally and the user asks Claude to
|
|
|
73
73
|
|
|
74
74
|
1. If the user wants to create tickets (and does not ask to start execution), run `ovld protocol create --agent claude-code --objective "..."`.
|
|
75
75
|
- When `--session-key` and `--ticket-id` are provided, it creates a follow-up draft.
|
|
76
|
-
- When session flags are omitted, it resolves the project by matching current working directory (or `--working-directory`) to Overlord `local_working_directory`, then creates a standalone draft.
|
|
76
|
+
- When session flags are omitted, it resolves the project by matching current working directory (or `--working-directory`) to the caller's configured Overlord `project_user.local_working_directory`, then creates a standalone draft.
|
|
77
77
|
2. Default to `create` for new tickets. Only use `/overlord:spawn` or `ovld protocol spawn --agent claude-code --objective "..."` when the user explicitly asks to create and execute immediately.
|
|
78
78
|
`spawn` creates the ticket in `execute` status and attaches immediately.
|
|
79
79
|
3. If the user already has a ticket ID and only wants to inspect it, use `/overlord:load` or run `ovld protocol load-context --ticket-id <ticket-id>`.
|