@sjawhar/opencode-legion-envoy 1.27.0 → 1.27.2

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.
@@ -13553,9 +13553,6 @@ function date4(params) {
13553
13553
  config(en_default());
13554
13554
  // ../contracts/src/dispatch-api.ts
13555
13555
  var DELIVERY_CAPABILITIES = ["aside", "btw", "steer"];
13556
- function searchOwnerOf(result) {
13557
- return result.owner ?? { kind: "issue", key: result.issue.key };
13558
- }
13559
13556
  var DispatchEventSchema = object({
13560
13557
  issue_key: string2().nullable(),
13561
13558
  artifact_id: string2().nullish(),
@@ -13594,7 +13591,7 @@ var askEventPayloadFields = {
13594
13591
  opened_event_id: number2().int().positive(),
13595
13592
  kind: _enum2(["question", "approval", "action"]).optional(),
13596
13593
  question: string2().optional(),
13597
- options: array(object({ label: string2().optional() })).nullish(),
13594
+ options: array(object({ label: string2().optional() })).optional(),
13598
13595
  answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
13599
13596
  anchor: object({
13600
13597
  quote: string2().optional(),
@@ -15231,13 +15228,13 @@ function duplicateCandidates(error) {
15231
15228
  }
15232
15229
  function searchResultLine(result, baseUrl) {
15233
15230
  const href = new URL(result.href, baseUrl).toString();
15234
- const owner = searchOwnerOf(result);
15231
+ const { owner } = result;
15235
15232
  if (owner.kind === "document") {
15236
15233
  const reference = `dispatch://${owner.project}/artifact/${owner.slug}`;
15237
15234
  return `${reference} [document] ${owner.name} - ${result.kind}: ${snippetText(result.snippet)} -> ${href}`;
15238
15235
  }
15239
15236
  const artifactName = result.artifact ? ` ${result.artifact.name}` : "";
15240
- const label = `${result.issue.key} [${result.issue.status}] ${result.issue.title} - ${result.kind}${artifactName}`;
15237
+ const label = `${owner.key} [${owner.status}] ${owner.title} - ${result.kind}${artifactName}`;
15241
15238
  return `${label}: ${snippetText(result.snippet)} -> ${href}`;
15242
15239
  }
15243
15240
  function askUrgency(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "1.27.0",
3
+ "version": "1.27.2",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {