@sjawhar/pi-legion-envoy 5.24.2 → 5.24.4

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
@@ -30073,6 +30073,7 @@ var ASK_URGENCIES = ["low", "med", "high", "blocking"];
30073
30073
  var ASK_QUESTION_MAX = 800;
30074
30074
  var SEARCH_QUERY_MAX = 1000;
30075
30075
  var SEARCH_QUERY_HINT = "search with a short phrase of a few words, not a passage";
30076
+ var PROJECT_KEY_PATTERN = /^[A-Z][A-Z0-9]{1,9}$/;
30076
30077
  var ISSUE_STATUSES = [
30077
30078
  "triage",
30078
30079
  "icebox",
@@ -30395,7 +30396,14 @@ var dispatchToolSpecs = [
30395
30396
  }).describe(`Keyword, phrase, or websearch expression; 2 to ${SEARCH_QUERY_MAX} characters.`),
30396
30397
  project: z2.string().describe("Optional project key to search within.").optional(),
30397
30398
  limit: z2.number({ int: true, min: 1, max: 50 }).describe("Maximum results, 1-50; default 20.").optional()
30398
- })
30399
+ }),
30400
+ validation: {
30401
+ check: (value) => {
30402
+ const { project } = value;
30403
+ return typeof project !== "string" || project === "" || PROJECT_KEY_PATTERN.test(project);
30404
+ },
30405
+ message: "project must be a project key such as CORE"
30406
+ }
30399
30407
  },
30400
30408
  {
30401
30409
  name: "dispatch_issues",
@@ -33257,7 +33265,7 @@ async function resolveOwnerArguments(tool, input, cwd, env, exec, serverUrl, pro
33257
33265
  problems.push("exactly one of issue and project is required");
33258
33266
  }
33259
33267
  if (typeof projectArgument === "string") {
33260
- if (!/^[A-Z][A-Z0-9]{1,9}$/.test(projectArgument)) {
33268
+ if (!PROJECT_KEY_PATTERN.test(projectArgument)) {
33261
33269
  problems.push("project must be a project key such as CORE");
33262
33270
  }
33263
33271
  const refDocument = ref?.owner.kind === "project" ? ref.artifact ?? ref.id : undefined;
package/dist/legion.js CHANGED
@@ -30242,6 +30242,7 @@ var ASK_URGENCIES = ["low", "med", "high", "blocking"];
30242
30242
  var ASK_QUESTION_MAX = 800;
30243
30243
  var SEARCH_QUERY_MAX = 1000;
30244
30244
  var SEARCH_QUERY_HINT = "search with a short phrase of a few words, not a passage";
30245
+ var PROJECT_KEY_PATTERN = /^[A-Z][A-Z0-9]{1,9}$/;
30245
30246
  var ISSUE_STATUSES = [
30246
30247
  "triage",
30247
30248
  "icebox",
@@ -30564,7 +30565,14 @@ var dispatchToolSpecs = [
30564
30565
  }).describe(`Keyword, phrase, or websearch expression; 2 to ${SEARCH_QUERY_MAX} characters.`),
30565
30566
  project: z2.string().describe("Optional project key to search within.").optional(),
30566
30567
  limit: z2.number({ int: true, min: 1, max: 50 }).describe("Maximum results, 1-50; default 20.").optional()
30567
- })
30568
+ }),
30569
+ validation: {
30570
+ check: (value) => {
30571
+ const { project } = value;
30572
+ return typeof project !== "string" || project === "" || PROJECT_KEY_PATTERN.test(project);
30573
+ },
30574
+ message: "project must be a project key such as CORE"
30575
+ }
30568
30576
  },
30569
30577
  {
30570
30578
  name: "dispatch_issues",
@@ -32196,7 +32204,7 @@ async function resolveOwnerArguments(tool, input, cwd, env, exec, serverUrl, pro
32196
32204
  problems.push("exactly one of issue and project is required");
32197
32205
  }
32198
32206
  if (typeof projectArgument === "string") {
32199
- if (!/^[A-Z][A-Z0-9]{1,9}$/.test(projectArgument)) {
32207
+ if (!PROJECT_KEY_PATTERN.test(projectArgument)) {
32200
32208
  problems.push("project must be a project key such as CORE");
32201
32209
  }
32202
32210
  const refDocument = ref?.owner.kind === "project" ? ref.artifact ?? ref.id : undefined;
@@ -33523,7 +33531,7 @@ import { logger } from "@oh-my-pi/pi-utils";
33523
33531
  // package.json
33524
33532
  var package_default = {
33525
33533
  name: "@sjawhar/pi-legion-envoy",
33526
- version: "5.24.2",
33534
+ version: "5.24.4",
33527
33535
  type: "module",
33528
33536
  omp: {
33529
33537
  extensions: [
@@ -34089,7 +34097,8 @@ var LegionGoOperatorClaimResponse = exports_external.strictObject({
34089
34097
  promptRetires: exports_external.number().int().nonnegative()
34090
34098
  }),
34091
34099
  uncertainStreak: exports_external.number().int().nonnegative(),
34092
- pending: legionGoDeliveryView.optional()
34100
+ pending: legionGoDeliveryView.optional(),
34101
+ suspensionHeld: exports_external.literal(true).optional()
34093
34102
  });
34094
34103
  var LegionGoOperatorClaimsResponse = exports_external.strictObject({
34095
34104
  claims: exports_external.array(LegionGoOperatorClaimResponse)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "5.24.2",
3
+ "version": "5.24.4",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [