overlord-cli 0.2611141137.0 → 0.2611141623.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.
@@ -1 +1 @@
1
- 0.3.60
1
+ 0.3.62
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: antigravity
4
4
  label: "Antigravity Connector"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://antigravity.google/schemas/v1/plugin.json",
3
3
  "name": "overlord",
4
- "version": "0.3.60",
4
+ "version": "0.3.62",
5
5
  "description": "Chat-driven access to Overlord mission protocol workflows through skills and MCP.",
6
6
  "author": {
7
7
  "name": "Cooperativ",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.62",
4
4
  "description": "Overlord mission protocol workflow for Claude Code — attach/update/ask/deliver, slash commands, and hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: claude
4
4
  label: "Claude Code Connector"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.62",
4
4
  "description": "Chat-driven access to Overlord mission protocol workflows with hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: codex
4
4
  label: "Codex Connector"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.62",
4
4
  "description": "Overlord mission protocol workflow for Cursor — attach/update/ask/deliver, slash commands, MCP bridge, and follow-up capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: cursor
4
4
  label: "Cursor Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: opencode
4
4
  label: "OpenCode Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.0.1"
2
2
  componentType: connector
3
3
  componentKey: pi
4
4
  label: "PI Connector"
@@ -13,7 +13,7 @@ ovld protocol attachment-download-url --session-key <sessionKey> --attachment-id
13
13
  ovld protocol attachment-download-url --session-key <sessionKey> --attachment-id <attachment-id> --output ./attachment.pdf
14
14
  ```
15
15
 
16
- The `attach` and `load-context` responses already include an `attachments` array plus `previousObjectives` and `futureObjectives` arrays — use those for `<attachment-id>` and `<objective-id>` values. The objective currently being executed is not repeated in those arrays; it is the top-level `objective`. `previousObjectives` are the objectives already worked (before the current one) and `futureObjectives` are the ones queued after it. Run `attachment-list` mid-session if new files have been uploaded since attach. `--mission-id` is optional for attachment calls when `--objective-id` is a full display ID that lets the server derive the mission; an attachment ID alone does not carry mission scope.
16
+ The `attach` and `load-context` responses already include an `attachments` array plus `previousObjectives` and `futureObjectives` arrays — use those for `<attachment-id>` and `<objective-id>` values. The objective currently being executed is not repeated in those arrays; it is the top-level `objective`. `previousObjectives` are positioned before the current objective and `futureObjectives` after it. Both are positional, not objective states: there is no `future` state, and because objectives can launch out of order a lower-position objective may still be an unstarted draft — check each item's `state`. Run `attachment-list` mid-session if new files have been uploaded since attach. `--mission-id` is optional for attachment calls when `--objective-id` is a full display ID that lets the server derive the mission; an attachment ID alone does not carry mission scope.
17
17
 
18
18
  Attachment HTTPS URLs require Overlord authentication. Use `--output` to save
19
19
  the bytes through the CLI's existing authenticated client; it creates a new
@@ -519,10 +519,10 @@ const tools = [
519
519
  }
520
520
  },
521
521
  {
522
- name: 'overlord_reorder_future_objectives',
523
- title: 'Reorder future objectives',
522
+ name: 'overlord_reorder_objectives',
523
+ title: 'Reorder draft objectives',
524
524
  description:
525
- 'Use this only when the user explicitly asks to change the order of future objectives in one mission. Supply every future objective UUID in its complete desired top-to-bottom order; draft, active, and completed objectives cannot be moved by this tool.',
525
+ "Use this only when the user explicitly asks to change the order of one mission's unstarted objectives. Supply every draft and submitted objective UUID exactly once, in the complete desired top-to-bottom order; launching, active, and completed objectives keep their positions and cannot be listed. A stale set is rejected; reload and retry.",
526
526
  inputSchema: {
527
527
  type: 'object',
528
528
  properties: {
@@ -533,10 +533,10 @@ const tools = [
533
533
  orderedObjectiveIds: {
534
534
  type: 'array',
535
535
  description:
536
- 'Complete desired top-to-bottom UUID order of every objective currently in the future state.',
536
+ 'Complete desired top-to-bottom UUID order of every objective currently in the draft or submitted state.',
537
537
  items: {
538
538
  type: 'string',
539
- description: 'Future objective UUID.'
539
+ description: 'Draft or submitted objective UUID.'
540
540
  }
541
541
  }
542
542
  },
@@ -619,7 +619,7 @@ const tools = [
619
619
  name: 'overlord_update_objective',
620
620
  title: 'Update objective',
621
621
  description:
622
- 'Use this to rewrite an objective title in any state, turn auto-advance on or off, edit instruction text on a draft or future objective, and/or reassign the objective to another agent or to a person (agent manual, alias human).',
622
+ 'Use this to rewrite an objective title in any state, turn auto-advance on or off, edit instruction text on a draft objective, and/or reassign the objective to another agent or to a person (agent manual, alias human).',
623
623
  inputSchema: {
624
624
  type: 'object',
625
625
  properties: {
@@ -640,7 +640,7 @@ const tools = [
640
640
  instructionText: {
641
641
  type: 'string',
642
642
  description:
643
- 'Replacement instruction text. Allowed only when the objective is in draft or future state; blank clears the text in those states.'
643
+ 'Replacement instruction text. Allowed only when the objective is in draft state; blank clears the text.'
644
644
  },
645
645
  agent: {
646
646
  type: 'string',
@@ -1160,7 +1160,7 @@ const tools = [
1160
1160
  deferredWork: {
1161
1161
  type: 'array',
1162
1162
  description:
1163
- 'Each deferredWork item is one recommended objective outside this mission. Be very concise. title names the work in an imperative phrase. change states only the specific change that is needed. location says where to find it in the code: the file, function, component, or command. doneWhen states the observable result in one sentence. Do not add instructions on how to do the work, background, or rationale. The operator turns the item into an objective or a mission as written, so it must read as a task, not as a note. Omit queued future objectives, leftover current-objective work, and human follow-up (those belong in humanActions). Vague: { title: "Fix flaky test", change: "The sync worker has a flaky test.", location: "backend", doneWhen: "It passes." }. Good: { title: "Advance the fake clock before the second retry", change: "The test asserts the retry fired but never advances the fake clock between attempts, so it passes or fails on real time.", location: "backend/sync-worker.test.ts › retries after a 503", doneWhen: "The test passes 20 consecutive runs with the fake clock driving both attempts." }.',
1163
+ 'Each deferredWork item is one recommended objective outside this mission. Be very concise. title names the work in an imperative phrase. change states only the specific change that is needed. location says where to find it in the code: the file, function, component, or command. doneWhen states the observable result in one sentence. Do not add instructions on how to do the work, background, or rationale. The operator turns the item into an objective or a mission as written, so it must read as a task, not as a note. Omit work already queued as later objectives of this mission, leftover current-objective work, and human follow-up (those belong in humanActions). Vague: { title: "Fix flaky test", change: "The sync worker has a flaky test.", location: "backend", doneWhen: "It passes." }. Good: { title: "Advance the fake clock before the second retry", change: "The test asserts the retry fired but never advances the fake clock between attempts, so it passes or fails on real time.", location: "backend/sync-worker.test.ts › retries after a 503", doneWhen: "The test passes 20 consecutive runs with the fake clock driving both attempts." }.',
1164
1164
  items: {
1165
1165
  type: 'object',
1166
1166
  properties: {
@@ -1551,11 +1551,11 @@ async function callOverlordTool(name, args) {
1551
1551
  : {})
1552
1552
  });
1553
1553
  }
1554
- if (name === 'overlord_reorder_future_objectives') {
1554
+ if (name === 'overlord_reorder_objectives') {
1555
1555
  if (!Array.isArray(args.orderedObjectiveIds)) {
1556
1556
  throw new Error('orderedObjectiveIds must be an array');
1557
1557
  }
1558
- return runProtocol('reorder-future-objectives', {
1558
+ return runProtocol('reorder-objectives', {
1559
1559
  'mission-id': requiredString(args, 'missionId'),
1560
1560
  'ordered-objective-ids-json': args.orderedObjectiveIds
1561
1561
  });
@@ -1862,7 +1862,7 @@ process.stdin.on('data', async chunk => {
1862
1862
  result: {
1863
1863
  protocolVersion: PROTOCOL_VERSION,
1864
1864
  capabilities: { tools: { listChanged: false } },
1865
- serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.60' }
1865
+ serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.62' }
1866
1866
  }
1867
1867
  });
1868
1868
  continue;
package/dist/index.js CHANGED
@@ -949,7 +949,6 @@ var init_search = __esm({
949
949
  "use strict";
950
950
  init_vocabulary();
951
951
  SEARCH_OBJECTIVE_STATES = vocabulary()([
952
- "future",
953
952
  "draft",
954
953
  "submitted",
955
954
  "launching",
@@ -44206,6 +44205,11 @@ function objectiveTitleText(objective) {
44206
44205
  if (!instruction) return null;
44207
44206
  return instruction.length > 80 ? `${instruction.slice(0, 77).trimEnd()}\u2026` : instruction;
44208
44207
  }
44208
+ function nextRunnableDraft(objectives) {
44209
+ return [...objectives].filter((objective) => objective.state === "draft" && objectiveInstruction(objective).trim()).sort(
44210
+ (a, b) => Number(a.position ?? 0) - Number(b.position ?? 0) || String(a.id ?? "").localeCompare(String(b.id ?? ""))
44211
+ )[0];
44212
+ }
44209
44213
  function pickLaunchObjective(objectives, objectiveId) {
44210
44214
  const pin = objectiveId?.trim();
44211
44215
  if (pin) {
@@ -44213,7 +44217,7 @@ function pickLaunchObjective(objectives, objectiveId) {
44213
44217
  (objective) => objective.id === pin || objective.displayId === pin || objective.displayKey === pin
44214
44218
  );
44215
44219
  }
44216
- return objectives.find((objective) => objective.state === "executing") ?? objectives.find((objective) => objective.state === "launching") ?? objectives.find((objective) => objective.state === "pending_delivery") ?? objectives.find((objective) => objective.state === "draft") ?? objectives.find((objective) => objective.state !== "complete") ?? objectives[0];
44220
+ return objectives.find((objective) => objective.state === "executing") ?? objectives.find((objective) => objective.state === "launching") ?? objectives.find((objective) => objective.state === "pending_delivery") ?? objectives.find((objective) => objective.state === "submitted") ?? nextRunnableDraft(objectives) ?? objectives.find((objective) => objective.state === "draft") ?? objectives.find((objective) => objective.state !== "complete") ?? objectives[0];
44217
44221
  }
44218
44222
  async function loadMissionContext({
44219
44223
  runtime,
@@ -45011,8 +45015,7 @@ Subcommands:
45011
45015
  load-context Read mission context without creating a session
45012
45016
  list-deliveries List normalized deliveries for one mission
45013
45017
  launch-objective Queue an objective for execution
45014
- reorder-future-objectives
45015
- Reorder all future objectives in one mission
45018
+ reorder-objectives Replace one mission's complete order of unstarted (draft/submitted) objectives
45016
45019
  search Find grouped mission/objective/delivery matches
45017
45020
  statuses List one project's ordered board columns
45018
45021
  discuss-objective Mark a draft objective as submitted (does not start execution)
@@ -45220,18 +45223,19 @@ launch-objective:
45220
45223
  The queued or already-active ExecutionRequestDto. Existing launchability,
45221
45224
  authorization, target resolution, sibling, and idempotency rules apply.
45222
45225
 
45223
- reorder-future-objectives:
45226
+ reorder-objectives:
45224
45227
  Purpose:
45225
- Change the order of one mission's future objectives without moving draft,
45226
- active, or complete objectives.
45228
+ Replace one mission's complete order of unstarted (draft/submitted)
45229
+ objectives. Launching, active, and complete objectives keep their positions.
45227
45230
  Required:
45228
45231
  --mission-id <uuid>
45229
45232
  --ordered-objective-ids-json <json>
45230
45233
  Returns:
45231
45234
  The mission's full ObjectiveDto[] list in its new order.
45232
45235
  Rules:
45233
- Supply every future objective UUID in the complete desired top-to-bottom order.
45234
- Duplicate, missing, and non-future objective ids are rejected.
45236
+ Supply every draft and submitted objective UUID exactly once, in the complete
45237
+ desired top-to-bottom order; the head may move. Duplicate, missing, extra, and
45238
+ non-queued objective ids are rejected; a stale set is rejected (reload and retry).
45235
45239
 
45236
45240
  run-queue:
45237
45241
  Purpose:
@@ -45494,8 +45498,8 @@ update-objective:
45494
45498
  Run Queue holds it as blocked until an agent is assigned.
45495
45499
  Title edits are allowed in any objective state. An empty title clears the
45496
45500
  custom title and restores instruction-derived presentation.
45497
- Instruction text may be edited only when the objective is in draft or future state.
45498
- Blank instruction text is allowed in those states.
45501
+ Instruction text may be edited only when the objective is in draft state.
45502
+ Blank instruction text is allowed in that state.
45499
45503
  Returns:
45500
45504
  The updated objective JSON, including assignedAgent, model, reasoningEffort,
45501
45505
  and resourceKey. autoAdvance is deprecated and derived from live queueEntry membership.
@@ -45921,7 +45925,7 @@ var init_protocol_help = __esm({
45921
45925
  "read-context",
45922
45926
  "record-work",
45923
45927
  "register-target",
45924
- "reorder-future-objectives",
45928
+ "reorder-objectives",
45925
45929
  "reorder-project-run-queues",
45926
45930
  "reorder-run-queue",
45927
45931
  "run-queue",
@@ -49021,7 +49025,7 @@ Agents:
49021
49025
  ${primaryCommand} launch <agent> --mission-id <missionId>
49022
49026
  Use ${primaryCommand} protocol help for the full mission lifecycle reference.
49023
49027
  Key protocol commands: auth-status, discover-project, create, prompt, attach,
49024
- connect, load-context, list-deliveries, launch-objective, reorder-future-objectives,
49028
+ connect, load-context, list-deliveries, launch-objective, reorder-objectives,
49025
49029
  update, heartbeat, ask, deliver.
49026
49030
 
49027
49031
  Protocol (JSON output by default):
@@ -49035,7 +49039,7 @@ Protocol (JSON output by default):
49035
49039
  ${primaryCommand} protocol load-context --mission-id <id>
49036
49040
  ${primaryCommand} protocol list-deliveries --mission-id <id>
49037
49041
  ${primaryCommand} protocol launch-objective --objective-id <id> --agent <agent>
49038
- ${primaryCommand} protocol reorder-future-objectives --mission-id <id> --ordered-objective-ids-json '["<id>"]'
49042
+ ${primaryCommand} protocol reorder-objectives --mission-id <id> --ordered-objective-ids-json '["<id>"]'
49039
49043
  ${primaryCommand} protocol help
49040
49044
 
49041
49045
  After installation, run \`${primaryCommand} auth login\` to choose your backend.