@sjawhar/pi-legion-envoy 1.38.0 → 1.38.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.
package/dist/envoy.js CHANGED
@@ -29650,9 +29650,6 @@ function date4(params) {
29650
29650
  config(en_default());
29651
29651
  // ../contracts/src/dispatch-api.ts
29652
29652
  var DELIVERY_CAPABILITIES = ["aside", "btw", "steer"];
29653
- function searchOwnerOf(result) {
29654
- return result.owner ?? { kind: "issue", key: result.issue.key };
29655
- }
29656
29653
  var DispatchEventSchema = object({
29657
29654
  issue_key: string2().nullable(),
29658
29655
  artifact_id: string2().nullish(),
@@ -29691,7 +29688,7 @@ var askEventPayloadFields = {
29691
29688
  opened_event_id: number2().int().positive(),
29692
29689
  kind: _enum2(["question", "approval", "action"]).optional(),
29693
29690
  question: string2().optional(),
29694
- options: array(object({ label: string2().optional() })).nullish(),
29691
+ options: array(object({ label: string2().optional() })).optional(),
29695
29692
  answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
29696
29693
  anchor: object({
29697
29694
  quote: string2().optional(),
@@ -32294,13 +32291,13 @@ function duplicateCandidates(error) {
32294
32291
  }
32295
32292
  function searchResultLine(result, baseUrl) {
32296
32293
  const href = new URL(result.href, baseUrl).toString();
32297
- const owner = searchOwnerOf(result);
32294
+ const { owner } = result;
32298
32295
  if (owner.kind === "document") {
32299
32296
  const reference = `dispatch://${owner.project}/artifact/${owner.slug}`;
32300
32297
  return `${reference} [document] ${owner.name} - ${result.kind}: ${snippetText(result.snippet)} -> ${href}`;
32301
32298
  }
32302
32299
  const artifactName = result.artifact ? ` ${result.artifact.name}` : "";
32303
- const label = `${result.issue.key} [${result.issue.status}] ${result.issue.title} - ${result.kind}${artifactName}`;
32300
+ const label = `${owner.key} [${owner.status}] ${owner.title} - ${result.kind}${artifactName}`;
32304
32301
  return `${label}: ${snippetText(result.snippet)} -> ${href}`;
32305
32302
  }
32306
32303
  function askUrgency(args) {
package/dist/legion.js CHANGED
@@ -28924,9 +28924,6 @@ function preprocess(fn, schema) {
28924
28924
  }
28925
28925
  // ../contracts/src/dispatch-api.ts
28926
28926
  var DELIVERY_CAPABILITIES = ["aside", "btw", "steer"];
28927
- function searchOwnerOf(result) {
28928
- return result.owner ?? { kind: "issue", key: result.issue.key };
28929
- }
28930
28927
  var DispatchEventSchema = object({
28931
28928
  issue_key: string2().nullable(),
28932
28929
  artifact_id: string2().nullish(),
@@ -28965,7 +28962,7 @@ var askEventPayloadFields = {
28965
28962
  opened_event_id: number2().int().positive(),
28966
28963
  kind: _enum2(["question", "approval", "action"]).optional(),
28967
28964
  question: string2().optional(),
28968
- options: array(object({ label: string2().optional() })).nullish(),
28965
+ options: array(object({ label: string2().optional() })).optional(),
28969
28966
  answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
28970
28967
  anchor: object({
28971
28968
  quote: string2().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "1.38.0",
3
+ "version": "1.38.2",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [