pi-outpost 0.16.1 → 0.16.3

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.
@@ -117030,7 +117030,7 @@ function mutateWorkPlan(current, mutation) {
117030
117030
  }
117031
117031
 
117032
117032
  // ../shared/src/providerError.ts
117033
- var MAX_LENGTH = 300;
117033
+ var MAX_RECOVERED_LENGTH = 300;
117034
117034
  var ENTITIES = {
117035
117035
  amp: "&",
117036
117036
  lt: "<",
@@ -117054,7 +117054,7 @@ function textFromMarkup(markup) {
117054
117054
  function describeProviderError(raw) {
117055
117055
  const input = raw?.trim() ?? "";
117056
117056
  if (input === "") return input;
117057
- if (!looksLikeMarkup(input)) return input.length > MAX_LENGTH ? `${input.slice(0, MAX_LENGTH - 1).trimEnd()}\u2026` : input;
117057
+ if (!looksLikeMarkup(input)) return input;
117058
117058
  const start = input.search(/<\s*(!doctype|html|body|head|h[1-6]|p|div|title|center|pre)\b/i);
117059
117059
  const prefix = input.slice(0, start).trim();
117060
117060
  const recovered = textFromMarkup(input.slice(start));
@@ -117062,7 +117062,7 @@ function describeProviderError(raw) {
117062
117062
  const status = /^\d{3}$/.test(prefix) ? prefix : "";
117063
117063
  const body = status !== "" && recovered.startsWith(`${status} `) ? recovered.slice(status.length + 1) : recovered;
117064
117064
  const line = [status !== "" ? status : prefix, body].filter((part) => part !== "").join(" ");
117065
- return line.length > MAX_LENGTH ? `${line.slice(0, MAX_LENGTH - 1).trimEnd()}\u2026` : line;
117065
+ return line.length > MAX_RECOVERED_LENGTH ? `${line.slice(0, MAX_RECOVERED_LENGTH - 1).trimEnd()}\u2026` : line;
117066
117066
  }
117067
117067
 
117068
117068
  // ../server/src/agentRuntime.ts
@@ -142630,7 +142630,15 @@ var objectOptions = { additionalProperties: false };
142630
142630
  var boundedText = (maxLength, description) => typebox_exports2.String({
142631
142631
  minLength: 1,
142632
142632
  maxLength,
142633
- pattern: "\\S",
142633
+ // Rejects whitespace-only strings. Anchored (`^`…`$`) rather than the bare
142634
+ // `\S` this replaced: JSON Schema `pattern` is a "contains a match" test so
142635
+ // both reject the same strings, but automatic parser/grammar generation for
142636
+ // structured output (constrained decoding on some providers) requires every
142637
+ // pattern to be fully anchored and rejects the schema outright otherwise —
142638
+ // as a 400 on every call once a tool carries one, this field appears on most
142639
+ // of the work_plan schema's string properties, so the error repeated once
142640
+ // per occurrence.
142641
+ pattern: "^[\\s\\S]*\\S[\\s\\S]*$",
142634
142642
  ...description === void 0 ? {} : { description }
142635
142643
  });
142636
142644
  var identifierSchema = boundedText(WORK_PLAN_LIMITS.title);
@@ -144726,7 +144734,7 @@ var EMBEDDED_WEB = {
144726
144734
  };
144727
144735
 
144728
144736
  // ../server/src/index.ts
144729
- var VERSION2 = true ? "0.16.1" : "dev";
144737
+ var VERSION2 = true ? "0.16.3" : "dev";
144730
144738
  var PI_SDK_VERSION = true ? "0.84.3" : "dev";
144731
144739
  var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
144732
144740
  function complain(error) {
@@ -42390,11 +42390,11 @@ var require_constants3 = __commonJS({
42390
42390
  "../node_modules/semver/internal/constants.js"(exports, module) {
42391
42391
  "use strict";
42392
42392
  var SEMVER_SPEC_VERSION = "2.0.0";
42393
- var MAX_LENGTH2 = 256;
42393
+ var MAX_LENGTH = 256;
42394
42394
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
42395
42395
  9007199254740991;
42396
42396
  var MAX_SAFE_COMPONENT_LENGTH = 16;
42397
- var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH2 - 6;
42397
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
42398
42398
  var RELEASE_TYPES = [
42399
42399
  "major",
42400
42400
  "premajor",
@@ -42405,7 +42405,7 @@ var require_constants3 = __commonJS({
42405
42405
  "prerelease"
42406
42406
  ];
42407
42407
  module.exports = {
42408
- MAX_LENGTH: MAX_LENGTH2,
42408
+ MAX_LENGTH,
42409
42409
  MAX_SAFE_COMPONENT_LENGTH,
42410
42410
  MAX_SAFE_BUILD_LENGTH,
42411
42411
  MAX_SAFE_INTEGER,
@@ -42434,7 +42434,7 @@ var require_re = __commonJS({
42434
42434
  var {
42435
42435
  MAX_SAFE_COMPONENT_LENGTH,
42436
42436
  MAX_SAFE_BUILD_LENGTH,
42437
- MAX_LENGTH: MAX_LENGTH2
42437
+ MAX_LENGTH
42438
42438
  } = require_constants3();
42439
42439
  var debug = require_debug2();
42440
42440
  exports = module.exports = {};
@@ -42447,7 +42447,7 @@ var require_re = __commonJS({
42447
42447
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
42448
42448
  var safeRegexReplacements = [
42449
42449
  ["\\s", 1],
42450
- ["\\d", MAX_LENGTH2],
42450
+ ["\\d", MAX_LENGTH],
42451
42451
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
42452
42452
  ];
42453
42453
  var makeSafeRegex = (value2) => {
@@ -42564,7 +42564,7 @@ var require_semver = __commonJS({
42564
42564
  "../node_modules/semver/classes/semver.js"(exports, module) {
42565
42565
  "use strict";
42566
42566
  var debug = require_debug2();
42567
- var { MAX_LENGTH: MAX_LENGTH2, MAX_SAFE_INTEGER } = require_constants3();
42567
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants3();
42568
42568
  var { safeRe: re2, t: t2 } = require_re();
42569
42569
  var parseOptions = require_parse_options();
42570
42570
  var { compareIdentifiers } = require_identifiers();
@@ -42580,9 +42580,9 @@ var require_semver = __commonJS({
42580
42580
  } else if (typeof version2 !== "string") {
42581
42581
  throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
42582
42582
  }
42583
- if (version2.length > MAX_LENGTH2) {
42583
+ if (version2.length > MAX_LENGTH) {
42584
42584
  throw new TypeError(
42585
- `version is longer than ${MAX_LENGTH2} characters`
42585
+ `version is longer than ${MAX_LENGTH} characters`
42586
42586
  );
42587
42587
  }
42588
42588
  debug("SemVer", version2, options);
@@ -196872,11 +196872,11 @@ var require_constants5 = __commonJS({
196872
196872
  "../node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/constants.js"(exports, module) {
196873
196873
  "use strict";
196874
196874
  var SEMVER_SPEC_VERSION = "2.0.0";
196875
- var MAX_LENGTH2 = 256;
196875
+ var MAX_LENGTH = 256;
196876
196876
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
196877
196877
  9007199254740991;
196878
196878
  var MAX_SAFE_COMPONENT_LENGTH = 16;
196879
- var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH2 - 6;
196879
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
196880
196880
  var RELEASE_TYPES = [
196881
196881
  "major",
196882
196882
  "premajor",
@@ -196887,7 +196887,7 @@ var require_constants5 = __commonJS({
196887
196887
  "prerelease"
196888
196888
  ];
196889
196889
  module.exports = {
196890
- MAX_LENGTH: MAX_LENGTH2,
196890
+ MAX_LENGTH,
196891
196891
  MAX_SAFE_COMPONENT_LENGTH,
196892
196892
  MAX_SAFE_BUILD_LENGTH,
196893
196893
  MAX_SAFE_INTEGER,
@@ -196916,7 +196916,7 @@ var require_re2 = __commonJS({
196916
196916
  var {
196917
196917
  MAX_SAFE_COMPONENT_LENGTH,
196918
196918
  MAX_SAFE_BUILD_LENGTH,
196919
- MAX_LENGTH: MAX_LENGTH2
196919
+ MAX_LENGTH
196920
196920
  } = require_constants5();
196921
196921
  var debug = require_debug3();
196922
196922
  exports = module.exports = {};
@@ -196929,7 +196929,7 @@ var require_re2 = __commonJS({
196929
196929
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
196930
196930
  var safeRegexReplacements = [
196931
196931
  ["\\s", 1],
196932
- ["\\d", MAX_LENGTH2],
196932
+ ["\\d", MAX_LENGTH],
196933
196933
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
196934
196934
  ];
196935
196935
  var makeSafeRegex = (value2) => {
@@ -197046,7 +197046,7 @@ var require_semver3 = __commonJS({
197046
197046
  "../node_modules/@earendil-works/pi-coding-agent/node_modules/semver/classes/semver.js"(exports, module) {
197047
197047
  "use strict";
197048
197048
  var debug = require_debug3();
197049
- var { MAX_LENGTH: MAX_LENGTH2, MAX_SAFE_INTEGER } = require_constants5();
197049
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants5();
197050
197050
  var { safeRe: re2, t: t2 } = require_re2();
197051
197051
  var parseOptions = require_parse_options2();
197052
197052
  var { compareIdentifiers } = require_identifiers2();
@@ -197062,9 +197062,9 @@ var require_semver3 = __commonJS({
197062
197062
  } else if (typeof version2 !== "string") {
197063
197063
  throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
197064
197064
  }
197065
- if (version2.length > MAX_LENGTH2) {
197065
+ if (version2.length > MAX_LENGTH) {
197066
197066
  throw new TypeError(
197067
- `version is longer than ${MAX_LENGTH2} characters`
197067
+ `version is longer than ${MAX_LENGTH} characters`
197068
197068
  );
197069
197069
  }
197070
197070
  debug("SemVer", version2, options);
@@ -416313,7 +416313,7 @@ function mutateWorkPlan(current, mutation) {
416313
416313
  }
416314
416314
 
416315
416315
  // ../shared/src/providerError.ts
416316
- var MAX_LENGTH = 300;
416316
+ var MAX_RECOVERED_LENGTH = 300;
416317
416317
  var ENTITIES = {
416318
416318
  amp: "&",
416319
416319
  lt: "<",
@@ -416337,7 +416337,7 @@ function textFromMarkup(markup) {
416337
416337
  function describeProviderError(raw) {
416338
416338
  const input = raw?.trim() ?? "";
416339
416339
  if (input === "") return input;
416340
- if (!looksLikeMarkup(input)) return input.length > MAX_LENGTH ? `${input.slice(0, MAX_LENGTH - 1).trimEnd()}\u2026` : input;
416340
+ if (!looksLikeMarkup(input)) return input;
416341
416341
  const start = input.search(/<\s*(!doctype|html|body|head|h[1-6]|p|div|title|center|pre)\b/i);
416342
416342
  const prefix = input.slice(0, start).trim();
416343
416343
  const recovered = textFromMarkup(input.slice(start));
@@ -416345,7 +416345,7 @@ function describeProviderError(raw) {
416345
416345
  const status = /^\d{3}$/.test(prefix) ? prefix : "";
416346
416346
  const body = status !== "" && recovered.startsWith(`${status} `) ? recovered.slice(status.length + 1) : recovered;
416347
416347
  const line = [status !== "" ? status : prefix, body].filter((part) => part !== "").join(" ");
416348
- return line.length > MAX_LENGTH ? `${line.slice(0, MAX_LENGTH - 1).trimEnd()}\u2026` : line;
416348
+ return line.length > MAX_RECOVERED_LENGTH ? `${line.slice(0, MAX_RECOVERED_LENGTH - 1).trimEnd()}\u2026` : line;
416349
416349
  }
416350
416350
 
416351
416351
  // ../server/src/agentRuntime.ts
@@ -425129,7 +425129,15 @@ var objectOptions = { additionalProperties: false };
425129
425129
  var boundedText = (maxLength, description) => typebox_exports2.String({
425130
425130
  minLength: 1,
425131
425131
  maxLength,
425132
- pattern: "\\S",
425132
+ // Rejects whitespace-only strings. Anchored (`^`…`$`) rather than the bare
425133
+ // `\S` this replaced: JSON Schema `pattern` is a "contains a match" test so
425134
+ // both reject the same strings, but automatic parser/grammar generation for
425135
+ // structured output (constrained decoding on some providers) requires every
425136
+ // pattern to be fully anchored and rejects the schema outright otherwise —
425137
+ // as a 400 on every call once a tool carries one, this field appears on most
425138
+ // of the work_plan schema's string properties, so the error repeated once
425139
+ // per occurrence.
425140
+ pattern: "^[\\s\\S]*\\S[\\s\\S]*$",
425133
425141
  ...description === void 0 ? {} : { description }
425134
425142
  });
425135
425143
  var identifierSchema = boundedText(WORK_PLAN_LIMITS.title);
@@ -427225,7 +427233,7 @@ var EMBEDDED_WEB = {
427225
427233
  };
427226
427234
 
427227
427235
  // ../server/src/index.ts
427228
- var VERSION5 = true ? "0.16.1" : "dev";
427236
+ var VERSION5 = true ? "0.16.3" : "dev";
427229
427237
  var PI_SDK_VERSION = true ? "0.84.3" : "dev";
427230
427238
  var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
427231
427239
  function complain(error) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-outpost",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "type": "module",
5
5
  "description": "A web interface for the pi coding agent: a browser chat UI you run with npx — no clone, no build.",
6
6
  "license": "MIT",