pi-outpost 0.14.0 → 0.15.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.
- package/dist/pi-outpost.mjs +430 -284
- package/dist/pi-outpost.sea.mjs +463 -317
- package/dist/sea-prep.blob +0 -0
- package/package.json +1 -1
package/dist/pi-outpost.sea.mjs
CHANGED
|
@@ -5347,8 +5347,8 @@ var require_dist2 = __commonJS({
|
|
|
5347
5347
|
})();
|
|
5348
5348
|
function create(filename, options) {
|
|
5349
5349
|
const type = options?.type || "attachment";
|
|
5350
|
-
const
|
|
5351
|
-
return format({ type, parameters:
|
|
5350
|
+
const parameters7 = createParameters(filename, options?.fallback);
|
|
5351
|
+
return format({ type, parameters: parameters7 }, { extended: false });
|
|
5352
5352
|
}
|
|
5353
5353
|
var SP = 32;
|
|
5354
5354
|
var HTAB = 9;
|
|
@@ -5366,7 +5366,7 @@ var require_dist2 = __commonJS({
|
|
|
5366
5366
|
index5 = parseToken(header, index5, len);
|
|
5367
5367
|
const typeEnd = trailingOWS(header, typeStart, index5);
|
|
5368
5368
|
const type = header.slice(typeStart, typeEnd).toLowerCase();
|
|
5369
|
-
const
|
|
5369
|
+
const parameters7 = new NullObject();
|
|
5370
5370
|
parameter: while (index5 < len) {
|
|
5371
5371
|
index5 = skipOWS(header, index5 + 1, len);
|
|
5372
5372
|
const keyStart = index5;
|
|
@@ -5386,8 +5386,8 @@ var require_dist2 = __commonJS({
|
|
|
5386
5386
|
const code = header.charCodeAt(index5++);
|
|
5387
5387
|
if (code === DQUOTE) {
|
|
5388
5388
|
index5 = parseToken(header, index5, len);
|
|
5389
|
-
if (
|
|
5390
|
-
|
|
5389
|
+
if (parameters7[key] === void 0)
|
|
5390
|
+
parameters7[key] = value3;
|
|
5391
5391
|
break;
|
|
5392
5392
|
}
|
|
5393
5393
|
if (code === /* % */
|
|
@@ -5419,8 +5419,8 @@ var require_dist2 = __commonJS({
|
|
|
5419
5419
|
const code = header.charCodeAt(index5++);
|
|
5420
5420
|
if (code === DQUOTE) {
|
|
5421
5421
|
index5 = parseToken(header, index5, len);
|
|
5422
|
-
if (
|
|
5423
|
-
|
|
5422
|
+
if (parameters7[key] === void 0)
|
|
5423
|
+
parameters7[key] = value3;
|
|
5424
5424
|
break;
|
|
5425
5425
|
}
|
|
5426
5426
|
if (code === BSLASH && index5 < len) {
|
|
@@ -5436,13 +5436,13 @@ var require_dist2 = __commonJS({
|
|
|
5436
5436
|
index5 = parseToken(header, index5, len);
|
|
5437
5437
|
const valueEnd = trailingOWS(header, valueStart, index5);
|
|
5438
5438
|
const value2 = header.slice(valueStart, valueEnd);
|
|
5439
|
-
if (
|
|
5440
|
-
|
|
5439
|
+
if (parameters7[key] === void 0) {
|
|
5440
|
+
parameters7[key] = value2;
|
|
5441
5441
|
if (extended && key.charCodeAt(key.length - 1) === ASTERISK) {
|
|
5442
5442
|
const normalizedKey = key.slice(0, -1);
|
|
5443
5443
|
const decoded = decodeExtended(value2);
|
|
5444
5444
|
if (decoded !== void 0)
|
|
5445
|
-
|
|
5445
|
+
parameters7[normalizedKey] = decoded;
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
5448
|
continue parameter;
|
|
@@ -5450,7 +5450,7 @@ var require_dist2 = __commonJS({
|
|
|
5450
5450
|
index5++;
|
|
5451
5451
|
}
|
|
5452
5452
|
}
|
|
5453
|
-
return { type, parameters:
|
|
5453
|
+
return { type, parameters: parameters7 };
|
|
5454
5454
|
}
|
|
5455
5455
|
var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
|
|
5456
5456
|
var NON_ASCII_REGEXP = /[^\x20-\x7e]/g;
|
|
@@ -5538,16 +5538,16 @@ var require_dist2 = __commonJS({
|
|
|
5538
5538
|
return end;
|
|
5539
5539
|
}
|
|
5540
5540
|
function format(obj, options) {
|
|
5541
|
-
const { type, parameters:
|
|
5541
|
+
const { type, parameters: parameters7 } = obj;
|
|
5542
5542
|
const multipart = options?.multipart === true;
|
|
5543
5543
|
const extended = options?.extended !== false;
|
|
5544
5544
|
if (!type || !TOKEN_REGEXP.test(type)) {
|
|
5545
5545
|
throw new TypeError("Invalid type: " + type);
|
|
5546
5546
|
}
|
|
5547
5547
|
let result = type;
|
|
5548
|
-
if (
|
|
5549
|
-
for (const param of Object.keys(
|
|
5550
|
-
const value2 =
|
|
5548
|
+
if (parameters7) {
|
|
5549
|
+
for (const param of Object.keys(parameters7)) {
|
|
5550
|
+
const value2 = parameters7[param];
|
|
5551
5551
|
if (!TOKEN_REGEXP.test(param)) {
|
|
5552
5552
|
throw new TypeError("Invalid parameter name: " + param);
|
|
5553
5553
|
}
|
|
@@ -17461,14 +17461,14 @@ var require_content_type = __commonJS({
|
|
|
17461
17461
|
}
|
|
17462
17462
|
toString() {
|
|
17463
17463
|
if (this.#string) return this.#string;
|
|
17464
|
-
const
|
|
17464
|
+
const parameters7 = [];
|
|
17465
17465
|
for (const [key, value2] of this.#parameters.entries()) {
|
|
17466
|
-
|
|
17466
|
+
parameters7.push(`${key}="${value2}"`);
|
|
17467
17467
|
}
|
|
17468
17468
|
const result = [this.#type, "/", this.#subtype];
|
|
17469
|
-
if (
|
|
17469
|
+
if (parameters7.length > 0) {
|
|
17470
17470
|
result.push("; ");
|
|
17471
|
-
result.push(
|
|
17471
|
+
result.push(parameters7.join("; "));
|
|
17472
17472
|
}
|
|
17473
17473
|
this.#string = result.join("");
|
|
17474
17474
|
return this.#string;
|
|
@@ -74419,8 +74419,8 @@ var init_body = __esm({
|
|
|
74419
74419
|
const ct3 = this.headers.get("content-type");
|
|
74420
74420
|
if (ct3.startsWith("application/x-www-form-urlencoded")) {
|
|
74421
74421
|
const formData = new FormData2();
|
|
74422
|
-
const
|
|
74423
|
-
for (const [name, value2] of
|
|
74422
|
+
const parameters7 = new URLSearchParams(await this.text());
|
|
74423
|
+
for (const [name, value2] of parameters7) {
|
|
74424
74424
|
formData.append(name, value2);
|
|
74425
74425
|
}
|
|
74426
74426
|
return formData;
|
|
@@ -104592,9 +104592,9 @@ var init_node = __esm({
|
|
|
104592
104592
|
* @param parameters The parameters for the get operation request.
|
|
104593
104593
|
* @return The updated Operation object, with the latest status or result.
|
|
104594
104594
|
*/
|
|
104595
|
-
async getVideosOperation(
|
|
104596
|
-
const operation =
|
|
104597
|
-
const config3 =
|
|
104595
|
+
async getVideosOperation(parameters7) {
|
|
104596
|
+
const operation = parameters7.operation;
|
|
104597
|
+
const config3 = parameters7.config;
|
|
104598
104598
|
if (operation.name === void 0 || operation.name === "") {
|
|
104599
104599
|
throw new Error("Operation name is required.");
|
|
104600
104600
|
}
|
|
@@ -104630,9 +104630,9 @@ var init_node = __esm({
|
|
|
104630
104630
|
* @param parameters The parameters for the get operation request.
|
|
104631
104631
|
* @return The updated Operation object, with the latest status or result.
|
|
104632
104632
|
*/
|
|
104633
|
-
async get(
|
|
104634
|
-
const operation =
|
|
104635
|
-
const config3 =
|
|
104633
|
+
async get(parameters7) {
|
|
104634
|
+
const operation = parameters7.operation;
|
|
104635
|
+
const config3 = parameters7.config;
|
|
104636
104636
|
if (operation.name === void 0 || operation.name === "") {
|
|
104637
104637
|
throw new Error("Operation name is required.");
|
|
104638
104638
|
}
|
|
@@ -114763,9 +114763,9 @@ function formatToolDefinition(tool) {
|
|
|
114763
114763
|
if (description != null) {
|
|
114764
114764
|
formatted["description"] = description;
|
|
114765
114765
|
}
|
|
114766
|
-
const
|
|
114767
|
-
if (
|
|
114768
|
-
formatted["parameters"] =
|
|
114766
|
+
const parameters7 = func["parameters"];
|
|
114767
|
+
if (parameters7 != null) {
|
|
114768
|
+
formatted["parameters"] = parameters7;
|
|
114769
114769
|
}
|
|
114770
114770
|
return formatted;
|
|
114771
114771
|
}
|
|
@@ -262504,9 +262504,9 @@ var require_data_url = __commonJS({
|
|
|
262504
262504
|
}
|
|
262505
262505
|
function serializeAMimeType(mimeType) {
|
|
262506
262506
|
assert4(mimeType !== "failure");
|
|
262507
|
-
const { parameters:
|
|
262507
|
+
const { parameters: parameters7, essence } = mimeType;
|
|
262508
262508
|
let serialization = essence;
|
|
262509
|
-
for (let [name, value2] of
|
|
262509
|
+
for (let [name, value2] of parameters7.entries()) {
|
|
262510
262510
|
serialization += ";";
|
|
262511
262511
|
serialization += name;
|
|
262512
262512
|
serialization += "=";
|
|
@@ -341409,7 +341409,7 @@ var init_pdf_worker = __esm({
|
|
|
341409
341409
|
pdfManager
|
|
341410
341410
|
} = annotationGlobals;
|
|
341411
341411
|
const id = ref instanceof Ref5 ? ref.toString() : `annot_${idFactory.createObjId()}`;
|
|
341412
|
-
const
|
|
341412
|
+
const parameters7 = {
|
|
341413
341413
|
xref,
|
|
341414
341414
|
ref,
|
|
341415
341415
|
dict,
|
|
@@ -341425,9 +341425,9 @@ var init_pdf_worker = __esm({
|
|
|
341425
341425
|
};
|
|
341426
341426
|
switch (subtype) {
|
|
341427
341427
|
case "Link":
|
|
341428
|
-
return new LinkAnnotation(
|
|
341428
|
+
return new LinkAnnotation(parameters7);
|
|
341429
341429
|
case "Text":
|
|
341430
|
-
return new TextAnnotation(
|
|
341430
|
+
return new TextAnnotation(parameters7);
|
|
341431
341431
|
case "Widget":
|
|
341432
341432
|
let fieldType = getInheritableProperty({
|
|
341433
341433
|
dict,
|
|
@@ -341436,52 +341436,52 @@ var init_pdf_worker = __esm({
|
|
|
341436
341436
|
fieldType = fieldType instanceof Name ? fieldType.name : null;
|
|
341437
341437
|
switch (fieldType) {
|
|
341438
341438
|
case "Tx":
|
|
341439
|
-
return new TextWidgetAnnotation(
|
|
341439
|
+
return new TextWidgetAnnotation(parameters7);
|
|
341440
341440
|
case "Btn":
|
|
341441
|
-
return new ButtonWidgetAnnotation(
|
|
341441
|
+
return new ButtonWidgetAnnotation(parameters7);
|
|
341442
341442
|
case "Ch":
|
|
341443
|
-
return new ChoiceWidgetAnnotation(
|
|
341443
|
+
return new ChoiceWidgetAnnotation(parameters7);
|
|
341444
341444
|
case "Sig":
|
|
341445
|
-
return new SignatureWidgetAnnotation(
|
|
341445
|
+
return new SignatureWidgetAnnotation(parameters7);
|
|
341446
341446
|
}
|
|
341447
341447
|
warn2(`Unimplemented widget field type "${fieldType}", falling back to base field type.`);
|
|
341448
|
-
return new WidgetAnnotation(
|
|
341448
|
+
return new WidgetAnnotation(parameters7);
|
|
341449
341449
|
case "Popup":
|
|
341450
|
-
return new PopupAnnotation(
|
|
341450
|
+
return new PopupAnnotation(parameters7);
|
|
341451
341451
|
case "FreeText":
|
|
341452
|
-
return new FreeTextAnnotation(
|
|
341452
|
+
return new FreeTextAnnotation(parameters7);
|
|
341453
341453
|
case "Line":
|
|
341454
|
-
return new LineAnnotation(
|
|
341454
|
+
return new LineAnnotation(parameters7);
|
|
341455
341455
|
case "Square":
|
|
341456
|
-
return new SquareAnnotation(
|
|
341456
|
+
return new SquareAnnotation(parameters7);
|
|
341457
341457
|
case "Circle":
|
|
341458
|
-
return new CircleAnnotation(
|
|
341458
|
+
return new CircleAnnotation(parameters7);
|
|
341459
341459
|
case "PolyLine":
|
|
341460
|
-
return new PolylineAnnotation(
|
|
341460
|
+
return new PolylineAnnotation(parameters7);
|
|
341461
341461
|
case "Polygon":
|
|
341462
|
-
return new PolygonAnnotation(
|
|
341462
|
+
return new PolygonAnnotation(parameters7);
|
|
341463
341463
|
case "Caret":
|
|
341464
|
-
return new CaretAnnotation(
|
|
341464
|
+
return new CaretAnnotation(parameters7);
|
|
341465
341465
|
case "Ink":
|
|
341466
|
-
return new InkAnnotation(
|
|
341466
|
+
return new InkAnnotation(parameters7);
|
|
341467
341467
|
case "Highlight":
|
|
341468
|
-
return new HighlightAnnotation(
|
|
341468
|
+
return new HighlightAnnotation(parameters7);
|
|
341469
341469
|
case "Underline":
|
|
341470
|
-
return new UnderlineAnnotation(
|
|
341470
|
+
return new UnderlineAnnotation(parameters7);
|
|
341471
341471
|
case "Squiggly":
|
|
341472
|
-
return new SquigglyAnnotation(
|
|
341472
|
+
return new SquigglyAnnotation(parameters7);
|
|
341473
341473
|
case "StrikeOut":
|
|
341474
|
-
return new StrikeOutAnnotation(
|
|
341474
|
+
return new StrikeOutAnnotation(parameters7);
|
|
341475
341475
|
case "Stamp":
|
|
341476
|
-
return new StampAnnotation(
|
|
341476
|
+
return new StampAnnotation(parameters7);
|
|
341477
341477
|
case "FileAttachment":
|
|
341478
|
-
return new FileAttachmentAnnotation(
|
|
341478
|
+
return new FileAttachmentAnnotation(parameters7);
|
|
341479
341479
|
case "RichMedia":
|
|
341480
|
-
return new RichMediaAnnotation(
|
|
341480
|
+
return new RichMediaAnnotation(parameters7);
|
|
341481
341481
|
case "Screen":
|
|
341482
|
-
return new ScreenAnnotation(
|
|
341482
|
+
return new ScreenAnnotation(parameters7);
|
|
341483
341483
|
case "Sound":
|
|
341484
|
-
return new SoundAnnotation(
|
|
341484
|
+
return new SoundAnnotation(parameters7);
|
|
341485
341485
|
default:
|
|
341486
341486
|
if (!collectFields) {
|
|
341487
341487
|
if (!subtype) {
|
|
@@ -341490,7 +341490,7 @@ var init_pdf_worker = __esm({
|
|
|
341490
341490
|
warn2(`Unimplemented annotation type "${subtype}", falling back to base annotation.`);
|
|
341491
341491
|
}
|
|
341492
341492
|
}
|
|
341493
|
-
return new Annotation(
|
|
341493
|
+
return new Annotation(parameters7);
|
|
341494
341494
|
}
|
|
341495
341495
|
}
|
|
341496
341496
|
static async _getPageIndex(xref, ref, pdfManager) {
|
|
@@ -359013,11 +359013,11 @@ var init_pdf = __esm({
|
|
|
359013
359013
|
}
|
|
359014
359014
|
return this._allowedHtmlElements.has(name) ? document.createElement(name) : null;
|
|
359015
359015
|
}
|
|
359016
|
-
static render(
|
|
359017
|
-
const storage =
|
|
359018
|
-
const linkService =
|
|
359019
|
-
const root =
|
|
359020
|
-
const intent =
|
|
359016
|
+
static render(parameters7) {
|
|
359017
|
+
const storage = parameters7.annotationStorage;
|
|
359018
|
+
const linkService = parameters7.linkService;
|
|
359019
|
+
const root = parameters7.xfaHtml;
|
|
359020
|
+
const intent = parameters7.intent || "display";
|
|
359021
359021
|
const rootHtml = this.#createElement(root.name, root.attributes?.xmlns, intent) ?? document.createElement("div");
|
|
359022
359022
|
if (root.attributes) {
|
|
359023
359023
|
this.setAttributes({
|
|
@@ -359028,10 +359028,10 @@ var init_pdf = __esm({
|
|
|
359028
359028
|
});
|
|
359029
359029
|
}
|
|
359030
359030
|
const isNotForRichText = intent !== "richText";
|
|
359031
|
-
const rootDiv =
|
|
359031
|
+
const rootDiv = parameters7.div;
|
|
359032
359032
|
rootDiv.append(rootHtml);
|
|
359033
|
-
if (
|
|
359034
|
-
const transform2 = `matrix(${
|
|
359033
|
+
if (parameters7.viewport) {
|
|
359034
|
+
const transform2 = `matrix(${parameters7.viewport.transform.join(",")})`;
|
|
359035
359035
|
rootDiv.style.transform = transform2;
|
|
359036
359036
|
}
|
|
359037
359037
|
if (isNotForRichText) {
|
|
@@ -359101,10 +359101,10 @@ var init_pdf = __esm({
|
|
|
359101
359101
|
textDivs
|
|
359102
359102
|
};
|
|
359103
359103
|
}
|
|
359104
|
-
static update(
|
|
359105
|
-
const transform2 = `matrix(${
|
|
359106
|
-
|
|
359107
|
-
|
|
359104
|
+
static update(parameters7) {
|
|
359105
|
+
const transform2 = `matrix(${parameters7.viewport.transform.join(",")})`;
|
|
359106
|
+
parameters7.div.style.transform = transform2;
|
|
359107
|
+
parameters7.div.hidden = false;
|
|
359108
359108
|
}
|
|
359109
359109
|
static getPageViewport(xfaPage, {
|
|
359110
359110
|
scale = 1,
|
|
@@ -362506,21 +362506,21 @@ var init_pdf = __esm({
|
|
|
362506
362506
|
args: [0, big]
|
|
362507
362507
|
}], [["Escape"], _AnnotationEditor.prototype._stopResizingWithKeyboard]]));
|
|
362508
362508
|
}
|
|
362509
|
-
constructor(
|
|
362510
|
-
this.parent =
|
|
362511
|
-
this.id =
|
|
362509
|
+
constructor(parameters7) {
|
|
362510
|
+
this.parent = parameters7.parent;
|
|
362511
|
+
this.id = parameters7.id;
|
|
362512
362512
|
this.width = this.height = null;
|
|
362513
|
-
this.pageIndex =
|
|
362514
|
-
this.name =
|
|
362513
|
+
this.pageIndex = parameters7.parent.pageIndex;
|
|
362514
|
+
this.name = parameters7.name;
|
|
362515
362515
|
this.div = null;
|
|
362516
|
-
this._uiManager =
|
|
362516
|
+
this._uiManager = parameters7.uiManager;
|
|
362517
362517
|
this.annotationElementId = null;
|
|
362518
362518
|
this._willKeepAspectRatio = false;
|
|
362519
|
-
this._initialOptions.isCentered =
|
|
362519
|
+
this._initialOptions.isCentered = parameters7.isCentered;
|
|
362520
362520
|
this._structTreeParentId = null;
|
|
362521
|
-
this.annotationElementId =
|
|
362522
|
-
this.creationDate =
|
|
362523
|
-
this.modificationDate =
|
|
362521
|
+
this.annotationElementId = parameters7.annotationElementId || null;
|
|
362522
|
+
this.creationDate = parameters7.creationDate || /* @__PURE__ */ new Date();
|
|
362523
|
+
this.modificationDate = parameters7.modificationDate || null;
|
|
362524
362524
|
this.canAddComment = true;
|
|
362525
362525
|
const {
|
|
362526
362526
|
rotation,
|
|
@@ -362536,8 +362536,8 @@ var init_pdf = __esm({
|
|
|
362536
362536
|
this.pageDimensions = [pageWidth, pageHeight];
|
|
362537
362537
|
this.pageTranslation = [pageX, pageY];
|
|
362538
362538
|
const [width, height] = this.parentDimensions;
|
|
362539
|
-
this.x =
|
|
362540
|
-
this.y =
|
|
362539
|
+
this.x = parameters7.x / width;
|
|
362540
|
+
this.y = parameters7.y / height;
|
|
362541
362541
|
this.isAttachedToDOM = false;
|
|
362542
362542
|
this.deleted = false;
|
|
362543
362543
|
}
|
|
@@ -373818,67 +373818,67 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
373818
373818
|
GetElementsByNameSet = /* @__PURE__ */ new WeakSet();
|
|
373819
373819
|
TIMEZONE_OFFSET = (/* @__PURE__ */ new Date()).getTimezoneOffset() * 60 * 1e3;
|
|
373820
373820
|
AnnotationElementFactory = class {
|
|
373821
|
-
static create(
|
|
373822
|
-
const subtype =
|
|
373821
|
+
static create(parameters7) {
|
|
373822
|
+
const subtype = parameters7.data.annotationType;
|
|
373823
373823
|
switch (subtype) {
|
|
373824
373824
|
case AnnotationType2.LINK:
|
|
373825
|
-
return new LinkAnnotationElement(
|
|
373825
|
+
return new LinkAnnotationElement(parameters7);
|
|
373826
373826
|
case AnnotationType2.TEXT:
|
|
373827
|
-
return new TextAnnotationElement(
|
|
373827
|
+
return new TextAnnotationElement(parameters7);
|
|
373828
373828
|
case AnnotationType2.WIDGET:
|
|
373829
|
-
const fieldType =
|
|
373829
|
+
const fieldType = parameters7.data.fieldType;
|
|
373830
373830
|
switch (fieldType) {
|
|
373831
373831
|
case "Tx":
|
|
373832
|
-
return new TextWidgetAnnotationElement(
|
|
373832
|
+
return new TextWidgetAnnotationElement(parameters7);
|
|
373833
373833
|
case "Btn":
|
|
373834
|
-
if (
|
|
373835
|
-
return new RadioButtonWidgetAnnotationElement(
|
|
373836
|
-
} else if (
|
|
373837
|
-
return new CheckboxWidgetAnnotationElement(
|
|
373834
|
+
if (parameters7.data.radioButton) {
|
|
373835
|
+
return new RadioButtonWidgetAnnotationElement(parameters7);
|
|
373836
|
+
} else if (parameters7.data.checkBox) {
|
|
373837
|
+
return new CheckboxWidgetAnnotationElement(parameters7);
|
|
373838
373838
|
}
|
|
373839
|
-
return new PushButtonWidgetAnnotationElement(
|
|
373839
|
+
return new PushButtonWidgetAnnotationElement(parameters7);
|
|
373840
373840
|
case "Ch":
|
|
373841
|
-
return new ChoiceWidgetAnnotationElement(
|
|
373841
|
+
return new ChoiceWidgetAnnotationElement(parameters7);
|
|
373842
373842
|
case "Sig":
|
|
373843
|
-
return new SignatureWidgetAnnotationElement(
|
|
373843
|
+
return new SignatureWidgetAnnotationElement(parameters7);
|
|
373844
373844
|
}
|
|
373845
|
-
return new WidgetAnnotationElement(
|
|
373845
|
+
return new WidgetAnnotationElement(parameters7);
|
|
373846
373846
|
case AnnotationType2.POPUP:
|
|
373847
|
-
return new PopupAnnotationElement(
|
|
373847
|
+
return new PopupAnnotationElement(parameters7);
|
|
373848
373848
|
case AnnotationType2.FREETEXT:
|
|
373849
|
-
return new FreeTextAnnotationElement(
|
|
373849
|
+
return new FreeTextAnnotationElement(parameters7);
|
|
373850
373850
|
case AnnotationType2.LINE:
|
|
373851
|
-
return new LineAnnotationElement(
|
|
373851
|
+
return new LineAnnotationElement(parameters7);
|
|
373852
373852
|
case AnnotationType2.SQUARE:
|
|
373853
|
-
return new SquareAnnotationElement(
|
|
373853
|
+
return new SquareAnnotationElement(parameters7);
|
|
373854
373854
|
case AnnotationType2.CIRCLE:
|
|
373855
|
-
return new CircleAnnotationElement(
|
|
373855
|
+
return new CircleAnnotationElement(parameters7);
|
|
373856
373856
|
case AnnotationType2.POLYLINE:
|
|
373857
|
-
return new PolylineAnnotationElement(
|
|
373857
|
+
return new PolylineAnnotationElement(parameters7);
|
|
373858
373858
|
case AnnotationType2.CARET:
|
|
373859
|
-
return new CaretAnnotationElement(
|
|
373859
|
+
return new CaretAnnotationElement(parameters7);
|
|
373860
373860
|
case AnnotationType2.INK:
|
|
373861
|
-
return new InkAnnotationElement(
|
|
373861
|
+
return new InkAnnotationElement(parameters7);
|
|
373862
373862
|
case AnnotationType2.POLYGON:
|
|
373863
|
-
return new PolygonAnnotationElement(
|
|
373863
|
+
return new PolygonAnnotationElement(parameters7);
|
|
373864
373864
|
case AnnotationType2.HIGHLIGHT:
|
|
373865
|
-
return new HighlightAnnotationElement(
|
|
373865
|
+
return new HighlightAnnotationElement(parameters7);
|
|
373866
373866
|
case AnnotationType2.UNDERLINE:
|
|
373867
|
-
return new UnderlineAnnotationElement(
|
|
373867
|
+
return new UnderlineAnnotationElement(parameters7);
|
|
373868
373868
|
case AnnotationType2.SQUIGGLY:
|
|
373869
|
-
return new SquigglyAnnotationElement(
|
|
373869
|
+
return new SquigglyAnnotationElement(parameters7);
|
|
373870
373870
|
case AnnotationType2.STRIKEOUT:
|
|
373871
|
-
return new StrikeOutAnnotationElement(
|
|
373871
|
+
return new StrikeOutAnnotationElement(parameters7);
|
|
373872
373872
|
case AnnotationType2.STAMP:
|
|
373873
|
-
return new StampAnnotationElement(
|
|
373873
|
+
return new StampAnnotationElement(parameters7);
|
|
373874
373874
|
case AnnotationType2.FILEATTACHMENT:
|
|
373875
|
-
return new FileAttachmentAnnotationElement(
|
|
373875
|
+
return new FileAttachmentAnnotationElement(parameters7);
|
|
373876
373876
|
case AnnotationType2.RICHMEDIA:
|
|
373877
373877
|
case AnnotationType2.SCREEN:
|
|
373878
373878
|
case AnnotationType2.SOUND:
|
|
373879
|
-
return new MediaAnnotationElement(
|
|
373879
|
+
return new MediaAnnotationElement(parameters7);
|
|
373880
373880
|
default:
|
|
373881
|
-
return new AnnotationElement(
|
|
373881
|
+
return new AnnotationElement(parameters7);
|
|
373882
373882
|
}
|
|
373883
373883
|
}
|
|
373884
373884
|
};
|
|
@@ -373886,25 +373886,25 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
373886
373886
|
#updates = null;
|
|
373887
373887
|
#hasBorder = false;
|
|
373888
373888
|
#popupElement = null;
|
|
373889
|
-
constructor(
|
|
373889
|
+
constructor(parameters7, {
|
|
373890
373890
|
isRenderable = false,
|
|
373891
373891
|
ignoreBorder = false,
|
|
373892
373892
|
createQuadrilaterals = false
|
|
373893
373893
|
} = {}) {
|
|
373894
373894
|
this.isRenderable = isRenderable;
|
|
373895
|
-
this.data =
|
|
373896
|
-
this.layer =
|
|
373897
|
-
this.linkService =
|
|
373898
|
-
this.downloadManager =
|
|
373899
|
-
this.imageResourcesPath =
|
|
373900
|
-
this.renderForms =
|
|
373901
|
-
this.svgFactory =
|
|
373902
|
-
this.annotationStorage =
|
|
373903
|
-
this.enableComment =
|
|
373904
|
-
this.enableScripting =
|
|
373905
|
-
this.hasJSActions =
|
|
373906
|
-
this._fieldObjects =
|
|
373907
|
-
this.parent =
|
|
373895
|
+
this.data = parameters7.data;
|
|
373896
|
+
this.layer = parameters7.layer;
|
|
373897
|
+
this.linkService = parameters7.linkService;
|
|
373898
|
+
this.downloadManager = parameters7.downloadManager;
|
|
373899
|
+
this.imageResourcesPath = parameters7.imageResourcesPath;
|
|
373900
|
+
this.renderForms = parameters7.renderForms;
|
|
373901
|
+
this.svgFactory = parameters7.svgFactory;
|
|
373902
|
+
this.annotationStorage = parameters7.annotationStorage;
|
|
373903
|
+
this.enableComment = parameters7.enableComment;
|
|
373904
|
+
this.enableScripting = parameters7.enableScripting;
|
|
373905
|
+
this.hasJSActions = parameters7.hasJSActions;
|
|
373906
|
+
this._fieldObjects = parameters7.fieldObjects;
|
|
373907
|
+
this.parent = parameters7.parent;
|
|
373908
373908
|
this.hasOwnCommentButton = false;
|
|
373909
373909
|
if (isRenderable) {
|
|
373910
373910
|
this.contentElement = this.container = this._createContainer(ignoreBorder);
|
|
@@ -374549,12 +374549,12 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
374549
374549
|
}
|
|
374550
374550
|
};
|
|
374551
374551
|
EditorAnnotationElement = class extends AnnotationElement {
|
|
374552
|
-
constructor(
|
|
374553
|
-
super(
|
|
374552
|
+
constructor(parameters7) {
|
|
374553
|
+
super(parameters7, {
|
|
374554
374554
|
isRenderable: true,
|
|
374555
374555
|
ignoreBorder: true
|
|
374556
374556
|
});
|
|
374557
|
-
this.editor =
|
|
374557
|
+
this.editor = parameters7.editor;
|
|
374558
374558
|
}
|
|
374559
374559
|
render() {
|
|
374560
374560
|
this.container.className = "editorAnnotation";
|
|
@@ -374595,13 +374595,13 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
374595
374595
|
}
|
|
374596
374596
|
};
|
|
374597
374597
|
LinkAnnotationElement = class extends AnnotationElement {
|
|
374598
|
-
constructor(
|
|
374599
|
-
super(
|
|
374598
|
+
constructor(parameters7, options = null) {
|
|
374599
|
+
super(parameters7, {
|
|
374600
374600
|
isRenderable: true,
|
|
374601
374601
|
ignoreBorder: !!options?.ignoreBorder,
|
|
374602
374602
|
createQuadrilaterals: true
|
|
374603
374603
|
});
|
|
374604
|
-
this.isTooltipOnly =
|
|
374604
|
+
this.isTooltipOnly = parameters7.data.isTooltipOnly;
|
|
374605
374605
|
}
|
|
374606
374606
|
render() {
|
|
374607
374607
|
const {
|
|
@@ -374831,8 +374831,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
374831
374831
|
}
|
|
374832
374832
|
};
|
|
374833
374833
|
TextAnnotationElement = class extends AnnotationElement {
|
|
374834
|
-
constructor(
|
|
374835
|
-
super(
|
|
374834
|
+
constructor(parameters7) {
|
|
374835
|
+
super(parameters7, {
|
|
374836
374836
|
isRenderable: true
|
|
374837
374837
|
});
|
|
374838
374838
|
}
|
|
@@ -374955,9 +374955,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
374955
374955
|
}
|
|
374956
374956
|
};
|
|
374957
374957
|
TextWidgetAnnotationElement = class extends WidgetAnnotationElement {
|
|
374958
|
-
constructor(
|
|
374959
|
-
const isRenderable =
|
|
374960
|
-
super(
|
|
374958
|
+
constructor(parameters7) {
|
|
374959
|
+
const isRenderable = parameters7.renderForms || parameters7.data.hasOwnCanvas || !parameters7.data.hasAppearance && !!parameters7.data.fieldValue;
|
|
374960
|
+
super(parameters7, {
|
|
374961
374961
|
isRenderable
|
|
374962
374962
|
});
|
|
374963
374963
|
}
|
|
@@ -375333,16 +375333,16 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
375333
375333
|
}
|
|
375334
375334
|
};
|
|
375335
375335
|
SignatureWidgetAnnotationElement = class extends WidgetAnnotationElement {
|
|
375336
|
-
constructor(
|
|
375337
|
-
super(
|
|
375338
|
-
isRenderable: !!
|
|
375336
|
+
constructor(parameters7) {
|
|
375337
|
+
super(parameters7, {
|
|
375338
|
+
isRenderable: !!parameters7.data.hasOwnCanvas
|
|
375339
375339
|
});
|
|
375340
375340
|
}
|
|
375341
375341
|
};
|
|
375342
375342
|
CheckboxWidgetAnnotationElement = class extends WidgetAnnotationElement {
|
|
375343
|
-
constructor(
|
|
375344
|
-
super(
|
|
375345
|
-
isRenderable:
|
|
375343
|
+
constructor(parameters7) {
|
|
375344
|
+
super(parameters7, {
|
|
375345
|
+
isRenderable: parameters7.renderForms
|
|
375346
375346
|
});
|
|
375347
375347
|
}
|
|
375348
375348
|
render() {
|
|
@@ -375413,9 +375413,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
375413
375413
|
}
|
|
375414
375414
|
};
|
|
375415
375415
|
RadioButtonWidgetAnnotationElement = class extends WidgetAnnotationElement {
|
|
375416
|
-
constructor(
|
|
375417
|
-
super(
|
|
375418
|
-
isRenderable:
|
|
375416
|
+
constructor(parameters7) {
|
|
375417
|
+
super(parameters7, {
|
|
375418
|
+
isRenderable: parameters7.renderForms
|
|
375419
375419
|
});
|
|
375420
375420
|
}
|
|
375421
375421
|
render() {
|
|
@@ -375495,9 +375495,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
375495
375495
|
}
|
|
375496
375496
|
};
|
|
375497
375497
|
PushButtonWidgetAnnotationElement = class extends LinkAnnotationElement {
|
|
375498
|
-
constructor(
|
|
375499
|
-
super(
|
|
375500
|
-
ignoreBorder:
|
|
375498
|
+
constructor(parameters7) {
|
|
375499
|
+
super(parameters7, {
|
|
375500
|
+
ignoreBorder: parameters7.data.hasAppearance
|
|
375501
375501
|
});
|
|
375502
375502
|
}
|
|
375503
375503
|
render() {
|
|
@@ -375514,9 +375514,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
375514
375514
|
}
|
|
375515
375515
|
};
|
|
375516
375516
|
ChoiceWidgetAnnotationElement = class extends WidgetAnnotationElement {
|
|
375517
|
-
constructor(
|
|
375518
|
-
super(
|
|
375519
|
-
isRenderable:
|
|
375517
|
+
constructor(parameters7) {
|
|
375518
|
+
super(parameters7, {
|
|
375519
|
+
isRenderable: parameters7.renderForms
|
|
375520
375520
|
});
|
|
375521
375521
|
}
|
|
375522
375522
|
render() {
|
|
@@ -375744,14 +375744,14 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
375744
375744
|
}
|
|
375745
375745
|
};
|
|
375746
375746
|
PopupAnnotationElement = class extends AnnotationElement {
|
|
375747
|
-
constructor(
|
|
375747
|
+
constructor(parameters7) {
|
|
375748
375748
|
const {
|
|
375749
375749
|
data,
|
|
375750
375750
|
elements,
|
|
375751
375751
|
parent
|
|
375752
|
-
} =
|
|
375752
|
+
} = parameters7;
|
|
375753
375753
|
const hasCommentManager = !!parent._commentManager;
|
|
375754
|
-
super(
|
|
375754
|
+
super(parameters7, {
|
|
375755
375755
|
isRenderable: !hasCommentManager && AnnotationElement._hasPopupData(data)
|
|
375756
375756
|
});
|
|
375757
375757
|
this.elements = elements;
|
|
@@ -376362,13 +376362,13 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376362
376362
|
}
|
|
376363
376363
|
};
|
|
376364
376364
|
FreeTextAnnotationElement = class extends AnnotationElement {
|
|
376365
|
-
constructor(
|
|
376366
|
-
super(
|
|
376365
|
+
constructor(parameters7) {
|
|
376366
|
+
super(parameters7, {
|
|
376367
376367
|
isRenderable: true,
|
|
376368
376368
|
ignoreBorder: true
|
|
376369
376369
|
});
|
|
376370
|
-
this.textContent =
|
|
376371
|
-
this.textPosition =
|
|
376370
|
+
this.textContent = parameters7.data.textContent;
|
|
376371
|
+
this.textPosition = parameters7.data.textPosition;
|
|
376372
376372
|
this.annotationEditorType = AnnotationEditorType2.FREETEXT;
|
|
376373
376373
|
}
|
|
376374
376374
|
render() {
|
|
@@ -376394,8 +376394,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376394
376394
|
};
|
|
376395
376395
|
LineAnnotationElement = class extends AnnotationElement {
|
|
376396
376396
|
#line = null;
|
|
376397
|
-
constructor(
|
|
376398
|
-
super(
|
|
376397
|
+
constructor(parameters7) {
|
|
376398
|
+
super(parameters7, {
|
|
376399
376399
|
isRenderable: true,
|
|
376400
376400
|
ignoreBorder: true
|
|
376401
376401
|
});
|
|
@@ -376433,8 +376433,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376433
376433
|
};
|
|
376434
376434
|
SquareAnnotationElement = class extends AnnotationElement {
|
|
376435
376435
|
#square = null;
|
|
376436
|
-
constructor(
|
|
376437
|
-
super(
|
|
376436
|
+
constructor(parameters7) {
|
|
376437
|
+
super(parameters7, {
|
|
376438
376438
|
isRenderable: true,
|
|
376439
376439
|
ignoreBorder: true
|
|
376440
376440
|
});
|
|
@@ -376473,8 +376473,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376473
376473
|
};
|
|
376474
376474
|
CircleAnnotationElement = class extends AnnotationElement {
|
|
376475
376475
|
#circle = null;
|
|
376476
|
-
constructor(
|
|
376477
|
-
super(
|
|
376476
|
+
constructor(parameters7) {
|
|
376477
|
+
super(parameters7, {
|
|
376478
376478
|
isRenderable: true,
|
|
376479
376479
|
ignoreBorder: true
|
|
376480
376480
|
});
|
|
@@ -376513,8 +376513,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376513
376513
|
};
|
|
376514
376514
|
PolylineAnnotationElement = class extends AnnotationElement {
|
|
376515
376515
|
#polyline = null;
|
|
376516
|
-
constructor(
|
|
376517
|
-
super(
|
|
376516
|
+
constructor(parameters7) {
|
|
376517
|
+
super(parameters7, {
|
|
376518
376518
|
isRenderable: true,
|
|
376519
376519
|
ignoreBorder: true
|
|
376520
376520
|
});
|
|
@@ -376565,15 +376565,15 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376565
376565
|
}
|
|
376566
376566
|
};
|
|
376567
376567
|
PolygonAnnotationElement = class extends PolylineAnnotationElement {
|
|
376568
|
-
constructor(
|
|
376569
|
-
super(
|
|
376568
|
+
constructor(parameters7) {
|
|
376569
|
+
super(parameters7);
|
|
376570
376570
|
this.containerClassName = "polygonAnnotation";
|
|
376571
376571
|
this.svgElementName = "svg:polygon";
|
|
376572
376572
|
}
|
|
376573
376573
|
};
|
|
376574
376574
|
CaretAnnotationElement = class extends AnnotationElement {
|
|
376575
|
-
constructor(
|
|
376576
|
-
super(
|
|
376575
|
+
constructor(parameters7) {
|
|
376576
|
+
super(parameters7, {
|
|
376577
376577
|
isRenderable: true,
|
|
376578
376578
|
ignoreBorder: true
|
|
376579
376579
|
});
|
|
@@ -376590,8 +376590,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376590
376590
|
InkAnnotationElement = class extends AnnotationElement {
|
|
376591
376591
|
#polylinesGroupElement = null;
|
|
376592
376592
|
#polylines = [];
|
|
376593
|
-
constructor(
|
|
376594
|
-
super(
|
|
376593
|
+
constructor(parameters7) {
|
|
376594
|
+
super(parameters7, {
|
|
376595
376595
|
isRenderable: true,
|
|
376596
376596
|
ignoreBorder: true
|
|
376597
376597
|
});
|
|
@@ -376702,8 +376702,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376702
376702
|
}
|
|
376703
376703
|
};
|
|
376704
376704
|
HighlightAnnotationElement = class extends AnnotationElement {
|
|
376705
|
-
constructor(
|
|
376706
|
-
super(
|
|
376705
|
+
constructor(parameters7) {
|
|
376706
|
+
super(parameters7, {
|
|
376707
376707
|
isRenderable: true,
|
|
376708
376708
|
ignoreBorder: true,
|
|
376709
376709
|
createQuadrilaterals: true
|
|
@@ -376733,8 +376733,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376733
376733
|
}
|
|
376734
376734
|
};
|
|
376735
376735
|
UnderlineAnnotationElement = class extends AnnotationElement {
|
|
376736
|
-
constructor(
|
|
376737
|
-
super(
|
|
376736
|
+
constructor(parameters7) {
|
|
376737
|
+
super(parameters7, {
|
|
376738
376738
|
isRenderable: true,
|
|
376739
376739
|
ignoreBorder: true,
|
|
376740
376740
|
createQuadrilaterals: true
|
|
@@ -376762,8 +376762,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376762
376762
|
}
|
|
376763
376763
|
};
|
|
376764
376764
|
SquigglyAnnotationElement = class extends AnnotationElement {
|
|
376765
|
-
constructor(
|
|
376766
|
-
super(
|
|
376765
|
+
constructor(parameters7) {
|
|
376766
|
+
super(parameters7, {
|
|
376767
376767
|
isRenderable: true,
|
|
376768
376768
|
ignoreBorder: true,
|
|
376769
376769
|
createQuadrilaterals: true
|
|
@@ -376791,8 +376791,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376791
376791
|
}
|
|
376792
376792
|
};
|
|
376793
376793
|
StrikeOutAnnotationElement = class extends AnnotationElement {
|
|
376794
|
-
constructor(
|
|
376795
|
-
super(
|
|
376794
|
+
constructor(parameters7) {
|
|
376795
|
+
super(parameters7, {
|
|
376796
376796
|
isRenderable: true,
|
|
376797
376797
|
ignoreBorder: true,
|
|
376798
376798
|
createQuadrilaterals: true
|
|
@@ -376820,8 +376820,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376820
376820
|
}
|
|
376821
376821
|
};
|
|
376822
376822
|
StampAnnotationElement = class extends AnnotationElement {
|
|
376823
|
-
constructor(
|
|
376824
|
-
super(
|
|
376823
|
+
constructor(parameters7) {
|
|
376824
|
+
super(parameters7, {
|
|
376825
376825
|
isRenderable: true,
|
|
376826
376826
|
ignoreBorder: true
|
|
376827
376827
|
});
|
|
@@ -376840,8 +376840,8 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376840
376840
|
};
|
|
376841
376841
|
FileAttachmentAnnotationElement = class extends AnnotationElement {
|
|
376842
376842
|
#trigger = null;
|
|
376843
|
-
constructor(
|
|
376844
|
-
super(
|
|
376843
|
+
constructor(parameters7) {
|
|
376844
|
+
super(parameters7, {
|
|
376845
376845
|
isRenderable: true
|
|
376846
376846
|
});
|
|
376847
376847
|
const {
|
|
@@ -376914,9 +376914,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
376914
376914
|
#abortController = new AbortController();
|
|
376915
376915
|
#contentUrl = null;
|
|
376916
376916
|
#media = null;
|
|
376917
|
-
constructor(
|
|
376918
|
-
super(
|
|
376919
|
-
isRenderable: !!
|
|
376917
|
+
constructor(parameters7) {
|
|
376918
|
+
super(parameters7, {
|
|
376919
|
+
isRenderable: !!parameters7.data.richMedia
|
|
376920
376920
|
});
|
|
376921
376921
|
}
|
|
376922
376922
|
render() {
|
|
@@ -386505,8 +386505,8 @@ function IsDeepEqual2(left, right) {
|
|
|
386505
386505
|
function ArrayLiteral(elements) {
|
|
386506
386506
|
return `[${elements.join(", ")}]`;
|
|
386507
386507
|
}
|
|
386508
|
-
function ArrowFunction(
|
|
386509
|
-
return `((${
|
|
386508
|
+
function ArrowFunction(parameters7, body) {
|
|
386509
|
+
return `((${parameters7.join(", ")}) => ${body})`;
|
|
386510
386510
|
}
|
|
386511
386511
|
function Call(value2, arguments_) {
|
|
386512
386512
|
return `${value2}(${arguments_.join(", ")})`;
|
|
@@ -386797,8 +386797,8 @@ function IsSchema(value2) {
|
|
|
386797
386797
|
}
|
|
386798
386798
|
|
|
386799
386799
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/types/deferred.mjs
|
|
386800
|
-
function Deferred(action,
|
|
386801
|
-
return memory_exports.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters:
|
|
386800
|
+
function Deferred(action, parameters7, options) {
|
|
386801
|
+
return memory_exports.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters: parameters7, options }, {});
|
|
386802
386802
|
}
|
|
386803
386803
|
function IsDeferred(value2) {
|
|
386804
386804
|
return IsKind(value2, "Deferred");
|
|
@@ -386842,8 +386842,8 @@ function ArrayOptions(type) {
|
|
|
386842
386842
|
}
|
|
386843
386843
|
|
|
386844
386844
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/types/constructor.mjs
|
|
386845
|
-
function Constructor(
|
|
386846
|
-
return memory_exports.Create({ "~kind": "Constructor" }, { type: "constructor", parameters:
|
|
386845
|
+
function Constructor(parameters7, instanceType, options = {}) {
|
|
386846
|
+
return memory_exports.Create({ "~kind": "Constructor" }, { type: "constructor", parameters: parameters7, instanceType }, options);
|
|
386847
386847
|
}
|
|
386848
386848
|
function IsConstructor3(value2) {
|
|
386849
386849
|
return IsKind(value2, "Constructor");
|
|
@@ -386853,8 +386853,8 @@ function ConstructorOptions(type) {
|
|
|
386853
386853
|
}
|
|
386854
386854
|
|
|
386855
386855
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/types/function.mjs
|
|
386856
|
-
function _Function_(
|
|
386857
|
-
return memory_exports.Create({ ["~kind"]: "Function" }, { type: "function", parameters:
|
|
386856
|
+
function _Function_(parameters7, returnType, options = {}) {
|
|
386857
|
+
return memory_exports.Create({ ["~kind"]: "Function" }, { type: "function", parameters: parameters7, returnType }, options);
|
|
386858
386858
|
}
|
|
386859
386859
|
function IsFunction3(value2) {
|
|
386860
386860
|
return IsKind(value2, "Function");
|
|
@@ -386872,8 +386872,8 @@ function IsRef(value2) {
|
|
|
386872
386872
|
}
|
|
386873
386873
|
|
|
386874
386874
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/types/generic.mjs
|
|
386875
|
-
function Generic(
|
|
386876
|
-
return memory_exports.Create({ "~kind": "Generic" }, { type: "generic", parameters:
|
|
386875
|
+
function Generic(parameters7, expression) {
|
|
386876
|
+
return memory_exports.Create({ "~kind": "Generic" }, { type: "generic", parameters: parameters7, expression });
|
|
386877
386877
|
}
|
|
386878
386878
|
function IsGeneric(value2) {
|
|
386879
386879
|
return IsKind(value2, "Generic");
|
|
@@ -387938,8 +387938,8 @@ function IsVoid(value2) {
|
|
|
387938
387938
|
}
|
|
387939
387939
|
|
|
387940
387940
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/script/mapping.mjs
|
|
387941
|
-
function IntrinsicOrCall(ref,
|
|
387942
|
-
return guard_exports.IsEqual(ref, "Array") ? _Array_(
|
|
387941
|
+
function IntrinsicOrCall(ref, parameters7) {
|
|
387942
|
+
return guard_exports.IsEqual(ref, "Array") ? _Array_(parameters7[0]) : guard_exports.IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "Extract") ? ExtractDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "Index") ? IndexDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Omit") ? OmitDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "Parameters") ? ParametersDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Partial") ? PartialDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Pick") ? PickDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Record") ? RecordDeferred(parameters7[0], parameters7[1]) : guard_exports.IsEqual(ref, "Required") ? RequiredDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters7[0]) : guard_exports.IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters7[0]) : CallConstruct(Ref(ref), parameters7);
|
|
387943
387943
|
}
|
|
387944
387944
|
function Unreachable2() {
|
|
387945
387945
|
throw Error("Unreachable");
|
|
@@ -388336,11 +388336,11 @@ function InterfaceDeclarationHeritageMapping(input) {
|
|
|
388336
388336
|
return guard_exports.IsEqual(input.length, 2) ? input[1] : [];
|
|
388337
388337
|
}
|
|
388338
388338
|
function InterfaceDeclarationGenericMapping(input) {
|
|
388339
|
-
const
|
|
388339
|
+
const parameters7 = input[2];
|
|
388340
388340
|
const heritage = input[3];
|
|
388341
388341
|
const [properties, patternProperties] = input[4];
|
|
388342
388342
|
const options = guard_exports.IsEqual(guard_exports.Keys(patternProperties).length, 0) ? {} : { patternProperties };
|
|
388343
|
-
return { [input[1]]: Generic(
|
|
388343
|
+
return { [input[1]]: Generic(parameters7, InterfaceDeferred(heritage, properties, options)) };
|
|
388344
388344
|
}
|
|
388345
388345
|
function InterfaceDeclarationMapping(input) {
|
|
388346
388346
|
const heritage = input[2];
|
|
@@ -388994,8 +388994,8 @@ function ExtendsReturnType(inferred, left, right) {
|
|
|
388994
388994
|
}
|
|
388995
388995
|
|
|
388996
388996
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/extends/constructor.mjs
|
|
388997
|
-
function ExtendsConstructor(inferred,
|
|
388998
|
-
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor3(right) ? Match3(ExtendsParameters(inferred,
|
|
388997
|
+
function ExtendsConstructor(inferred, parameters7, returnType, right) {
|
|
388998
|
+
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor3(right) ? Match3(ExtendsParameters(inferred, parameters7, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
388999
388999
|
}
|
|
389000
389000
|
|
|
389001
389001
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/extends/dependent.mjs
|
|
@@ -389010,8 +389010,8 @@ function ExtendsEnum(inferred, left, right) {
|
|
|
389010
389010
|
}
|
|
389011
389011
|
|
|
389012
389012
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/extends/function.mjs
|
|
389013
|
-
function ExtendsFunction(inferred,
|
|
389014
|
-
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction3(right) ? Match3(ExtendsParameters(inferred,
|
|
389013
|
+
function ExtendsFunction(inferred, parameters7, returnType, right) {
|
|
389014
|
+
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction3(right) ? Match3(ExtendsParameters(inferred, parameters7, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
389015
389015
|
}
|
|
389016
389016
|
|
|
389017
389017
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/extends/integer.mjs
|
|
@@ -389444,8 +389444,8 @@ function CollectDistributionNames(expression, result = []) {
|
|
|
389444
389444
|
IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Conditional") ? IsRef(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && guard_exports.IsEqual(expression.parameters[1].action, "KeyOf") && IsRef(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result
|
|
389445
389445
|
);
|
|
389446
389446
|
}
|
|
389447
|
-
function BuildDistributionArray(
|
|
389448
|
-
return
|
|
389447
|
+
function BuildDistributionArray(parameters7, names3) {
|
|
389448
|
+
return parameters7.reduce((result, left) => [...result, names3.includes(left.name)], []);
|
|
389449
389449
|
}
|
|
389450
389450
|
function ZipDistributionArray(arguments_, distributionArray, result = []) {
|
|
389451
389451
|
return guard_exports.ShiftLeft(arguments_, (argumentLeft, argumentRight) => guard_exports.ShiftLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
|
|
@@ -389466,9 +389466,9 @@ function Distribute2(zipped) {
|
|
|
389466
389466
|
return guard_exports.IsEqual(left[0], true) ? Cross(result, Expand(left[1])) : Cross(result, [left[1]]);
|
|
389467
389467
|
}, [[]]);
|
|
389468
389468
|
}
|
|
389469
|
-
function DistributeArguments(
|
|
389469
|
+
function DistributeArguments(parameters7, arguments_, expression) {
|
|
389470
389470
|
const distributionNames = CollectDistributionNames(expression);
|
|
389471
|
-
const distributionArray = BuildDistributionArray(
|
|
389471
|
+
const distributionArray = BuildDistributionArray(parameters7, distributionNames);
|
|
389472
389472
|
const zippedArguments = ZipDistributionArray(arguments_, distributionArray);
|
|
389473
389473
|
return IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
|
|
389474
389474
|
}
|
|
@@ -389480,8 +389480,8 @@ function FromNotResolvable() {
|
|
|
389480
389480
|
function FromNotGeneric() {
|
|
389481
389481
|
return ["(not-generic)", Never()];
|
|
389482
389482
|
}
|
|
389483
|
-
function FromGeneric(name,
|
|
389484
|
-
return [name, Generic(
|
|
389483
|
+
function FromGeneric(name, parameters7, expression) {
|
|
389484
|
+
return [name, Generic(parameters7, expression)];
|
|
389485
389485
|
}
|
|
389486
389486
|
function FromRef4(context2, ref, arguments_) {
|
|
389487
389487
|
return ref in context2 ? FromType6(context2, ref, context2[ref], arguments_) : FromNotResolvable();
|
|
@@ -389510,11 +389510,11 @@ function BindArguments(context2, state3, parameterLeft, parameterRight, argument
|
|
|
389510
389510
|
const instantiatedEquals = InstantiateType(context2, state3, parameterLeft.equals);
|
|
389511
389511
|
return guard_exports.ShiftLeft(arguments_, (left, right) => BindParameters(BindArgument(context2, state3, parameterLeft["name"], instantiatedExtends, left), state3, parameterRight, right), () => BindParameters(BindArgument(context2, state3, parameterLeft["name"], instantiatedExtends, instantiatedEquals), state3, parameterRight, []));
|
|
389512
389512
|
}
|
|
389513
|
-
function BindParameters(context2, state3,
|
|
389514
|
-
return guard_exports.ShiftLeft(
|
|
389513
|
+
function BindParameters(context2, state3, parameters7, arguments_) {
|
|
389514
|
+
return guard_exports.ShiftLeft(parameters7, (left, right) => BindArguments(context2, state3, left, right, arguments_), () => context2);
|
|
389515
389515
|
}
|
|
389516
|
-
function ResolveArgumentsContext(context2, state3,
|
|
389517
|
-
return BindParameters(context2, state3,
|
|
389516
|
+
function ResolveArgumentsContext(context2, state3, parameters7, arguments_) {
|
|
389517
|
+
return BindParameters(context2, state3, parameters7, arguments_);
|
|
389518
389518
|
}
|
|
389519
389519
|
|
|
389520
389520
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/engine/call/instantiate.mjs
|
|
@@ -389526,17 +389526,17 @@ function IsTailCall(state3, name) {
|
|
|
389526
389526
|
const result = guard_exports.IsEqual(Peek(state3), name);
|
|
389527
389527
|
return result;
|
|
389528
389528
|
}
|
|
389529
|
-
function CallDispatch(context2, state3, target,
|
|
389530
|
-
const argumentsContext = ResolveArgumentsContext(context2, state3,
|
|
389529
|
+
function CallDispatch(context2, state3, target, parameters7, expression, arguments_) {
|
|
389530
|
+
const argumentsContext = ResolveArgumentsContext(context2, state3, parameters7, arguments_);
|
|
389531
389531
|
const returnType = InstantiateType(argumentsContext, State([...state3["callstack"], target["$ref"]], state3["visited"]), expression);
|
|
389532
389532
|
return InstantiateType(argumentsContext, State([], []), returnType);
|
|
389533
389533
|
}
|
|
389534
|
-
function CallDistributed(context2, state3, target,
|
|
389535
|
-
return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch(context2, state3, target,
|
|
389534
|
+
function CallDistributed(context2, state3, target, parameters7, expression, distributedArguments) {
|
|
389535
|
+
return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch(context2, state3, target, parameters7, expression, arguments_)], []);
|
|
389536
389536
|
}
|
|
389537
|
-
function CallImmediate(context2, state3, target,
|
|
389538
|
-
const distributedArguments = DistributeArguments(
|
|
389539
|
-
const returnTypes = CallDistributed(context2, state3, target,
|
|
389537
|
+
function CallImmediate(context2, state3, target, parameters7, expression, arguments_) {
|
|
389538
|
+
const distributedArguments = DistributeArguments(parameters7, arguments_, expression);
|
|
389539
|
+
const returnTypes = CallDistributed(context2, state3, target, parameters7, expression, distributedArguments);
|
|
389540
389540
|
const result = guard_exports.IsEqual(returnTypes.length, 1) ? returnTypes[0] : EvaluateUnion(returnTypes);
|
|
389541
389541
|
return result;
|
|
389542
389542
|
}
|
|
@@ -389704,8 +389704,8 @@ function ConstructorParameters(type, options = {}) {
|
|
|
389704
389704
|
|
|
389705
389705
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
|
|
389706
389706
|
function ConstructorParametersOperation(type) {
|
|
389707
|
-
const
|
|
389708
|
-
const instantiatedParameters = InstantiateElements({}, State([], []),
|
|
389707
|
+
const parameters7 = IsConstructor3(type) ? type["parameters"] : [];
|
|
389708
|
+
const instantiatedParameters = InstantiateElements({}, State([], []), parameters7);
|
|
389709
389709
|
const result = Tuple(instantiatedParameters);
|
|
389710
389710
|
return result;
|
|
389711
389711
|
}
|
|
@@ -390312,8 +390312,8 @@ function Parameters(type, options = {}) {
|
|
|
390312
390312
|
|
|
390313
390313
|
// ../node_modules/@earendil-works/pi-coding-agent/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
|
|
390314
390314
|
function ParametersOperation(type) {
|
|
390315
|
-
const
|
|
390316
|
-
const instantiatedParameters = InstantiateElements({}, State([], []),
|
|
390315
|
+
const parameters7 = IsFunction3(type) ? type["parameters"] : [];
|
|
390316
|
+
const instantiatedParameters = InstantiateElements({}, State([], []), parameters7);
|
|
390317
390317
|
const result = Tuple(instantiatedParameters);
|
|
390318
390318
|
return result;
|
|
390319
390319
|
}
|
|
@@ -390636,12 +390636,12 @@ function WithModifiers(type, instantiatedType) {
|
|
|
390636
390636
|
const withImmutable = IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly;
|
|
390637
390637
|
return withImmutable;
|
|
390638
390638
|
}
|
|
390639
|
-
function InstantiateDeferred(context2, state3, action,
|
|
390639
|
+
function InstantiateDeferred(context2, state3, action, parameters7, options) {
|
|
390640
390640
|
return (
|
|
390641
390641
|
// Modifiers
|
|
390642
|
-
guard_exports.IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context2, state3,
|
|
390642
|
+
guard_exports.IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context2, state3, parameters7[0], options) : (
|
|
390643
390643
|
// Actions
|
|
390644
|
-
guard_exports.IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context2, state3,
|
|
390644
|
+
guard_exports.IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Conditional") ? ConditionalInstantiate(context2, state3, parameters7[0], parameters7[1], parameters7[2], parameters7[3], options) : guard_exports.IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Evaluate") ? EvaluateInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Exclude") ? ExcludeInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "Extract") ? ExtractInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "Index") ? IndexInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Interface") ? InterfaceInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "KeyOf") ? KeyOfInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Lowercase") ? LowercaseInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Mapped") ? MappedInstantiate(context2, state3, parameters7[0], parameters7[1], parameters7[2], parameters7[3], options) : guard_exports.IsEqual(action, "Module") ? ModuleInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "NonNullable") ? NonNullableInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Pick") ? PickInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "Parameters") ? ParametersInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Partial") ? PartialInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Omit") ? OmitInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Record") ? RecordInstantiate(context2, state3, parameters7[0], parameters7[1], options) : guard_exports.IsEqual(action, "Required") ? RequiredInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "Uppercase") ? UppercaseInstantiate(context2, state3, parameters7[0], options) : guard_exports.IsEqual(action, "With") ? WithInstantiate(context2, state3, parameters7[0], parameters7[1]) : Deferred(action, parameters7, options)
|
|
390645
390645
|
)
|
|
390646
390646
|
);
|
|
390647
390647
|
}
|
|
@@ -466579,8 +466579,8 @@ function IsDeepEqual4(left, right) {
|
|
|
466579
466579
|
function ArrayLiteral2(elements) {
|
|
466580
466580
|
return `[${elements.join(", ")}]`;
|
|
466581
466581
|
}
|
|
466582
|
-
function ArrowFunction2(
|
|
466583
|
-
return `((${
|
|
466582
|
+
function ArrowFunction2(parameters7, body) {
|
|
466583
|
+
return `((${parameters7.join(", ")}) => ${body})`;
|
|
466584
466584
|
}
|
|
466585
466585
|
function Call3(value2, arguments_) {
|
|
466586
466586
|
return `${value2}(${arguments_.join(", ")})`;
|
|
@@ -470081,8 +470081,8 @@ function IsSchema4(value2) {
|
|
|
470081
470081
|
}
|
|
470082
470082
|
|
|
470083
470083
|
// ../node_modules/typebox/build/type/types/deferred.mjs
|
|
470084
|
-
function Deferred2(action,
|
|
470085
|
-
return memory_exports2.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters:
|
|
470084
|
+
function Deferred2(action, parameters7, options) {
|
|
470085
|
+
return memory_exports2.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters: parameters7, options }, {});
|
|
470086
470086
|
}
|
|
470087
470087
|
function IsDeferred2(value2) {
|
|
470088
470088
|
return IsKind2(value2, "Deferred");
|
|
@@ -470126,8 +470126,8 @@ function ArrayOptions2(type) {
|
|
|
470126
470126
|
}
|
|
470127
470127
|
|
|
470128
470128
|
// ../node_modules/typebox/build/type/types/constructor.mjs
|
|
470129
|
-
function Constructor2(
|
|
470130
|
-
return memory_exports2.Create({ "~kind": "Constructor" }, { type: "constructor", parameters:
|
|
470129
|
+
function Constructor2(parameters7, instanceType, options = {}) {
|
|
470130
|
+
return memory_exports2.Create({ "~kind": "Constructor" }, { type: "constructor", parameters: parameters7, instanceType }, options);
|
|
470131
470131
|
}
|
|
470132
470132
|
function IsConstructor6(value2) {
|
|
470133
470133
|
return IsKind2(value2, "Constructor");
|
|
@@ -470137,8 +470137,8 @@ function ConstructorOptions2(type) {
|
|
|
470137
470137
|
}
|
|
470138
470138
|
|
|
470139
470139
|
// ../node_modules/typebox/build/type/types/function.mjs
|
|
470140
|
-
function _Function_3(
|
|
470141
|
-
return memory_exports2.Create({ ["~kind"]: "Function" }, { type: "function", parameters:
|
|
470140
|
+
function _Function_3(parameters7, returnType, options = {}) {
|
|
470141
|
+
return memory_exports2.Create({ ["~kind"]: "Function" }, { type: "function", parameters: parameters7, returnType }, options);
|
|
470142
470142
|
}
|
|
470143
470143
|
function IsFunction6(value2) {
|
|
470144
470144
|
return IsKind2(value2, "Function");
|
|
@@ -470156,8 +470156,8 @@ function IsRef4(value2) {
|
|
|
470156
470156
|
}
|
|
470157
470157
|
|
|
470158
470158
|
// ../node_modules/typebox/build/type/types/generic.mjs
|
|
470159
|
-
function Generic2(
|
|
470160
|
-
return memory_exports2.Create({ "~kind": "Generic" }, { type: "generic", parameters:
|
|
470159
|
+
function Generic2(parameters7, expression) {
|
|
470160
|
+
return memory_exports2.Create({ "~kind": "Generic" }, { type: "generic", parameters: parameters7, expression });
|
|
470161
470161
|
}
|
|
470162
470162
|
function IsGeneric2(value2) {
|
|
470163
470163
|
return IsKind2(value2, "Generic");
|
|
@@ -470956,8 +470956,8 @@ function IsVoid2(value2) {
|
|
|
470956
470956
|
}
|
|
470957
470957
|
|
|
470958
470958
|
// ../node_modules/typebox/build/type/script/mapping.mjs
|
|
470959
|
-
function IntrinsicOrCall2(ref,
|
|
470960
|
-
return guard_exports2.IsEqual(ref, "Array") ? _Array_2(
|
|
470959
|
+
function IntrinsicOrCall2(ref, parameters7) {
|
|
470960
|
+
return guard_exports2.IsEqual(ref, "Array") ? _Array_2(parameters7[0]) : guard_exports2.IsEqual(ref, "Capitalize") ? CapitalizeDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Evaluate") ? EvaluateDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Exclude") ? ExcludeDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "Extract") ? ExtractDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "Index") ? IndexDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "InstanceType") ? InstanceTypeDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Lowercase") ? LowercaseDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "NonNullable") ? NonNullableDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Omit") ? OmitDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "Parameters") ? ParametersDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Partial") ? PartialDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Pick") ? PickDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "KeyOf") ? KeyOfDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Record") ? RecordDeferred2(parameters7[0], parameters7[1]) : guard_exports2.IsEqual(ref, "Required") ? RequiredDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "ReturnType") ? ReturnTypeDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred2(parameters7[0]) : guard_exports2.IsEqual(ref, "Uppercase") ? UppercaseDeferred2(parameters7[0]) : CallConstruct2(Ref4(ref), parameters7);
|
|
470961
470961
|
}
|
|
470962
470962
|
function Unreachable4() {
|
|
470963
470963
|
throw Error("Unreachable");
|
|
@@ -471354,11 +471354,11 @@ function InterfaceDeclarationHeritageMapping2(input) {
|
|
|
471354
471354
|
return guard_exports2.IsEqual(input.length, 2) ? input[1] : [];
|
|
471355
471355
|
}
|
|
471356
471356
|
function InterfaceDeclarationGenericMapping2(input) {
|
|
471357
|
-
const
|
|
471357
|
+
const parameters7 = input[2];
|
|
471358
471358
|
const heritage = input[3];
|
|
471359
471359
|
const [properties, patternProperties] = input[4];
|
|
471360
471360
|
const options = guard_exports2.IsEqual(guard_exports2.Keys(patternProperties).length, 0) ? {} : { patternProperties };
|
|
471361
|
-
return { [input[1]]: Generic2(
|
|
471361
|
+
return { [input[1]]: Generic2(parameters7, InterfaceDeferred2(heritage, properties, options)) };
|
|
471362
471362
|
}
|
|
471363
471363
|
function InterfaceDeclarationMapping2(input) {
|
|
471364
471364
|
const heritage = input[2];
|
|
@@ -472012,8 +472012,8 @@ function ExtendsReturnType2(inferred, left, right) {
|
|
|
472012
472012
|
}
|
|
472013
472013
|
|
|
472014
472014
|
// ../node_modules/typebox/build/type/extends/constructor.mjs
|
|
472015
|
-
function ExtendsConstructor2(inferred,
|
|
472016
|
-
return IsAny2(right) ? ExtendsTrue2(inferred) : IsUnknown2(right) ? ExtendsTrue2(inferred) : IsConstructor6(right) ? Match8(ExtendsParameters2(inferred,
|
|
472015
|
+
function ExtendsConstructor2(inferred, parameters7, returnType, right) {
|
|
472016
|
+
return IsAny2(right) ? ExtendsTrue2(inferred) : IsUnknown2(right) ? ExtendsTrue2(inferred) : IsConstructor6(right) ? Match8(ExtendsParameters2(inferred, parameters7, right["parameters"]), (inferred2) => ExtendsReturnType2(inferred2, returnType, right["instanceType"]), () => ExtendsFalse2()) : ExtendsFalse2();
|
|
472017
472017
|
}
|
|
472018
472018
|
|
|
472019
472019
|
// ../node_modules/typebox/build/type/extends/dependent.mjs
|
|
@@ -472028,8 +472028,8 @@ function ExtendsEnum2(inferred, left, right) {
|
|
|
472028
472028
|
}
|
|
472029
472029
|
|
|
472030
472030
|
// ../node_modules/typebox/build/type/extends/function.mjs
|
|
472031
|
-
function ExtendsFunction2(inferred,
|
|
472032
|
-
return IsAny2(right) ? ExtendsTrue2(inferred) : IsUnknown2(right) ? ExtendsTrue2(inferred) : IsFunction6(right) ? Match8(ExtendsParameters2(inferred,
|
|
472031
|
+
function ExtendsFunction2(inferred, parameters7, returnType, right) {
|
|
472032
|
+
return IsAny2(right) ? ExtendsTrue2(inferred) : IsUnknown2(right) ? ExtendsTrue2(inferred) : IsFunction6(right) ? Match8(ExtendsParameters2(inferred, parameters7, right["parameters"]), (inferred2) => ExtendsReturnType2(inferred2, returnType, right["returnType"]), () => ExtendsFalse2()) : ExtendsFalse2();
|
|
472033
472033
|
}
|
|
472034
472034
|
|
|
472035
472035
|
// ../node_modules/typebox/build/type/extends/integer.mjs
|
|
@@ -472462,8 +472462,8 @@ function CollectDistributionNames2(expression, result = []) {
|
|
|
472462
472462
|
IsDeferred2(expression) && guard_exports2.IsEqual(expression.action, "Conditional") ? IsRef4(expression.parameters[0]) ? CollectDistributionNames2(expression.parameters[2], CollectDistributionNames2(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames2(expression.parameters[2], CollectDistributionNames2(expression.parameters[3], result)) : IsDeferred2(expression) && guard_exports2.IsEqual(expression.action, "Mapped") ? IsDeferred2(expression.parameters[1]) && guard_exports2.IsEqual(expression.parameters[1].action, "KeyOf") && IsRef4(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result
|
|
472463
472463
|
);
|
|
472464
472464
|
}
|
|
472465
|
-
function BuildDistributionArray2(
|
|
472466
|
-
return
|
|
472465
|
+
function BuildDistributionArray2(parameters7, names3) {
|
|
472466
|
+
return parameters7.reduce((result, left) => [...result, names3.includes(left.name)], []);
|
|
472467
472467
|
}
|
|
472468
472468
|
function ZipDistributionArray2(arguments_, distributionArray, result = []) {
|
|
472469
472469
|
return guard_exports2.ShiftLeft(arguments_, (argumentLeft, argumentRight) => guard_exports2.ShiftLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray2(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
|
|
@@ -472484,9 +472484,9 @@ function Distribute4(zipped) {
|
|
|
472484
472484
|
return guard_exports2.IsEqual(left[0], true) ? Cross2(result, Expand2(left[1])) : Cross2(result, [left[1]]);
|
|
472485
472485
|
}, [[]]);
|
|
472486
472486
|
}
|
|
472487
|
-
function DistributeArguments2(
|
|
472487
|
+
function DistributeArguments2(parameters7, arguments_, expression) {
|
|
472488
472488
|
const distributionNames = CollectDistributionNames2(expression);
|
|
472489
|
-
const distributionArray = BuildDistributionArray2(
|
|
472489
|
+
const distributionArray = BuildDistributionArray2(parameters7, distributionNames);
|
|
472490
472490
|
const zippedArguments = ZipDistributionArray2(arguments_, distributionArray);
|
|
472491
472491
|
return IsDeferred2(expression) && guard_exports2.IsEqual(expression.action, "Conditional") ? Distribute4(zippedArguments) : IsDeferred2(expression) && guard_exports2.IsEqual(expression.action, "Mapped") ? Distribute4(zippedArguments) : [arguments_];
|
|
472492
472492
|
}
|
|
@@ -472498,8 +472498,8 @@ function FromNotResolvable2() {
|
|
|
472498
472498
|
function FromNotGeneric2() {
|
|
472499
472499
|
return ["(not-generic)", Never2()];
|
|
472500
472500
|
}
|
|
472501
|
-
function FromGeneric2(name,
|
|
472502
|
-
return [name, Generic2(
|
|
472501
|
+
function FromGeneric2(name, parameters7, expression) {
|
|
472502
|
+
return [name, Generic2(parameters7, expression)];
|
|
472503
472503
|
}
|
|
472504
472504
|
function FromRef15(context2, ref, arguments_) {
|
|
472505
472505
|
return ref in context2 ? FromType32(context2, ref, context2[ref], arguments_) : FromNotResolvable2();
|
|
@@ -472528,11 +472528,11 @@ function BindArguments2(context2, state3, parameterLeft, parameterRight, argumen
|
|
|
472528
472528
|
const instantiatedEquals = InstantiateType2(context2, state3, parameterLeft.equals);
|
|
472529
472529
|
return guard_exports2.ShiftLeft(arguments_, (left, right) => BindParameters2(BindArgument2(context2, state3, parameterLeft["name"], instantiatedExtends, left), state3, parameterRight, right), () => BindParameters2(BindArgument2(context2, state3, parameterLeft["name"], instantiatedExtends, instantiatedEquals), state3, parameterRight, []));
|
|
472530
472530
|
}
|
|
472531
|
-
function BindParameters2(context2, state3,
|
|
472532
|
-
return guard_exports2.ShiftLeft(
|
|
472531
|
+
function BindParameters2(context2, state3, parameters7, arguments_) {
|
|
472532
|
+
return guard_exports2.ShiftLeft(parameters7, (left, right) => BindArguments2(context2, state3, left, right, arguments_), () => context2);
|
|
472533
472533
|
}
|
|
472534
|
-
function ResolveArgumentsContext2(context2, state3,
|
|
472535
|
-
return BindParameters2(context2, state3,
|
|
472534
|
+
function ResolveArgumentsContext2(context2, state3, parameters7, arguments_) {
|
|
472535
|
+
return BindParameters2(context2, state3, parameters7, arguments_);
|
|
472536
472536
|
}
|
|
472537
472537
|
|
|
472538
472538
|
// ../node_modules/typebox/build/type/engine/call/instantiate.mjs
|
|
@@ -472544,17 +472544,17 @@ function IsTailCall2(state3, name) {
|
|
|
472544
472544
|
const result = guard_exports2.IsEqual(Peek2(state3), name);
|
|
472545
472545
|
return result;
|
|
472546
472546
|
}
|
|
472547
|
-
function CallDispatch2(context2, state3, target,
|
|
472548
|
-
const argumentsContext = ResolveArgumentsContext2(context2, state3,
|
|
472547
|
+
function CallDispatch2(context2, state3, target, parameters7, expression, arguments_) {
|
|
472548
|
+
const argumentsContext = ResolveArgumentsContext2(context2, state3, parameters7, arguments_);
|
|
472549
472549
|
const returnType = InstantiateType2(argumentsContext, State2([...state3["callstack"], target["$ref"]], state3["visited"]), expression);
|
|
472550
472550
|
return InstantiateType2(argumentsContext, State2([], []), returnType);
|
|
472551
472551
|
}
|
|
472552
|
-
function CallDistributed2(context2, state3, target,
|
|
472553
|
-
return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch2(context2, state3, target,
|
|
472552
|
+
function CallDistributed2(context2, state3, target, parameters7, expression, distributedArguments) {
|
|
472553
|
+
return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch2(context2, state3, target, parameters7, expression, arguments_)], []);
|
|
472554
472554
|
}
|
|
472555
|
-
function CallImmediate2(context2, state3, target,
|
|
472556
|
-
const distributedArguments = DistributeArguments2(
|
|
472557
|
-
const returnTypes = CallDistributed2(context2, state3, target,
|
|
472555
|
+
function CallImmediate2(context2, state3, target, parameters7, expression, arguments_) {
|
|
472556
|
+
const distributedArguments = DistributeArguments2(parameters7, arguments_, expression);
|
|
472557
|
+
const returnTypes = CallDistributed2(context2, state3, target, parameters7, expression, distributedArguments);
|
|
472558
472558
|
const result = guard_exports2.IsEqual(returnTypes.length, 1) ? returnTypes[0] : EvaluateUnion2(returnTypes);
|
|
472559
472559
|
return result;
|
|
472560
472560
|
}
|
|
@@ -472722,8 +472722,8 @@ function ConstructorParameters2(type, options = {}) {
|
|
|
472722
472722
|
|
|
472723
472723
|
// ../node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
|
|
472724
472724
|
function ConstructorParametersOperation2(type) {
|
|
472725
|
-
const
|
|
472726
|
-
const instantiatedParameters = InstantiateElements2({}, State2([], []),
|
|
472725
|
+
const parameters7 = IsConstructor6(type) ? type["parameters"] : [];
|
|
472726
|
+
const instantiatedParameters = InstantiateElements2({}, State2([], []), parameters7);
|
|
472727
472727
|
const result = Tuple2(instantiatedParameters);
|
|
472728
472728
|
return result;
|
|
472729
472729
|
}
|
|
@@ -473330,8 +473330,8 @@ function Parameters2(type, options = {}) {
|
|
|
473330
473330
|
|
|
473331
473331
|
// ../node_modules/typebox/build/type/engine/parameters/instantiate.mjs
|
|
473332
473332
|
function ParametersOperation2(type) {
|
|
473333
|
-
const
|
|
473334
|
-
const instantiatedParameters = InstantiateElements2({}, State2([], []),
|
|
473333
|
+
const parameters7 = IsFunction6(type) ? type["parameters"] : [];
|
|
473334
|
+
const instantiatedParameters = InstantiateElements2({}, State2([], []), parameters7);
|
|
473335
473335
|
const result = Tuple2(instantiatedParameters);
|
|
473336
473336
|
return result;
|
|
473337
473337
|
}
|
|
@@ -473654,12 +473654,12 @@ function WithModifiers2(type, instantiatedType) {
|
|
|
473654
473654
|
const withImmutable = IsImmutable2(type) ? AddImmutableAction2(withReadonly, {}) : withReadonly;
|
|
473655
473655
|
return withImmutable;
|
|
473656
473656
|
}
|
|
473657
|
-
function InstantiateDeferred2(context2, state3, action,
|
|
473657
|
+
function InstantiateDeferred2(context2, state3, action, parameters7, options) {
|
|
473658
473658
|
return (
|
|
473659
473659
|
// Modifiers
|
|
473660
|
-
guard_exports2.IsEqual(action, "AddImmutable") ? AddImmutableInstantiate2(context2, state3,
|
|
473660
|
+
guard_exports2.IsEqual(action, "AddImmutable") ? AddImmutableInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "AddOptional") ? AddOptionalInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate2(context2, state3, parameters7[0], options) : (
|
|
473661
473661
|
// Actions
|
|
473662
|
-
guard_exports2.IsEqual(action, "Capitalize") ? CapitalizeInstantiate2(context2, state3,
|
|
473662
|
+
guard_exports2.IsEqual(action, "Capitalize") ? CapitalizeInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Conditional") ? ConditionalInstantiate2(context2, state3, parameters7[0], parameters7[1], parameters7[2], parameters7[3], options) : guard_exports2.IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Evaluate") ? EvaluateInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Exclude") ? ExcludeInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "Extract") ? ExtractInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "Index") ? IndexInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "InstanceType") ? InstanceTypeInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Interface") ? InterfaceInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "KeyOf") ? KeyOfInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Lowercase") ? LowercaseInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Mapped") ? MappedInstantiate2(context2, state3, parameters7[0], parameters7[1], parameters7[2], parameters7[3], options) : guard_exports2.IsEqual(action, "Module") ? ModuleInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "NonNullable") ? NonNullableInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Pick") ? PickInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "Parameters") ? ParametersInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Partial") ? PartialInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Omit") ? OmitInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Record") ? RecordInstantiate2(context2, state3, parameters7[0], parameters7[1], options) : guard_exports2.IsEqual(action, "Required") ? RequiredInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "ReturnType") ? ReturnTypeInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "Uppercase") ? UppercaseInstantiate2(context2, state3, parameters7[0], options) : guard_exports2.IsEqual(action, "With") ? WithInstantiate2(context2, state3, parameters7[0], parameters7[1]) : Deferred2(action, parameters7, options)
|
|
473663
473663
|
)
|
|
473664
473664
|
);
|
|
473665
473665
|
}
|
|
@@ -475412,10 +475412,15 @@ var WORK_PLAN_LIMITS = {
|
|
|
475412
475412
|
resourcesPerTask: 50,
|
|
475413
475413
|
uri: 2e3
|
|
475414
475414
|
};
|
|
475415
|
+
var WORK_PLAN_CREATE_MAX_DEPTH = 2;
|
|
475415
475416
|
function object2(value2) {
|
|
475416
475417
|
if (typeof value2 !== "object" || value2 === null || Array.isArray(value2)) throw new Error("must be an object");
|
|
475417
475418
|
return value2;
|
|
475418
475419
|
}
|
|
475420
|
+
function onlyFields(raw, allowed, field) {
|
|
475421
|
+
const unexpected = Object.keys(raw).find((key) => !allowed.includes(key));
|
|
475422
|
+
if (unexpected !== void 0) throw new Error(`${field}.${unexpected} is not accepted`);
|
|
475423
|
+
}
|
|
475419
475424
|
function text(value2, field, max) {
|
|
475420
475425
|
if (typeof value2 !== "string" || value2.trim() === "") throw new Error(`${field} must be a non-empty string`);
|
|
475421
475426
|
if (value2.length > max) throw new Error(`${field} is longer than ${max} characters`);
|
|
@@ -475517,11 +475522,85 @@ function validateWorkPlan(value2) {
|
|
|
475517
475522
|
updatedAt
|
|
475518
475523
|
};
|
|
475519
475524
|
}
|
|
475525
|
+
function normalizeWorkPlanDraft(value2, options = {}) {
|
|
475526
|
+
const raw = object2(value2);
|
|
475527
|
+
onlyFields(raw, ["title", "tasks"], "plan");
|
|
475528
|
+
if (!Array.isArray(raw.tasks)) throw new Error("tasks must be an array");
|
|
475529
|
+
const usedIds = /* @__PURE__ */ new Set();
|
|
475530
|
+
const generate2 = () => {
|
|
475531
|
+
for (let attempt2 = 0; attempt2 < 100; attempt2 += 1) {
|
|
475532
|
+
const candidate = text(
|
|
475533
|
+
options.nextId?.() ?? globalThis.crypto.randomUUID(),
|
|
475534
|
+
"generated id",
|
|
475535
|
+
WORK_PLAN_LIMITS.title
|
|
475536
|
+
);
|
|
475537
|
+
if (!usedIds.has(candidate)) {
|
|
475538
|
+
usedIds.add(candidate);
|
|
475539
|
+
return candidate;
|
|
475540
|
+
}
|
|
475541
|
+
}
|
|
475542
|
+
throw new Error("could not generate a unique Work Plan identifier");
|
|
475543
|
+
};
|
|
475544
|
+
const claim = (value3, field) => {
|
|
475545
|
+
const id = text(value3, field, WORK_PLAN_LIMITS.title);
|
|
475546
|
+
if (usedIds.has(id)) throw new Error(`duplicate task id: ${id}`);
|
|
475547
|
+
usedIds.add(id);
|
|
475548
|
+
return id;
|
|
475549
|
+
};
|
|
475550
|
+
const planId = generate2();
|
|
475551
|
+
const tasks = [];
|
|
475552
|
+
const visit = (items, depth, parentId) => {
|
|
475553
|
+
if (depth > WORK_PLAN_CREATE_MAX_DEPTH) {
|
|
475554
|
+
throw new Error(`creation tasks may be nested at most ${WORK_PLAN_CREATE_MAX_DEPTH} levels`);
|
|
475555
|
+
}
|
|
475556
|
+
if (items.length > WORK_PLAN_LIMITS.tasks) {
|
|
475557
|
+
throw new Error(`a task collection may contain at most ${WORK_PLAN_LIMITS.tasks} tasks`);
|
|
475558
|
+
}
|
|
475559
|
+
for (const [index5, item] of items.entries()) {
|
|
475560
|
+
const draft = object2(item);
|
|
475561
|
+
onlyFields(draft, ["id", "title", "description", "status", "statusReason", "resources", "subtasks"], `tasks[${index5}]`);
|
|
475562
|
+
const status = draft.status ?? "todo";
|
|
475563
|
+
if (typeof status !== "string" || !WORK_PLAN_STATUSES.includes(status)) {
|
|
475564
|
+
throw new Error(`status must be one of ${WORK_PLAN_STATUSES.join(", ")}`);
|
|
475565
|
+
}
|
|
475566
|
+
const id = draft.id === void 0 ? generate2() : claim(draft.id, `tasks[${index5}].id`);
|
|
475567
|
+
tasks.push({
|
|
475568
|
+
id,
|
|
475569
|
+
title: text(draft.title, "task.title", WORK_PLAN_LIMITS.title),
|
|
475570
|
+
...draft.description === void 0 ? {} : { description: text(draft.description, "task.description", WORK_PLAN_LIMITS.description) },
|
|
475571
|
+
status,
|
|
475572
|
+
...parentId === void 0 ? {} : { parentId },
|
|
475573
|
+
dependsOn: [],
|
|
475574
|
+
resources: draft.resources === void 0 ? [] : resources(draft.resources),
|
|
475575
|
+
...draft.statusReason === void 0 ? {} : { statusReason: text(draft.statusReason, "task.statusReason", WORK_PLAN_LIMITS.reason) }
|
|
475576
|
+
});
|
|
475577
|
+
if (draft.subtasks !== void 0) {
|
|
475578
|
+
if (!Array.isArray(draft.subtasks)) throw new Error(`tasks[${index5}].subtasks must be an array`);
|
|
475579
|
+
visit(draft.subtasks, depth + 1, id);
|
|
475580
|
+
}
|
|
475581
|
+
if (tasks.length > WORK_PLAN_LIMITS.tasks) {
|
|
475582
|
+
throw new Error(`a work plan may contain at most ${WORK_PLAN_LIMITS.tasks} tasks`);
|
|
475583
|
+
}
|
|
475584
|
+
}
|
|
475585
|
+
};
|
|
475586
|
+
visit(raw.tasks, 1);
|
|
475587
|
+
return validateWorkPlan({
|
|
475588
|
+
version: 1,
|
|
475589
|
+
id: planId,
|
|
475590
|
+
title: text(raw.title, "plan.title", WORK_PLAN_LIMITS.title),
|
|
475591
|
+
tasks,
|
|
475592
|
+
updatedAt: options.now?.() ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
475593
|
+
});
|
|
475594
|
+
}
|
|
475520
475595
|
function mutateWorkPlan(current, mutation) {
|
|
475521
475596
|
if (mutation.action === "get") return current;
|
|
475522
475597
|
if (mutation.action === "clear") return null;
|
|
475598
|
+
if (mutation.action === "create") {
|
|
475599
|
+
if (current !== null) throw new Error("this session already has a Work Plan; use action=replace to overwrite it");
|
|
475600
|
+
return normalizeWorkPlanDraft({ title: mutation.title, tasks: mutation.tasks });
|
|
475601
|
+
}
|
|
475523
475602
|
if (mutation.action === "replace") return validateWorkPlan(mutation.plan);
|
|
475524
|
-
if (current === null) throw new Error("create a plan with action=replace before mutating tasks");
|
|
475603
|
+
if (current === null) throw new Error("create a plan with action=create or action=replace before mutating tasks");
|
|
475525
475604
|
let tasks = current.tasks.map((item) => ({ ...item, dependsOn: [...item.dependsOn], resources: item.resources.map((resource) => ({ ...resource })) }));
|
|
475526
475605
|
const index5 = "taskId" in mutation ? tasks.findIndex((item) => item.id === mutation.taskId) : -1;
|
|
475527
475606
|
if ("taskId" in mutation && index5 < 0) throw new Error(`unknown task: ${mutation.taskId}`);
|
|
@@ -484332,38 +484411,91 @@ async function deleteWorkPlan(sessionFile) {
|
|
|
484332
484411
|
}
|
|
484333
484412
|
|
|
484334
484413
|
// ../server/src/workPlanTool.ts
|
|
484335
|
-
var
|
|
484336
|
-
|
|
484337
|
-
|
|
484338
|
-
|
|
484339
|
-
|
|
484340
|
-
|
|
484341
|
-
|
|
484342
|
-
|
|
484343
|
-
|
|
484344
|
-
|
|
484345
|
-
|
|
484346
|
-
|
|
484347
|
-
|
|
484348
|
-
|
|
484349
|
-
|
|
484350
|
-
|
|
484351
|
-
|
|
484352
|
-
|
|
484353
|
-
|
|
484354
|
-
|
|
484414
|
+
var objectOptions = { additionalProperties: false };
|
|
484415
|
+
var boundedText = (maxLength, description) => typebox_exports2.String({
|
|
484416
|
+
minLength: 1,
|
|
484417
|
+
maxLength,
|
|
484418
|
+
pattern: "\\S",
|
|
484419
|
+
...description === void 0 ? {} : { description }
|
|
484420
|
+
});
|
|
484421
|
+
var identifierSchema = boundedText(WORK_PLAN_LIMITS.title);
|
|
484422
|
+
var titleSchema = boundedText(WORK_PLAN_LIMITS.title);
|
|
484423
|
+
var descriptionSchema = boundedText(WORK_PLAN_LIMITS.description);
|
|
484424
|
+
var reasonSchema = boundedText(WORK_PLAN_LIMITS.reason);
|
|
484425
|
+
var statusSchema = typebox_exports2.Union(WORK_PLAN_STATUSES.map((status) => typebox_exports2.Literal(status)));
|
|
484426
|
+
var resourceSchema = typebox_exports2.Object({
|
|
484427
|
+
uri: boundedText(WORK_PLAN_LIMITS.uri),
|
|
484428
|
+
label: typebox_exports2.Optional(boundedText(WORK_PLAN_LIMITS.title))
|
|
484429
|
+
}, objectOptions);
|
|
484430
|
+
var resourcesSchema = typebox_exports2.Array(resourceSchema, { maxItems: WORK_PLAN_LIMITS.resourcesPerTask });
|
|
484431
|
+
var dependenciesSchema = typebox_exports2.Array(identifierSchema, { maxItems: WORK_PLAN_LIMITS.tasks, uniqueItems: true });
|
|
484432
|
+
var normalizedTaskSchema = typebox_exports2.Object({
|
|
484433
|
+
id: identifierSchema,
|
|
484434
|
+
title: titleSchema,
|
|
484435
|
+
description: typebox_exports2.Optional(descriptionSchema),
|
|
484436
|
+
status: statusSchema,
|
|
484437
|
+
parentId: typebox_exports2.Optional(identifierSchema),
|
|
484438
|
+
dependsOn: typebox_exports2.Optional(dependenciesSchema),
|
|
484439
|
+
resources: typebox_exports2.Optional(resourcesSchema),
|
|
484440
|
+
statusReason: typebox_exports2.Optional(reasonSchema)
|
|
484441
|
+
}, objectOptions);
|
|
484442
|
+
var normalizedPlanSchema = typebox_exports2.Object({
|
|
484443
|
+
version: typebox_exports2.Literal(1),
|
|
484444
|
+
id: identifierSchema,
|
|
484445
|
+
title: titleSchema,
|
|
484446
|
+
tasks: typebox_exports2.Array(normalizedTaskSchema, { maxItems: WORK_PLAN_LIMITS.tasks }),
|
|
484447
|
+
updatedAt: boundedText(WORK_PLAN_LIMITS.title)
|
|
484448
|
+
}, objectOptions);
|
|
484449
|
+
var creationTaskSchema = (depth) => typebox_exports2.Object({
|
|
484450
|
+
id: typebox_exports2.Optional(boundedText(
|
|
484451
|
+
WORK_PLAN_LIMITS.title,
|
|
484452
|
+
"Optional identifier, unique across the plan; one is generated when omitted."
|
|
484453
|
+
)),
|
|
484454
|
+
title: titleSchema,
|
|
484455
|
+
description: typebox_exports2.Optional(descriptionSchema),
|
|
484456
|
+
status: typebox_exports2.Optional(statusSchema),
|
|
484457
|
+
statusReason: typebox_exports2.Optional(reasonSchema),
|
|
484458
|
+
resources: typebox_exports2.Optional(resourcesSchema),
|
|
484459
|
+
...depth < WORK_PLAN_CREATE_MAX_DEPTH ? { subtasks: typebox_exports2.Optional(typebox_exports2.Array(creationTaskSchema(depth + 1), {
|
|
484460
|
+
maxItems: WORK_PLAN_LIMITS.tasks,
|
|
484461
|
+
description: `Direct subtasks only; the complete plan may contain at most ${WORK_PLAN_LIMITS.tasks} tasks.`
|
|
484462
|
+
})) } : {}
|
|
484463
|
+
}, objectOptions);
|
|
484464
|
+
var taskChangesSchema = typebox_exports2.Object({
|
|
484465
|
+
title: typebox_exports2.Optional(titleSchema),
|
|
484466
|
+
description: typebox_exports2.Optional(typebox_exports2.Union([descriptionSchema, typebox_exports2.Null()])),
|
|
484467
|
+
status: typebox_exports2.Optional(statusSchema),
|
|
484468
|
+
statusReason: typebox_exports2.Optional(typebox_exports2.Union([reasonSchema, typebox_exports2.Null()])),
|
|
484469
|
+
parentId: typebox_exports2.Optional(typebox_exports2.Union([identifierSchema, typebox_exports2.Null()])),
|
|
484470
|
+
dependsOn: typebox_exports2.Optional(dependenciesSchema),
|
|
484471
|
+
resources: typebox_exports2.Optional(resourcesSchema)
|
|
484472
|
+
}, objectOptions);
|
|
484473
|
+
var workPlanParameters = typebox_exports2.Union([
|
|
484474
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("get") }, objectOptions),
|
|
484475
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("clear") }, objectOptions),
|
|
484476
|
+
typebox_exports2.Object({
|
|
484477
|
+
action: typebox_exports2.Literal("create"),
|
|
484478
|
+
title: titleSchema,
|
|
484479
|
+
tasks: typebox_exports2.Array(creationTaskSchema(1), {
|
|
484480
|
+
maxItems: WORK_PLAN_LIMITS.tasks,
|
|
484481
|
+
description: `Top-level tasks; at most ${WORK_PLAN_LIMITS.tasks} tasks total and ${WORK_PLAN_LIMITS.serializedBytes} serialized bytes across the complete plan.`
|
|
484482
|
+
})
|
|
484483
|
+
}, objectOptions),
|
|
484484
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("replace"), plan: normalizedPlanSchema }, objectOptions),
|
|
484485
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("add_task"), task: normalizedTaskSchema }, objectOptions),
|
|
484486
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("update_task"), taskId: identifierSchema, changes: taskChangesSchema }, objectOptions),
|
|
484487
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("move_task"), taskId: identifierSchema, parentId: typebox_exports2.Optional(typebox_exports2.Union([identifierSchema, typebox_exports2.Null()])) }, objectOptions),
|
|
484488
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("remove_task"), taskId: identifierSchema }, objectOptions),
|
|
484489
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("set_dependencies"), taskId: identifierSchema, dependsOn: dependenciesSchema }, objectOptions),
|
|
484490
|
+
typebox_exports2.Object({ action: typebox_exports2.Literal("set_resources"), taskId: identifierSchema, resources: resourcesSchema }, objectOptions)
|
|
484491
|
+
]);
|
|
484355
484492
|
function createWorkPlanToolDefinition() {
|
|
484356
484493
|
return {
|
|
484357
484494
|
name: "work_plan",
|
|
484358
484495
|
label: "Work Plan",
|
|
484359
|
-
description: "Read or atomically update the persistent Work Plan for this session.
|
|
484496
|
+
description: "Read or atomically update the persistent Work Plan for this session. Use create for a compact two-level task hierarchy (500 tasks total, 64 KiB normalized plan) whose tasks need only a title, replace for a complete normalized version-1 document, and the task operations for precise later mutations.",
|
|
484360
484497
|
promptSnippet: "Create, inspect, and update the session's persistent Work Plan",
|
|
484361
|
-
|
|
484362
|
-
"Use work_plan for substantial multi-step work; keep it current when work is discovered, blocked, reopened, completed, or needs review.",
|
|
484363
|
-
"Treat the Work Plan as working state that guides decomposition, execution, and verification\u2014not as a retrospective progress report. Reconcile it before declaring non-trivial work complete.",
|
|
484364
|
-
"The plan describes objectives and outcomes, not tool calls. Do not create one for trivial interactions."
|
|
484365
|
-
],
|
|
484366
|
-
parameters: parameters7,
|
|
484498
|
+
parameters: workPlanParameters,
|
|
484367
484499
|
executionMode: "sequential",
|
|
484368
484500
|
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
484369
484501
|
const mutation = params;
|
|
@@ -484376,7 +484508,7 @@ function createWorkPlanToolDefinition() {
|
|
|
484376
484508
|
// `details` drives authoritative UI synchronization but is not model
|
|
484377
484509
|
// context. A resumed agent must receive the complete working state in
|
|
484378
484510
|
// content; otherwise post-compaction `get` would expose only a counter.
|
|
484379
|
-
content: [{ type: "text", text: action === "get" && plan !== null ? `${summary}
|
|
484511
|
+
content: [{ type: "text", text: (action === "get" || action === "create") && plan !== null ? `${summary}
|
|
484380
484512
|
${JSON.stringify(plan)}` : summary }],
|
|
484381
484513
|
details: { type: "work_plan", sessionFile, plan, changed: action !== "get" }
|
|
484382
484514
|
};
|
|
@@ -486035,6 +486167,31 @@ async function gitShow(root, sha) {
|
|
|
486035
486167
|
return { patch: out, truncated: false };
|
|
486036
486168
|
}
|
|
486037
486169
|
|
|
486170
|
+
// ../server/src/systemPrompt.ts
|
|
486171
|
+
var WEB_UI_CONTEXT = [
|
|
486172
|
+
"You are running inside pi-outpost, a web chat UI \u2014 not a terminal.",
|
|
486173
|
+
"Replies render as markdown with syntax-highlighted code, LaTeX math and mermaid diagrams.",
|
|
486174
|
+
"When a user message contains @some/path, the user picked that file or directory in the UI's file browser: it exists, relative to your working directory. Use it directly \u2014 never search for it.",
|
|
486175
|
+
"Workspace files can be referenced with relative markdown links, e.g. [report](./report.md) \u2014 clicking one opens the file in the UI's viewer/editor.",
|
|
486176
|
+
"Images in the workspace (including ones you create) display inline in the conversation when referenced with a relative path: . Prefer showing an image that way over describing it.",
|
|
486177
|
+
"Avoid terminal-only affordances: no 'open this file in your editor' or 'run this command to view' phrasing, no ASCII art where a mermaid diagram or an image file works better."
|
|
486178
|
+
].join("\n");
|
|
486179
|
+
var WORK_PLAN_SYSTEM_GUIDANCE = [
|
|
486180
|
+
"Use work_plan as explicit working state for non-trivial multi-step work: create and maintain it as understanding or execution changes.",
|
|
486181
|
+
"Before resuming substantial work, read the current plan; reconcile it before declaring the work complete.",
|
|
486182
|
+
"Skip a Work Plan for trivial interactions."
|
|
486183
|
+
].join(" ");
|
|
486184
|
+
function workPlanIsAvailable(config3) {
|
|
486185
|
+
return config3.sandbox !== void 0 || config3.tools === void 0 || config3.tools.includes("work_plan");
|
|
486186
|
+
}
|
|
486187
|
+
function composeAppendSystemPrompt(config3) {
|
|
486188
|
+
return [
|
|
486189
|
+
...config3.webContext ? [WEB_UI_CONTEXT] : [],
|
|
486190
|
+
...workPlanIsAvailable(config3) ? [WORK_PLAN_SYSTEM_GUIDANCE] : [],
|
|
486191
|
+
...config3.appendSystemPrompt
|
|
486192
|
+
];
|
|
486193
|
+
}
|
|
486194
|
+
|
|
486038
486195
|
// ../server/src/fileWatcher.ts
|
|
486039
486196
|
import fsSync from "node:fs";
|
|
486040
486197
|
var MAX_WATCHED_DIRECTORIES = 256;
|
|
@@ -486308,7 +486465,7 @@ var EMBEDDED_WEB = {
|
|
|
486308
486465
|
};
|
|
486309
486466
|
|
|
486310
486467
|
// ../server/src/index.ts
|
|
486311
|
-
var VERSION6 = true ? "0.
|
|
486468
|
+
var VERSION6 = true ? "0.15.0" : "dev";
|
|
486312
486469
|
var PI_SDK_VERSION = true ? "0.84.1" : "dev";
|
|
486313
486470
|
var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
|
|
486314
486471
|
function complain(error40) {
|
|
@@ -486679,14 +486836,6 @@ await app.listen({ port: PORT, host: HOST });
|
|
|
486679
486836
|
}, 0);
|
|
486680
486837
|
noticeTimer.unref?.();
|
|
486681
486838
|
}
|
|
486682
|
-
var WEB_UI_CONTEXT = [
|
|
486683
|
-
"You are running inside pi-outpost, a web chat UI \u2014 not a terminal.",
|
|
486684
|
-
"Replies render as markdown with syntax-highlighted code, LaTeX math and mermaid diagrams.",
|
|
486685
|
-
"When a user message contains @some/path, the user picked that file or directory in the UI's file browser: it exists, relative to your working directory. Use it directly \u2014 never search for it.",
|
|
486686
|
-
"Workspace files can be referenced with relative markdown links, e.g. [report](./report.md) \u2014 clicking one opens the file in the UI's viewer/editor.",
|
|
486687
|
-
"Images in the workspace (including ones you create) display inline in the conversation when referenced with a relative path: . Prefer showing an image that way over describing it.",
|
|
486688
|
-
"Avoid terminal-only affordances: no 'open this file in your editor' or 'run this command to view' phrasing, no ASCII art where a mermaid diagram or an image file works better."
|
|
486689
|
-
].join("\n");
|
|
486690
486839
|
var DEBUG = process.env.PI_OUTPOST_DEBUG ? console.log : () => {
|
|
486691
486840
|
};
|
|
486692
486841
|
var createRuntime = async ({
|
|
@@ -486694,10 +486843,7 @@ var createRuntime = async ({
|
|
|
486694
486843
|
sessionManager,
|
|
486695
486844
|
sessionStartEvent
|
|
486696
486845
|
}) => {
|
|
486697
|
-
const appendSystemPrompt =
|
|
486698
|
-
...config2.webContext ? [WEB_UI_CONTEXT] : [],
|
|
486699
|
-
...config2.appendSystemPrompt
|
|
486700
|
-
];
|
|
486846
|
+
const appendSystemPrompt = composeAppendSystemPrompt(config2);
|
|
486701
486847
|
const extraFactories = [...seaExtensionFactories];
|
|
486702
486848
|
const allExtPaths = [
|
|
486703
486849
|
...config2.extensionPaths,
|
|
@@ -486809,7 +486955,7 @@ var runtime = await (async () => {
|
|
|
486809
486955
|
resourceArgs: [
|
|
486810
486956
|
...rpcResourceArgs(config2, {
|
|
486811
486957
|
bundledSkills: config2.noSkills ? [] : BUNDLED_SKILLS,
|
|
486812
|
-
appendSystemPrompt:
|
|
486958
|
+
appendSystemPrompt: composeAppendSystemPrompt(config2)
|
|
486813
486959
|
}),
|
|
486814
486960
|
"--extension",
|
|
486815
486961
|
toolsExtension
|