notesoup 0.53.1 → 0.54.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.
Files changed (153) hide show
  1. package/README.md +2 -2
  2. package/dist/plugins/claude/src/helper.js +2 -1
  3. package/dist/plugins/claude/src/history.js +2 -3
  4. package/dist/plugins/claude/src/thresholds.js +4 -2
  5. package/dist/plugins/codex/src/hooks.js +1 -1
  6. package/dist/plugins/codex/src/identity.d.ts +1 -1
  7. package/dist/plugins/codex/src/identity.js +3 -3
  8. package/dist/plugins/codex/src/mcp.js +2 -1
  9. package/dist/plugins/codex/src/text.d.ts +1 -1
  10. package/dist/plugins/codex/src/text.js +2 -2
  11. package/dist/plugins/dsh/engine.js +2 -2
  12. package/dist/plugins/dsh/tools.js +8 -7
  13. package/dist/plugins/dsh/window.d.ts +1 -0
  14. package/dist/plugins/dsh/window.js +7 -3
  15. package/dist/plugins/pi/entries.d.ts +1 -0
  16. package/dist/plugins/pi/entries.js +1 -0
  17. package/dist/plugins/pi/history-tools.d.ts +1 -1
  18. package/dist/plugins/pi/history-tools.js +4 -4
  19. package/dist/plugins/pi/marker.d.ts +9 -0
  20. package/dist/plugins/pi/marker.js +36 -0
  21. package/dist/plugins/pi/notes/tools.js +8 -6
  22. package/dist/plugins/pi/render.js +7 -4
  23. package/dist/plugins/pi/reset/artifacts.d.ts +2 -2
  24. package/dist/plugins/pi/reset/artifacts.js +2 -2
  25. package/dist/plugins/pi/runtime.js +11 -8
  26. package/dist/plugins/pi/text.d.ts +2 -0
  27. package/dist/plugins/pi/text.js +4 -0
  28. package/dist/plugins/pi/window.js +21 -7
  29. package/dist/src/boot/render.js +7 -7
  30. package/dist/src/boot/snapshot.d.ts +7 -7
  31. package/dist/src/boot/snapshot.js +17 -17
  32. package/dist/src/boot/text.d.ts +2 -2
  33. package/dist/src/boot/text.js +7 -5
  34. package/dist/src/dream/git.d.ts +2 -11
  35. package/dist/src/dream/git.js +6 -23
  36. package/dist/src/dream/lock.d.ts +2 -2
  37. package/dist/src/dream/lock.js +3 -3
  38. package/dist/src/index.d.ts +2 -1
  39. package/dist/src/index.js +3 -2
  40. package/dist/src/notes/address.d.ts +8 -8
  41. package/dist/src/notes/address.js +13 -13
  42. package/dist/src/notes/errors.d.ts +1 -1
  43. package/dist/src/notes/frontmatter.js +2 -2
  44. package/dist/src/notes/index.d.ts +1 -1
  45. package/dist/src/notes/index.js +1 -1
  46. package/dist/src/notes/paths.d.ts +6 -6
  47. package/dist/src/notes/paths.js +9 -9
  48. package/dist/src/notes/{project-home.d.ts → project-namespace.d.ts} +7 -7
  49. package/dist/src/notes/{project-home.js → project-namespace.js} +67 -25
  50. package/dist/src/notes/store.d.ts +4 -4
  51. package/dist/src/notes/store.js +55 -52
  52. package/dist/src/tools/dream.d.ts +21 -3
  53. package/dist/src/tools/dream.js +54 -16
  54. package/dist/src/tools/notes-context.d.ts +10 -0
  55. package/dist/src/tools/notes-context.js +27 -0
  56. package/dist/src/tools/notes.d.ts +69 -20
  57. package/dist/src/tools/notes.js +40 -31
  58. package/dist/test/agent-loop.test.js +8 -8
  59. package/dist/test/boot.integration.test.js +5 -5
  60. package/dist/test/claude-history.test.js +26 -0
  61. package/dist/test/claude-mod.test.js +257 -86
  62. package/dist/test/codex-plugin.test.js +18 -1
  63. package/dist/test/context-edit-budget.test.js +121 -0
  64. package/dist/test/dependencies.test.js +71 -4
  65. package/dist/test/dream-tools.test.js +153 -8
  66. package/dist/test/dsh.test.js +62 -15
  67. package/dist/test/helpers/dsh.d.ts +4 -1
  68. package/dist/test/helpers/dsh.js +20 -4
  69. package/dist/test/helpers/extension.d.ts +5 -0
  70. package/dist/test/helpers/extension.js +33 -2
  71. package/dist/test/host-neutral.test.js +17 -15
  72. package/dist/test/marker.test.js +78 -0
  73. package/dist/test/model-facing-text.test.js +12 -8
  74. package/dist/test/notes-cwd.test.d.ts +1 -0
  75. package/dist/test/notes-cwd.test.js +114 -0
  76. package/dist/test/notes-library.test.js +4 -4
  77. package/dist/test/notes-query-namespaces.test.d.ts +1 -0
  78. package/dist/test/{notes-query-homes.test.js → notes-query-namespaces.test.js} +13 -13
  79. package/dist/test/notes.integration.test.js +72 -23
  80. package/dist/test/notes.test.js +50 -20
  81. package/dist/test/pi-render.test.js +33 -1
  82. package/dist/test/project-namespace.test.d.ts +1 -0
  83. package/dist/test/project-namespace.test.js +324 -0
  84. package/dist/test/reset-lifecycle.test.js +12 -0
  85. package/docs/architecture.md +13 -8
  86. package/docs/claude-code-mod.md +7 -7
  87. package/docs/codex.md +4 -4
  88. package/docs/dsh.md +8 -8
  89. package/docs/notes-library.md +9 -5
  90. package/docs/skills.md +3 -3
  91. package/docs/tool-results.md +6 -2
  92. package/package.json +4 -6
  93. package/playbook.md +6 -6
  94. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  95. package/plugins/claude/dist/claude/helper.js +681 -617
  96. package/plugins/claude/hooks/register.ts +61 -65
  97. package/plugins/claude/playbook.md +6 -6
  98. package/plugins/claude/skills/memory/SKILL.md +4 -4
  99. package/plugins/claude/src/helper.ts +3 -2
  100. package/plugins/claude/src/history.ts +2 -3
  101. package/plugins/claude/src/thresholds.ts +4 -2
  102. package/plugins/codex/README.md +1 -1
  103. package/plugins/codex/dist/codex/notesoup.js +877 -815
  104. package/plugins/codex/src/hooks.ts +1 -1
  105. package/plugins/codex/src/identity.ts +3 -3
  106. package/plugins/codex/src/mcp.ts +2 -1
  107. package/plugins/codex/src/text.ts +2 -2
  108. package/plugins/dsh/engine.ts +2 -2
  109. package/plugins/dsh/tools.ts +8 -7
  110. package/plugins/dsh/window.ts +8 -3
  111. package/plugins/paseo/OVERVIEW.md +4 -4
  112. package/plugins/paseo/README.md +1 -1
  113. package/plugins/paseo/client/brain-empty-card.tsx +3 -4
  114. package/plugins/paseo/client/markdown.tsx +179 -0
  115. package/plugins/paseo/client/notes-op-card.tsx +35 -34
  116. package/plugins/paseo/client/notes-op-transformer.ts +17 -68
  117. package/plugins/paseo/client/paper-card.tsx +8 -19
  118. package/plugins/paseo/client/paper-palette.ts +40 -0
  119. package/plugins/paseo/client/sticky-card.tsx +6 -4
  120. package/plugins/paseo/package.json +3 -0
  121. package/plugins/paseo/paseo-plugin.json +2 -2
  122. package/plugins/paseo/shared/notes-op.ts +13 -9
  123. package/plugins/paseo/test/notes-op.test.ts +52 -73
  124. package/plugins/paseo/test/paper-palette.test.ts +54 -0
  125. package/plugins/pi/entries.ts +1 -0
  126. package/plugins/pi/history-tools.ts +4 -4
  127. package/plugins/pi/marker.ts +39 -0
  128. package/plugins/pi/notes/tools.ts +8 -6
  129. package/plugins/pi/render.ts +6 -4
  130. package/plugins/pi/reset/artifacts.ts +2 -2
  131. package/plugins/pi/runtime.ts +9 -8
  132. package/plugins/pi/text.ts +5 -0
  133. package/plugins/pi/window.ts +22 -7
  134. package/skills/memory/SKILL.md +4 -4
  135. package/src/boot/render.ts +8 -8
  136. package/src/boot/snapshot.ts +20 -20
  137. package/src/boot/text.ts +7 -5
  138. package/src/dream/git.ts +7 -24
  139. package/src/dream/lock.ts +3 -3
  140. package/src/index.ts +4 -3
  141. package/src/notes/address.ts +13 -13
  142. package/src/notes/errors.ts +1 -1
  143. package/src/notes/frontmatter.ts +2 -2
  144. package/src/notes/index.ts +1 -1
  145. package/src/notes/paths.ts +9 -9
  146. package/src/notes/{project-home.ts → project-namespace.ts} +59 -28
  147. package/src/notes/store.ts +61 -58
  148. package/src/tools/dream.ts +63 -16
  149. package/src/tools/notes-context.ts +29 -0
  150. package/src/tools/notes.ts +39 -29
  151. package/dist/test/project-home.test.js +0 -134
  152. /package/dist/test/{notes-query-homes.test.d.ts → context-edit-budget.test.d.ts} +0 -0
  153. /package/dist/test/{project-home.test.d.ts → marker.test.d.ts} +0 -0
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  import { realpathSync as realpathSync2 } from "node:fs";
9
9
  import { pathToFileURL } from "node:url";
10
10
 
11
- // node_modules/typebox/build/system/arguments/arguments.mjs
11
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/arguments/arguments.mjs
12
12
  var arguments_exports = {};
13
13
  __export(arguments_exports, {
14
14
  Match: () => Match
@@ -19,7 +19,7 @@ function Match(args, match) {
19
19
  })();
20
20
  }
21
21
 
22
- // node_modules/typebox/build/system/settings/settings.mjs
22
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/settings/settings.mjs
23
23
  var settings_exports = {};
24
24
  __export(settings_exports, {
25
25
  Get: () => Get,
@@ -27,7 +27,7 @@ __export(settings_exports, {
27
27
  Set: () => Set2
28
28
  });
29
29
 
30
- // node_modules/typebox/build/guard/guard.mjs
30
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/guard/guard.mjs
31
31
  var guard_exports = {};
32
32
  __export(guard_exports, {
33
33
  Counted: () => Counted,
@@ -70,7 +70,7 @@ __export(guard_exports, {
70
70
  Values: () => Values
71
71
  });
72
72
 
73
- // node_modules/typebox/build/guard/string.mjs
73
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/guard/string.mjs
74
74
  function IsBetween(value, min, max) {
75
75
  return value >= min && value <= max;
76
76
  }
@@ -177,7 +177,7 @@ function IsMaxLength(value, maxLength) {
177
177
  }
178
178
  }
179
179
 
180
- // node_modules/typebox/build/guard/guard.mjs
180
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/guard/guard.mjs
181
181
  function IsArray(value) {
182
182
  return Array.isArray(value);
183
183
  }
@@ -333,7 +333,7 @@ function IsDeepEqual(left, right) {
333
333
  return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
334
334
  }
335
335
 
336
- // node_modules/typebox/build/guard/globals.mjs
336
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/guard/globals.mjs
337
337
  var globals_exports = {};
338
338
  __export(globals_exports, {
339
339
  IsBigInt64Array: () => IsBigInt64Array,
@@ -414,10 +414,10 @@ function IsMap(value) {
414
414
  return value instanceof globalThis.Map;
415
415
  }
416
416
 
417
- // node_modules/typebox/build/guard/index.mjs
417
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/guard/index.mjs
418
418
  var guard_default = guard_exports;
419
419
 
420
- // node_modules/typebox/build/system/settings/settings.mjs
420
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/settings/settings.mjs
421
421
  var settings = {
422
422
  immutableTypes: false,
423
423
  maxErrors: 8,
@@ -450,12 +450,12 @@ function Get() {
450
450
  return settings;
451
451
  }
452
452
 
453
- // node_modules/typebox/build/schema/types/_refine.mjs
453
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/_refine.mjs
454
454
  function IsRefine(value) {
455
455
  return guard_exports.HasPropertyKey(value, "~refine") && guard_exports.IsArray(value["~refine"]) && guard_exports.Every(value["~refine"], 0, (value2) => guard_exports.IsObject(value2) && guard_exports.HasPropertyKey(value2, "check") && guard_exports.HasPropertyKey(value2, "error") && guard_exports.IsFunction(value2.check) && guard_exports.IsFunction(value2.error));
456
456
  }
457
457
 
458
- // node_modules/typebox/build/schema/types/schema.mjs
458
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/schema.mjs
459
459
  function IsSchemaObject(value) {
460
460
  return guard_exports.IsObject(value) && !guard_exports.IsArray(value);
461
461
  }
@@ -466,107 +466,107 @@ function IsSchema(value) {
466
466
  return IsSchemaObject(value) || IsSchemaBoolean(value);
467
467
  }
468
468
 
469
- // node_modules/typebox/build/schema/types/additionalItems.mjs
469
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/additionalItems.mjs
470
470
  function IsAdditionalItems(schema) {
471
471
  return guard_exports.HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems);
472
472
  }
473
473
 
474
- // node_modules/typebox/build/schema/types/additionalProperties.mjs
474
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/additionalProperties.mjs
475
475
  function IsAdditionalProperties(schema) {
476
476
  return guard_exports.HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties);
477
477
  }
478
478
 
479
- // node_modules/typebox/build/schema/types/allOf.mjs
479
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/allOf.mjs
480
480
  function IsAllOf(schema) {
481
481
  return guard_exports.HasPropertyKey(schema, "allOf") && guard_exports.IsArray(schema.allOf) && schema.allOf.every((value) => IsSchema(value));
482
482
  }
483
483
 
484
- // node_modules/typebox/build/schema/types/anchor.mjs
484
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/anchor.mjs
485
485
  function IsAnchor(schema) {
486
486
  return guard_exports.HasPropertyKey(schema, "$anchor") && guard_exports.IsString(schema.$anchor);
487
487
  }
488
488
 
489
- // node_modules/typebox/build/schema/types/anyOf.mjs
489
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/anyOf.mjs
490
490
  function IsAnyOf(schema) {
491
491
  return guard_exports.HasPropertyKey(schema, "anyOf") && guard_exports.IsArray(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value));
492
492
  }
493
493
 
494
- // node_modules/typebox/build/schema/types/const.mjs
494
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/const.mjs
495
495
  function IsConst(value) {
496
496
  return guard_exports.HasPropertyKey(value, "const");
497
497
  }
498
498
 
499
- // node_modules/typebox/build/schema/types/contains.mjs
499
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/contains.mjs
500
500
  function IsContains(schema) {
501
501
  return guard_exports.HasPropertyKey(schema, "contains") && IsSchema(schema.contains);
502
502
  }
503
503
 
504
- // node_modules/typebox/build/schema/types/default.mjs
504
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/default.mjs
505
505
  function IsDefault(schema) {
506
506
  return guard_exports.HasPropertyKey(schema, "default");
507
507
  }
508
508
 
509
- // node_modules/typebox/build/schema/types/dependencies.mjs
509
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/dependencies.mjs
510
510
  function IsDependencies(schema) {
511
511
  return guard_exports.HasPropertyKey(schema, "dependencies") && guard_exports.IsObject(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
512
512
  }
513
513
 
514
- // node_modules/typebox/build/schema/types/dependentRequired.mjs
514
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/dependentRequired.mjs
515
515
  function IsDependentRequired(schema) {
516
516
  return guard_exports.HasPropertyKey(schema, "dependentRequired") && guard_exports.IsObject(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
517
517
  }
518
518
 
519
- // node_modules/typebox/build/schema/types/dependentSchemas.mjs
519
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/dependentSchemas.mjs
520
520
  function IsDependentSchemas(schema) {
521
521
  return guard_exports.HasPropertyKey(schema, "dependentSchemas") && guard_exports.IsObject(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value));
522
522
  }
523
523
 
524
- // node_modules/typebox/build/schema/types/dynamicAnchor.mjs
524
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/dynamicAnchor.mjs
525
525
  function IsDynamicAnchor(schema) {
526
526
  return guard_exports.HasPropertyKey(schema, "$dynamicAnchor") && guard_exports.IsString(schema.$dynamicAnchor);
527
527
  }
528
528
 
529
- // node_modules/typebox/build/schema/types/dynamicRef.mjs
529
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/dynamicRef.mjs
530
530
  function IsDynamicRef(schema) {
531
531
  return guard_exports.HasPropertyKey(schema, "$dynamicRef") && guard_exports.IsString(schema.$dynamicRef);
532
532
  }
533
533
 
534
- // node_modules/typebox/build/schema/types/else.mjs
534
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/else.mjs
535
535
  function IsElse(schema) {
536
536
  return guard_exports.HasPropertyKey(schema, "else") && IsSchema(schema.else);
537
537
  }
538
538
 
539
- // node_modules/typebox/build/schema/types/enum.mjs
539
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/enum.mjs
540
540
  function IsEnum(schema) {
541
541
  return guard_exports.HasPropertyKey(schema, "enum") && guard_exports.IsArray(schema.enum);
542
542
  }
543
543
 
544
- // node_modules/typebox/build/schema/types/exclusiveMaximum.mjs
544
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs
545
545
  function IsExclusiveMaximum(schema) {
546
546
  return guard_exports.HasPropertyKey(schema, "exclusiveMaximum") && (guard_exports.IsNumber(schema.exclusiveMaximum) || guard_exports.IsBigInt(schema.exclusiveMaximum));
547
547
  }
548
548
 
549
- // node_modules/typebox/build/schema/types/exclusiveMinimum.mjs
549
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs
550
550
  function IsExclusiveMinimum(schema) {
551
551
  return guard_exports.HasPropertyKey(schema, "exclusiveMinimum") && (guard_exports.IsNumber(schema.exclusiveMinimum) || guard_exports.IsBigInt(schema.exclusiveMinimum));
552
552
  }
553
553
 
554
- // node_modules/typebox/build/schema/types/format.mjs
554
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/format.mjs
555
555
  function IsFormat(schema) {
556
556
  return guard_exports.HasPropertyKey(schema, "format") && guard_exports.IsString(schema.format);
557
557
  }
558
558
 
559
- // node_modules/typebox/build/schema/types/id.mjs
559
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/id.mjs
560
560
  function IsId(schema) {
561
561
  return guard_exports.HasPropertyKey(schema, "$id") && guard_exports.IsString(schema.$id);
562
562
  }
563
563
 
564
- // node_modules/typebox/build/schema/types/if.mjs
564
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/if.mjs
565
565
  function IsIf(schema) {
566
566
  return guard_exports.HasPropertyKey(schema, "if") && IsSchema(schema.if);
567
567
  }
568
568
 
569
- // node_modules/typebox/build/schema/types/items.mjs
569
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/items.mjs
570
570
  function IsItems(schema) {
571
571
  return guard_exports.HasPropertyKey(schema, "items") && (IsSchema(schema.items) || guard_exports.IsArray(schema.items) && schema.items.every((value) => {
572
572
  return IsSchema(value);
@@ -576,97 +576,97 @@ function IsItemsSized(schema) {
576
576
  return IsItems(schema) && guard_exports.IsArray(schema.items);
577
577
  }
578
578
 
579
- // node_modules/typebox/build/schema/types/maximum.mjs
579
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/maximum.mjs
580
580
  function IsMaximum(schema) {
581
581
  return guard_exports.HasPropertyKey(schema, "maximum") && (guard_exports.IsNumber(schema.maximum) || guard_exports.IsBigInt(schema.maximum));
582
582
  }
583
583
 
584
- // node_modules/typebox/build/schema/types/maxContains.mjs
584
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/maxContains.mjs
585
585
  function IsMaxContains(schema) {
586
586
  return guard_exports.HasPropertyKey(schema, "maxContains") && guard_exports.IsNumber(schema.maxContains);
587
587
  }
588
588
 
589
- // node_modules/typebox/build/schema/types/maxItems.mjs
589
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/maxItems.mjs
590
590
  function IsMaxItems(schema) {
591
591
  return guard_exports.HasPropertyKey(schema, "maxItems") && guard_exports.IsNumber(schema.maxItems);
592
592
  }
593
593
 
594
- // node_modules/typebox/build/schema/types/maxLength.mjs
594
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/maxLength.mjs
595
595
  function IsMaxLength3(schema) {
596
596
  return guard_exports.HasPropertyKey(schema, "maxLength") && guard_exports.IsNumber(schema.maxLength);
597
597
  }
598
598
 
599
- // node_modules/typebox/build/schema/types/maxProperties.mjs
599
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/maxProperties.mjs
600
600
  function IsMaxProperties(schema) {
601
601
  return guard_exports.HasPropertyKey(schema, "maxProperties") && guard_exports.IsNumber(schema.maxProperties);
602
602
  }
603
603
 
604
- // node_modules/typebox/build/schema/types/minimum.mjs
604
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/minimum.mjs
605
605
  function IsMinimum(schema) {
606
606
  return guard_exports.HasPropertyKey(schema, "minimum") && (guard_exports.IsNumber(schema.minimum) || guard_exports.IsBigInt(schema.minimum));
607
607
  }
608
608
 
609
- // node_modules/typebox/build/schema/types/minContains.mjs
609
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/minContains.mjs
610
610
  function IsMinContains(schema) {
611
611
  return guard_exports.HasPropertyKey(schema, "minContains") && guard_exports.IsNumber(schema.minContains);
612
612
  }
613
613
 
614
- // node_modules/typebox/build/schema/types/minItems.mjs
614
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/minItems.mjs
615
615
  function IsMinItems(schema) {
616
616
  return guard_exports.HasPropertyKey(schema, "minItems") && guard_exports.IsNumber(schema.minItems);
617
617
  }
618
618
 
619
- // node_modules/typebox/build/schema/types/minLength.mjs
619
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/minLength.mjs
620
620
  function IsMinLength3(schema) {
621
621
  return guard_exports.HasPropertyKey(schema, "minLength") && guard_exports.IsNumber(schema.minLength);
622
622
  }
623
623
 
624
- // node_modules/typebox/build/schema/types/minProperties.mjs
624
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/minProperties.mjs
625
625
  function IsMinProperties(schema) {
626
626
  return guard_exports.HasPropertyKey(schema, "minProperties") && guard_exports.IsNumber(schema.minProperties);
627
627
  }
628
628
 
629
- // node_modules/typebox/build/schema/types/multipleOf.mjs
629
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/multipleOf.mjs
630
630
  function IsMultipleOf2(schema) {
631
631
  return guard_exports.HasPropertyKey(schema, "multipleOf") && (guard_exports.IsNumber(schema.multipleOf) || guard_exports.IsBigInt(schema.multipleOf));
632
632
  }
633
633
 
634
- // node_modules/typebox/build/schema/types/not.mjs
634
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/not.mjs
635
635
  function IsNot(schema) {
636
636
  return guard_exports.HasPropertyKey(schema, "not") && IsSchema(schema.not);
637
637
  }
638
638
 
639
- // node_modules/typebox/build/schema/types/oneOf.mjs
639
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/oneOf.mjs
640
640
  function IsOneOf(schema) {
641
641
  return guard_exports.HasPropertyKey(schema, "oneOf") && guard_exports.IsArray(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value));
642
642
  }
643
643
 
644
- // node_modules/typebox/build/schema/types/pattern.mjs
644
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/pattern.mjs
645
645
  function IsPattern(schema) {
646
646
  return guard_exports.HasPropertyKey(schema, "pattern") && (guard_exports.IsString(schema.pattern) || schema.pattern instanceof RegExp);
647
647
  }
648
648
 
649
- // node_modules/typebox/build/schema/types/patternProperties.mjs
649
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/patternProperties.mjs
650
650
  function IsPatternProperties(schema) {
651
651
  return guard_exports.HasPropertyKey(schema, "patternProperties") && guard_exports.IsObject(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value));
652
652
  }
653
653
 
654
- // node_modules/typebox/build/schema/types/prefixItems.mjs
654
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/prefixItems.mjs
655
655
  function IsPrefixItems(schema) {
656
656
  return guard_exports.HasPropertyKey(schema, "prefixItems") && guard_exports.IsArray(schema.prefixItems) && schema.prefixItems.every((schema2) => IsSchema(schema2));
657
657
  }
658
658
 
659
- // node_modules/typebox/build/schema/types/properties.mjs
659
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/properties.mjs
660
660
  function IsProperties(schema) {
661
661
  return guard_exports.HasPropertyKey(schema, "properties") && guard_exports.IsObject(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value));
662
662
  }
663
663
 
664
- // node_modules/typebox/build/schema/types/propertyNames.mjs
664
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/propertyNames.mjs
665
665
  function IsPropertyNames(schema) {
666
666
  return guard_exports.HasPropertyKey(schema, "propertyNames") && (guard_exports.IsObject(schema.propertyNames) || IsSchema(schema.propertyNames));
667
667
  }
668
668
 
669
- // node_modules/typebox/build/schema/types/recursiveAnchor.mjs
669
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/recursiveAnchor.mjs
670
670
  function IsRecursiveAnchor(schema) {
671
671
  return guard_exports.HasPropertyKey(schema, "$recursiveAnchor") && guard_exports.IsBoolean(schema.$recursiveAnchor);
672
672
  }
@@ -674,47 +674,47 @@ function IsRecursiveAnchorTrue(schema) {
674
674
  return IsRecursiveAnchor(schema) && guard_exports.IsEqual(schema.$recursiveAnchor, true);
675
675
  }
676
676
 
677
- // node_modules/typebox/build/schema/types/recursiveRef.mjs
677
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/recursiveRef.mjs
678
678
  function IsRecursiveRef(schema) {
679
679
  return guard_exports.HasPropertyKey(schema, "$recursiveRef") && guard_exports.IsString(schema.$recursiveRef);
680
680
  }
681
681
 
682
- // node_modules/typebox/build/schema/types/ref.mjs
682
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/ref.mjs
683
683
  function IsRef(schema) {
684
684
  return guard_exports.HasPropertyKey(schema, "$ref") && guard_exports.IsString(schema.$ref);
685
685
  }
686
686
 
687
- // node_modules/typebox/build/schema/types/required.mjs
687
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/required.mjs
688
688
  function IsRequired(schema) {
689
689
  return guard_exports.HasPropertyKey(schema, "required") && guard_exports.IsArray(schema.required) && schema.required.every((value) => guard_exports.IsString(value));
690
690
  }
691
691
 
692
- // node_modules/typebox/build/schema/types/then.mjs
692
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/then.mjs
693
693
  function IsThen(schema) {
694
694
  return guard_exports.HasPropertyKey(schema, "then") && IsSchema(schema.then);
695
695
  }
696
696
 
697
- // node_modules/typebox/build/schema/types/type.mjs
697
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/type.mjs
698
698
  function IsType(schema) {
699
699
  return guard_exports.HasPropertyKey(schema, "type") && (guard_exports.IsString(schema.type) || guard_exports.IsArray(schema.type) && schema.type.every((value) => guard_exports.IsString(value)));
700
700
  }
701
701
 
702
- // node_modules/typebox/build/schema/types/uniqueItems.mjs
702
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/uniqueItems.mjs
703
703
  function IsUniqueItems(schema) {
704
704
  return guard_exports.HasPropertyKey(schema, "uniqueItems") && guard_exports.IsBoolean(schema.uniqueItems);
705
705
  }
706
706
 
707
- // node_modules/typebox/build/schema/types/unevaluatedItems.mjs
707
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/unevaluatedItems.mjs
708
708
  function IsUnevaluatedItems(schema) {
709
709
  return guard_exports.HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems);
710
710
  }
711
711
 
712
- // node_modules/typebox/build/schema/types/unevaluatedProperties.mjs
712
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs
713
713
  function IsUnevaluatedProperties(schema) {
714
714
  return guard_exports.HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties);
715
715
  }
716
716
 
717
- // node_modules/typebox/build/schema/engine/_context.mjs
717
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/_context.mjs
718
718
  var CheckContext = class {
719
719
  constructor() {
720
720
  const indices = /* @__PURE__ */ new Set();
@@ -779,7 +779,7 @@ var ErrorContext = class extends CheckContext {
779
779
  }
780
780
  };
781
781
 
782
- // node_modules/typebox/build/schema/engine/_refine.mjs
782
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/_refine.mjs
783
783
  function CheckRefine(_stack, _context, schema, value) {
784
784
  return guard_exports.Every(schema["~refine"], 0, (refinement, _) => refinement.check(value));
785
785
  }
@@ -794,7 +794,7 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) {
794
794
  });
795
795
  }
796
796
 
797
- // node_modules/typebox/build/schema/engine/additionalItems.mjs
797
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/additionalItems.mjs
798
798
  function IsValid(schema) {
799
799
  return IsItems(schema) && guard_exports.IsArray(schema.items);
800
800
  }
@@ -817,12 +817,12 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema,
817
817
  return isAdditionalItems;
818
818
  }
819
819
 
820
- // node_modules/typebox/build/schema/engine/_regexp.mjs
820
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/_regexp.mjs
821
821
  function UnicodeRegExp(pattern) {
822
822
  return new RegExp(pattern, "u");
823
823
  }
824
824
 
825
- // node_modules/typebox/build/schema/engine/additionalProperties.mjs
825
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/additionalProperties.mjs
826
826
  function GetPropertyKeyAsPattern(key) {
827
827
  const escaped = key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
828
828
  return `^${escaped}$`;
@@ -861,7 +861,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch
861
861
  });
862
862
  }
863
863
 
864
- // node_modules/typebox/build/schema/engine/allOf.mjs
864
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/allOf.mjs
865
865
  function CheckAllOf(stack, context, schema, value) {
866
866
  const results = schema.allOf.reduce((result, schema2) => {
867
867
  const nextContext = new CheckContext();
@@ -885,7 +885,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) {
885
885
  return isAllOf;
886
886
  }
887
887
 
888
- // node_modules/typebox/build/schema/engine/anyOf.mjs
888
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/anyOf.mjs
889
889
  function CheckAnyOf(stack, context, schema, value) {
890
890
  const results = schema.anyOf.reduce((result, schema2) => {
891
891
  const nextContext = new CheckContext();
@@ -914,7 +914,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) {
914
914
  });
915
915
  }
916
916
 
917
- // node_modules/typebox/build/schema/engine/boolean.mjs
917
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/boolean.mjs
918
918
  function CheckSchemaBoolean(_stack, _context, schema, _value) {
919
919
  return schema;
920
920
  }
@@ -927,7 +927,7 @@ function ErrorSchemaBoolean(stack, context, schemaPath, instancePath, schema, va
927
927
  });
928
928
  }
929
929
 
930
- // node_modules/typebox/build/schema/engine/const.mjs
930
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/const.mjs
931
931
  function CheckConst(_stack, _context, schema, value) {
932
932
  return guard_exports.IsValueLike(schema.const) ? guard_exports.IsEqual(value, schema.const) : guard_exports.IsDeepEqual(value, schema.const);
933
933
  }
@@ -940,7 +940,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) {
940
940
  });
941
941
  }
942
942
 
943
- // node_modules/typebox/build/schema/engine/contains.mjs
943
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/contains.mjs
944
944
  function IsValid2(schema) {
945
945
  return !(IsMinContains(schema) && guard_exports.IsEqual(schema.minContains, 0));
946
946
  }
@@ -960,7 +960,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value)
960
960
  });
961
961
  }
962
962
 
963
- // node_modules/typebox/build/schema/engine/dependencies.mjs
963
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/dependencies.mjs
964
964
  function CheckDependencies(stack, context, schema, value) {
965
965
  const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
966
966
  const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependencies), 0, ([key, schema2]) => {
@@ -982,7 +982,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val
982
982
  return isLength || isEvery;
983
983
  }
984
984
 
985
- // node_modules/typebox/build/schema/engine/dependentRequired.mjs
985
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/dependentRequired.mjs
986
986
  function CheckDependentRequired(_stack, _context, schema, value) {
987
987
  const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
988
988
  const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentRequired), 0, ([key, keys]) => {
@@ -1003,7 +1003,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem
1003
1003
  return isLength || isEveryEntry;
1004
1004
  }
1005
1005
 
1006
- // node_modules/typebox/build/schema/engine/dependentSchemas.mjs
1006
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/dependentSchemas.mjs
1007
1007
  function CheckDependentSchemas(stack, context, schema, value) {
1008
1008
  const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
1009
1009
  const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentSchemas), 0, ([key, schema2]) => {
@@ -1020,7 +1020,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema,
1020
1020
  return isLength || isEvery;
1021
1021
  }
1022
1022
 
1023
- // node_modules/typebox/build/schema/engine/dynamicRef.mjs
1023
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/dynamicRef.mjs
1024
1024
  function CheckDynamicRef(stack, context, schema, value) {
1025
1025
  const target = stack.DynamicRef(schema) ?? false;
1026
1026
  return IsSchema(target) && CheckSchema(stack, context, target, value);
@@ -1030,7 +1030,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu
1030
1030
  return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value);
1031
1031
  }
1032
1032
 
1033
- // node_modules/typebox/build/schema/engine/enum.mjs
1033
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/enum.mjs
1034
1034
  function CheckEnum(_stack, _context, schema, value) {
1035
1035
  return guard_exports.Some(schema.enum, (option) => guard_exports.IsValueLike(option) ? guard_exports.IsEqual(value, option) : guard_exports.IsDeepEqual(value, option));
1036
1036
  }
@@ -1043,7 +1043,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) {
1043
1043
  });
1044
1044
  }
1045
1045
 
1046
- // node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs
1046
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs
1047
1047
  function CheckExclusiveMaximum(_stack, _context, schema, value) {
1048
1048
  return guard_exports.IsLessThan(value, schema.exclusiveMaximum);
1049
1049
  }
@@ -1056,7 +1056,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema,
1056
1056
  });
1057
1057
  }
1058
1058
 
1059
- // node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs
1059
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs
1060
1060
  function CheckExclusiveMinimum(_stack, _context, schema, value) {
1061
1061
  return guard_exports.IsGreaterThan(value, schema.exclusiveMinimum);
1062
1062
  }
@@ -1069,7 +1069,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema,
1069
1069
  });
1070
1070
  }
1071
1071
 
1072
- // node_modules/typebox/build/format/format.mjs
1072
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/format.mjs
1073
1073
  var format_exports = {};
1074
1074
  __export(format_exports, {
1075
1075
  Clear: () => Clear,
@@ -1102,7 +1102,7 @@ __export(format_exports, {
1102
1102
  Test: () => Test
1103
1103
  });
1104
1104
 
1105
- // node_modules/typebox/build/format/date.mjs
1105
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/date.mjs
1106
1106
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1107
1107
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
1108
1108
  function IsLeapYear(year) {
@@ -1118,7 +1118,7 @@ function IsDate2(value) {
1118
1118
  return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]);
1119
1119
  }
1120
1120
 
1121
- // node_modules/typebox/build/format/time.mjs
1121
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/time.mjs
1122
1122
  var TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:([Zz])|([+-])(\d\d):(\d\d))?$/;
1123
1123
  function IsTime(value, strictTimeZone = true) {
1124
1124
  const matches = TIME.exec(value);
@@ -1146,25 +1146,25 @@ function IsTime(value, strictTimeZone = true) {
1146
1146
  return (totalUtcMin % 1440 + 1440) % 1440 === 1439;
1147
1147
  }
1148
1148
 
1149
- // node_modules/typebox/build/format/date_time.mjs
1149
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/date_time.mjs
1150
1150
  function IsDateTime(value) {
1151
1151
  const dateTime = value.split(/T/i);
1152
1152
  return dateTime.length === 2 && IsDate2(dateTime[0]) && IsTime(dateTime[1]);
1153
1153
  }
1154
1154
 
1155
- // node_modules/typebox/build/format/duration.mjs
1155
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/duration.mjs
1156
1156
  var Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;
1157
1157
  function IsDuration(value) {
1158
1158
  return Duration.test(value);
1159
1159
  }
1160
1160
 
1161
- // node_modules/typebox/build/format/email.mjs
1161
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/email.mjs
1162
1162
  var Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
1163
1163
  function IsEmail(value) {
1164
1164
  return Email.test(value);
1165
1165
  }
1166
1166
 
1167
- // node_modules/typebox/build/format/idna/pattern/pattern.mjs
1167
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/pattern/pattern.mjs
1168
1168
  var RE_RULE_HYPHEN_PLACEMENT = /^(?!-).*(?<!-)$/;
1169
1169
  var RE_RULE_NOT_RESERVED_ACE = /^(?!..--)/;
1170
1170
  var RE_ASCII_LDH = /^[a-zA-Z0-9-]*$/;
@@ -1204,12 +1204,12 @@ var RE_PERMITTED_CATEGORY = new RegExp([
1204
1204
  RE_PVALID_EXCEPTIONS
1205
1205
  ].map((regexp) => regexp.source).join("|"), "u");
1206
1206
 
1207
- // node_modules/typebox/build/format/idna/label/ascii.mjs
1207
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/label/ascii.mjs
1208
1208
  function IsAsciiLabel(value) {
1209
1209
  return RE_RULE_HYPHEN_PLACEMENT.test(value) && RE_RULE_NOT_RESERVED_ACE.test(value) && RE_ASCII_LDH.test(value);
1210
1210
  }
1211
1211
 
1212
- // node_modules/typebox/build/format/idna/format/puny.mjs
1212
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/format/puny.mjs
1213
1213
  var PUNYCODE_BASE = 36;
1214
1214
  var PUNYCODE_TMIN = 1;
1215
1215
  var PUNYCODE_TMAX = 26;
@@ -1325,7 +1325,7 @@ function Encode(input) {
1325
1325
  return result.join("");
1326
1326
  }
1327
1327
 
1328
- // node_modules/typebox/build/format/idna/format/bidi.mjs
1328
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/format/bidi.mjs
1329
1329
  var RE_RTL_ALLOWED = /^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/;
1330
1330
  var RE_LTR_ALLOWED = /^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/;
1331
1331
  var RE_RTL_CLASSES = /^(?:R|AL|AN)$/;
@@ -1380,7 +1380,7 @@ function SatisfiesBidiRule(value) {
1380
1380
  return true;
1381
1381
  }
1382
1382
 
1383
- // node_modules/typebox/build/format/idna/label/unicode.mjs
1383
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/label/unicode.mjs
1384
1384
  function ExceedsMaxALabelLength(value) {
1385
1385
  return RE_NON_ASCII.test(value) && Encode(value).length + 4 > 63;
1386
1386
  }
@@ -1446,7 +1446,7 @@ function IsUnicodeLabel(value) {
1446
1446
  return true;
1447
1447
  }
1448
1448
 
1449
- // node_modules/typebox/build/format/idna/label/puny.mjs
1449
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/label/puny.mjs
1450
1450
  function IsPunyLabel(value) {
1451
1451
  if (!IsAcePrefixed(value))
1452
1452
  return false;
@@ -1463,7 +1463,7 @@ function IsPunyLabel(value) {
1463
1463
  }
1464
1464
  }
1465
1465
 
1466
- // node_modules/typebox/build/format/idna/hostname.mjs
1466
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/hostname.mjs
1467
1467
  function IsValidLabelLength(value) {
1468
1468
  return value.length > 0 && value.length <= 63;
1469
1469
  }
@@ -1478,7 +1478,7 @@ function IsHostname(value) {
1478
1478
  return value.split(".").every((label) => IsLabel(label));
1479
1479
  }
1480
1480
 
1481
- // node_modules/typebox/build/format/idna/idn-hostname.mjs
1481
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idna/idn-hostname.mjs
1482
1482
  function IsValidLabelLength2(value) {
1483
1483
  return value.length > 0 && value.length <= 63;
1484
1484
  }
@@ -1499,42 +1499,42 @@ function IsIdnHostname(value) {
1499
1499
  return labels.every((label) => IsLabel2(label) && (!hasBidiChars || SatisfiesBidiRule(label)));
1500
1500
  }
1501
1501
 
1502
- // node_modules/typebox/build/format/hostname.mjs
1502
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/hostname.mjs
1503
1503
  function IsHostname2(value) {
1504
1504
  return IsHostname(value);
1505
1505
  }
1506
1506
 
1507
- // node_modules/typebox/build/format/idn_email.mjs
1507
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idn_email.mjs
1508
1508
  var IdnEmail = /^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;
1509
1509
  function IsIdnEmail(value) {
1510
1510
  return IdnEmail.test(value.normalize("NFC"));
1511
1511
  }
1512
1512
 
1513
- // node_modules/typebox/build/format/idn_hostname.mjs
1513
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/idn_hostname.mjs
1514
1514
  function IsIdnHostname2(value) {
1515
1515
  return IsIdnHostname(value);
1516
1516
  }
1517
1517
 
1518
- // node_modules/typebox/build/format/ipv4.mjs
1518
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/ipv4.mjs
1519
1519
  var IPv4 = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;
1520
1520
  function IsIPv4(value) {
1521
1521
  return IPv4.test(value);
1522
1522
  }
1523
1523
 
1524
- // node_modules/typebox/build/format/ipv6.mjs
1524
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/ipv6.mjs
1525
1525
  var IPv6 = /^(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:)?[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)$/i;
1526
1526
  function IsIPv6(value) {
1527
1527
  return IPv6.test(value);
1528
1528
  }
1529
1529
 
1530
- // node_modules/typebox/build/format/iri_reference.mjs
1530
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/iri_reference.mjs
1531
1531
  var InvalidIriChars = /[\x00-\x20\x7F\\]|%(?![0-9a-fA-F]{2})/;
1532
1532
  var MalformedScheme = /^[a-zA-Z][a-zA-Z0-9+\-.]*\/\//;
1533
1533
  function IsIriReference(value) {
1534
1534
  return !InvalidIriChars.test(value) && !MalformedScheme.test(value) && URL.canParse(value, "http://example.com");
1535
1535
  }
1536
1536
 
1537
- // node_modules/typebox/build/format/iri.mjs
1537
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/iri.mjs
1538
1538
  var IpvFutureMatchMaxLength = 2048;
1539
1539
  var IpvFutureMatch = /\[[vV][0-9a-fA-F]+\.[^\]]+\]/;
1540
1540
  var InvalidIriChars2 = /[\x00-\x20<>\^`{|}\\]/;
@@ -1550,19 +1550,19 @@ function IsIri(value) {
1550
1550
  return URL.canParse(NarrowIpvFuture(value));
1551
1551
  }
1552
1552
 
1553
- // node_modules/typebox/build/format/json_pointer_uri_fragment.mjs
1553
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs
1554
1554
  var JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
1555
1555
  function IsJsonPointerUriFragment(value) {
1556
1556
  return JsonPointerUriFragment.test(value);
1557
1557
  }
1558
1558
 
1559
- // node_modules/typebox/build/format/json_pointer.mjs
1559
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/json_pointer.mjs
1560
1560
  var JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
1561
1561
  function IsJsonPointer(value) {
1562
1562
  return JsonPointer.test(value);
1563
1563
  }
1564
1564
 
1565
- // node_modules/typebox/build/format/regex.mjs
1565
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/regex.mjs
1566
1566
  function IsRegex(value) {
1567
1567
  try {
1568
1568
  new RegExp(value, "u");
@@ -1572,42 +1572,42 @@ function IsRegex(value) {
1572
1572
  }
1573
1573
  }
1574
1574
 
1575
- // node_modules/typebox/build/format/relative_json_pointer.mjs
1575
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/relative_json_pointer.mjs
1576
1576
  var RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
1577
1577
  function IsRelativeJsonPointer(value) {
1578
1578
  return RelativeJsonPointer.test(value);
1579
1579
  }
1580
1580
 
1581
- // node_modules/typebox/build/format/uri_reference.mjs
1581
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/uri_reference.mjs
1582
1582
  var UriReference = /^(?:[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?)(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
1583
1583
  function IsUriReference(value) {
1584
1584
  return UriReference.test(value);
1585
1585
  }
1586
1586
 
1587
- // node_modules/typebox/build/format/uri_template.mjs
1587
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/uri_template.mjs
1588
1588
  var UriTemplate = /^(?:(?:[^\x00-\x20"<>%\\^`{|}\x7f]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?)*\})*$/i;
1589
1589
  function IsUriTemplate(value) {
1590
1590
  return UriTemplate.test(value);
1591
1591
  }
1592
1592
 
1593
- // node_modules/typebox/build/format/uri.mjs
1593
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/uri.mjs
1594
1594
  var Uri = /^[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
1595
1595
  function IsUri(value) {
1596
1596
  return Uri.test(value);
1597
1597
  }
1598
1598
 
1599
- // node_modules/typebox/build/format/url.mjs
1599
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/url.mjs
1600
1600
  function IsUrl(value) {
1601
1601
  return URL.canParse(value);
1602
1602
  }
1603
1603
 
1604
- // node_modules/typebox/build/format/uuid.mjs
1604
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/uuid.mjs
1605
1605
  var Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
1606
1606
  function IsUuid(value) {
1607
1607
  return Uuid.test(value);
1608
1608
  }
1609
1609
 
1610
- // node_modules/typebox/build/format/_registry.mjs
1610
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/format/_registry.mjs
1611
1611
  var formats = /* @__PURE__ */ new Map();
1612
1612
  function Clear() {
1613
1613
  formats.clear();
@@ -1653,7 +1653,7 @@ function Reset2() {
1653
1653
  }
1654
1654
  Reset2();
1655
1655
 
1656
- // node_modules/typebox/build/schema/engine/format.mjs
1656
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/format.mjs
1657
1657
  function CheckFormat(_stack, _context, schema, value) {
1658
1658
  return format_exports.Test(schema.format, value);
1659
1659
  }
@@ -1666,7 +1666,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) {
1666
1666
  });
1667
1667
  }
1668
1668
 
1669
- // node_modules/typebox/build/schema/engine/if.mjs
1669
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/if.mjs
1670
1670
  function CheckIf(stack, context, schema, value) {
1671
1671
  const thenSchema = IsThen(schema) ? schema.then : true;
1672
1672
  const elseSchema = IsElse(schema) ? schema.else : true;
@@ -1692,7 +1692,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) {
1692
1692
  return isIf;
1693
1693
  }
1694
1694
 
1695
- // node_modules/typebox/build/schema/engine/items.mjs
1695
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/items.mjs
1696
1696
  function CheckItemsSized(stack, context, schema, value) {
1697
1697
  return guard_exports.Every(schema.items, 0, (schema2, index) => {
1698
1698
  return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema2, value[index]) && context.AddIndex(index);
@@ -1726,7 +1726,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) {
1726
1726
  return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value);
1727
1727
  }
1728
1728
 
1729
- // node_modules/typebox/build/schema/engine/maxContains.mjs
1729
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/maxContains.mjs
1730
1730
  function IsValid3(schema) {
1731
1731
  return IsContains(schema);
1732
1732
  }
@@ -1746,7 +1746,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu
1746
1746
  });
1747
1747
  }
1748
1748
 
1749
- // node_modules/typebox/build/schema/engine/maximum.mjs
1749
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/maximum.mjs
1750
1750
  function CheckMaximum(_stack, _context, schema, value) {
1751
1751
  return guard_exports.IsLessEqualThan(value, schema.maximum);
1752
1752
  }
@@ -1759,7 +1759,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) {
1759
1759
  });
1760
1760
  }
1761
1761
 
1762
- // node_modules/typebox/build/schema/engine/maxItems.mjs
1762
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/maxItems.mjs
1763
1763
  function CheckMaxItems(_stack, _context, schema, value) {
1764
1764
  return guard_exports.IsLessEqualThan(value.length, schema.maxItems);
1765
1765
  }
@@ -1772,7 +1772,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)
1772
1772
  });
1773
1773
  }
1774
1774
 
1775
- // node_modules/typebox/build/schema/engine/maxLength.mjs
1775
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/maxLength.mjs
1776
1776
  function CheckMaxLength(_stack, _context, schema, value) {
1777
1777
  return guard_exports.IsMaxLength(value, schema.maxLength);
1778
1778
  }
@@ -1785,7 +1785,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)
1785
1785
  });
1786
1786
  }
1787
1787
 
1788
- // node_modules/typebox/build/schema/engine/maxProperties.mjs
1788
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/maxProperties.mjs
1789
1789
  function CheckMaxProperties(_stack, _context, schema, value) {
1790
1790
  return guard_exports.IsLessEqualThan(guard_exports.Keys(value).length, schema.maxProperties);
1791
1791
  }
@@ -1798,7 +1798,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va
1798
1798
  });
1799
1799
  }
1800
1800
 
1801
- // node_modules/typebox/build/schema/engine/minContains.mjs
1801
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/minContains.mjs
1802
1802
  function IsValid4(schema) {
1803
1803
  return IsContains(schema);
1804
1804
  }
@@ -1817,7 +1817,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu
1817
1817
  });
1818
1818
  }
1819
1819
 
1820
- // node_modules/typebox/build/schema/engine/minimum.mjs
1820
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/minimum.mjs
1821
1821
  function CheckMinimum(_stack, _context, schema, value) {
1822
1822
  return guard_exports.IsGreaterEqualThan(value, schema.minimum);
1823
1823
  }
@@ -1830,7 +1830,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) {
1830
1830
  });
1831
1831
  }
1832
1832
 
1833
- // node_modules/typebox/build/schema/engine/minItems.mjs
1833
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/minItems.mjs
1834
1834
  function CheckMinItems(_stack, _context, schema, value) {
1835
1835
  return guard_exports.IsGreaterEqualThan(value.length, schema.minItems);
1836
1836
  }
@@ -1843,7 +1843,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)
1843
1843
  });
1844
1844
  }
1845
1845
 
1846
- // node_modules/typebox/build/schema/engine/minLength.mjs
1846
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/minLength.mjs
1847
1847
  function CheckMinLength(_stack, _context, schema, value) {
1848
1848
  return guard_exports.IsMinLength(value, schema.minLength);
1849
1849
  }
@@ -1856,7 +1856,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)
1856
1856
  });
1857
1857
  }
1858
1858
 
1859
- // node_modules/typebox/build/schema/engine/minProperties.mjs
1859
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/minProperties.mjs
1860
1860
  function CheckMinProperties(_stack, _context, schema, value) {
1861
1861
  return guard_exports.IsGreaterEqualThan(guard_exports.Keys(value).length, schema.minProperties);
1862
1862
  }
@@ -1869,7 +1869,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va
1869
1869
  });
1870
1870
  }
1871
1871
 
1872
- // node_modules/typebox/build/schema/engine/multipleOf.mjs
1872
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/multipleOf.mjs
1873
1873
  function CheckMultipleOf(_stack, _context, schema, value) {
1874
1874
  return guard_exports.IsMultipleOf(value, schema.multipleOf);
1875
1875
  }
@@ -1882,7 +1882,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value
1882
1882
  });
1883
1883
  }
1884
1884
 
1885
- // node_modules/typebox/build/schema/engine/not.mjs
1885
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/not.mjs
1886
1886
  function CheckNot(stack, context, schema, value) {
1887
1887
  const nextContext = new CheckContext();
1888
1888
  const isSchema = !CheckSchema(stack, nextContext, schema.not, value);
@@ -1898,7 +1898,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) {
1898
1898
  });
1899
1899
  }
1900
1900
 
1901
- // node_modules/typebox/build/schema/engine/oneOf.mjs
1901
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/oneOf.mjs
1902
1902
  function CheckOneOf(stack, context, schema, value) {
1903
1903
  const passedContexts = schema.oneOf.reduce((result, schema2) => {
1904
1904
  const nextContext = new CheckContext();
@@ -1930,7 +1930,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) {
1930
1930
  });
1931
1931
  }
1932
1932
 
1933
- // node_modules/typebox/build/schema/engine/pattern.mjs
1933
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/pattern.mjs
1934
1934
  function CheckPattern(_stack, _context, schema, value) {
1935
1935
  const regexp = guard_exports.IsString(schema.pattern) ? UnicodeRegExp(schema.pattern) : schema.pattern;
1936
1936
  return regexp.test(value);
@@ -1944,7 +1944,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) {
1944
1944
  });
1945
1945
  }
1946
1946
 
1947
- // node_modules/typebox/build/schema/engine/patternProperties.mjs
1947
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/patternProperties.mjs
1948
1948
  function CheckPatternProperties(stack, context, schema, value) {
1949
1949
  return guard_exports.Every(guard_exports.Entries(schema.patternProperties), 0, ([pattern, schema2]) => {
1950
1950
  const regexp = UnicodeRegExp(pattern);
@@ -1965,7 +1965,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema
1965
1965
  });
1966
1966
  }
1967
1967
 
1968
- // node_modules/typebox/build/schema/engine/prefixItems.mjs
1968
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/prefixItems.mjs
1969
1969
  function CheckPrefixItems(stack, context, schema, value) {
1970
1970
  return guard_exports.IsEqual(value.length, 0) || guard_exports.Every(schema.prefixItems, 0, (schema2, index) => {
1971
1971
  return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema2, value[index]) && context.AddIndex(index);
@@ -1979,7 +1979,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu
1979
1979
  });
1980
1980
  }
1981
1981
 
1982
- // node_modules/typebox/build/schema/engine/_exact_optional.mjs
1982
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/_exact_optional.mjs
1983
1983
  function IsExactOptional(required, key) {
1984
1984
  return required.includes(key) || settings_exports.Get().exactOptionalPropertyTypes;
1985
1985
  }
@@ -1987,7 +1987,7 @@ function InexactOptionalCheck(value, key) {
1987
1987
  return guard_exports.IsUndefined(value[key]);
1988
1988
  }
1989
1989
 
1990
- // node_modules/typebox/build/schema/engine/properties.mjs
1990
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/properties.mjs
1991
1991
  function CheckProperties(stack, context, schema, value) {
1992
1992
  const required = IsRequired(schema) ? schema.required : [];
1993
1993
  const isProperties = guard_exports.Every(guard_exports.Entries(schema.properties), 0, ([key, schema2]) => {
@@ -2007,7 +2007,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value
2007
2007
  return isProperties;
2008
2008
  }
2009
2009
 
2010
- // node_modules/typebox/build/schema/engine/propertyNames.mjs
2010
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/propertyNames.mjs
2011
2011
  function CheckPropertyNames(stack, context, schema, value) {
2012
2012
  return guard_exports.Every(guard_exports.Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key));
2013
2013
  }
@@ -2029,7 +2029,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va
2029
2029
  });
2030
2030
  }
2031
2031
 
2032
- // node_modules/typebox/build/schema/engine/recursiveRef.mjs
2032
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/recursiveRef.mjs
2033
2033
  function CheckRecursiveRef(stack, context, schema, value) {
2034
2034
  const target = stack.RecursiveRef(schema) ?? false;
2035
2035
  return IsSchema(target) && CheckSchema(stack, context, target, value);
@@ -2039,7 +2039,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va
2039
2039
  return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value);
2040
2040
  }
2041
2041
 
2042
- // node_modules/typebox/build/schema/engine/ref.mjs
2042
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/ref.mjs
2043
2043
  function CheckRef(stack, context, schema, value) {
2044
2044
  const target = stack.Ref(schema) ?? false;
2045
2045
  const nextContext = new CheckContext();
@@ -2059,7 +2059,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) {
2059
2059
  return result;
2060
2060
  }
2061
2061
 
2062
- // node_modules/typebox/build/schema/engine/required.mjs
2062
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/required.mjs
2063
2063
  function CheckRequired(_stack, _context, schema, value) {
2064
2064
  return guard_exports.Every(schema.required, 0, (key) => guard_exports.HasPropertyKey(value, key));
2065
2065
  }
@@ -2079,7 +2079,7 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value)
2079
2079
  });
2080
2080
  }
2081
2081
 
2082
- // node_modules/typebox/build/schema/engine/type.mjs
2082
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/type.mjs
2083
2083
  function CheckTypeName(_stack, _context, type, _schema, value) {
2084
2084
  return (
2085
2085
  // jsonschema
@@ -2105,7 +2105,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) {
2105
2105
  });
2106
2106
  }
2107
2107
 
2108
- // node_modules/typebox/build/schema/engine/unevaluatedItems.mjs
2108
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs
2109
2109
  function CheckUnevaluatedItems(stack, context, schema, value) {
2110
2110
  const indices = context.GetIndices();
2111
2111
  return guard_exports.Every(value, 0, (item, index) => {
@@ -2130,7 +2130,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema,
2130
2130
  });
2131
2131
  }
2132
2132
 
2133
- // node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs
2133
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs
2134
2134
  function CheckUnevaluatedProperties(stack, context, schema, value) {
2135
2135
  const keys = context.GetKeys();
2136
2136
  return guard_exports.Every(guard_exports.Entries(value), 0, ([key, prop]) => {
@@ -2155,19 +2155,19 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc
2155
2155
  });
2156
2156
  }
2157
2157
 
2158
- // node_modules/typebox/build/system/hashing/hash.mjs
2158
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/hashing/hash.mjs
2159
2159
  var hash_exports = {};
2160
2160
  __export(hash_exports, {
2161
2161
  Hash: () => Hash,
2162
2162
  HashCode: () => HashCode
2163
2163
  });
2164
2164
 
2165
- // node_modules/typebox/build/system/unreachable/unreachable.mjs
2165
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/unreachable/unreachable.mjs
2166
2166
  function Unreachable() {
2167
2167
  throw new Error("Unreachable");
2168
2168
  }
2169
2169
 
2170
- // node_modules/typebox/build/system/hashing/hash.mjs
2170
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/hashing/hash.mjs
2171
2171
  function InstanceKeys(value) {
2172
2172
  const propertyKeys = /* @__PURE__ */ new Set();
2173
2173
  let current = value;
@@ -2301,7 +2301,7 @@ function Hash(value) {
2301
2301
  return HashCode(value).toString(16).padStart(16, "0");
2302
2302
  }
2303
2303
 
2304
- // node_modules/typebox/build/schema/engine/uniqueItems.mjs
2304
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/uniqueItems.mjs
2305
2305
  function IsValid5(schema) {
2306
2306
  return !guard_exports.IsEqual(schema.uniqueItems, false);
2307
2307
  }
@@ -2332,7 +2332,7 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val
2332
2332
  });
2333
2333
  }
2334
2334
 
2335
- // node_modules/typebox/build/schema/engine/schema.mjs
2335
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/schema.mjs
2336
2336
  function CheckSchemaPushStack(stack, context, schema, value) {
2337
2337
  return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop();
2338
2338
  }
@@ -2354,7 +2354,7 @@ function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) {
2354
2354
  return result;
2355
2355
  }
2356
2356
 
2357
- // node_modules/typebox/build/schema/resolve/resolve.mjs
2357
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/resolve/resolve.mjs
2358
2358
  var resolve_exports = {};
2359
2359
  __export(resolve_exports, {
2360
2360
  Base: () => Base,
@@ -2367,7 +2367,7 @@ __export(resolve_exports, {
2367
2367
  Resource: () => Resource
2368
2368
  });
2369
2369
 
2370
- // node_modules/typebox/build/schema/pointer/pointer.mjs
2370
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/pointer/pointer.mjs
2371
2371
  var pointer_exports = {};
2372
2372
  __export(pointer_exports, {
2373
2373
  Delete: () => Delete,
@@ -2454,7 +2454,7 @@ function Delete(value, pointer) {
2454
2454
  return value;
2455
2455
  }
2456
2456
 
2457
- // node_modules/typebox/build/schema/resolve/resolve.mjs
2457
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/resolve/resolve.mjs
2458
2458
  var DefaultBase = "https://json-schema.org";
2459
2459
  function FindDynamicAnchor(schema, name) {
2460
2460
  if (guard_exports.IsObject(schema) && IsDynamicAnchor(schema) && guard_exports.IsEqual(schema.$dynamicAnchor, name)) {
@@ -2670,7 +2670,7 @@ function ResolveDynamicRef(stackframe, dynamicRef) {
2670
2670
  return DynamicRef(stackframe.context, stackframe.root, stackframe.lexicalBase, stackframe.lexicalSchema, dynamicRef, stackframe.dynamicAnchors);
2671
2671
  }
2672
2672
 
2673
- // node_modules/typebox/build/schema/engine/_stack.mjs
2673
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/engine/_stack.mjs
2674
2674
  var __classPrivateFieldGet = function(receiver, state, kind, f) {
2675
2675
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2676
2676
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -2884,7 +2884,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_StackFrame = function _
2884
2884
  this.resolvedResources.delete(target);
2885
2885
  };
2886
2886
 
2887
- // node_modules/typebox/build/system/locale/en_US.mjs
2887
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/locale/en_US.mjs
2888
2888
  function en_US(error) {
2889
2889
  switch (error.keyword) {
2890
2890
  case "additionalProperties":
@@ -2955,13 +2955,13 @@ function en_US(error) {
2955
2955
  }
2956
2956
  }
2957
2957
 
2958
- // node_modules/typebox/build/system/locale/_config.mjs
2958
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/locale/_config.mjs
2959
2959
  var locale = en_US;
2960
2960
  function Get4() {
2961
2961
  return locale;
2962
2962
  }
2963
2963
 
2964
- // node_modules/typebox/build/system/memory/memory.mjs
2964
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/memory.mjs
2965
2965
  var memory_exports = {};
2966
2966
  __export(memory_exports, {
2967
2967
  Assign: () => Assign,
@@ -2972,7 +2972,7 @@ __export(memory_exports, {
2972
2972
  Update: () => Update
2973
2973
  });
2974
2974
 
2975
- // node_modules/typebox/build/system/memory/metrics.mjs
2975
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/metrics.mjs
2976
2976
  var Metrics = {
2977
2977
  assign: 0,
2978
2978
  create: 0,
@@ -2981,18 +2981,18 @@ var Metrics = {
2981
2981
  update: 0
2982
2982
  };
2983
2983
 
2984
- // node_modules/typebox/build/system/memory/freeze.mjs
2984
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/freeze.mjs
2985
2985
  function Freeze(value) {
2986
2986
  return settings_exports.Get().immutableTypes ? Object.freeze(value) : value;
2987
2987
  }
2988
2988
 
2989
- // node_modules/typebox/build/system/memory/assign.mjs
2989
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/assign.mjs
2990
2990
  function Assign(left, right) {
2991
2991
  Metrics.assign += 1;
2992
2992
  return Freeze({ ...left, ...right });
2993
2993
  }
2994
2994
 
2995
- // node_modules/typebox/build/system/memory/clone.mjs
2995
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/clone.mjs
2996
2996
  function FromClassInstance(value) {
2997
2997
  return value;
2998
2998
  }
@@ -3052,7 +3052,7 @@ function Clone(value) {
3052
3052
  return FromValue3(value);
3053
3053
  }
3054
3054
 
3055
- // node_modules/typebox/build/system/memory/create.mjs
3055
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/create.mjs
3056
3056
  function MergeHidden(left, right) {
3057
3057
  for (const key of Object.keys(right)) {
3058
3058
  Object.defineProperty(left, key, {
@@ -3074,7 +3074,7 @@ function Create(hidden, enumerable, options = {}) {
3074
3074
  return Freeze(withHidden);
3075
3075
  }
3076
3076
 
3077
- // node_modules/typebox/build/system/memory/discard.mjs
3077
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/discard.mjs
3078
3078
  function Discard(value, propertyKeys) {
3079
3079
  Metrics.discard += 1;
3080
3080
  const result = {};
@@ -3088,7 +3088,7 @@ function Discard(value, propertyKeys) {
3088
3088
  return Freeze(result);
3089
3089
  }
3090
3090
 
3091
- // node_modules/typebox/build/system/memory/update.mjs
3091
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/system/memory/update.mjs
3092
3092
  function Update(current, hidden, enumerable) {
3093
3093
  Metrics.update += 1;
3094
3094
  const settings2 = settings_exports.Get();
@@ -3112,7 +3112,7 @@ function Update(current, hidden, enumerable) {
3112
3112
  return Freeze(result);
3113
3113
  }
3114
3114
 
3115
- // node_modules/typebox/build/schema/errors.mjs
3115
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/errors.mjs
3116
3116
  function Errors(...args) {
3117
3117
  const [context, schema, value] = arguments_exports.Match(args, {
3118
3118
  3: (context2, schema2, value2) => [context2, schema2, value2],
@@ -3127,7 +3127,7 @@ function Errors(...args) {
3127
3127
  return [result, localized];
3128
3128
  }
3129
3129
 
3130
- // node_modules/typebox/build/schema/check.mjs
3130
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/schema/check.mjs
3131
3131
  function Check(...args) {
3132
3132
  const [context, schema, value] = arguments_exports.Match(args, {
3133
3133
  3: (context2, schema2, value2) => [context2, schema2, value2],
@@ -3138,7 +3138,7 @@ function Check(...args) {
3138
3138
  return CheckSchema(stack, checkContext, schema, value);
3139
3139
  }
3140
3140
 
3141
- // node_modules/typebox/build/value/check/check.mjs
3141
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/check/check.mjs
3142
3142
  function Check2(...args) {
3143
3143
  const [context, type, value] = arguments_exports.Match(args, {
3144
3144
  3: (context2, type2, value2) => [context2, type2, value2],
@@ -3147,7 +3147,7 @@ function Check2(...args) {
3147
3147
  return Check(context, type, value);
3148
3148
  }
3149
3149
 
3150
- // node_modules/typebox/build/value/errors/errors.mjs
3150
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/errors/errors.mjs
3151
3151
  function Errors2(...args) {
3152
3152
  const [context, type, value] = arguments_exports.Match(args, {
3153
3153
  3: (context2, type2, value2) => [context2, type2, value2],
@@ -3157,7 +3157,7 @@ function Errors2(...args) {
3157
3157
  return errors;
3158
3158
  }
3159
3159
 
3160
- // node_modules/typebox/build/value/assert/assert.mjs
3160
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/assert/assert.mjs
3161
3161
  var AssertError = class extends Error {
3162
3162
  constructor(source, value, errors) {
3163
3163
  super(source);
@@ -3170,7 +3170,7 @@ var AssertError = class extends Error {
3170
3170
  }
3171
3171
  };
3172
3172
 
3173
- // node_modules/typebox/build/type/types/schema.mjs
3173
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/schema.mjs
3174
3174
  function IsKind(value, kind) {
3175
3175
  return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, "~kind") && guard_exports.IsEqual(value["~kind"], kind);
3176
3176
  }
@@ -3178,7 +3178,7 @@ function IsSchema2(value) {
3178
3178
  return guard_exports.IsObject(value);
3179
3179
  }
3180
3180
 
3181
- // node_modules/typebox/build/type/types/deferred.mjs
3181
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/deferred.mjs
3182
3182
  function Deferred(action, parameters, options) {
3183
3183
  return memory_exports.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters, options }, {});
3184
3184
  }
@@ -3186,7 +3186,7 @@ function IsDeferred(value) {
3186
3186
  return IsKind(value, "Deferred");
3187
3187
  }
3188
3188
 
3189
- // node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
3189
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
3190
3190
  function AddReadonlyOperation(type) {
3191
3191
  return memory_exports.Update(type, { "~readonly": true }, {});
3192
3192
  }
@@ -3199,7 +3199,7 @@ function AddReadonlyInstantiate(context, state, type, options) {
3199
3199
  return AddReadonlyAction(instantiatedType, options);
3200
3200
  }
3201
3201
 
3202
- // node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
3202
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
3203
3203
  function AddOptionalOperation(type) {
3204
3204
  return memory_exports.Update(type, { "~optional": true }, {});
3205
3205
  }
@@ -3212,7 +3212,7 @@ function AddOptionalInstantiate(context, state, type, options) {
3212
3212
  return AddOptionalAction(instantiatedType, options);
3213
3213
  }
3214
3214
 
3215
- // node_modules/typebox/build/type/types/array.mjs
3215
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/array.mjs
3216
3216
  function _Array_(items, options) {
3217
3217
  return memory_exports.Create({ "~kind": "Array" }, { type: "array", items }, options);
3218
3218
  }
@@ -3223,7 +3223,7 @@ function ArrayOptions(type) {
3223
3223
  return memory_exports.Discard(type, ["~kind", "type", "items"]);
3224
3224
  }
3225
3225
 
3226
- // node_modules/typebox/build/type/types/constructor.mjs
3226
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/constructor.mjs
3227
3227
  function Constructor(parameters, instanceType, options = {}) {
3228
3228
  return memory_exports.Create({ "~kind": "Constructor" }, { type: "constructor", parameters, instanceType }, options);
3229
3229
  }
@@ -3234,7 +3234,7 @@ function ConstructorOptions(type) {
3234
3234
  return memory_exports.Discard(type, ["~kind", "type", "parameters", "instanceType"]);
3235
3235
  }
3236
3236
 
3237
- // node_modules/typebox/build/type/types/function.mjs
3237
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/function.mjs
3238
3238
  function _Function_(parameters, returnType, options = {}) {
3239
3239
  return memory_exports.Create({ ["~kind"]: "Function" }, { type: "function", parameters, returnType }, options);
3240
3240
  }
@@ -3245,7 +3245,7 @@ function FunctionOptions(type) {
3245
3245
  return memory_exports.Discard(type, ["~kind", "type", "parameters", "returnType"]);
3246
3246
  }
3247
3247
 
3248
- // node_modules/typebox/build/type/types/ref.mjs
3248
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/ref.mjs
3249
3249
  function Ref2(ref, options) {
3250
3250
  return memory_exports.Create({ ["~kind"]: "Ref" }, { $ref: ref }, options);
3251
3251
  }
@@ -3253,7 +3253,7 @@ function IsRef2(value) {
3253
3253
  return IsKind(value, "Ref");
3254
3254
  }
3255
3255
 
3256
- // node_modules/typebox/build/type/types/generic.mjs
3256
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/generic.mjs
3257
3257
  function Generic(parameters, expression) {
3258
3258
  return memory_exports.Create({ "~kind": "Generic" }, { type: "generic", parameters, expression });
3259
3259
  }
@@ -3261,7 +3261,7 @@ function IsGeneric(value) {
3261
3261
  return IsKind(value, "Generic");
3262
3262
  }
3263
3263
 
3264
- // node_modules/typebox/build/type/types/any.mjs
3264
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/any.mjs
3265
3265
  function Any(options) {
3266
3266
  return memory_exports.Create({ ["~kind"]: "Any" }, {}, options);
3267
3267
  }
@@ -3269,7 +3269,7 @@ function IsAny(value) {
3269
3269
  return IsKind(value, "Any");
3270
3270
  }
3271
3271
 
3272
- // node_modules/typebox/build/type/types/never.mjs
3272
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/never.mjs
3273
3273
  var NeverPattern = "(?!)";
3274
3274
  function Never(options) {
3275
3275
  return memory_exports.Create({ "~kind": "Never" }, { not: {} }, options);
@@ -3278,7 +3278,7 @@ function IsNever(value) {
3278
3278
  return IsKind(value, "Never");
3279
3279
  }
3280
3280
 
3281
- // node_modules/typebox/build/type/action/_add_optional.mjs
3281
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/_add_optional.mjs
3282
3282
  function AddOptionalDeferred(type, options = {}) {
3283
3283
  return Deferred("AddOptional", [type], options);
3284
3284
  }
@@ -3286,7 +3286,7 @@ function AddOptional(type, options = {}) {
3286
3286
  return AddOptionalAction(type, options);
3287
3287
  }
3288
3288
 
3289
- // node_modules/typebox/build/type/types/_optional.mjs
3289
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/_optional.mjs
3290
3290
  function Optional(type) {
3291
3291
  return AddOptional(type);
3292
3292
  }
@@ -3294,7 +3294,7 @@ function IsOptional(value) {
3294
3294
  return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~optional");
3295
3295
  }
3296
3296
 
3297
- // node_modules/typebox/build/type/types/properties.mjs
3297
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/properties.mjs
3298
3298
  function RequiredArray(properties) {
3299
3299
  return guard_exports.Keys(properties).filter((key) => !IsOptional(properties[key]));
3300
3300
  }
@@ -3305,7 +3305,7 @@ function PropertyValues(properties) {
3305
3305
  return guard_exports.Values(properties);
3306
3306
  }
3307
3307
 
3308
- // node_modules/typebox/build/type/types/object.mjs
3308
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/object.mjs
3309
3309
  function _Object_(properties, options = {}) {
3310
3310
  const requiredKeys = RequiredArray(properties);
3311
3311
  const required = requiredKeys.length > 0 ? { required: requiredKeys } : {};
@@ -3318,7 +3318,7 @@ function ObjectOptions(type) {
3318
3318
  return memory_exports.Discard(type, ["~kind", "type", "properties", "required"]);
3319
3319
  }
3320
3320
 
3321
- // node_modules/typebox/build/type/types/unknown.mjs
3321
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/unknown.mjs
3322
3322
  function Unknown(options) {
3323
3323
  return memory_exports.Create({ ["~kind"]: "Unknown" }, {}, options);
3324
3324
  }
@@ -3326,7 +3326,7 @@ function IsUnknown(value) {
3326
3326
  return IsKind(value, "Unknown");
3327
3327
  }
3328
3328
 
3329
- // node_modules/typebox/build/type/types/cyclic.mjs
3329
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/cyclic.mjs
3330
3330
  function Cyclic($defs, $ref, options) {
3331
3331
  const defs = guard_exports.Keys($defs).reduce((result, key) => {
3332
3332
  return { ...result, [key]: memory_exports.Update($defs[key], {}, { $id: key }) };
@@ -3337,7 +3337,7 @@ function IsCyclic(value) {
3337
3337
  return IsKind(value, "Cyclic");
3338
3338
  }
3339
3339
 
3340
- // node_modules/typebox/build/type/types/unsafe.mjs
3340
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/unsafe.mjs
3341
3341
  function Unsafe(schema) {
3342
3342
  return memory_exports.Update(schema, { ["~unsafe"]: null }, {});
3343
3343
  }
@@ -3345,7 +3345,7 @@ function IsUnsafe(value) {
3345
3345
  return guard_exports.IsObjectNotArray(value) && guard_exports.HasPropertyKey(value, "~unsafe") && guard_exports.IsNull(value["~unsafe"]);
3346
3346
  }
3347
3347
 
3348
- // node_modules/typebox/build/type/types/infer.mjs
3348
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/infer.mjs
3349
3349
  function Infer(...args) {
3350
3350
  const [name, extends_] = arguments_exports.Match(args, {
3351
3351
  2: (name2, extends_2) => [name2, extends_2, extends_2],
@@ -3357,7 +3357,7 @@ function IsInfer(value) {
3357
3357
  return IsKind(value, "Infer");
3358
3358
  }
3359
3359
 
3360
- // node_modules/typebox/build/type/types/dependent.mjs
3360
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/dependent.mjs
3361
3361
  function Dependent(if_, then_, else_, options = {}) {
3362
3362
  return memory_exports.Create({ "~kind": "Dependent" }, { if: if_, then: then_, else: else_ }, options);
3363
3363
  }
@@ -3368,7 +3368,7 @@ function DependentOptions(type) {
3368
3368
  return memory_exports.Discard(type, ["~kind", "if", "then", "else"]);
3369
3369
  }
3370
3370
 
3371
- // node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
3371
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
3372
3372
  function IsTypeScriptEnumLike(value) {
3373
3373
  return guard_exports.IsObjectNotArray(value);
3374
3374
  }
@@ -3377,7 +3377,7 @@ function TypeScriptEnumToEnumValues(type) {
3377
3377
  return keys.reduce((result, key) => [...result, type[key]], []);
3378
3378
  }
3379
3379
 
3380
- // node_modules/typebox/build/type/types/enum.mjs
3380
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/enum.mjs
3381
3381
  function IsEnumValue(value) {
3382
3382
  return guard_exports.IsString(value) || guard_exports.IsNumber(value);
3383
3383
  }
@@ -3389,7 +3389,7 @@ function IsEnum2(value) {
3389
3389
  return IsKind(value, "Enum");
3390
3390
  }
3391
3391
 
3392
- // node_modules/typebox/build/type/types/intersect.mjs
3392
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/intersect.mjs
3393
3393
  function Intersect(types, options = {}) {
3394
3394
  return memory_exports.Create({ "~kind": "Intersect" }, { allOf: types }, options);
3395
3395
  }
@@ -3400,7 +3400,7 @@ function IntersectOptions(type) {
3400
3400
  return memory_exports.Discard(type, ["~kind", "allOf"]);
3401
3401
  }
3402
3402
 
3403
- // node_modules/typebox/build/type/types/_codec.mjs
3403
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/_codec.mjs
3404
3404
  var EncodeBuilder = class {
3405
3405
  constructor(type, decode2) {
3406
3406
  this.type = type;
@@ -3439,7 +3439,7 @@ function IsCodec(value) {
3439
3439
  return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~codec") && guard_exports.IsObject(value["~codec"]) && guard_exports.HasPropertyKey(value["~codec"], "encode") && guard_exports.HasPropertyKey(value["~codec"], "decode");
3440
3440
  }
3441
3441
 
3442
- // node_modules/typebox/build/type/types/_immutable.mjs
3442
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/_immutable.mjs
3443
3443
  function Immutable(type) {
3444
3444
  return AddImmutable(type);
3445
3445
  }
@@ -3447,7 +3447,7 @@ function IsImmutable(value) {
3447
3447
  return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~immutable");
3448
3448
  }
3449
3449
 
3450
- // node_modules/typebox/build/type/action/_add_readonly.mjs
3450
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/_add_readonly.mjs
3451
3451
  function AddReadonlyDeferred(type, options = {}) {
3452
3452
  return Deferred("AddReadonly", [type], options);
3453
3453
  }
@@ -3455,7 +3455,7 @@ function AddReadonly(type, options = {}) {
3455
3455
  return AddReadonlyAction(type, options);
3456
3456
  }
3457
3457
 
3458
- // node_modules/typebox/build/type/types/_readonly.mjs
3458
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/_readonly.mjs
3459
3459
  function Readonly(type) {
3460
3460
  return AddReadonly(type);
3461
3461
  }
@@ -3463,7 +3463,7 @@ function IsReadonly(value) {
3463
3463
  return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~readonly");
3464
3464
  }
3465
3465
 
3466
- // node_modules/typebox/build/type/types/_refine.mjs
3466
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/_refine.mjs
3467
3467
  function RefineAdd(type, refinement) {
3468
3468
  const refinements = IsRefine2(type) ? [...type["~refine"], refinement] : [refinement];
3469
3469
  return memory_exports.Update(type, { "~refine": refinements }, {});
@@ -3482,7 +3482,7 @@ function IsRefine2(value) {
3482
3482
  return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~refine") && guard_exports.IsArray(value["~refine"]) && guard_exports.Every(value["~refine"], 0, (value2) => IsRefinement(value2));
3483
3483
  }
3484
3484
 
3485
- // node_modules/typebox/build/type/types/bigint.mjs
3485
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/bigint.mjs
3486
3486
  var BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
3487
3487
  function BigInt2(options) {
3488
3488
  return memory_exports.Create({ "~kind": "BigInt" }, { type: "bigint" }, options);
@@ -3491,7 +3491,7 @@ function IsBigInt2(value) {
3491
3491
  return IsKind(value, "BigInt");
3492
3492
  }
3493
3493
 
3494
- // node_modules/typebox/build/type/types/boolean.mjs
3494
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/boolean.mjs
3495
3495
  function Boolean2(options) {
3496
3496
  return memory_exports.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
3497
3497
  }
@@ -3499,7 +3499,7 @@ function IsBoolean3(value) {
3499
3499
  return IsKind(value, "Boolean");
3500
3500
  }
3501
3501
 
3502
- // node_modules/typebox/build/type/types/identifier.mjs
3502
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/identifier.mjs
3503
3503
  function Identifier(name) {
3504
3504
  return memory_exports.Create({ "~kind": "Identifier" }, { name });
3505
3505
  }
@@ -3507,7 +3507,7 @@ function IsIdentifier(value) {
3507
3507
  return IsKind(value, "Identifier");
3508
3508
  }
3509
3509
 
3510
- // node_modules/typebox/build/type/types/integer.mjs
3510
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/integer.mjs
3511
3511
  var IntegerPattern = "-?(?:0|[1-9][0-9]*)";
3512
3512
  function Integer(options) {
3513
3513
  return memory_exports.Create({ "~kind": "Integer" }, { type: "integer" }, options);
@@ -3516,7 +3516,7 @@ function IsInteger2(value) {
3516
3516
  return IsKind(value, "Integer");
3517
3517
  }
3518
3518
 
3519
- // node_modules/typebox/build/type/types/literal.mjs
3519
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/literal.mjs
3520
3520
  var InvalidLiteralValue = class extends Error {
3521
3521
  constructor(value) {
3522
3522
  super(`Invalid Literal value`);
@@ -3555,7 +3555,7 @@ function IsLiteral(value) {
3555
3555
  return IsKind(value, "Literal");
3556
3556
  }
3557
3557
 
3558
- // node_modules/typebox/build/type/types/null.mjs
3558
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/null.mjs
3559
3559
  function Null(options) {
3560
3560
  return memory_exports.Create({ "~kind": "Null" }, { type: "null" }, options);
3561
3561
  }
@@ -3563,7 +3563,7 @@ function IsNull2(value) {
3563
3563
  return IsKind(value, "Null");
3564
3564
  }
3565
3565
 
3566
- // node_modules/typebox/build/type/types/number.mjs
3566
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/number.mjs
3567
3567
  var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
3568
3568
  function Number2(options) {
3569
3569
  return memory_exports.Create({ "~kind": "Number" }, { type: "number" }, options);
@@ -3572,7 +3572,7 @@ function IsNumber3(value) {
3572
3572
  return IsKind(value, "Number");
3573
3573
  }
3574
3574
 
3575
- // node_modules/typebox/build/type/types/symbol.mjs
3575
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/symbol.mjs
3576
3576
  function Symbol2(options) {
3577
3577
  return memory_exports.Create({ "~kind": "Symbol" }, { type: "symbol" }, options);
3578
3578
  }
@@ -3580,7 +3580,7 @@ function IsSymbol2(value) {
3580
3580
  return IsKind(value, "Symbol");
3581
3581
  }
3582
3582
 
3583
- // node_modules/typebox/build/type/types/parameter.mjs
3583
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/parameter.mjs
3584
3584
  function Parameter(...args) {
3585
3585
  const [name, extends_, equals] = arguments_exports.Match(args, {
3586
3586
  3: (name2, extends_2, equals2) => [name2, extends_2, equals2],
@@ -3593,7 +3593,7 @@ function IsParameter(value) {
3593
3593
  return IsKind(value, "Parameter");
3594
3594
  }
3595
3595
 
3596
- // node_modules/typebox/build/type/types/string.mjs
3596
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/string.mjs
3597
3597
  var StringPattern = ".*";
3598
3598
  function String2(options) {
3599
3599
  return memory_exports.Create({ "~kind": "String" }, { type: "string" }, options);
@@ -3602,7 +3602,7 @@ function IsString3(value) {
3602
3602
  return IsKind(value, "String");
3603
3603
  }
3604
3604
 
3605
- // node_modules/typebox/build/type/types/union.mjs
3605
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/union.mjs
3606
3606
  function Union(anyOf, options = {}) {
3607
3607
  return memory_exports.Create({ "~kind": "Union" }, { anyOf }, options);
3608
3608
  }
@@ -3613,14 +3613,14 @@ function UnionOptions(type) {
3613
3613
  return memory_exports.Discard(type, ["~kind", "anyOf"]);
3614
3614
  }
3615
3615
 
3616
- // node_modules/typebox/build/type/engine/patterns/pattern.mjs
3616
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/patterns/pattern.mjs
3617
3617
  function ParsePatternIntoTypes(pattern) {
3618
3618
  const parsed = Pattern(pattern);
3619
3619
  const result = guard_exports.IsEqual(parsed.length, 2) ? parsed[0] : [];
3620
3620
  return result;
3621
3621
  }
3622
3622
 
3623
- // node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
3623
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
3624
3624
  function FromLiteral(_value) {
3625
3625
  return true;
3626
3626
  }
@@ -3639,12 +3639,12 @@ function IsTemplateLiteralFinite(types) {
3639
3639
  return result;
3640
3640
  }
3641
3641
 
3642
- // node_modules/typebox/build/type/engine/template_literal/create.mjs
3642
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/template_literal/create.mjs
3643
3643
  function TemplateLiteralCreate(pattern) {
3644
3644
  return memory_exports.Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", pattern }, {});
3645
3645
  }
3646
3646
 
3647
- // node_modules/typebox/build/type/engine/template_literal/decode.mjs
3647
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/template_literal/decode.mjs
3648
3648
  function FromLiteralPush(variants, value, result = []) {
3649
3649
  return guard_exports.ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result);
3650
3650
  }
@@ -3687,24 +3687,24 @@ function TemplateLiteralDecode(pattern) {
3687
3687
  return result;
3688
3688
  }
3689
3689
 
3690
- // node_modules/typebox/build/type/engine/record/record_create.mjs
3690
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/record_create.mjs
3691
3691
  function CreateRecord(key, value) {
3692
3692
  const type = "object";
3693
3693
  const patternProperties = { [key]: value };
3694
3694
  return memory_exports.Create({ ["~kind"]: "Record" }, { type, patternProperties });
3695
3695
  }
3696
3696
 
3697
- // node_modules/typebox/build/type/engine/record/from_key_any.mjs
3697
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_any.mjs
3698
3698
  function FromAnyKey(value) {
3699
3699
  return CreateRecord(StringKey, value);
3700
3700
  }
3701
3701
 
3702
- // node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
3702
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
3703
3703
  function FromBooleanKey(value) {
3704
3704
  return _Object_({ true: value, false: value });
3705
3705
  }
3706
3706
 
3707
- // node_modules/typebox/build/type/types/tuple.mjs
3707
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/tuple.mjs
3708
3708
  function Tuple(types, options = {}) {
3709
3709
  const [items, minItems, additionalItems] = [types, types.length, false];
3710
3710
  return memory_exports.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
@@ -3716,7 +3716,7 @@ function TupleOptions(type) {
3716
3716
  return memory_exports.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
3717
3717
  }
3718
3718
 
3719
- // node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
3719
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
3720
3720
  function RemoveReadonlyOperation(type) {
3721
3721
  return memory_exports.Discard(type, ["~readonly"]);
3722
3722
  }
@@ -3729,7 +3729,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) {
3729
3729
  return RemoveReadonlyAction(instantiatedType, options);
3730
3730
  }
3731
3731
 
3732
- // node_modules/typebox/build/type/action/_remove_readonly.mjs
3732
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/_remove_readonly.mjs
3733
3733
  function RemoveReadonlyDeferred(type, options = {}) {
3734
3734
  return Deferred("RemoveReadonly", [type], options);
3735
3735
  }
@@ -3737,7 +3737,7 @@ function RemoveReadonly(type, options = {}) {
3737
3737
  return RemoveReadonlyAction(type, options);
3738
3738
  }
3739
3739
 
3740
- // node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
3740
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
3741
3741
  function RemoveOptionalOperation(type) {
3742
3742
  return memory_exports.Discard(type, ["~optional"]);
3743
3743
  }
@@ -3750,7 +3750,7 @@ function RemoveOptionalInstantiate(context, state, type, options) {
3750
3750
  return RemoveOptionalAction(instantiatedType, options);
3751
3751
  }
3752
3752
 
3753
- // node_modules/typebox/build/type/action/_remove_optional.mjs
3753
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/_remove_optional.mjs
3754
3754
  function RemoveOptionalDeferred(type, options = {}) {
3755
3755
  return Deferred("RemoveOptional", [type], options);
3756
3756
  }
@@ -3758,7 +3758,7 @@ function RemoveOptional(type, options = {}) {
3758
3758
  return RemoveOptionalAction(type, options);
3759
3759
  }
3760
3760
 
3761
- // node_modules/typebox/build/type/engine/tuple/to_object.mjs
3761
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/tuple/to_object.mjs
3762
3762
  function TupleElementsToProperties(types) {
3763
3763
  const result = types.reduceRight((result2, right, index) => {
3764
3764
  return { [index]: right, ...result2 };
@@ -3771,7 +3771,7 @@ function TupleToObject(type) {
3771
3771
  return result;
3772
3772
  }
3773
3773
 
3774
- // node_modules/typebox/build/type/engine/evaluate/composite.mjs
3774
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/composite.mjs
3775
3775
  function CanComposite(type) {
3776
3776
  return IsObject2(type) || IsTuple(type);
3777
3777
  }
@@ -3810,7 +3810,7 @@ function Composite(left, right) {
3810
3810
  return result;
3811
3811
  }
3812
3812
 
3813
- // node_modules/typebox/build/type/engine/evaluate/narrow.mjs
3813
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/narrow.mjs
3814
3814
  function NarrowCompareRule(left, right) {
3815
3815
  const result = Compare(left, right);
3816
3816
  return guard_exports.IsEqual(result, CompareResultLeftInside) ? left : guard_exports.IsEqual(result, CompareResultRightInside) ? right : guard_exports.IsEqual(result, CompareResultEqual) ? right : Never();
@@ -3824,7 +3824,7 @@ function Narrow(left, right) {
3824
3824
  return IsNever(left) ? left : IsAny(left) ? left : IsUnknown(left) ? right : IsNever(right) ? right : IsAny(right) ? right : IsUnknown(right) ? left : NarrowCompositeRule(left, right);
3825
3825
  }
3826
3826
 
3827
- // node_modules/typebox/build/type/engine/evaluate/distribute.mjs
3827
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/distribute.mjs
3828
3828
  function ShouldEvaluate(left, right) {
3829
3829
  const result = IsUnion(left) || IsUnion(right);
3830
3830
  return result;
@@ -3846,7 +3846,7 @@ function Distribute(types, result = []) {
3846
3846
  return guard_exports.ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute(right, DistributeUnion(left.anyOf, result)) : Distribute(right, DistributeType(left, result)), () => result);
3847
3847
  }
3848
3848
 
3849
- // node_modules/typebox/build/type/engine/exclude/operation.mjs
3849
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/exclude/operation.mjs
3850
3850
  function ExcludeType(left, right) {
3851
3851
  const check = Extends({}, left, right);
3852
3852
  const result = result_exports.IsExtendsTrueLike(check) ? [] : [left];
@@ -3863,7 +3863,7 @@ function ExcludeOperation(left, right) {
3863
3863
  return result;
3864
3864
  }
3865
3865
 
3866
- // node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
3866
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
3867
3867
  function EvaluateDependent(if_, then_, else_) {
3868
3868
  const intersected = EvaluateIntersect([if_, then_]);
3869
3869
  const excluded = ExcludeOperation(else_, if_);
@@ -3898,43 +3898,43 @@ function EvaluateUnionFast(types) {
3898
3898
  return result;
3899
3899
  }
3900
3900
 
3901
- // node_modules/typebox/build/type/engine/record/from_key_enum.mjs
3901
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_enum.mjs
3902
3902
  function FromEnumKey(values, value) {
3903
3903
  const unionKey = EvaluateEnum(values);
3904
3904
  const result = FromKey(unionKey, value);
3905
3905
  return result;
3906
3906
  }
3907
3907
 
3908
- // node_modules/typebox/build/type/engine/record/from_key_integer.mjs
3908
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_integer.mjs
3909
3909
  function FromIntegerKey(_key, value) {
3910
3910
  const result = CreateRecord(IntegerKey, value);
3911
3911
  return result;
3912
3912
  }
3913
3913
 
3914
- // node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
3914
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
3915
3915
  function FromIntersectKey(types, value) {
3916
3916
  const evaluatedKey = EvaluateIntersect(types);
3917
3917
  const result = FromKey(evaluatedKey, value);
3918
3918
  return result;
3919
3919
  }
3920
3920
 
3921
- // node_modules/typebox/build/type/engine/record/from_key_literal.mjs
3921
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_literal.mjs
3922
3922
  function FromLiteralKey(key, value) {
3923
3923
  return guard_exports.IsString(key) || guard_exports.IsNumber(key) ? _Object_({ [key]: value }) : guard_exports.IsEqual(key, false) ? _Object_({ false: value }) : guard_exports.IsEqual(key, true) ? _Object_({ true: value }) : _Object_({});
3924
3924
  }
3925
3925
 
3926
- // node_modules/typebox/build/type/engine/record/from_key_number.mjs
3926
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_number.mjs
3927
3927
  function FromNumberKey(_key, value) {
3928
3928
  const result = CreateRecord(NumberKey, value);
3929
3929
  return result;
3930
3930
  }
3931
3931
 
3932
- // node_modules/typebox/build/type/engine/record/from_key_string.mjs
3932
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_string.mjs
3933
3933
  function FromStringKey(key, value) {
3934
3934
  return guard_exports.HasPropertyKey(key, "pattern") && (guard_exports.IsString(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value);
3935
3935
  }
3936
3936
 
3937
- // node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
3937
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
3938
3938
  function FromTemplateKey(pattern, value) {
3939
3939
  const types = ParsePatternIntoTypes(pattern);
3940
3940
  const finite = IsTemplateLiteralFinite(types);
@@ -3942,7 +3942,7 @@ function FromTemplateKey(pattern, value) {
3942
3942
  return result;
3943
3943
  }
3944
3944
 
3945
- // node_modules/typebox/build/type/engine/evaluate/flatten.mjs
3945
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/flatten.mjs
3946
3946
  function FlattenType(type) {
3947
3947
  const result = IsUnion(type) ? Flatten(type.anyOf) : [type];
3948
3948
  return result;
@@ -3951,7 +3951,7 @@ function Flatten(types, result = []) {
3951
3951
  return guard_exports.ShiftLeft(types, (left, right) => Flatten(right, [...result, ...FlattenType(left)]), () => result);
3952
3952
  }
3953
3953
 
3954
- // node_modules/typebox/build/type/engine/record/from_key_union.mjs
3954
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key_union.mjs
3955
3955
  function StringOrNumberCheck(types) {
3956
3956
  return types.some((type) => IsString3(type) || IsNumber3(type) || IsInteger2(type));
3957
3957
  }
@@ -3974,13 +3974,13 @@ function FromUnionKey(types, value) {
3974
3974
  return IsSchema2(record) ? record : CreateObject(flattened, value);
3975
3975
  }
3976
3976
 
3977
- // node_modules/typebox/build/type/engine/record/from_key.mjs
3977
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/from_key.mjs
3978
3978
  function FromKey(key, value) {
3979
3979
  const result = IsAny(key) ? FromAnyKey(value) : IsBoolean3(key) ? FromBooleanKey(value) : IsEnum2(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber3(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString3(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
3980
3980
  return result;
3981
3981
  }
3982
3982
 
3983
- // node_modules/typebox/build/type/engine/record/instantiate.mjs
3983
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/record/instantiate.mjs
3984
3984
  function RecordAction(key, value, options) {
3985
3985
  const result = CanInstantiate([key]) ? memory_exports.Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options);
3986
3986
  return result;
@@ -3991,7 +3991,7 @@ function RecordInstantiate(context, state, key, value, options) {
3991
3991
  return RecordAction(instantiatedKey, instantiatedValue, options);
3992
3992
  }
3993
3993
 
3994
- // node_modules/typebox/build/type/types/record.mjs
3994
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/record.mjs
3995
3995
  var IntegerKey = `^${IntegerPattern}$`;
3996
3996
  var NumberKey = `^${NumberPattern}$`;
3997
3997
  var StringKey = `^${StringPattern}$`;
@@ -4023,7 +4023,7 @@ function IsRecord(value) {
4023
4023
  return IsKind(value, "Record");
4024
4024
  }
4025
4025
 
4026
- // node_modules/typebox/build/type/types/rest.mjs
4026
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/rest.mjs
4027
4027
  function Rest(type) {
4028
4028
  return memory_exports.Create({ "~kind": "Rest" }, { type: "rest", items: type }, {});
4029
4029
  }
@@ -4031,7 +4031,7 @@ function IsRest(value) {
4031
4031
  return IsKind(value, "Rest");
4032
4032
  }
4033
4033
 
4034
- // node_modules/typebox/build/type/types/this.mjs
4034
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/this.mjs
4035
4035
  function This(options) {
4036
4036
  return memory_exports.Create({ ["~kind"]: "This" }, { $ref: "#" }, options);
4037
4037
  }
@@ -4039,7 +4039,7 @@ function IsThis(value) {
4039
4039
  return IsKind(value, "This");
4040
4040
  }
4041
4041
 
4042
- // node_modules/typebox/build/type/types/undefined.mjs
4042
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/undefined.mjs
4043
4043
  function Undefined(options) {
4044
4044
  return memory_exports.Create({ "~kind": "Undefined" }, { type: "undefined" }, options);
4045
4045
  }
@@ -4047,7 +4047,7 @@ function IsUndefined2(value) {
4047
4047
  return IsKind(value, "Undefined");
4048
4048
  }
4049
4049
 
4050
- // node_modules/typebox/build/type/types/void.mjs
4050
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/void.mjs
4051
4051
  function Void(options) {
4052
4052
  return memory_exports.Create({ "~kind": "Void" }, { type: "void" }, options);
4053
4053
  }
@@ -4055,7 +4055,7 @@ function IsVoid(value) {
4055
4055
  return IsKind(value, "Void");
4056
4056
  }
4057
4057
 
4058
- // node_modules/typebox/build/type/script/mapping.mjs
4058
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/mapping.mjs
4059
4059
  function IntrinsicOrCall(ref, parameters) {
4060
4060
  return guard_exports.IsEqual(ref, "Array") ? _Array_(parameters[0]) : guard_exports.IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : guard_exports.IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : guard_exports.IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : guard_exports.IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref2(ref), parameters);
4061
4061
  }
@@ -4483,7 +4483,7 @@ function ScriptMapping(input) {
4483
4483
  return input;
4484
4484
  }
4485
4485
 
4486
- // node_modules/typebox/build/type/script/token/internal/match.mjs
4486
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/match.mjs
4487
4487
  function IsMatch(value) {
4488
4488
  return IsEqual(value.length, 2);
4489
4489
  }
@@ -4491,7 +4491,7 @@ function Match3(input, ok, fail) {
4491
4491
  return IsMatch(input) ? ok(input[0], input[1]) : fail();
4492
4492
  }
4493
4493
 
4494
- // node_modules/typebox/build/type/script/token/internal/take.mjs
4494
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/take.mjs
4495
4495
  function TakeVariant(variant, input) {
4496
4496
  return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : [];
4497
4497
  }
@@ -4504,7 +4504,7 @@ function Take(variants, input) {
4504
4504
  return [];
4505
4505
  }
4506
4506
 
4507
- // node_modules/typebox/build/type/script/token/internal/char.mjs
4507
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/char.mjs
4508
4508
  function Range(start, end) {
4509
4509
  return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
4510
4510
  }
@@ -4524,7 +4524,7 @@ var Dot = ".";
4524
4524
  var DollarSign = "$";
4525
4525
  var Hyphen = "-";
4526
4526
 
4527
- // node_modules/typebox/build/type/script/token/internal/trim.mjs
4527
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/trim.mjs
4528
4528
  var LineComment = "//";
4529
4529
  var OpenComment = "/*";
4530
4530
  var CloseComment = "*/";
@@ -4550,12 +4550,12 @@ function Trim(input) {
4550
4550
  return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed;
4551
4551
  }
4552
4552
 
4553
- // node_modules/typebox/build/type/script/token/internal/optional.mjs
4553
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/optional.mjs
4554
4554
  function Optional2(value, input) {
4555
4555
  return Match3(Take([value], input), (Optional4, Rest2) => [Optional4, Rest2], () => ["", input]);
4556
4556
  }
4557
4557
 
4558
- // node_modules/typebox/build/type/script/token/internal/many.mjs
4558
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/internal/many.mjs
4559
4559
  function IsDiscard(discard, input) {
4560
4560
  return discard.includes(input);
4561
4561
  }
@@ -4563,7 +4563,7 @@ function Many(allowed, discard, input, result = "") {
4563
4563
  return Match3(Take(allowed, input), (Char, Rest2) => IsDiscard(discard, Char) ? Many(allowed, discard, Rest2, result) : Many(allowed, discard, Rest2, `${result}${Char}`), () => [result, input]);
4564
4564
  }
4565
4565
 
4566
- // node_modules/typebox/build/type/script/token/unsigned_integer.mjs
4566
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/unsigned_integer.mjs
4567
4567
  function TakeNonZero(input) {
4568
4568
  return Take(NonZero, input);
4569
4569
  }
@@ -4583,7 +4583,7 @@ function UnsignedInteger(input) {
4583
4583
  return TakeUnsignedInteger(Trim(input));
4584
4584
  }
4585
4585
 
4586
- // node_modules/typebox/build/type/script/token/integer.mjs
4586
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/integer.mjs
4587
4587
  function TakeSign(input) {
4588
4588
  return Optional2(Hyphen, input);
4589
4589
  }
@@ -4599,7 +4599,7 @@ function Integer2(input) {
4599
4599
  return TakeSignedInteger(Trim(input));
4600
4600
  }
4601
4601
 
4602
- // node_modules/typebox/build/type/script/token/bigint.mjs
4602
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/bigint.mjs
4603
4603
  function TakeBigInt(input) {
4604
4604
  return Match3(
4605
4605
  Integer2(input),
@@ -4612,7 +4612,7 @@ function BigInt3(input) {
4612
4612
  return TakeBigInt(input);
4613
4613
  }
4614
4614
 
4615
- // node_modules/typebox/build/type/script/token/const.mjs
4615
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/const.mjs
4616
4616
  function TakeConst(const_, input) {
4617
4617
  return Take([const_], input);
4618
4618
  }
@@ -4620,7 +4620,7 @@ function Const(const_, input) {
4620
4620
  return IsEqual(const_, "") ? ["", input] : const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(WhiteSpace) ? TakeConst(const_, input) : TakeConst(const_, Trim(input));
4621
4621
  }
4622
4622
 
4623
- // node_modules/typebox/build/type/script/token/ident.mjs
4623
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/ident.mjs
4624
4624
  var Initial = [...Alpha, UnderScore, DollarSign];
4625
4625
  function TakeInitial(input) {
4626
4626
  return Take(Initial, input);
@@ -4641,7 +4641,7 @@ function Ident(input) {
4641
4641
  return TakeIdent(Trim(input));
4642
4642
  }
4643
4643
 
4644
- // node_modules/typebox/build/type/script/token/unsigned_number.mjs
4644
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/unsigned_number.mjs
4645
4645
  var AllowedDigits2 = [...Digit, UnderScore];
4646
4646
  function IsLeadingDot(input) {
4647
4647
  return IsMatch(Take([Dot], input));
@@ -4677,7 +4677,7 @@ function UnsignedNumber(input) {
4677
4677
  return TakeUnsignedNumber(Trim(input));
4678
4678
  }
4679
4679
 
4680
- // node_modules/typebox/build/type/script/token/number.mjs
4680
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/number.mjs
4681
4681
  function TakeSign2(input) {
4682
4682
  return Optional2(Hyphen, input);
4683
4683
  }
@@ -4693,7 +4693,7 @@ function Number3(input) {
4693
4693
  return TakeSignedNumber(Trim(input));
4694
4694
  }
4695
4695
 
4696
- // node_modules/typebox/build/type/script/token/until.mjs
4696
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/until.mjs
4697
4697
  function TakeOne(input) {
4698
4698
  const result = IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)];
4699
4699
  return result;
@@ -4709,7 +4709,7 @@ function Until(end, input, result = "") {
4709
4709
  );
4710
4710
  }
4711
4711
 
4712
- // node_modules/typebox/build/type/script/token/span.mjs
4712
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/span.mjs
4713
4713
  function MultiLine(start, end, input) {
4714
4714
  return Match3(
4715
4715
  Take([start], input),
@@ -4740,7 +4740,7 @@ function Span(start, end, multiLine, input) {
4740
4740
  return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input));
4741
4741
  }
4742
4742
 
4743
- // node_modules/typebox/build/type/script/token/string.mjs
4743
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/string.mjs
4744
4744
  function TakeInitial2(quotes, input) {
4745
4745
  return Take(quotes, input);
4746
4746
  }
@@ -4754,12 +4754,12 @@ function String3(quotes, input) {
4754
4754
  return TakeString(quotes, Trim(input));
4755
4755
  }
4756
4756
 
4757
- // node_modules/typebox/build/type/script/token/until_1.mjs
4757
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/token/until_1.mjs
4758
4758
  function Until_1(end, input) {
4759
4759
  return Match3(Until(end, input), (Until2, UntilRest) => IsEqual(Until2, "") ? [] : [Until2, UntilRest], () => []);
4760
4760
  }
4761
4761
 
4762
- // node_modules/typebox/build/type/script/parser.mjs
4762
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/parser.mjs
4763
4763
  var If = (result, left, right = () => []) => result.length === 2 ? left(result) : right();
4764
4764
  var GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => If(Const("=", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [GenericParameterExtendsEqualsMapping(_0), input2]);
4765
4765
  var GenericParameterExtends = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterExtendsMapping(_0), input2]);
@@ -4889,14 +4889,14 @@ var ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input2]) =>
4889
4889
  var Module = (input) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleMapping(_0), input2]);
4890
4890
  var Script = (input) => If(If(Module(input), ([_0, input2]) => [_0, input2], () => If(GenericType(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ScriptMapping(_0), input2]);
4891
4891
 
4892
- // node_modules/typebox/build/type/engine/patterns/template.mjs
4892
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/patterns/template.mjs
4893
4893
  function ParseTemplateIntoTypes(template) {
4894
4894
  const parsed = TemplateLiteralTypes(`\`${template}\``);
4895
4895
  const result = guard_exports.IsEqual(parsed.length, 2) ? parsed[0] : Unreachable();
4896
4896
  return result;
4897
4897
  }
4898
4898
 
4899
- // node_modules/typebox/build/type/engine/template_literal/encode.mjs
4899
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/template_literal/encode.mjs
4900
4900
  function JoinString(input) {
4901
4901
  return input.join("|");
4902
4902
  }
@@ -4953,7 +4953,7 @@ function TemplateLiteralEncode(types) {
4953
4953
  return result;
4954
4954
  }
4955
4955
 
4956
- // node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
4956
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
4957
4957
  function TemplateLiteralAction(types, options) {
4958
4958
  const result = CanInstantiate(types) ? memory_exports.Update(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options);
4959
4959
  return result;
@@ -4963,7 +4963,7 @@ function TemplateLiteralInstantiate(context, state, types, options) {
4963
4963
  return TemplateLiteralAction(instantiatedTypes, options);
4964
4964
  }
4965
4965
 
4966
- // node_modules/typebox/build/type/types/template_literal.mjs
4966
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/template_literal.mjs
4967
4967
  function TemplateLiteralDeferred(types, options = {}) {
4968
4968
  return Deferred("TemplateLiteral", [types], options);
4969
4969
  }
@@ -4985,7 +4985,7 @@ function IsTemplateLiteral(value) {
4985
4985
  return IsKind(value, "TemplateLiteral");
4986
4986
  }
4987
4987
 
4988
- // node_modules/typebox/build/type/extends/result.mjs
4988
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/result.mjs
4989
4989
  var result_exports = {};
4990
4990
  __export(result_exports, {
4991
4991
  ExtendsFalse: () => ExtendsFalse,
@@ -5022,7 +5022,7 @@ function Match4(result, true_, false_) {
5022
5022
  return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
5023
5023
  }
5024
5024
 
5025
- // node_modules/typebox/build/type/extends/extends_right.mjs
5025
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/extends_right.mjs
5026
5026
  function ExtendsRightInfer(inferred, name, left, right) {
5027
5027
  return Match4(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(memory_exports.Assign(memory_exports.Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse());
5028
5028
  }
@@ -5050,12 +5050,12 @@ function ExtendsRight(inferred, left, right) {
5050
5050
  return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum2(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
5051
5051
  }
5052
5052
 
5053
- // node_modules/typebox/build/type/extends/any.mjs
5053
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/any.mjs
5054
5054
  function ExtendsAny(inferred, left, right) {
5055
5055
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion(inferred);
5056
5056
  }
5057
5057
 
5058
- // node_modules/typebox/build/type/extends/array.mjs
5058
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/array.mjs
5059
5059
  function ExtendsImmutable(left, right) {
5060
5060
  const isImmutableLeft = IsImmutable(left);
5061
5061
  const isImmutableRight = IsImmutable(right);
@@ -5065,17 +5065,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) {
5065
5065
  return IsArray2(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right);
5066
5066
  }
5067
5067
 
5068
- // node_modules/typebox/build/type/extends/bigint.mjs
5068
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/bigint.mjs
5069
5069
  function ExtendsBigInt(inferred, left, right) {
5070
5070
  return IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5071
5071
  }
5072
5072
 
5073
- // node_modules/typebox/build/type/extends/boolean.mjs
5073
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/boolean.mjs
5074
5074
  function ExtendsBoolean(inferred, left, right) {
5075
5075
  return IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5076
5076
  }
5077
5077
 
5078
- // node_modules/typebox/build/type/extends/parameters.mjs
5078
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/parameters.mjs
5079
5079
  function ParameterCompare(inferred, left, leftRest, right, rightRest) {
5080
5080
  const checkLeft = IsInfer(right) ? left : right;
5081
5081
  const checkRight = IsInfer(right) ? right : left;
@@ -5093,44 +5093,44 @@ function ExtendsParameters(inferred, left, right) {
5093
5093
  return ParametersLeft(inferred, left, right);
5094
5094
  }
5095
5095
 
5096
- // node_modules/typebox/build/type/extends/return_type.mjs
5096
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/return_type.mjs
5097
5097
  function ExtendsReturnType(inferred, left, right) {
5098
5098
  return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right);
5099
5099
  }
5100
5100
 
5101
- // node_modules/typebox/build/type/extends/constructor.mjs
5101
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/constructor.mjs
5102
5102
  function ExtendsConstructor(inferred, parameters, returnType, right) {
5103
5103
  return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor2(right) ? Match4(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
5104
5104
  }
5105
5105
 
5106
- // node_modules/typebox/build/type/extends/dependent.mjs
5106
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/dependent.mjs
5107
5107
  function ExtendsDependent(inferred, if_, then_, else_, right) {
5108
5108
  return Match4(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right));
5109
5109
  }
5110
5110
 
5111
- // node_modules/typebox/build/type/extends/enum.mjs
5111
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/enum.mjs
5112
5112
  function ExtendsEnum(inferred, left, right) {
5113
5113
  const evaluated = EvaluateEnum(left);
5114
5114
  return ExtendsLeft(inferred, evaluated, right);
5115
5115
  }
5116
5116
 
5117
- // node_modules/typebox/build/type/extends/function.mjs
5117
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/function.mjs
5118
5118
  function ExtendsFunction(inferred, parameters, returnType, right) {
5119
5119
  return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction2(right) ? Match4(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
5120
5120
  }
5121
5121
 
5122
- // node_modules/typebox/build/type/extends/integer.mjs
5122
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/integer.mjs
5123
5123
  function ExtendsInteger(inferred, left, right) {
5124
5124
  return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5125
5125
  }
5126
5126
 
5127
- // node_modules/typebox/build/type/extends/intersect.mjs
5127
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/intersect.mjs
5128
5128
  function ExtendsIntersect(inferred, left, right) {
5129
5129
  const evaluated = EvaluateIntersect(left);
5130
5130
  return ExtendsLeft(inferred, evaluated, right);
5131
5131
  }
5132
5132
 
5133
- // node_modules/typebox/build/type/extends/literal.mjs
5133
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/literal.mjs
5134
5134
  function ExtendsLiteralValue(inferred, left, right) {
5135
5135
  return left === right ? ExtendsTrue(inferred) : ExtendsFalse();
5136
5136
  }
@@ -5150,22 +5150,22 @@ function ExtendsLiteral(inferred, left, right) {
5150
5150
  return guard_exports.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : guard_exports.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : guard_exports.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : guard_exports.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
5151
5151
  }
5152
5152
 
5153
- // node_modules/typebox/build/type/extends/never.mjs
5153
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/never.mjs
5154
5154
  function ExtendsNever(inferred, left, right) {
5155
5155
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred);
5156
5156
  }
5157
5157
 
5158
- // node_modules/typebox/build/type/extends/null.mjs
5158
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/null.mjs
5159
5159
  function ExtendsNull(inferred, left, right) {
5160
5160
  return IsNull2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5161
5161
  }
5162
5162
 
5163
- // node_modules/typebox/build/type/extends/number.mjs
5163
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/number.mjs
5164
5164
  function ExtendsNumber(inferred, left, right) {
5165
5165
  return IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5166
5166
  }
5167
5167
 
5168
- // node_modules/typebox/build/type/extends/object.mjs
5168
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/object.mjs
5169
5169
  function ExtendsPropertyOptional(inferred, left, right) {
5170
5170
  return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred);
5171
5171
  }
@@ -5216,7 +5216,7 @@ function ExtendsObject(inferred, left, right) {
5216
5216
  return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
5217
5217
  }
5218
5218
 
5219
- // node_modules/typebox/build/type/extends/record.mjs
5219
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/record.mjs
5220
5220
  function FromObject4(inferred, properties) {
5221
5221
  return guard_exports.IsEqual(guard_exports.Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
5222
5222
  }
@@ -5227,23 +5227,23 @@ function ExtendsRecord(inferred, leftPattern, leftValue, right) {
5227
5227
  return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject4(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
5228
5228
  }
5229
5229
 
5230
- // node_modules/typebox/build/type/extends/string.mjs
5230
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/string.mjs
5231
5231
  function ExtendsString(inferred, left, right) {
5232
5232
  return IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5233
5233
  }
5234
5234
 
5235
- // node_modules/typebox/build/type/extends/symbol.mjs
5235
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/symbol.mjs
5236
5236
  function ExtendsSymbol(inferred, left, right) {
5237
5237
  return IsSymbol2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5238
5238
  }
5239
5239
 
5240
- // node_modules/typebox/build/type/extends/template_literal.mjs
5240
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/template_literal.mjs
5241
5241
  function ExtendsTemplateLiteral(inferred, left, right) {
5242
5242
  const evaluated = EvaluateTemplateLiteral(left);
5243
5243
  return ExtendsLeft(inferred, evaluated, right);
5244
5244
  }
5245
5245
 
5246
- // node_modules/typebox/build/type/extends/inference.mjs
5246
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/inference.mjs
5247
5247
  function Inferrable(name, type) {
5248
5248
  return memory_exports.Create({ "~kind": "Inferrable" }, { name, type }, {});
5249
5249
  }
@@ -5268,7 +5268,7 @@ function InferUnionResult(inferred, name, left, right) {
5268
5268
  return guard_exports.IsArray(results) ? ExtendsTrue(memory_exports.Assign(inferred, { [name]: Union(results) })) : ExtendsFalse();
5269
5269
  }
5270
5270
 
5271
- // node_modules/typebox/build/type/extends/tuple.mjs
5271
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/tuple.mjs
5272
5272
  function Reverse(types) {
5273
5273
  return [...types].reverse();
5274
5274
  }
@@ -5310,12 +5310,12 @@ function ExtendsTuple(inferred, left, right) {
5310
5310
  return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray2(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right);
5311
5311
  }
5312
5312
 
5313
- // node_modules/typebox/build/type/extends/undefined.mjs
5313
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/undefined.mjs
5314
5314
  function ExtendsUndefined(inferred, left, right) {
5315
5315
  return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5316
5316
  }
5317
5317
 
5318
- // node_modules/typebox/build/type/extends/union.mjs
5318
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/union.mjs
5319
5319
  function ExtendsUnionSome(inferred, type, unionTypes) {
5320
5320
  return guard_exports.ShiftLeft(unionTypes, (head, tail) => Match4(ExtendsLeft(inferred, type, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse());
5321
5321
  }
@@ -5327,22 +5327,22 @@ function ExtendsUnion2(inferred, left, right) {
5327
5327
  return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]);
5328
5328
  }
5329
5329
 
5330
- // node_modules/typebox/build/type/extends/unknown.mjs
5330
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/unknown.mjs
5331
5331
  function ExtendsUnknown(inferred, left, right) {
5332
5332
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
5333
5333
  }
5334
5334
 
5335
- // node_modules/typebox/build/type/extends/void.mjs
5335
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/void.mjs
5336
5336
  function ExtendsVoid(inferred, left, right) {
5337
5337
  return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
5338
5338
  }
5339
5339
 
5340
- // node_modules/typebox/build/type/extends/extends_left.mjs
5340
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/extends_left.mjs
5341
5341
  function ExtendsLeft(inferred, left, right) {
5342
5342
  return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean3(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum2(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber3(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString3(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
5343
5343
  }
5344
5344
 
5345
- // node_modules/typebox/build/type/engine/interface/instantiate.mjs
5345
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/interface/instantiate.mjs
5346
5346
  function InterfaceOperation(heritage, properties) {
5347
5347
  const result = EvaluateIntersect([...heritage, _Object_(properties)]);
5348
5348
  return result;
@@ -5357,7 +5357,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) {
5357
5357
  return InterfaceAction(instantiatedHeritage, instantiatedProperties, options);
5358
5358
  }
5359
5359
 
5360
- // node_modules/typebox/build/type/action/interface.mjs
5360
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/interface.mjs
5361
5361
  function InterfaceDeferred(heritage, properties, options = {}) {
5362
5362
  return Deferred("Interface", [heritage, properties], options);
5363
5363
  }
@@ -5368,7 +5368,7 @@ function Interface(heritage, properties, options = {}) {
5368
5368
  return InterfaceAction(heritage, properties, options);
5369
5369
  }
5370
5370
 
5371
- // node_modules/typebox/build/type/engine/cyclic/check.mjs
5371
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/check.mjs
5372
5372
  function FromRef(stack, context, ref) {
5373
5373
  return stack.includes(ref) ? true : FromType3([...stack, ref], context, context[ref]);
5374
5374
  }
@@ -5387,7 +5387,7 @@ function CyclicCheck(stack, context, type) {
5387
5387
  return result;
5388
5388
  }
5389
5389
 
5390
- // node_modules/typebox/build/type/engine/cyclic/candidates.mjs
5390
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/candidates.mjs
5391
5391
  function ResolveCandidateKeys(context, keys) {
5392
5392
  return keys.reduce((result, left) => {
5393
5393
  return CyclicCheck([left], context, context[left]) ? [...result, left] : result;
@@ -5399,7 +5399,7 @@ function CyclicCandidates(context) {
5399
5399
  return result;
5400
5400
  }
5401
5401
 
5402
- // node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
5402
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
5403
5403
  function FromRef2(context, ref, result) {
5404
5404
  return result.includes(ref) ? result : ref in context ? FromType4(context, context[ref], [...result, ref]) : Unreachable();
5405
5405
  }
@@ -5420,7 +5420,7 @@ function CyclicDependencies(context, key, type) {
5420
5420
  return result;
5421
5421
  }
5422
5422
 
5423
- // node_modules/typebox/build/type/engine/cyclic/extends.mjs
5423
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/extends.mjs
5424
5424
  function FromRef3(_ref) {
5425
5425
  return Any();
5426
5426
  }
@@ -5444,7 +5444,7 @@ function CyclicExtends(type) {
5444
5444
  return CyclicAnyFromParameters(type.$defs, type.$ref);
5445
5445
  }
5446
5446
 
5447
- // node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
5447
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
5448
5448
  function CyclicInterface(context, heritage, properties) {
5449
5449
  const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage);
5450
5450
  const instantiatedProperties = InstantiateProperties({}, State([], []), properties);
@@ -5466,7 +5466,7 @@ function InstantiateCyclic(context, ref, type) {
5466
5466
  return result;
5467
5467
  }
5468
5468
 
5469
- // node_modules/typebox/build/type/engine/cyclic/target.mjs
5469
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/cyclic/target.mjs
5470
5470
  function Resolve(defs, ref) {
5471
5471
  return ref in defs ? IsRef2(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never();
5472
5472
  }
@@ -5475,7 +5475,7 @@ function CyclicTarget(defs, ref) {
5475
5475
  return result;
5476
5476
  }
5477
5477
 
5478
- // node_modules/typebox/build/type/extends/extends.mjs
5478
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/extends/extends.mjs
5479
5479
  function Canonical(type) {
5480
5480
  return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type;
5481
5481
  }
@@ -5485,7 +5485,7 @@ function Extends(inferred, left, right) {
5485
5485
  return ExtendsLeft(inferred, canonicalLeft, canonicalRight);
5486
5486
  }
5487
5487
 
5488
- // node_modules/typebox/build/type/engine/evaluate/compare.mjs
5488
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/compare.mjs
5489
5489
  var CompareResultEqual = 0;
5490
5490
  var CompareResultDisjoint = 1;
5491
5491
  var CompareResultLeftInside = 2;
@@ -5495,7 +5495,7 @@ function Compare(left, right) {
5495
5495
  return result_exports.IsExtendsTrueLike(extendsCheck[0]) && result_exports.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultEqual : result_exports.IsExtendsTrueLike(extendsCheck[0]) && result_exports.IsExtendsFalse(extendsCheck[1]) ? CompareResultLeftInside : result_exports.IsExtendsFalse(extendsCheck[0]) && result_exports.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultRightInside : CompareResultDisjoint;
5496
5496
  }
5497
5497
 
5498
- // node_modules/typebox/build/type/engine/evaluate/broaden.mjs
5498
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/broaden.mjs
5499
5499
  function BroadenFilter(type, types, result = [], all = types) {
5500
5500
  return guard_exports.ShiftLeft(types, (left, right) => {
5501
5501
  const compare = Compare(type, left);
@@ -5527,7 +5527,7 @@ function Broaden(types) {
5527
5527
  return flattened;
5528
5528
  }
5529
5529
 
5530
- // node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
5530
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
5531
5531
  function EvaluateAction(type, options) {
5532
5532
  const result = memory_exports.Update(EvaluateType(type), {}, options);
5533
5533
  return result;
@@ -5537,7 +5537,7 @@ function EvaluateInstantiate(context, state, type, options) {
5537
5537
  return EvaluateAction(instantiatedType, options);
5538
5538
  }
5539
5539
 
5540
- // node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
5540
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
5541
5541
  function CollectDistributionNames(expression, result = []) {
5542
5542
  return (
5543
5543
  // Conditional
@@ -5577,7 +5577,7 @@ function DistributeArguments(parameters, arguments_, expression) {
5577
5577
  return IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
5578
5578
  }
5579
5579
 
5580
- // node_modules/typebox/build/type/engine/call/resolve_target.mjs
5580
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/call/resolve_target.mjs
5581
5581
  function FromNotResolvable() {
5582
5582
  return ["(not-resolvable)", Never()];
5583
5583
  }
@@ -5597,7 +5597,7 @@ function ResolveTarget(context, target, arguments_) {
5597
5597
  return FromType6(context, "(anonymous)", target, arguments_);
5598
5598
  }
5599
5599
 
5600
- // node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
5600
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
5601
5601
  function AssertArgumentExtends(name, type, extends_) {
5602
5602
  if (IsInfer(type) || IsCall(type) || result_exports.IsExtendsTrueLike(Extends({}, type, extends_)))
5603
5603
  return;
@@ -5621,7 +5621,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) {
5621
5621
  return BindParameters(context, state, parameters, arguments_);
5622
5622
  }
5623
5623
 
5624
- // node_modules/typebox/build/type/engine/call/instantiate.mjs
5624
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/call/instantiate.mjs
5625
5625
  var instantiationDepth = 0;
5626
5626
  var instantiationCount = 0;
5627
5627
  function InstantiationAssert() {
@@ -5678,7 +5678,7 @@ function CallInstantiate(context, state, target, arguments_) {
5678
5678
  return result;
5679
5679
  }
5680
5680
 
5681
- // node_modules/typebox/build/type/types/call.mjs
5681
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/types/call.mjs
5682
5682
  function CallConstruct(target, arguments_) {
5683
5683
  return memory_exports.Create({ ["~kind"]: "Call" }, { type: "call", target, arguments: arguments_ }, {});
5684
5684
  }
@@ -5689,7 +5689,7 @@ function IsCall(value) {
5689
5689
  return IsKind(value, "Call");
5690
5690
  }
5691
5691
 
5692
- // node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
5692
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
5693
5693
  function RemoveImmutableOperation(type) {
5694
5694
  return memory_exports.Discard(type, ["~immutable"]);
5695
5695
  }
@@ -5702,35 +5702,35 @@ function RemoveImmutableInstantiate(context, state, type, options) {
5702
5702
  return RemoveImmutableAction(instantiatedType, options);
5703
5703
  }
5704
5704
 
5705
- // node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
5705
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
5706
5706
  function ApplyMapping(mapping, value) {
5707
5707
  return mapping(value);
5708
5708
  }
5709
5709
 
5710
- // node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
5710
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
5711
5711
  function FromLiteral3(mapping, value) {
5712
5712
  return guard_exports.IsString(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value);
5713
5713
  }
5714
5714
 
5715
- // node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
5715
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
5716
5716
  function FromTemplateLiteral(mapping, pattern) {
5717
5717
  const evaluated = EvaluateTemplateLiteral(pattern);
5718
5718
  const result = FromType7(mapping, evaluated);
5719
5719
  return result;
5720
5720
  }
5721
5721
 
5722
- // node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
5722
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
5723
5723
  function FromUnion2(mapping, types) {
5724
5724
  const result = types.map((type) => FromType7(mapping, type));
5725
5725
  return Union(result);
5726
5726
  }
5727
5727
 
5728
- // node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
5728
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
5729
5729
  function FromType7(mapping, type) {
5730
5730
  return IsLiteral(type) ? FromLiteral3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) : IsUnion(type) ? FromUnion2(mapping, type.anyOf) : type;
5731
5731
  }
5732
5732
 
5733
- // node_modules/typebox/build/type/action/capitalize.mjs
5733
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/capitalize.mjs
5734
5734
  function CapitalizeDeferred(type, options = {}) {
5735
5735
  return Deferred("Capitalize", [type], options);
5736
5736
  }
@@ -5738,7 +5738,7 @@ function Capitalize(type, options = {}) {
5738
5738
  return CapitalizeAction(type, options);
5739
5739
  }
5740
5740
 
5741
- // node_modules/typebox/build/type/action/lowercase.mjs
5741
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/lowercase.mjs
5742
5742
  function LowercaseDeferred(type, options = {}) {
5743
5743
  return Deferred("Lowercase", [type], options);
5744
5744
  }
@@ -5746,7 +5746,7 @@ function Lowercase(type, options = {}) {
5746
5746
  return LowercaseAction(type, options);
5747
5747
  }
5748
5748
 
5749
- // node_modules/typebox/build/type/action/uncapitalize.mjs
5749
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/uncapitalize.mjs
5750
5750
  function UncapitalizeDeferred(type, options = {}) {
5751
5751
  return Deferred("Uncapitalize", [type], options);
5752
5752
  }
@@ -5754,7 +5754,7 @@ function Uncapitalize(type, options = {}) {
5754
5754
  return UncapitalizeAction(type, options);
5755
5755
  }
5756
5756
 
5757
- // node_modules/typebox/build/type/action/uppercase.mjs
5757
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/uppercase.mjs
5758
5758
  function UppercaseDeferred(type, options = {}) {
5759
5759
  return Deferred("Uppercase", [type], options);
5760
5760
  }
@@ -5762,7 +5762,7 @@ function Uppercase(type, options = {}) {
5762
5762
  return UppercaseAction(type, options);
5763
5763
  }
5764
5764
 
5765
- // node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
5765
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
5766
5766
  var CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1);
5767
5767
  var LowercaseMapping = (input) => input.toLowerCase();
5768
5768
  var UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1);
@@ -5800,7 +5800,7 @@ function UppercaseInstantiate(context, state, type, options) {
5800
5800
  return UppercaseAction(instantiatedType, options);
5801
5801
  }
5802
5802
 
5803
- // node_modules/typebox/build/type/action/conditional.mjs
5803
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/conditional.mjs
5804
5804
  function ConditionalDeferred(left, right, true_, false_, options = {}) {
5805
5805
  return Deferred("Conditional", [left, right, true_, false_], options);
5806
5806
  }
@@ -5808,7 +5808,7 @@ function Conditional(left, right, true_, false_, options = {}) {
5808
5808
  return ConditionalAction({}, State([], []), left, right, true_, false_, options);
5809
5809
  }
5810
5810
 
5811
- // node_modules/typebox/build/type/engine/conditional/instantiate.mjs
5811
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/conditional/instantiate.mjs
5812
5812
  function ConditionalOperation(context, state, left, right, true_, false_) {
5813
5813
  const extendsResult = Extends(context, left, right);
5814
5814
  return result_exports.IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : result_exports.IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_);
@@ -5823,7 +5823,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti
5823
5823
  return ConditionalAction(context, state, instantiatedLeft, instantiatedRight, true_, false_, options);
5824
5824
  }
5825
5825
 
5826
- // node_modules/typebox/build/type/action/constructor_parameters.mjs
5826
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/constructor_parameters.mjs
5827
5827
  function ConstructorParametersDeferred(type, options = {}) {
5828
5828
  return Deferred("ConstructorParameters", [type], options);
5829
5829
  }
@@ -5831,7 +5831,7 @@ function ConstructorParameters(type, options = {}) {
5831
5831
  return ConstructorParametersAction(type, options);
5832
5832
  }
5833
5833
 
5834
- // node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
5834
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
5835
5835
  function ConstructorParametersOperation(type) {
5836
5836
  const parameters = IsConstructor2(type) ? type["parameters"] : [];
5837
5837
  const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
@@ -5847,7 +5847,7 @@ function ConstructorParametersInstantiate(context, state, type, options) {
5847
5847
  return ConstructorParametersAction(instantiatedType, options);
5848
5848
  }
5849
5849
 
5850
- // node_modules/typebox/build/type/action/exclude.mjs
5850
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/exclude.mjs
5851
5851
  function ExcludeDeferred(left, right, options = {}) {
5852
5852
  return Deferred("Exclude", [left, right], options);
5853
5853
  }
@@ -5855,7 +5855,7 @@ function Exclude(left, right, options = {}) {
5855
5855
  return ExcludeAction(left, right, options);
5856
5856
  }
5857
5857
 
5858
- // node_modules/typebox/build/type/engine/exclude/instantiate.mjs
5858
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
5859
5859
  function ExcludeAction(left, right, options) {
5860
5860
  const result = CanInstantiate([left, right]) ? memory_exports.Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options);
5861
5861
  return result;
@@ -5866,7 +5866,7 @@ function ExcludeInstantiate(context, state, left, right, options) {
5866
5866
  return ExcludeAction(instantiatedLeft, instantiatedRight, options);
5867
5867
  }
5868
5868
 
5869
- // node_modules/typebox/build/type/action/extract.mjs
5869
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/extract.mjs
5870
5870
  function ExtractDeferred(left, right, options = {}) {
5871
5871
  return Deferred("Extract", [left, right], options);
5872
5872
  }
@@ -5874,7 +5874,7 @@ function Extract(left, right, options = {}) {
5874
5874
  return ExtractAction(left, right, options);
5875
5875
  }
5876
5876
 
5877
- // node_modules/typebox/build/type/engine/extract/operation.mjs
5877
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/extract/operation.mjs
5878
5878
  function ExtractType(left, right) {
5879
5879
  const check = Extends({}, left, right);
5880
5880
  const result = result_exports.IsExtendsTrueLike(check) ? [left] : [];
@@ -5891,7 +5891,7 @@ function ExtractOperation(left, right) {
5891
5891
  return result;
5892
5892
  }
5893
5893
 
5894
- // node_modules/typebox/build/type/engine/extract/instantiate.mjs
5894
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/extract/instantiate.mjs
5895
5895
  function ExtractAction(left, right, options) {
5896
5896
  const result = CanInstantiate([left, right]) ? memory_exports.Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options);
5897
5897
  return result;
@@ -5902,7 +5902,7 @@ function ExtractInstantiate(context, state, left, right, options) {
5902
5902
  return ExtractAction(instantiatedLeft, instantiatedRight, options);
5903
5903
  }
5904
5904
 
5905
- // node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
5905
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
5906
5906
  function KeysToLiterals(keys) {
5907
5907
  return keys.reduce((result, left) => {
5908
5908
  return IsLiteralValue(left) ? [...result, Literal(left)] : result;
@@ -5914,7 +5914,7 @@ function KeysToIndexer(keys) {
5914
5914
  return result;
5915
5915
  }
5916
5916
 
5917
- // node_modules/typebox/build/type/action/indexed.mjs
5917
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/indexed.mjs
5918
5918
  function IndexDeferred(type, indexer, options = {}) {
5919
5919
  return Deferred("Index", [type, indexer], options);
5920
5920
  }
@@ -5923,21 +5923,21 @@ function Index(type, indexer_or_keys, options = {}) {
5923
5923
  return IndexAction(type, indexer, options);
5924
5924
  }
5925
5925
 
5926
- // node_modules/typebox/build/type/engine/object/from_cyclic.mjs
5926
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_cyclic.mjs
5927
5927
  function FromCyclic(defs, ref) {
5928
5928
  const target = CyclicTarget(defs, ref);
5929
5929
  const result = FromType8(target);
5930
5930
  return result;
5931
5931
  }
5932
5932
 
5933
- // node_modules/typebox/build/type/engine/object/from_dependent.mjs
5933
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_dependent.mjs
5934
5934
  function FromDependent(if_, then_, else_) {
5935
5935
  const evaluated = EvaluateDependent(if_, then_, else_);
5936
5936
  const result = FromType8(evaluated);
5937
5937
  return result;
5938
5938
  }
5939
5939
 
5940
- // node_modules/typebox/build/type/engine/object/from_intersect.mjs
5940
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_intersect.mjs
5941
5941
  function CollapseIntersectProperties(left, right) {
5942
5942
  const leftKeys = guard_exports.Keys(left).filter((key) => !guard_exports.HasPropertyKey(right, key));
5943
5943
  const rightKeys = guard_exports.Keys(right).filter((key) => !guard_exports.HasPropertyKey(left, key));
@@ -5955,19 +5955,19 @@ function FromIntersect(types) {
5955
5955
  }, {});
5956
5956
  }
5957
5957
 
5958
- // node_modules/typebox/build/type/engine/object/from_object.mjs
5958
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_object.mjs
5959
5959
  function FromObject5(properties) {
5960
5960
  return properties;
5961
5961
  }
5962
5962
 
5963
- // node_modules/typebox/build/type/engine/object/from_tuple.mjs
5963
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_tuple.mjs
5964
5964
  function FromTuple(types) {
5965
5965
  const object2 = TupleToObject(Tuple(types));
5966
5966
  const result = FromType8(object2);
5967
5967
  return result;
5968
5968
  }
5969
5969
 
5970
- // node_modules/typebox/build/type/engine/object/from_union.mjs
5970
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_union.mjs
5971
5971
  function CollapseUnionProperties(left, right) {
5972
5972
  const sharedKeys = guard_exports.Keys(left).filter((key) => key in right);
5973
5973
  const result = sharedKeys.reduce((result2, key) => {
@@ -5982,26 +5982,26 @@ function FromUnion3(types) {
5982
5982
  return guard_exports.ShiftLeft(types, (left, right) => ReduceVariants(right, FromType8(left)), () => Unreachable());
5983
5983
  }
5984
5984
 
5985
- // node_modules/typebox/build/type/engine/object/from_type.mjs
5985
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/from_type.mjs
5986
5986
  function FromType8(type) {
5987
5987
  return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject5(type.properties) : {};
5988
5988
  }
5989
5989
 
5990
- // node_modules/typebox/build/type/engine/object/collapse.mjs
5990
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/object/collapse.mjs
5991
5991
  function CollapseToObject(type) {
5992
5992
  const properties = FromType8(type);
5993
5993
  const result = _Object_(properties);
5994
5994
  return result;
5995
5995
  }
5996
5996
 
5997
- // node_modules/typebox/build/type/engine/helpers/keys.mjs
5997
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/helpers/keys.mjs
5998
5998
  var integerKeyPattern = new RegExp("^(?:0|[1-9][0-9]*)$");
5999
5999
  function ConvertToIntegerKey(value) {
6000
6000
  const normal = `${value}`;
6001
6001
  return integerKeyPattern.test(normal) ? parseInt(normal) : value;
6002
6002
  }
6003
6003
 
6004
- // node_modules/typebox/build/type/engine/indexed/from_array.mjs
6004
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/from_array.mjs
6005
6005
  function NormalizeLiteral(value) {
6006
6006
  return Literal(ConvertToIntegerKey(value));
6007
6007
  }
@@ -6021,66 +6021,66 @@ function FromArray4(type, indexer) {
6021
6021
  return result;
6022
6022
  }
6023
6023
 
6024
- // node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
6024
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
6025
6025
  function FromCyclic2(defs, ref) {
6026
6026
  const target = CyclicTarget(defs, ref);
6027
6027
  const result = FromType9(target);
6028
6028
  return result;
6029
6029
  }
6030
6030
 
6031
- // node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
6031
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
6032
6032
  function FromDependent2(if_, then_, else_) {
6033
6033
  const evaluated = EvaluateDependent(if_, then_, else_);
6034
6034
  const result = FromType9(evaluated);
6035
6035
  return result;
6036
6036
  }
6037
6037
 
6038
- // node_modules/typebox/build/type/engine/indexable/from_enum.mjs
6038
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_enum.mjs
6039
6039
  function FromEnum(values) {
6040
6040
  const evaluated = EvaluateEnum(values);
6041
6041
  const result = FromType9(evaluated);
6042
6042
  return result;
6043
6043
  }
6044
6044
 
6045
- // node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
6045
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
6046
6046
  function FromIntersect2(types) {
6047
6047
  const evaluated = EvaluateIntersect(types);
6048
6048
  const result = FromType9(evaluated);
6049
6049
  return result;
6050
6050
  }
6051
6051
 
6052
- // node_modules/typebox/build/type/engine/indexable/from_literal.mjs
6052
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_literal.mjs
6053
6053
  function FromLiteral4(value) {
6054
6054
  const result = [`${value}`];
6055
6055
  return result;
6056
6056
  }
6057
6057
 
6058
- // node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
6058
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
6059
6059
  function FromTemplateLiteral2(pattern) {
6060
6060
  const evaluated = EvaluateTemplateLiteral(pattern);
6061
6061
  const result = FromType9(evaluated);
6062
6062
  return result;
6063
6063
  }
6064
6064
 
6065
- // node_modules/typebox/build/type/engine/indexable/from_union.mjs
6065
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_union.mjs
6066
6066
  function FromUnion4(types) {
6067
6067
  return types.reduce((result, left) => {
6068
6068
  return [...result, ...FromType9(left)];
6069
6069
  }, []);
6070
6070
  }
6071
6071
 
6072
- // node_modules/typebox/build/type/engine/indexable/from_type.mjs
6072
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/from_type.mjs
6073
6073
  function FromType9(type) {
6074
6074
  return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent2(type.if, type.then, type.else) : IsEnum2(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
6075
6075
  }
6076
6076
 
6077
- // node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
6077
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
6078
6078
  function ToIndexableKeys(type) {
6079
6079
  const result = FromType9(type);
6080
6080
  return result;
6081
6081
  }
6082
6082
 
6083
- // node_modules/typebox/build/type/engine/this/expand_this.mjs
6083
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/this/expand_this.mjs
6084
6084
  function FromTypes5(properties, types) {
6085
6085
  return types.map((type) => FromType10(properties, type));
6086
6086
  }
@@ -6092,7 +6092,7 @@ function ExpandThis(properties, type) {
6092
6092
  return result;
6093
6093
  }
6094
6094
 
6095
- // node_modules/typebox/build/type/engine/indexed/from_object.mjs
6095
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/from_object.mjs
6096
6096
  function IndexProperty(properties, key) {
6097
6097
  const selectedType = key in properties ? properties[key] : Never();
6098
6098
  const result = ExpandThis(properties, selectedType);
@@ -6126,7 +6126,7 @@ function FromObject6(properties, indexer) {
6126
6126
  return result;
6127
6127
  }
6128
6128
 
6129
- // node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
6129
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
6130
6130
  function ConvertLiteral(value) {
6131
6131
  return Literal(ConvertToIntegerKey(value));
6132
6132
  }
@@ -6137,7 +6137,7 @@ function FormatArrayIndexer(type) {
6137
6137
  return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type;
6138
6138
  }
6139
6139
 
6140
- // node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
6140
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
6141
6141
  function IndexElementsWithIndexer(types, indexer) {
6142
6142
  return types.reduceRight((result, right, index) => {
6143
6143
  const check = Extends({}, Literal(index), indexer);
@@ -6159,12 +6159,12 @@ function FromTuple2(types, indexer) {
6159
6159
  );
6160
6160
  }
6161
6161
 
6162
- // node_modules/typebox/build/type/engine/indexed/from_type.mjs
6162
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/from_type.mjs
6163
6163
  function FromType11(type, indexer) {
6164
6164
  return IsArray2(type) ? FromArray4(type.items, indexer) : IsObject2(type) ? FromObject6(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
6165
6165
  }
6166
6166
 
6167
- // node_modules/typebox/build/type/engine/indexed/instantiate.mjs
6167
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexed/instantiate.mjs
6168
6168
  function NormalizeType(type) {
6169
6169
  const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
6170
6170
  return result;
@@ -6179,7 +6179,7 @@ function IndexInstantiate(context, state, type, indexer, options) {
6179
6179
  return IndexAction(instantiatedType, instantiatedIndexer, options);
6180
6180
  }
6181
6181
 
6182
- // node_modules/typebox/build/type/action/instance_type.mjs
6182
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/instance_type.mjs
6183
6183
  function InstanceTypeDeferred(type, options = {}) {
6184
6184
  return Deferred("InstanceType", [type], options);
6185
6185
  }
@@ -6187,7 +6187,7 @@ function InstanceType(type, options = {}) {
6187
6187
  return InstanceTypeAction(type, options);
6188
6188
  }
6189
6189
 
6190
- // node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
6190
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
6191
6191
  function InstanceTypeOperation(type) {
6192
6192
  return IsConstructor2(type) ? type["instanceType"] : Never();
6193
6193
  }
@@ -6200,7 +6200,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) {
6200
6200
  return InstanceTypeAction(instantiatedType, options);
6201
6201
  }
6202
6202
 
6203
- // node_modules/typebox/build/type/action/keyof.mjs
6203
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/keyof.mjs
6204
6204
  function KeyOfDeferred(type, options = {}) {
6205
6205
  return Deferred("KeyOf", [type], options);
6206
6206
  }
@@ -6208,17 +6208,17 @@ function KeyOf2(type, options = {}) {
6208
6208
  return KeyOfAction(type, options);
6209
6209
  }
6210
6210
 
6211
- // node_modules/typebox/build/type/engine/keyof/from_any.mjs
6211
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_any.mjs
6212
6212
  function FromAny() {
6213
6213
  return Union([Number2(), String2(), Symbol2()]);
6214
6214
  }
6215
6215
 
6216
- // node_modules/typebox/build/type/engine/keyof/from_array.mjs
6216
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_array.mjs
6217
6217
  function FromArray5(_type) {
6218
6218
  return Number2();
6219
6219
  }
6220
6220
 
6221
- // node_modules/typebox/build/type/engine/keyof/from_object.mjs
6221
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_object.mjs
6222
6222
  function FromPropertyKeys(keys) {
6223
6223
  const result = keys.reduce((result2, left) => {
6224
6224
  return IsLiteralValue(left) ? [...result2, Literal(ConvertToIntegerKey(left))] : Unreachable();
@@ -6232,23 +6232,23 @@ function FromObject7(properties) {
6232
6232
  return result;
6233
6233
  }
6234
6234
 
6235
- // node_modules/typebox/build/type/engine/keyof/from_record.mjs
6235
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_record.mjs
6236
6236
  function FromRecord2(type) {
6237
6237
  return RecordKey(type);
6238
6238
  }
6239
6239
 
6240
- // node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
6240
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
6241
6241
  function FromTuple3(types) {
6242
6242
  const result = types.map((_, index) => Literal(index));
6243
6243
  return EvaluateUnionFast(result);
6244
6244
  }
6245
6245
 
6246
- // node_modules/typebox/build/type/engine/keyof/from_type.mjs
6246
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/from_type.mjs
6247
6247
  function FromType12(type) {
6248
6248
  return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray5(type.items) : IsObject2(type) ? FromObject7(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
6249
6249
  }
6250
6250
 
6251
- // node_modules/typebox/build/type/engine/keyof/instantiate.mjs
6251
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/keyof/instantiate.mjs
6252
6252
  function NormalizeType2(type) {
6253
6253
  const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
6254
6254
  return result;
@@ -6261,7 +6261,7 @@ function KeyOfInstantiate(context, state, type, options) {
6261
6261
  return KeyOfAction(instantiatedType, options);
6262
6262
  }
6263
6263
 
6264
- // node_modules/typebox/build/type/action/mapped.mjs
6264
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/mapped.mjs
6265
6265
  function MappedDeferred(identifier, type, as, property, options = {}) {
6266
6266
  return Deferred("Mapped", [identifier, type, as, property], options);
6267
6267
  }
@@ -6269,7 +6269,7 @@ function Mapped(identifier, type, as, property, options = {}) {
6269
6269
  return MappedAction({}, State([], []), identifier, type, as, property, options);
6270
6270
  }
6271
6271
 
6272
- // node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
6272
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
6273
6273
  function FromTemplateLiteral3(pattern) {
6274
6274
  const evaluated = EvaluateTemplateLiteral(pattern);
6275
6275
  const result = FromType13(evaluated);
@@ -6298,7 +6298,7 @@ function MappedVariants(type) {
6298
6298
  return result;
6299
6299
  }
6300
6300
 
6301
- // node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
6301
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
6302
6302
  function CanonicalAs(instantiatedAs) {
6303
6303
  const result = IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs;
6304
6304
  return result;
@@ -6328,7 +6328,7 @@ function MappedOperation(context, state, identifier, type, as, property) {
6328
6328
  return result;
6329
6329
  }
6330
6330
 
6331
- // node_modules/typebox/build/type/engine/mapped/instantiate.mjs
6331
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/mapped/instantiate.mjs
6332
6332
  function MappedAction(context, state, identifier, type, as, property, options) {
6333
6333
  const result = CanInstantiate([type]) ? memory_exports.Update(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options);
6334
6334
  return result;
@@ -6338,7 +6338,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio
6338
6338
  return MappedAction(context, state, identifier, instantiatedType, as, property, options);
6339
6339
  }
6340
6340
 
6341
- // node_modules/typebox/build/type/engine/module/instantiate.mjs
6341
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/module/instantiate.mjs
6342
6342
  function InstantiateCyclics(context, declarations, cyclicKeys) {
6343
6343
  const declarationContext = memory_exports.Assign(context, declarations);
6344
6344
  const declarationKeys = guard_exports.Keys(declarations).filter((key) => cyclicKeys.includes(key));
@@ -6365,7 +6365,7 @@ function ModuleInstantiate(context, _state, declarations, options) {
6365
6365
  return instantiatedModule;
6366
6366
  }
6367
6367
 
6368
- // node_modules/typebox/build/type/action/non_nullable.mjs
6368
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/non_nullable.mjs
6369
6369
  function NonNullableDeferred(type, options = {}) {
6370
6370
  return Deferred("NonNullable", [type], options);
6371
6371
  }
@@ -6373,7 +6373,7 @@ function NonNullable(type, options = {}) {
6373
6373
  return NonNullableAction(type, options);
6374
6374
  }
6375
6375
 
6376
- // node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
6376
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
6377
6377
  function NonNullableOperation(type) {
6378
6378
  const excluded = Union([Null(), Undefined()]);
6379
6379
  return ExcludeAction(type, excluded, {});
@@ -6387,7 +6387,7 @@ function NonNullableInstantiate(context, state, type, options) {
6387
6387
  return NonNullableAction(instantiatedType, options);
6388
6388
  }
6389
6389
 
6390
- // node_modules/typebox/build/type/action/omit.mjs
6390
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/omit.mjs
6391
6391
  function OmitDeferred(type, indexer, options = {}) {
6392
6392
  return Deferred("Omit", [type, indexer], options);
6393
6393
  }
@@ -6396,14 +6396,14 @@ function Omit(type, indexer_or_keys, options = {}) {
6396
6396
  return OmitAction(type, indexer, options);
6397
6397
  }
6398
6398
 
6399
- // node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
6399
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
6400
6400
  function ToIndexable(type) {
6401
6401
  const collapsed = CollapseToObject(type);
6402
6402
  const result = IsObject2(collapsed) ? collapsed.properties : Unreachable();
6403
6403
  return result;
6404
6404
  }
6405
6405
 
6406
- // node_modules/typebox/build/type/engine/omit/from_type.mjs
6406
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/omit/from_type.mjs
6407
6407
  function FromKeys(properties, keys) {
6408
6408
  const result = guard_exports.Keys(properties).reduce((result2, key) => {
6409
6409
  return keys.includes(key) ? result2 : { ...result2, [key]: properties[key] };
@@ -6418,7 +6418,7 @@ function FromType14(type, indexer) {
6418
6418
  return result;
6419
6419
  }
6420
6420
 
6421
- // node_modules/typebox/build/type/engine/omit/instantiate.mjs
6421
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/omit/instantiate.mjs
6422
6422
  function OmitAction(type, indexer, options) {
6423
6423
  const result = CanInstantiate([type, indexer]) ? memory_exports.Update(FromType14(type, indexer), {}, options) : OmitDeferred(type, indexer, options);
6424
6424
  return result;
@@ -6429,7 +6429,7 @@ function OmitInstantiate(context, state, type, indexer, options) {
6429
6429
  return OmitAction(instantiatedType, instantiatedIndexer, options);
6430
6430
  }
6431
6431
 
6432
- // node_modules/typebox/build/type/action/parameters.mjs
6432
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/parameters.mjs
6433
6433
  function ParametersDeferred(type, options = {}) {
6434
6434
  return Deferred("Parameters", [type], options);
6435
6435
  }
@@ -6437,7 +6437,7 @@ function Parameters(type, options = {}) {
6437
6437
  return ParametersAction(type, options);
6438
6438
  }
6439
6439
 
6440
- // node_modules/typebox/build/type/engine/parameters/instantiate.mjs
6440
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
6441
6441
  function ParametersOperation(type) {
6442
6442
  const parameters = IsFunction2(type) ? type["parameters"] : [];
6443
6443
  const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
@@ -6453,7 +6453,7 @@ function ParametersInstantiate(context, state, type, options) {
6453
6453
  return ParametersAction(instantiatedType, options);
6454
6454
  }
6455
6455
 
6456
- // node_modules/typebox/build/type/action/partial.mjs
6456
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/partial.mjs
6457
6457
  function PartialDeferred(type, options = {}) {
6458
6458
  return Deferred("Partial", [type], options);
6459
6459
  }
@@ -6461,7 +6461,7 @@ function Partial(type, options = {}) {
6461
6461
  return PartialAction(type, options);
6462
6462
  }
6463
6463
 
6464
- // node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
6464
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
6465
6465
  function FromCyclic3(defs, ref) {
6466
6466
  const target = CyclicTarget(defs, ref);
6467
6467
  const partial = FromType15(target);
@@ -6469,27 +6469,27 @@ function FromCyclic3(defs, ref) {
6469
6469
  return result;
6470
6470
  }
6471
6471
 
6472
- // node_modules/typebox/build/type/engine/partial/from_dependent.mjs
6472
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_dependent.mjs
6473
6473
  function FromDependent3(if_, then_, else_) {
6474
6474
  const evaluated = EvaluateDependent(if_, then_, else_);
6475
6475
  const result = FromType15(evaluated);
6476
6476
  return result;
6477
6477
  }
6478
6478
 
6479
- // node_modules/typebox/build/type/engine/partial/from_intersect.mjs
6479
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_intersect.mjs
6480
6480
  function FromIntersect3(types) {
6481
6481
  const evaluated = EvaluateIntersect(types);
6482
6482
  const result = FromType15(evaluated);
6483
6483
  return result;
6484
6484
  }
6485
6485
 
6486
- // node_modules/typebox/build/type/engine/partial/from_union.mjs
6486
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_union.mjs
6487
6487
  function FromUnion6(types) {
6488
6488
  const result = types.map((type) => FromType15(type));
6489
6489
  return Union(result);
6490
6490
  }
6491
6491
 
6492
- // node_modules/typebox/build/type/engine/partial/from_object.mjs
6492
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_object.mjs
6493
6493
  function FromObject8(properties) {
6494
6494
  const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
6495
6495
  return { ...result2, [left]: AddOptional(properties[left]) };
@@ -6498,12 +6498,12 @@ function FromObject8(properties) {
6498
6498
  return result;
6499
6499
  }
6500
6500
 
6501
- // node_modules/typebox/build/type/engine/partial/from_type.mjs
6501
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/from_type.mjs
6502
6502
  function FromType15(type) {
6503
6503
  return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject8(type.properties) : _Object_({});
6504
6504
  }
6505
6505
 
6506
- // node_modules/typebox/build/type/engine/partial/instantiate.mjs
6506
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/partial/instantiate.mjs
6507
6507
  function PartialAction(type, options) {
6508
6508
  const result = CanInstantiate([type]) ? memory_exports.Update(FromType15(type), {}, options) : PartialDeferred(type, options);
6509
6509
  return result;
@@ -6513,7 +6513,7 @@ function PartialInstantiate(context, state, type, options) {
6513
6513
  return PartialAction(instantiatedType, options);
6514
6514
  }
6515
6515
 
6516
- // node_modules/typebox/build/type/action/pick.mjs
6516
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/pick.mjs
6517
6517
  function PickDeferred(type, indexer, options = {}) {
6518
6518
  return Deferred("Pick", [type, indexer], options);
6519
6519
  }
@@ -6522,7 +6522,7 @@ function Pick(type, indexer_or_keys, options = {}) {
6522
6522
  return PickAction(type, indexer, options);
6523
6523
  }
6524
6524
 
6525
- // node_modules/typebox/build/type/engine/pick/from_type.mjs
6525
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/pick/from_type.mjs
6526
6526
  function FromKeys2(properties, keys) {
6527
6527
  const result = guard_exports.Keys(properties).reduce((result2, key) => {
6528
6528
  return keys.includes(key) ? memory_exports.Assign(result2, { [key]: properties[key] }) : result2;
@@ -6537,7 +6537,7 @@ function FromType16(type, indexer) {
6537
6537
  return result;
6538
6538
  }
6539
6539
 
6540
- // node_modules/typebox/build/type/engine/pick/instantiate.mjs
6540
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/pick/instantiate.mjs
6541
6541
  function PickAction(type, indexer, options) {
6542
6542
  const result = CanInstantiate([type, indexer]) ? memory_exports.Update(FromType16(type, indexer), {}, options) : PickDeferred(type, indexer, options);
6543
6543
  return result;
@@ -6548,7 +6548,7 @@ function PickInstantiate(context, state, type, indexer, options) {
6548
6548
  return PickAction(instantiatedType, instantiatedIndexer, options);
6549
6549
  }
6550
6550
 
6551
- // node_modules/typebox/build/type/action/readonly_object.mjs
6551
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/readonly_object.mjs
6552
6552
  function ReadonlyObjectDeferred(type, options = {}) {
6553
6553
  return Deferred("ReadonlyObject", [type], options);
6554
6554
  }
@@ -6557,13 +6557,13 @@ function ReadonlyObject(type, options = {}) {
6557
6557
  }
6558
6558
  var ReadonlyType = ReadonlyObject;
6559
6559
 
6560
- // node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
6560
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
6561
6561
  function FromArray6(type) {
6562
6562
  const result = AddImmutable(_Array_(type));
6563
6563
  return result;
6564
6564
  }
6565
6565
 
6566
- // node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
6566
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
6567
6567
  function FromCyclic4(defs, ref) {
6568
6568
  const target = CyclicTarget(defs, ref);
6569
6569
  const partial = FromType17(target);
@@ -6571,21 +6571,21 @@ function FromCyclic4(defs, ref) {
6571
6571
  return result;
6572
6572
  }
6573
6573
 
6574
- // node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
6574
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
6575
6575
  function FromDependent4(if_, then_, else_) {
6576
6576
  const evaluated = EvaluateDependent(if_, then_, else_);
6577
6577
  const result = FromType17(evaluated);
6578
6578
  return result;
6579
6579
  }
6580
6580
 
6581
- // node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
6581
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
6582
6582
  function FromIntersect4(types) {
6583
6583
  const evaluated = EvaluateIntersect(types);
6584
6584
  const result = FromType17(evaluated);
6585
6585
  return result;
6586
6586
  }
6587
6587
 
6588
- // node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
6588
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
6589
6589
  function FromObject9(properties) {
6590
6590
  const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
6591
6591
  return { ...result2, [left]: AddReadonly(properties[left]) };
@@ -6594,24 +6594,24 @@ function FromObject9(properties) {
6594
6594
  return result;
6595
6595
  }
6596
6596
 
6597
- // node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
6597
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
6598
6598
  function FromTuple4(types) {
6599
6599
  const result = AddImmutable(Tuple(types));
6600
6600
  return result;
6601
6601
  }
6602
6602
 
6603
- // node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
6603
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
6604
6604
  function FromUnion7(types) {
6605
6605
  const result = types.map((type) => FromType17(type));
6606
6606
  return Union(result);
6607
6607
  }
6608
6608
 
6609
- // node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
6609
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
6610
6610
  function FromType17(type) {
6611
6611
  return IsArray2(type) ? FromArray6(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject9(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
6612
6612
  }
6613
6613
 
6614
- // node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
6614
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
6615
6615
  function ReadonlyObjectAction(type, options) {
6616
6616
  const result = CanInstantiate([type]) ? memory_exports.Update(FromType17(type), {}, options) : ReadonlyObjectDeferred(type);
6617
6617
  return result;
@@ -6621,12 +6621,12 @@ function ReadonlyObjectInstantiate(context, state, type, options) {
6621
6621
  return ReadonlyObjectAction(instantiatedType, options);
6622
6622
  }
6623
6623
 
6624
- // node_modules/typebox/build/type/engine/ref/instantiate.mjs
6624
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/ref/instantiate.mjs
6625
6625
  function RefInstantiate(context, state, type, ref) {
6626
6626
  return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type;
6627
6627
  }
6628
6628
 
6629
- // node_modules/typebox/build/type/engine/required/from_cyclic.mjs
6629
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_cyclic.mjs
6630
6630
  function FromCyclic5(defs, ref) {
6631
6631
  const target = CyclicTarget(defs, ref);
6632
6632
  const partial = FromType18(target);
@@ -6634,27 +6634,27 @@ function FromCyclic5(defs, ref) {
6634
6634
  return result;
6635
6635
  }
6636
6636
 
6637
- // node_modules/typebox/build/type/engine/required/from_dependent.mjs
6637
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_dependent.mjs
6638
6638
  function FromDependent5(if_, then_, else_) {
6639
6639
  const evaluated = EvaluateDependent(if_, then_, else_);
6640
6640
  const result = FromType18(evaluated);
6641
6641
  return result;
6642
6642
  }
6643
6643
 
6644
- // node_modules/typebox/build/type/engine/required/from_intersect.mjs
6644
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_intersect.mjs
6645
6645
  function FromIntersect5(types) {
6646
6646
  const evaluated = EvaluateIntersect(types);
6647
6647
  const result = FromType18(evaluated);
6648
6648
  return result;
6649
6649
  }
6650
6650
 
6651
- // node_modules/typebox/build/type/engine/required/from_union.mjs
6651
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_union.mjs
6652
6652
  function FromUnion8(types) {
6653
6653
  const result = types.map((type) => FromType18(type));
6654
6654
  return Union(result);
6655
6655
  }
6656
6656
 
6657
- // node_modules/typebox/build/type/engine/required/from_object.mjs
6657
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_object.mjs
6658
6658
  function FromObject10(properties) {
6659
6659
  const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
6660
6660
  return { ...result2, [left]: RemoveOptional(properties[left]) };
@@ -6663,12 +6663,12 @@ function FromObject10(properties) {
6663
6663
  return result;
6664
6664
  }
6665
6665
 
6666
- // node_modules/typebox/build/type/engine/required/from_type.mjs
6666
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/from_type.mjs
6667
6667
  function FromType18(type) {
6668
6668
  return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject10(type.properties) : _Object_({});
6669
6669
  }
6670
6670
 
6671
- // node_modules/typebox/build/type/action/required.mjs
6671
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/required.mjs
6672
6672
  function RequiredDeferred(type, options = {}) {
6673
6673
  return Deferred("Required", [type], options);
6674
6674
  }
@@ -6676,7 +6676,7 @@ function Required(type, options = {}) {
6676
6676
  return RequiredAction(type, options);
6677
6677
  }
6678
6678
 
6679
- // node_modules/typebox/build/type/engine/required/instantiate.mjs
6679
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/required/instantiate.mjs
6680
6680
  function RequiredAction(type, options) {
6681
6681
  const result = CanInstantiate([type]) ? memory_exports.Update(FromType18(type), {}, options) : RequiredDeferred(type, options);
6682
6682
  return result;
@@ -6686,7 +6686,7 @@ function RequiredInstantiate(context, state, type, options) {
6686
6686
  return RequiredAction(instaniatedType, options);
6687
6687
  }
6688
6688
 
6689
- // node_modules/typebox/build/type/action/return_type.mjs
6689
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/return_type.mjs
6690
6690
  function ReturnTypeDeferred(type, options = {}) {
6691
6691
  return Deferred("ReturnType", [type], options);
6692
6692
  }
@@ -6694,7 +6694,7 @@ function ReturnType(type, options = {}) {
6694
6694
  return ReturnTypeAction(type, options);
6695
6695
  }
6696
6696
 
6697
- // node_modules/typebox/build/type/engine/return_type/instantiate.mjs
6697
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/return_type/instantiate.mjs
6698
6698
  function ReturnTypeOperation(type) {
6699
6699
  return IsFunction2(type) ? type["returnType"] : Never();
6700
6700
  }
@@ -6707,7 +6707,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) {
6707
6707
  return ReturnTypeAction(instantiatedType, options);
6708
6708
  }
6709
6709
 
6710
- // node_modules/typebox/build/type/action/with.mjs
6710
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/with.mjs
6711
6711
  function WithDeferred(type, options) {
6712
6712
  return Deferred("With", [type, options], {});
6713
6713
  }
@@ -6715,7 +6715,7 @@ function With2(type, options) {
6715
6715
  return WithAction(type, options);
6716
6716
  }
6717
6717
 
6718
- // node_modules/typebox/build/type/engine/with/instantiate.mjs
6718
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/with/instantiate.mjs
6719
6719
  function WithAction(type, options) {
6720
6720
  const result = CanInstantiate([type]) ? memory_exports.Update(type, {}, options) : WithDeferred(type, options);
6721
6721
  return result;
@@ -6725,7 +6725,7 @@ function WithInstantiate(context, state, type, options) {
6725
6725
  return WithAction(instaniatedType, options);
6726
6726
  }
6727
6727
 
6728
- // node_modules/typebox/build/type/engine/rest/spread.mjs
6728
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/rest/spread.mjs
6729
6729
  function SpreadElement(type) {
6730
6730
  const result = IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef2(type.items) ? [type] : [Never()] : [type];
6731
6731
  return result;
@@ -6737,7 +6737,7 @@ function RestSpread(types) {
6737
6737
  return result;
6738
6738
  }
6739
6739
 
6740
- // node_modules/typebox/build/type/engine/instantiate.mjs
6740
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/instantiate.mjs
6741
6741
  function State(callstack, visited) {
6742
6742
  return { callstack, visited };
6743
6743
  }
@@ -6785,7 +6785,7 @@ function Instantiate(context, type) {
6785
6785
  return InstantiateType(context, State([], []), type);
6786
6786
  }
6787
6787
 
6788
- // node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
6788
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
6789
6789
  function AddImmutableOperation(type) {
6790
6790
  return memory_exports.Update(type, { "~immutable": true }, {});
6791
6791
  }
@@ -6798,7 +6798,7 @@ function AddImmutableInstantiate(context, state, type, options) {
6798
6798
  return AddImmutableAction(instantiatedType, options);
6799
6799
  }
6800
6800
 
6801
- // node_modules/typebox/build/type/action/_add_immutable.mjs
6801
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/_add_immutable.mjs
6802
6802
  function AddImmutableDeferred(type, options = {}) {
6803
6803
  return Deferred("AddImmutable", [type], options);
6804
6804
  }
@@ -6806,7 +6806,7 @@ function AddImmutable(type, options = {}) {
6806
6806
  return AddImmutableAction(type, options);
6807
6807
  }
6808
6808
 
6809
- // node_modules/typebox/build/type/action/evaluate.mjs
6809
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/evaluate.mjs
6810
6810
  function EvaluateDeferred(type, options = {}) {
6811
6811
  return Deferred("Evaluate", [type], options);
6812
6812
  }
@@ -6814,7 +6814,7 @@ function Evaluate(type, options = {}) {
6814
6814
  return EvaluateAction(type, options);
6815
6815
  }
6816
6816
 
6817
- // node_modules/typebox/build/type/action/module.mjs
6817
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/action/module.mjs
6818
6818
  function ModuleDeferred(declarations, options = {}) {
6819
6819
  return Deferred("Module", [declarations], options);
6820
6820
  }
@@ -6822,7 +6822,7 @@ function Module2(declarations, options = {}) {
6822
6822
  return ModuleInstantiate({}, State([], []), declarations, options);
6823
6823
  }
6824
6824
 
6825
- // node_modules/typebox/build/type/engine/priority/priority.mjs
6825
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/engine/priority/priority.mjs
6826
6826
  function Comparer(left, right) {
6827
6827
  const compareResult = Compare(left, right);
6828
6828
  return guard_exports.IsEqual(compareResult, CompareResultRightInside) ? 1 : guard_exports.IsEqual(compareResult, CompareResultDisjoint) ? 1 : 0;
@@ -6838,7 +6838,7 @@ function Priority(types) {
6838
6838
  return result;
6839
6839
  }
6840
6840
 
6841
- // node_modules/typebox/build/type/script/script.mjs
6841
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/type/script/script.mjs
6842
6842
  function Script2(...args) {
6843
6843
  const [context, input, options] = arguments_exports.Match(args, {
6844
6844
  2: (script, options2) => guard_exports.IsString(script) ? [{}, script, options2] : [script, options2, {}],
@@ -6850,19 +6850,19 @@ function Script2(...args) {
6850
6850
  return memory_exports.Update(parsed, {}, options);
6851
6851
  }
6852
6852
 
6853
- // node_modules/typebox/build/value/clean/from_array.mjs
6853
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_array.mjs
6854
6854
  function FromArray7(context, type, value) {
6855
6855
  if (!guard_exports.IsArray(value))
6856
6856
  return value;
6857
6857
  return value.map((value2) => FromType19(context, type.items, value2));
6858
6858
  }
6859
6859
 
6860
- // node_modules/typebox/build/value/clean/from_cyclic.mjs
6860
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_cyclic.mjs
6861
6861
  function FromCyclic6(context, type, value) {
6862
6862
  return FromType19({ ...context, ...type.$defs }, Ref2(type.$ref), value);
6863
6863
  }
6864
6864
 
6865
- // node_modules/typebox/build/value/clean/from_intersect.mjs
6865
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_intersect.mjs
6866
6866
  function EvaluateIntersection(context, type) {
6867
6867
  const additionalProperties = guard_exports.HasPropertyKey(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {};
6868
6868
  const instantiated = Instantiate(context, type);
@@ -6874,13 +6874,13 @@ function FromIntersect6(context, type, value) {
6874
6874
  return FromType19(context, evaluated, value);
6875
6875
  }
6876
6876
 
6877
- // node_modules/typebox/build/value/clean/additional.mjs
6877
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/additional.mjs
6878
6878
  function GetAdditionalProperties(type) {
6879
6879
  const additionalProperties = guard_exports.HasPropertyKey(type, "additionalProperties") ? type.additionalProperties : void 0;
6880
6880
  return additionalProperties;
6881
6881
  }
6882
6882
 
6883
- // node_modules/typebox/build/value/clean/from_object.mjs
6883
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_object.mjs
6884
6884
  function FromObject11(context, type, value) {
6885
6885
  if (!guard_exports.IsObject(value) || guard_exports.IsArray(value))
6886
6886
  return value;
@@ -6903,7 +6903,7 @@ function FromObject11(context, type, value) {
6903
6903
  return value;
6904
6904
  }
6905
6905
 
6906
- // node_modules/typebox/build/value/clean/from_record.mjs
6906
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_record.mjs
6907
6907
  function FromRecord3(context, type, value) {
6908
6908
  if (!guard_exports.IsObject(value))
6909
6909
  return value;
@@ -6927,12 +6927,12 @@ function FromRecord3(context, type, value) {
6927
6927
  return value;
6928
6928
  }
6929
6929
 
6930
- // node_modules/typebox/build/value/clean/from_ref.mjs
6930
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_ref.mjs
6931
6931
  function FromRef5(context, type, value) {
6932
6932
  return guard_exports.HasPropertyKey(context, type.$ref) ? FromType19(context, context[type.$ref], value) : value;
6933
6933
  }
6934
6934
 
6935
- // node_modules/typebox/build/value/clean/from_tuple.mjs
6935
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_tuple.mjs
6936
6936
  function FromTuple5(context, schema, value) {
6937
6937
  if (!guard_exports.IsArray(value))
6938
6938
  return value;
@@ -6943,12 +6943,12 @@ function FromTuple5(context, schema, value) {
6943
6943
  return guard_exports.IsGreaterThan(value.length, length) ? value.slice(0, length) : value;
6944
6944
  }
6945
6945
 
6946
- // node_modules/typebox/build/value/clone/clone.mjs
6946
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clone/clone.mjs
6947
6947
  function Clone2(value) {
6948
6948
  return Clone(value);
6949
6949
  }
6950
6950
 
6951
- // node_modules/typebox/build/value/clean/from_union.mjs
6951
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_union.mjs
6952
6952
  function FromUnion9(context, type, value) {
6953
6953
  for (const schema of type.anyOf) {
6954
6954
  const clean = FromType19(context, schema, Clone2(value));
@@ -6958,12 +6958,12 @@ function FromUnion9(context, type, value) {
6958
6958
  return value;
6959
6959
  }
6960
6960
 
6961
- // node_modules/typebox/build/value/clean/from_type.mjs
6961
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/from_type.mjs
6962
6962
  function FromType19(context, type, value) {
6963
6963
  return IsArray2(type) ? FromArray7(context, type, value) : IsCyclic(type) ? FromCyclic6(context, type, value) : IsIntersect(type) ? FromIntersect6(context, type, value) : IsObject2(type) ? FromObject11(context, type, value) : IsRecord(type) ? FromRecord3(context, type, value) : IsRef2(type) ? FromRef5(context, type, value) : IsTuple(type) ? FromTuple5(context, type, value) : IsUnion(type) ? FromUnion9(context, type, value) : value;
6964
6964
  }
6965
6965
 
6966
- // node_modules/typebox/build/value/shared/union_priority_sort.mjs
6966
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/shared/union_priority_sort.mjs
6967
6967
  function Modifiers(type, next) {
6968
6968
  for (const key of guard_default.Keys(type)) {
6969
6969
  if (guard_default.HasPropertyKey(next, key))
@@ -6993,7 +6993,7 @@ function UnionPrioritySort(type) {
6993
6993
  return result;
6994
6994
  }
6995
6995
 
6996
- // node_modules/typebox/build/value/clean/clean.mjs
6996
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/clean/clean.mjs
6997
6997
  function Clean(...args) {
6998
6998
  const [context, type, value] = arguments_exports.Match(args, {
6999
6999
  3: (context2, type2, value2) => [context2, type2, value2],
@@ -7003,7 +7003,7 @@ function Clean(...args) {
7003
7003
  return FromType19(context, sorted, value);
7004
7004
  }
7005
7005
 
7006
- // node_modules/typebox/build/value/convert/try/try.mjs
7006
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try.mjs
7007
7007
  var try_exports = {};
7008
7008
  __export(try_exports, {
7009
7009
  Fail: () => Fail,
@@ -7018,7 +7018,7 @@ __export(try_exports, {
7018
7018
  TryUndefined: () => TryUndefined
7019
7019
  });
7020
7020
 
7021
- // node_modules/typebox/build/value/convert/try/try_result.mjs
7021
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_result.mjs
7022
7022
  function IsOk(value) {
7023
7023
  return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, "value");
7024
7024
  }
@@ -7029,12 +7029,12 @@ function Fail() {
7029
7029
  return void 0;
7030
7030
  }
7031
7031
 
7032
- // node_modules/typebox/build/value/convert/try/try_array.mjs
7032
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_array.mjs
7033
7033
  function TryArray(value) {
7034
7034
  return guard_exports.IsArray(value) ? Ok(value) : Ok([value]);
7035
7035
  }
7036
7036
 
7037
- // node_modules/typebox/build/value/convert/try/try_bigint.mjs
7037
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_bigint.mjs
7038
7038
  function FromBoolean2(value) {
7039
7039
  return guard_exports.IsEqual(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0));
7040
7040
  }
@@ -7058,7 +7058,7 @@ function TryBigInt(value) {
7058
7058
  return guard_exports.IsBigInt(value) ? Ok(value) : guard_exports.IsBoolean(value) ? FromBoolean2(value) : guard_exports.IsNumber(value) ? Ok(BigInt(Math.trunc(value))) : guard_exports.IsNull(value) ? Ok(BigInt(0)) : guard_exports.IsString(value) ? FromString2(value) : guard_exports.IsUndefined(value) ? Ok(BigInt(0)) : Fail();
7059
7059
  }
7060
7060
 
7061
- // node_modules/typebox/build/value/convert/try/try_boolean.mjs
7061
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_boolean.mjs
7062
7062
  function FromBigInt2(value) {
7063
7063
  return guard_exports.IsEqual(value, BigInt(0)) ? Ok(false) : guard_exports.IsEqual(value, BigInt(1)) ? Ok(true) : Fail();
7064
7064
  }
@@ -7072,7 +7072,7 @@ function TryBoolean(value) {
7072
7072
  return guard_exports.IsBigInt(value) ? FromBigInt2(value) : guard_exports.IsBoolean(value) ? Ok(value) : guard_exports.IsNumber(value) ? FromNumber2(value) : guard_exports.IsNull(value) ? Ok(false) : guard_exports.IsString(value) ? FromString3(value) : guard_exports.IsUndefined(value) ? Ok(false) : Fail();
7073
7073
  }
7074
7074
 
7075
- // node_modules/typebox/build/value/convert/try/try_null.mjs
7075
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_null.mjs
7076
7076
  function FromBigInt3(value) {
7077
7077
  return guard_exports.IsEqual(value, BigInt(0)) ? Ok(null) : Fail();
7078
7078
  }
@@ -7091,7 +7091,7 @@ function TryNull(value) {
7091
7091
  return guard_exports.IsBigInt(value) ? FromBigInt3(value) : guard_exports.IsBoolean(value) ? FromBoolean3(value) : guard_exports.IsNumber(value) ? FromNumber3(value) : guard_exports.IsNull(value) ? Ok(null) : guard_exports.IsString(value) ? FromString4(value) : guard_exports.IsUndefined(value) ? Ok(null) : Fail();
7092
7092
  }
7093
7093
 
7094
- // node_modules/typebox/build/value/convert/try/try_number.mjs
7094
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_number.mjs
7095
7095
  var maxBigInt = BigInt(Number.MAX_SAFE_INTEGER);
7096
7096
  var minBigInt = BigInt(Number.MIN_SAFE_INTEGER);
7097
7097
  function FromBigInt4(value) {
@@ -7118,12 +7118,12 @@ function TryNumber(value) {
7118
7118
  return guard_exports.IsBigInt(value) ? FromBigInt4(value) : guard_exports.IsBoolean(value) ? FromBoolean4(value) : guard_exports.IsNumber(value) ? Ok(value) : guard_exports.IsNull(value) ? Ok(0) : guard_exports.IsString(value) ? FromString5(value) : guard_exports.IsUndefined(value) ? Ok(0) : Fail();
7119
7119
  }
7120
7120
 
7121
- // node_modules/typebox/build/value/convert/try/try_string.mjs
7121
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_string.mjs
7122
7122
  function TryString(value) {
7123
7123
  return guard_exports.IsBigInt(value) ? Ok(value.toString()) : guard_exports.IsBoolean(value) ? Ok(value.toString()) : guard_exports.IsNumber(value) ? Ok(value.toString()) : guard_exports.IsNull(value) ? Ok("null") : guard_exports.IsString(value) ? Ok(value) : guard_exports.IsUndefined(value) ? Ok("") : Fail();
7124
7124
  }
7125
7125
 
7126
- // node_modules/typebox/build/value/convert/try/try_undefined.mjs
7126
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/try/try_undefined.mjs
7127
7127
  function FromBigInt5(value) {
7128
7128
  return guard_exports.IsEqual(value, BigInt(0)) ? Ok(void 0) : Fail();
7129
7129
  }
@@ -7142,48 +7142,48 @@ function TryUndefined(value) {
7142
7142
  return guard_exports.IsBigInt(value) ? FromBigInt5(value) : guard_exports.IsBoolean(value) ? FromBoolean5(value) : guard_exports.IsNumber(value) ? FromNumber4(value) : guard_exports.IsNull(value) ? Ok(void 0) : guard_exports.IsString(value) ? FromString6(value) : guard_exports.IsUndefined(value) ? Ok(value) : Fail();
7143
7143
  }
7144
7144
 
7145
- // node_modules/typebox/build/value/convert/from_array.mjs
7145
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_array.mjs
7146
7146
  function FromArray8(context, type, value) {
7147
7147
  const result = try_exports.TryArray(value);
7148
7148
  return result.value.map((value2) => FromType21(context, type.items, value2));
7149
7149
  }
7150
7150
 
7151
- // node_modules/typebox/build/value/convert/from_bigint.mjs
7151
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_bigint.mjs
7152
7152
  function FromBigInt6(_context, _type, value) {
7153
7153
  const result = try_exports.TryBigInt(value);
7154
7154
  return try_exports.IsOk(result) ? result.value : value;
7155
7155
  }
7156
7156
 
7157
- // node_modules/typebox/build/value/convert/from_boolean.mjs
7157
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_boolean.mjs
7158
7158
  function FromBoolean6(_context, _type, value) {
7159
7159
  const result = try_exports.TryBoolean(value);
7160
7160
  return try_exports.IsOk(result) ? result.value : value;
7161
7161
  }
7162
7162
 
7163
- // node_modules/typebox/build/value/convert/from_cyclic.mjs
7163
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_cyclic.mjs
7164
7164
  function FromCyclic7(context, type, value) {
7165
7165
  return FromType21({ ...context, ...type.$defs }, Ref2(type.$ref), value);
7166
7166
  }
7167
7167
 
7168
- // node_modules/typebox/build/value/convert/from_enum.mjs
7168
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_enum.mjs
7169
7169
  function FromEnum3(context, type, value) {
7170
7170
  return FromType21(context, Evaluate(type), value);
7171
7171
  }
7172
7172
 
7173
- // node_modules/typebox/build/value/convert/from_integer.mjs
7173
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_integer.mjs
7174
7174
  function FromInteger(_context, _type, value) {
7175
7175
  const result = try_exports.TryNumber(value);
7176
7176
  return try_exports.IsOk(result) ? Math.trunc(result.value) : value;
7177
7177
  }
7178
7178
 
7179
- // node_modules/typebox/build/value/convert/from_intersect.mjs
7179
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_intersect.mjs
7180
7180
  function FromIntersect7(context, type, value) {
7181
7181
  const instantiated = Instantiate(context, type);
7182
7182
  const evaluated = Evaluate(instantiated);
7183
7183
  return FromType21(context, evaluated, value);
7184
7184
  }
7185
7185
 
7186
- // node_modules/typebox/build/value/convert/from_literal.mjs
7186
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_literal.mjs
7187
7187
  function FromLiteralBigInt(_context, type, value) {
7188
7188
  const result = try_exports.TryBigInt(value);
7189
7189
  return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
@@ -7206,19 +7206,19 @@ function FromLiteral6(context, type, value) {
7206
7206
  return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable();
7207
7207
  }
7208
7208
 
7209
- // node_modules/typebox/build/value/convert/from_null.mjs
7209
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_null.mjs
7210
7210
  function FromNull2(_context, _type, value) {
7211
7211
  const result = try_exports.TryNull(value);
7212
7212
  return try_exports.IsOk(result) ? result.value : value;
7213
7213
  }
7214
7214
 
7215
- // node_modules/typebox/build/value/convert/from_number.mjs
7215
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_number.mjs
7216
7216
  function FromNumber5(_context, _type, value) {
7217
7217
  const result = try_exports.TryNumber(value);
7218
7218
  return try_exports.IsOk(result) ? result.value : value;
7219
7219
  }
7220
7220
 
7221
- // node_modules/typebox/build/value/convert/from_additional.mjs
7221
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_additional.mjs
7222
7222
  function FromAdditionalProperties(context, entries, additionalProperties, value) {
7223
7223
  const keys = guard_exports.Keys(value);
7224
7224
  for (const [regexp, _] of entries) {
@@ -7231,12 +7231,12 @@ function FromAdditionalProperties(context, entries, additionalProperties, value)
7231
7231
  return value;
7232
7232
  }
7233
7233
 
7234
- // node_modules/typebox/build/value/shared/optional_undefined.mjs
7234
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/shared/optional_undefined.mjs
7235
7235
  function IsOptionalUndefined(property, key, value) {
7236
7236
  return IsOptional(property) && guard_exports.IsUndefined(value[key]);
7237
7237
  }
7238
7238
 
7239
- // node_modules/typebox/build/value/convert/from_object.mjs
7239
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_object.mjs
7240
7240
  function FromProperties5(context, type, value) {
7241
7241
  const entries = guard_exports.EntriesRegExp(type.properties);
7242
7242
  const keys = guard_exports.Keys(value);
@@ -7253,7 +7253,7 @@ function FromObject12(context, type, value) {
7253
7253
  return guard_exports.IsObjectNotArray(value) ? FromProperties5(context, type, value) : value;
7254
7254
  }
7255
7255
 
7256
- // node_modules/typebox/build/value/convert/from_record.mjs
7256
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_record.mjs
7257
7257
  function FromPatternProperties(context, type, value) {
7258
7258
  const entries = guard_exports.EntriesRegExp(type.patternProperties);
7259
7259
  const keys = guard_exports.Keys(value);
@@ -7270,23 +7270,23 @@ function FromRecord4(context, type, value) {
7270
7270
  return guard_exports.IsObjectNotArray(value) ? FromPatternProperties(context, type, value) : value;
7271
7271
  }
7272
7272
 
7273
- // node_modules/typebox/build/value/convert/from_ref.mjs
7273
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_ref.mjs
7274
7274
  function FromRef6(context, type, value) {
7275
7275
  return guard_exports.HasPropertyKey(context, type.$ref) ? FromType21(context, context[type.$ref], value) : value;
7276
7276
  }
7277
7277
 
7278
- // node_modules/typebox/build/value/convert/from_string.mjs
7278
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_string.mjs
7279
7279
  function FromString7(_context, _type, value) {
7280
7280
  const result = try_exports.TryString(value);
7281
7281
  return try_exports.IsOk(result) ? result.value : value;
7282
7282
  }
7283
7283
 
7284
- // node_modules/typebox/build/value/convert/from_template_literal.mjs
7284
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_template_literal.mjs
7285
7285
  function FromTemplateLiteral4(context, type, value) {
7286
7286
  return FromType21(context, Evaluate(type), value);
7287
7287
  }
7288
7288
 
7289
- // node_modules/typebox/build/value/convert/from_tuple.mjs
7289
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_tuple.mjs
7290
7290
  function FromTuple6(context, type, value) {
7291
7291
  if (!guard_exports.IsArray(value))
7292
7292
  return value;
@@ -7296,13 +7296,13 @@ function FromTuple6(context, type, value) {
7296
7296
  return value;
7297
7297
  }
7298
7298
 
7299
- // node_modules/typebox/build/value/convert/from_undefined.mjs
7299
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_undefined.mjs
7300
7300
  function FromUndefined2(_context, _type, value) {
7301
7301
  const result = try_exports.TryUndefined(value);
7302
7302
  return try_exports.IsOk(result) ? result.value : value;
7303
7303
  }
7304
7304
 
7305
- // node_modules/typebox/build/value/convert/from_union.mjs
7305
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_union.mjs
7306
7306
  function FromUnion10(context, type, value) {
7307
7307
  const matched = type.anyOf.some((type2) => Check2(context, type2, value));
7308
7308
  if (matched)
@@ -7312,18 +7312,18 @@ function FromUnion10(context, type, value) {
7312
7312
  return guard_exports.IsUndefined(selected) ? value : selected;
7313
7313
  }
7314
7314
 
7315
- // node_modules/typebox/build/value/convert/from_void.mjs
7315
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_void.mjs
7316
7316
  function FromVoid(_context, _type, value) {
7317
7317
  const result = try_exports.TryUndefined(value);
7318
7318
  return try_exports.IsOk(result) ? void 0 : value;
7319
7319
  }
7320
7320
 
7321
- // node_modules/typebox/build/value/convert/from_type.mjs
7321
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/from_type.mjs
7322
7322
  function FromType21(context, type, value) {
7323
7323
  return IsArray2(type) ? FromArray8(context, type, value) : IsBigInt2(type) ? FromBigInt6(context, type, value) : IsBoolean3(type) ? FromBoolean6(context, type, value) : IsCyclic(type) ? FromCyclic7(context, type, value) : IsEnum2(type) ? FromEnum3(context, type, value) : IsInteger2(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect7(context, type, value) : IsLiteral(type) ? FromLiteral6(context, type, value) : IsNull2(type) ? FromNull2(context, type, value) : IsNumber3(type) ? FromNumber5(context, type, value) : IsObject2(type) ? FromObject12(context, type, value) : IsRecord(type) ? FromRecord4(context, type, value) : IsRef2(type) ? FromRef6(context, type, value) : IsString3(type) ? FromString7(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral4(context, type, value) : IsTuple(type) ? FromTuple6(context, type, value) : IsUndefined2(type) ? FromUndefined2(context, type, value) : IsUnion(type) ? FromUnion10(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value;
7324
7324
  }
7325
7325
 
7326
- // node_modules/typebox/build/value/convert/convert.mjs
7326
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/convert/convert.mjs
7327
7327
  function Convert(...args) {
7328
7328
  const [context, type, value] = arguments_exports.Match(args, {
7329
7329
  3: (context2, type2, value2) => [context2, type2, value2],
@@ -7332,7 +7332,7 @@ function Convert(...args) {
7332
7332
  return FromType21(context, type, value);
7333
7333
  }
7334
7334
 
7335
- // node_modules/typebox/build/value/default/from_array.mjs
7335
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_array.mjs
7336
7336
  function FromArray9(context, type, value) {
7337
7337
  if (!guard_exports.IsArray(value))
7338
7338
  return value;
@@ -7342,26 +7342,26 @@ function FromArray9(context, type, value) {
7342
7342
  return value;
7343
7343
  }
7344
7344
 
7345
- // node_modules/typebox/build/value/default/from_cyclic.mjs
7345
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_cyclic.mjs
7346
7346
  function FromCyclic8(context, type, value) {
7347
7347
  return FromType22({ ...context, ...type.$defs }, Ref2(type.$ref), value);
7348
7348
  }
7349
7349
 
7350
- // node_modules/typebox/build/value/default/from_default.mjs
7350
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_default.mjs
7351
7351
  function FromDefault(type, value) {
7352
7352
  if (!guard_exports.IsUndefined(value))
7353
7353
  return value;
7354
7354
  return guard_exports.IsFunction(type.default) ? type.default() : Clone2(type.default);
7355
7355
  }
7356
7356
 
7357
- // node_modules/typebox/build/value/default/from_intersect.mjs
7357
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_intersect.mjs
7358
7358
  function FromIntersect8(context, type, value) {
7359
7359
  const instantiated = Instantiate(context, type);
7360
7360
  const evaluated = Evaluate(instantiated);
7361
7361
  return FromType22(context, evaluated, value);
7362
7362
  }
7363
7363
 
7364
- // node_modules/typebox/build/value/default/from_object.mjs
7364
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_object.mjs
7365
7365
  function FromObject13(context, type, value) {
7366
7366
  if (!guard_exports.IsObject(value))
7367
7367
  return value;
@@ -7383,7 +7383,7 @@ function FromObject13(context, type, value) {
7383
7383
  return value;
7384
7384
  }
7385
7385
 
7386
- // node_modules/typebox/build/value/default/from_record.mjs
7386
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_record.mjs
7387
7387
  function FromRecord5(context, type, value) {
7388
7388
  if (!guard_exports.IsObject(value))
7389
7389
  return value;
@@ -7403,12 +7403,12 @@ function FromRecord5(context, type, value) {
7403
7403
  return value;
7404
7404
  }
7405
7405
 
7406
- // node_modules/typebox/build/value/default/from_ref.mjs
7406
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_ref.mjs
7407
7407
  function FromRef7(context, type, value) {
7408
7408
  return guard_exports.HasPropertyKey(context, type.$ref) ? FromType22(context, context[type.$ref], value) : value;
7409
7409
  }
7410
7410
 
7411
- // node_modules/typebox/build/value/default/from_tuple.mjs
7411
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_tuple.mjs
7412
7412
  function FromTuple7(context, schema, value) {
7413
7413
  if (!guard_exports.IsArray(value))
7414
7414
  return value;
@@ -7420,7 +7420,7 @@ function FromTuple7(context, schema, value) {
7420
7420
  return value;
7421
7421
  }
7422
7422
 
7423
- // node_modules/typebox/build/value/default/from_union.mjs
7423
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_union.mjs
7424
7424
  function FromUnion11(context, schema, value) {
7425
7425
  for (const inner of schema.anyOf) {
7426
7426
  const result = FromType22(context, inner, Clone2(value));
@@ -7431,13 +7431,13 @@ function FromUnion11(context, schema, value) {
7431
7431
  return value;
7432
7432
  }
7433
7433
 
7434
- // node_modules/typebox/build/value/default/from_type.mjs
7434
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/from_type.mjs
7435
7435
  function FromType22(context, type, value) {
7436
7436
  const defaulted = IsDefault(type) ? FromDefault(type, value) : value;
7437
7437
  return IsArray2(type) ? FromArray9(context, type, defaulted) : IsCyclic(type) ? FromCyclic8(context, type, defaulted) : IsIntersect(type) ? FromIntersect8(context, type, defaulted) : IsObject2(type) ? FromObject13(context, type, defaulted) : IsRecord(type) ? FromRecord5(context, type, defaulted) : IsRef2(type) ? FromRef7(context, type, defaulted) : IsTuple(type) ? FromTuple7(context, type, defaulted) : IsUnion(type) ? FromUnion11(context, type, defaulted) : defaulted;
7438
7438
  }
7439
7439
 
7440
- // node_modules/typebox/build/value/default/default.mjs
7440
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/default/default.mjs
7441
7441
  function Default(...args) {
7442
7442
  const [context, type, value] = arguments_exports.Match(args, {
7443
7443
  3: (context2, type2, value2) => [context2, type2, value2],
@@ -7446,7 +7446,7 @@ function Default(...args) {
7446
7446
  return FromType22(context, type, value);
7447
7447
  }
7448
7448
 
7449
- // node_modules/typebox/build/value/pipeline/pipeline.mjs
7449
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/pipeline/pipeline.mjs
7450
7450
  function Pipeline(pipeline) {
7451
7451
  return (...args) => {
7452
7452
  const [context, type, value] = arguments_exports.Match(args, {
@@ -7457,7 +7457,7 @@ function Pipeline(pipeline) {
7457
7457
  };
7458
7458
  }
7459
7459
 
7460
- // node_modules/typebox/build/value/codec/callback.mjs
7460
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/callback.mjs
7461
7461
  function Decode3(_context, type, value) {
7462
7462
  return type["~codec"].decode(value);
7463
7463
  }
@@ -7470,7 +7470,7 @@ function Callback(direction, context, type, value) {
7470
7470
  return guard_exports.IsEqual(direction, "Decode") ? Decode3(context, type, value) : Encode3(context, type, value);
7471
7471
  }
7472
7472
 
7473
- // node_modules/typebox/build/value/codec/from_array.mjs
7473
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_array.mjs
7474
7474
  function Decode4(direction, context, type, value) {
7475
7475
  if (!guard_exports.IsArray(value))
7476
7476
  return value;
@@ -7492,13 +7492,13 @@ function FromArray10(direction, context, type, value) {
7492
7492
  return guard_exports.IsEqual(direction, "Decode") ? Decode4(direction, context, type, value) : Encode4(direction, context, type, value);
7493
7493
  }
7494
7494
 
7495
- // node_modules/typebox/build/value/codec/from_cyclic.mjs
7495
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_cyclic.mjs
7496
7496
  function FromCyclic9(direction, context, type, value) {
7497
7497
  value = FromType23(direction, { ...context, ...type.$defs }, Ref2(type.$ref), value);
7498
7498
  return Callback(direction, context, type, value);
7499
7499
  }
7500
7500
 
7501
- // node_modules/typebox/build/value/codec/from_intersect.mjs
7501
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_intersect.mjs
7502
7502
  function MergeInteriors(interiors) {
7503
7503
  return interiors.reduce((results, interior) => ({ ...results, ...interior }), {});
7504
7504
  }
@@ -7530,7 +7530,7 @@ function FromIntersect9(direction, context, type, value) {
7530
7530
  return guard_exports.IsEqual(direction, "Decode") ? Decode5(direction, context, type, value) : Encode5(direction, context, type, value);
7531
7531
  }
7532
7532
 
7533
- // node_modules/typebox/build/value/codec/from_object.mjs
7533
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_object.mjs
7534
7534
  function Decode6(direction, context, type, value) {
7535
7535
  if (!guard_exports.IsObjectNotArray(value))
7536
7536
  return value;
@@ -7556,7 +7556,7 @@ function FromObject14(direction, context, type, value) {
7556
7556
  return guard_exports.IsEqual(direction, "Decode") ? Decode6(direction, context, type, value) : Encode6(direction, context, type, value);
7557
7557
  }
7558
7558
 
7559
- // node_modules/typebox/build/value/codec/from_record.mjs
7559
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_record.mjs
7560
7560
  function Decode7(direction, context, type, value) {
7561
7561
  if (!guard_exports.IsObjectNotArray(value))
7562
7562
  return value;
@@ -7584,7 +7584,7 @@ function FromRecord6(direction, context, type, value) {
7584
7584
  return guard_exports.IsEqual(direction, "Decode") ? Decode7(direction, context, type, value) : Encode7(direction, context, type, value);
7585
7585
  }
7586
7586
 
7587
- // node_modules/typebox/build/value/codec/from_ref.mjs
7587
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_ref.mjs
7588
7588
  function ResolveRef2(direction, context, type, value) {
7589
7589
  return guard_exports.HasPropertyKey(context, type.$ref) ? FromType23(direction, context, context[type.$ref], value) : value;
7590
7590
  }
@@ -7592,7 +7592,7 @@ function FromRef8(direction, context, type, value) {
7592
7592
  return guard_exports.IsEqual(direction, "Decode") ? Callback(direction, context, type, ResolveRef2(direction, context, type, value)) : ResolveRef2(direction, context, type, Callback(direction, context, type, value));
7593
7593
  }
7594
7594
 
7595
- // node_modules/typebox/build/value/codec/from_tuple.mjs
7595
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_tuple.mjs
7596
7596
  function Decode8(direction, context, type, value) {
7597
7597
  if (!guard_exports.IsArray(value))
7598
7598
  return value;
@@ -7614,7 +7614,7 @@ function FromTuple8(direction, context, type, value) {
7614
7614
  return guard_exports.IsEqual(direction, "Decode") ? Decode8(direction, context, type, value) : Encode8(direction, context, type, value);
7615
7615
  }
7616
7616
 
7617
- // node_modules/typebox/build/value/codec/from_union.mjs
7617
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_union.mjs
7618
7618
  function Decode9(direction, context, type, value) {
7619
7619
  for (const schema of type.anyOf) {
7620
7620
  if (!Check2(context, schema, value))
@@ -7638,12 +7638,12 @@ function FromUnion12(direction, context, type, value) {
7638
7638
  return guard_exports.IsEqual(direction, "Decode") ? Decode9(direction, context, type, value) : Encode9(direction, context, type, value);
7639
7639
  }
7640
7640
 
7641
- // node_modules/typebox/build/value/codec/from_type.mjs
7641
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/from_type.mjs
7642
7642
  function FromType23(direction, context, type, value) {
7643
7643
  return IsArray2(type) ? FromArray10(direction, context, type, value) : IsCyclic(type) ? FromCyclic9(direction, context, type, value) : IsIntersect(type) ? FromIntersect9(direction, context, type, value) : IsObject2(type) ? FromObject14(direction, context, type, value) : IsRecord(type) ? FromRecord6(direction, context, type, value) : IsRef2(type) ? FromRef8(direction, context, type, value) : IsTuple(type) ? FromTuple8(direction, context, type, value) : IsUnion(type) ? FromUnion12(direction, context, type, value) : Callback(direction, context, type, value);
7644
7644
  }
7645
7645
 
7646
- // node_modules/typebox/build/value/codec/decode.mjs
7646
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/decode.mjs
7647
7647
  var DecodeError = class extends AssertError {
7648
7648
  constructor(value, errors) {
7649
7649
  super("Decode", value, errors);
@@ -7667,7 +7667,7 @@ var Decoder = Pipeline([
7667
7667
  (context, type, value) => DecodeUnsafe(context, type, value)
7668
7668
  ]);
7669
7669
 
7670
- // node_modules/typebox/build/value/codec/encode.mjs
7670
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/codec/encode.mjs
7671
7671
  var EncodeError = class extends AssertError {
7672
7672
  constructor(value, errors) {
7673
7673
  super("Encode", value, errors);
@@ -7691,7 +7691,7 @@ var Encoder = Pipeline([
7691
7691
  (context, type, value) => Assert2(context, type, value)
7692
7692
  ]);
7693
7693
 
7694
- // node_modules/typebox/build/value/parse/parse.mjs
7694
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/parse/parse.mjs
7695
7695
  var ParseError = class extends AssertError {
7696
7696
  constructor(value, errors) {
7697
7697
  super("Parse", value, errors);
@@ -7710,7 +7710,7 @@ var Parser = Pipeline([
7710
7710
  (context, type, value) => Assert3(context, type, value)
7711
7711
  ]);
7712
7712
 
7713
- // node_modules/typebox/build/value/delta/edit.mjs
7713
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/value/delta/edit.mjs
7714
7714
  var Insert2 = _Object_({
7715
7715
  type: Literal("insert"),
7716
7716
  path: String2(),
@@ -7727,7 +7727,7 @@ var Delete2 = _Object_({
7727
7727
  });
7728
7728
  var Edit = Union([Insert2, Update2, Delete2]);
7729
7729
 
7730
- // node_modules/typebox/build/typebox.mjs
7730
+ // ../../../Users/astrosheep/pi-extensions/pi-context/node_modules/typebox/build/typebox.mjs
7731
7731
  var typebox_exports = {};
7732
7732
  __export(typebox_exports, {
7733
7733
  Any: () => Any,
@@ -8026,7 +8026,7 @@ function assertVirtualPath(value) {
8026
8026
  if (parts.some((part) => part.length === 0 || part === "." || part === "..")) throw new NoteError("invalid_address", `${shown(value)}: a note path can't have empty, ".", or ".." folder names.`);
8027
8027
  return value;
8028
8028
  }
8029
- function sessionHomesRoot(home) {
8029
+ function sessionNamespacesRoot(home) {
8030
8030
  return join(home, "pi", "session");
8031
8031
  }
8032
8032
  function scopeDir(scope, identity2, who) {
@@ -8036,12 +8036,12 @@ function scopeDir(scope, identity2, who) {
8036
8036
  if (scope === "project") return join(identity2.home, "project", who ?? identity2.projectKey);
8037
8037
  if (scope === "agent") return join(identity2.home, "agents", who ?? identity2.agent);
8038
8038
  if (scope === "model") return join(identity2.home, "models", who ?? identity2.model);
8039
- return join(sessionHomesRoot(identity2.home), who ?? identity2.sessionId);
8039
+ return join(sessionNamespacesRoot(identity2.home), who ?? identity2.sessionId);
8040
8040
  }
8041
- async function namespaceSlugs(namespace, home) {
8042
- const root = namespace === "sessions" ? sessionHomesRoot(home) : join(home, namespace);
8041
+ async function namespaceSlugs(family, home) {
8042
+ const root = family === "sessions" ? sessionNamespacesRoot(home) : join(home, family);
8043
8043
  try {
8044
- return (await readdir(root, { withFileTypes: true })).filter((entry) => entry.isDirectory() && (namespace === "sessions" ? isSessionId(entry.name) : SLUG_PATTERN.test(entry.name))).map((entry) => entry.name).sort();
8044
+ return (await readdir(root, { withFileTypes: true })).filter((entry) => entry.isDirectory() && (family === "sessions" ? isSessionId(entry.name) : SLUG_PATTERN.test(entry.name))).map((entry) => entry.name).sort();
8045
8045
  } catch (error) {
8046
8046
  if (error.code === "ENOENT") return [];
8047
8047
  throw error;
@@ -8055,16 +8055,16 @@ function physicalPath(scope, vpath, identity2, who) {
8055
8055
  }
8056
8056
 
8057
8057
  // src/notes/address.ts
8058
- var ADDRESS_FORMS = "Use <path> for this session, or @project/, @human/, @self/, or @model/ followed by a path; @projects/<name>/<path> and @sessions/<id>/<path> read named homes.";
8059
- var HOME_HEADS = /* @__PURE__ */ new Map([
8058
+ var ADDRESS_FORMS = "Use <path> for this session, or @project/, @human/, @self/, or @model/ followed by a path; @projects/<name>/<path> and @sessions/<id>/<path> read named notebooks.";
8059
+ var NAMESPACE_HEADS = /* @__PURE__ */ new Map([
8060
8060
  ["project", { scope: "project" }],
8061
8061
  ["human", { scope: "human" }],
8062
8062
  ["self", { scope: "agent" }],
8063
8063
  ["model", { scope: "model" }],
8064
- ["sessions", { scope: "session", home: "sessions" }],
8065
- ["projects", { scope: "project", home: "project" }],
8066
- ["agents", { scope: "agent", home: "agents" }],
8067
- ["models", { scope: "model", home: "models" }]
8064
+ ["sessions", { scope: "session", dir: "sessions" }],
8065
+ ["projects", { scope: "project", dir: "project" }],
8066
+ ["agents", { scope: "agent", dir: "agents" }],
8067
+ ["models", { scope: "model", dir: "models" }]
8068
8068
  ]);
8069
8069
  function globToRegExp(pattern) {
8070
8070
  let source = "^";
@@ -8099,10 +8099,10 @@ function assertAddress(value) {
8099
8099
  let who;
8100
8100
  if (value.startsWith("@")) {
8101
8101
  const [rawHead, ...tail] = value.slice(1).split("/");
8102
- const head = HOME_HEADS.get(rawHead);
8102
+ const head = NAMESPACE_HEADS.get(rawHead);
8103
8103
  if (head === void 0) throw new NoteError("invalid_address", `${shown(value)} isn't a note address. ${ADDRESS_FORMS}`);
8104
8104
  scope = head.scope;
8105
- if (head.home === void 0) path = tail.join("/");
8105
+ if (head.dir === void 0) path = tail.join("/");
8106
8106
  else {
8107
8107
  who = tail[0] ?? "";
8108
8108
  if (!(scope === "session" ? isSessionId(who) : SLUG_PATTERN.test(who))) throw new NoteError("invalid_address", `${shown(value)} isn't a note address. ${ADDRESS_FORMS}`);
@@ -8155,9 +8155,9 @@ function snapshotNotesIdentity(value) {
8155
8155
  var MAX_NOTE_BYTES = 1e6;
8156
8156
  var MAX_NOTE_PATH_BYTES = 512;
8157
8157
 
8158
- // src/notes/project-home.ts
8158
+ // src/notes/project-namespace.ts
8159
8159
  import { randomUUID } from "node:crypto";
8160
- import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
8160
+ import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmdirSync, rmSync, statSync, writeFileSync } from "node:fs";
8161
8161
  import { basename, dirname, join as join2, resolve as resolve2, sep } from "node:path";
8162
8162
  function errno(error) {
8163
8163
  return typeof error === "object" && error !== null ? error.code : void 0;
@@ -8236,16 +8236,16 @@ function readMarker(dir) {
8236
8236
  }
8237
8237
  try {
8238
8238
  const value = JSON.parse(raw);
8239
- if (typeof value.id !== "string" || value.id.length === 0 || typeof value.path !== "string" || value.path.length === 0) return void 0;
8239
+ if (!value || typeof value.id !== "string" || value.id.length === 0 || typeof value.path !== "string" || value.path.length === 0) throw new Error("Expected non-empty id and path");
8240
8240
  return { name: basename(dir), dir, id: value.id, path: value.path };
8241
- } catch {
8242
- return void 0;
8241
+ } catch (cause) {
8242
+ throw new Error(`Invalid project marker at ${join2(dir, ".project")}`, { cause });
8243
8243
  }
8244
8244
  }
8245
8245
  function projectRoot(home) {
8246
8246
  return join2(home, "project");
8247
8247
  }
8248
- function projectHomes(home) {
8248
+ function projectNamespaces(home) {
8249
8249
  const root = projectRoot(home);
8250
8250
  let entries;
8251
8251
  try {
@@ -8256,8 +8256,8 @@ function projectHomes(home) {
8256
8256
  }
8257
8257
  return entries.filter((entry) => entry.isDirectory()).map((entry) => readMarker(join2(root, entry.name))).filter((entry) => entry !== void 0).sort((a, b) => a.name.localeCompare(b.name));
8258
8258
  }
8259
- function updateMarker(home, marker) {
8260
- const markerPath = join2(home.dir, ".project");
8259
+ function updateMarker(namespace, marker) {
8260
+ const markerPath = join2(namespace.dir, ".project");
8261
8261
  const temp = `${markerPath}.${process.pid}.${randomUUID()}.tmp`;
8262
8262
  try {
8263
8263
  writeFileSync(temp, JSON.stringify(marker));
@@ -8269,18 +8269,47 @@ function updateMarker(home, marker) {
8269
8269
  }
8270
8270
  throw error;
8271
8271
  }
8272
- return { ...home, ...marker };
8272
+ return { ...namespace, ...marker };
8273
+ }
8274
+ var claimSleep = new Int32Array(new SharedArrayBuffer(4));
8275
+ function awaitClaim(path, attempt) {
8276
+ const deadline = performance.now() + 5e3;
8277
+ for (; ; ) {
8278
+ const result = attempt();
8279
+ if (result !== void 0) return result;
8280
+ const remaining = deadline - performance.now();
8281
+ if (remaining <= 0) throw new Error(`Timed out waiting for project claim at ${path}`);
8282
+ Atomics.wait(claimSleep, 0, 0, Math.min(10, remaining));
8283
+ }
8284
+ }
8285
+ function resolveProjectNamespace(cwd, home) {
8286
+ mkdirSync(projectRoot(home), { recursive: true });
8287
+ const lock = join2(home, ".project-claim");
8288
+ awaitClaim(lock, () => {
8289
+ try {
8290
+ mkdirSync(lock);
8291
+ return true;
8292
+ } catch (error) {
8293
+ if (errno(error) === "EEXIST") return void 0;
8294
+ throw error;
8295
+ }
8296
+ });
8297
+ try {
8298
+ return claimProjectNamespace(cwd, home);
8299
+ } finally {
8300
+ rmdirSync(lock);
8301
+ }
8273
8302
  }
8274
- function resolveProjectHome(cwd, home) {
8303
+ function claimProjectNamespace(cwd, home) {
8275
8304
  const root = canonicalRoot(cwd);
8276
8305
  const remote = originRemote(root);
8277
8306
  const id = remote ?? root;
8278
8307
  const markerRoot = projectRoot(home);
8279
8308
  mkdirSync(markerRoot, { recursive: true });
8280
- const homes = projectHomes(home);
8281
- let found = homes.find((candidate) => candidate.id === id);
8309
+ const namespaces = projectNamespaces(home);
8310
+ let found = namespaces.find((candidate) => candidate.id === id);
8282
8311
  if (!found && remote) {
8283
- found = homes.find((candidate) => candidate.id === root);
8312
+ found = namespaces.find((candidate) => candidate.id === root);
8284
8313
  if (found) found = updateMarker(found, { id: remote, path: root });
8285
8314
  }
8286
8315
  if (found) {
@@ -8294,13 +8323,15 @@ function resolveProjectHome(cwd, home) {
8294
8323
  if (taken.has(name)) continue;
8295
8324
  const dir = join2(markerRoot, name);
8296
8325
  try {
8297
- mkdirSync(dir, { recursive: true });
8298
- writeFileSync(join2(dir, ".project"), JSON.stringify({ id, path: root }), { flag: "wx" });
8299
- return { name, dir, id, path: root };
8326
+ mkdirSync(dir);
8300
8327
  } catch (error) {
8301
- if (errno(error) === "EEXIST") continue;
8302
- throw error;
8328
+ if (errno(error) !== "EEXIST") throw error;
8329
+ let winner = awaitClaim(join2(dir, ".project"), () => readMarker(dir));
8330
+ if (winner.id !== id && !(remote && winner.id === root)) continue;
8331
+ if (winner.id !== id || winner.path !== root) winner = updateMarker(winner, { id, path: root });
8332
+ return winner;
8303
8333
  }
8334
+ return updateMarker({ name, dir, id, path: root }, { id, path: root });
8304
8335
  }
8305
8336
  }
8306
8337
  function gitRoot(cwd) {
@@ -8338,14 +8369,14 @@ function projectReceipt(home, name) {
8338
8369
  const project = readMarker(join2(projectRoot(home), name));
8339
8370
  if (!project) return {};
8340
8371
  const base = slugify(basename(project.path));
8341
- const siblings = projectHomes(home).filter((candidate) => candidate.name !== name && slugify(basename(candidate.path)) === base);
8372
+ const siblings = projectNamespaces(home).filter((candidate) => candidate.name !== name && slugify(basename(candidate.path)) === base);
8342
8373
  return {
8343
8374
  project_root: project.path,
8344
8375
  ...siblings.length === 0 ? {} : { project_siblings: siblings.map(({ name: name2, path }) => ({ name: name2, path })) }
8345
8376
  };
8346
8377
  }
8347
8378
  function projectKey(cwd, home) {
8348
- return resolveProjectHome(cwd, home).name;
8379
+ return resolveProjectNamespace(cwd, home).name;
8349
8380
  }
8350
8381
 
8351
8382
  // src/notes/store.ts
@@ -8402,21 +8433,21 @@ async function walkMarkdown(dir, base = dir) {
8402
8433
  }
8403
8434
  return paths;
8404
8435
  }
8405
- async function homesForPattern(pattern, identity2, status) {
8436
+ async function namespacesForPattern(pattern, identity2, status) {
8406
8437
  if (pattern === void 0) return SCOPE_ORDER.map((scope) => ({ scope }));
8407
8438
  const families = [
8408
- { scope: "session", home: "sessions", current: identity2.sessionId },
8409
- { scope: "project", home: "project", current: identity2.projectKey },
8410
- { scope: "agent", home: "agents", current: identity2.agent },
8411
- { scope: "model", home: "models", current: identity2.model }
8439
+ { scope: "session", dir: "sessions", current: identity2.sessionId },
8440
+ { scope: "project", dir: "project", current: identity2.projectKey },
8441
+ { scope: "agent", dir: "agents", current: identity2.agent },
8442
+ { scope: "model", dir: "models", current: identity2.model }
8412
8443
  ];
8413
8444
  async function enumerate(family, relative) {
8414
8445
  let names;
8415
8446
  try {
8416
- names = await namespaceSlugs(family.home, identity2.home);
8447
+ names = await namespaceSlugs(family.dir, identity2.home);
8417
8448
  } catch (error) {
8418
8449
  if (!status || !isFilesystemError(error)) throw error;
8419
- status.homesUnavailable.push(`@${family.home === "project" ? "projects" : family.home}`);
8450
+ status.namespacesUnavailable.push(`@${family.dir === "project" ? "projects" : family.dir}`);
8420
8451
  return [];
8421
8452
  }
8422
8453
  return [.../* @__PURE__ */ new Set([family.current, ...names])].map((who) => ({
@@ -8427,20 +8458,20 @@ async function homesForPattern(pattern, identity2, status) {
8427
8458
  if (pattern.startsWith("@")) {
8428
8459
  const [rawHead, ...tail] = pattern.slice(1).split("/");
8429
8460
  if (!/[*?]/.test(rawHead)) {
8430
- const head = HOME_HEADS.get(rawHead);
8461
+ const head = NAMESPACE_HEADS.get(rawHead);
8431
8462
  if (head === void 0 || tail.length === 0) return [];
8432
- if (head.home === void 0) return [{ scope: head.scope }];
8463
+ if (head.dir === void 0) return [{ scope: head.scope }];
8433
8464
  const name = tail[0];
8434
8465
  if (name && !/[*?]/.test(name)) return [{ scope: head.scope, who: assertWho(name, head.scope) }];
8435
- return enumerate(families.find((family) => family.home === head.home), false);
8466
+ return enumerate(families.find((family) => family.dir === head.dir), false);
8436
8467
  }
8437
8468
  }
8438
- const homes = [];
8469
+ const namespaces = [];
8439
8470
  for (const scope of SCOPE_ORDER) {
8440
- if (scope === "human") homes.push({ scope });
8441
- else homes.push(...await enumerate(families.find((family) => family.scope === scope), true));
8471
+ if (scope === "human") namespaces.push({ scope });
8472
+ else namespaces.push(...await enumerate(families.find((family) => family.scope === scope), true));
8442
8473
  }
8443
- return homes;
8474
+ return namespaces;
8444
8475
  }
8445
8476
  function normalizePattern(pattern, identity2) {
8446
8477
  if (!pattern) return pattern;
@@ -8509,20 +8540,21 @@ function assertSerializedSize(content) {
8509
8540
  function frontmatterOf(meta) {
8510
8541
  return serializeNote(meta, "").slice(0, -2);
8511
8542
  }
8512
- function assertWritableHome(scope, who, identity2) {
8543
+ function assertWritableNamespace(scope, who, identity2) {
8513
8544
  if (who === void 0) return;
8514
8545
  if (identity2.dreaming !== void 0 && (scope === "session" || scope === "project" && who === identity2.dreaming)) return;
8515
8546
  if (scope === "session") throw new NoteError("invalid_scope", `@sessions/${who}/ is read-only; use a bare path to write to this session.`);
8516
8547
  if (scope === "project") throw new NoteError("invalid_scope", `@projects/${who}/ is read-only; use @project/ to write to your own project.`);
8517
8548
  const current = scope === "agent" ? identity2.agent : identity2.model;
8518
8549
  if (who === current) return;
8519
- const home = scope === "agent" ? `@agents/${who}/` : `@models/${who}/`;
8520
- throw new NoteError("invalid_scope", `${home} is someone else's home; you can write to this session, @project/, @human/, @self/, or @model/.`);
8550
+ const address = scope === "agent" ? `@agents/${who}/` : `@models/${who}/`;
8551
+ throw new NoteError("invalid_scope", `${address} is someone else's notebook; you can write to this session, @project/, @human/, @self/, or @model/.`);
8521
8552
  }
8522
- function assertDreamSessionNote(scope, who, identity2, raw, address) {
8523
- if (scope !== "session" || who === void 0 || identity2.dreaming === void 0) return;
8524
- if (raw !== void 0 && parseNote(raw).meta.project === identity2.dreaming) return;
8525
- throw new NoteError("invalid_scope", raw === void 0 ? `${address}: a dream edits other sessions' existing notes, it doesn't create new ones there.` : `${address} belongs to another project, not the one being dreamed over (${identity2.dreaming}).`);
8553
+ function assertDreamNote(scope, who, identity2, raw, address) {
8554
+ if (identity2.dreaming === void 0 || scope !== "session" && scope !== "project") return;
8555
+ const project = scope === "project" ? who ?? identity2.projectKey : raw !== void 0 ? parseNote(raw).meta.project : who === void 0 ? identity2.projectKey : void 0;
8556
+ if (project === identity2.dreaming) return;
8557
+ throw new NoteError("invalid_scope", raw === void 0 && scope === "session" && who !== void 0 ? `${address}: a dream edits other sessions' existing notes, it doesn't create new ones there.` : `${address} belongs to another project, not the one being dreamed over (${identity2.dreaming}).`);
8526
8558
  }
8527
8559
  function createNotesStore(input) {
8528
8560
  const identity2 = snapshotNotesIdentity(input);
@@ -8531,14 +8563,14 @@ function createNotesStore(input) {
8531
8563
  const destination = assertAddress(address);
8532
8564
  assertWritablePath(destination.path);
8533
8565
  const scope = destination.scope;
8534
- assertWritableHome(scope, destination.who, identity2);
8566
+ assertWritableNamespace(scope, destination.who, identity2);
8535
8567
  const origin = stableOptions.origin === void 0 ? void 0 : assertOrigin(stableOptions.origin);
8536
8568
  const path = physicalPath(scope, destination.path, identity2, destination.who);
8537
8569
  return withPathQueue(path, async () => {
8538
8570
  const now = writeStamp();
8539
8571
  const cleanBody = stripLeadingFrontmatter(content);
8540
8572
  const existingRaw = await readFileIfExists(path);
8541
- assertDreamSessionNote(scope, destination.who, identity2, existingRaw, address);
8573
+ assertDreamNote(scope, destination.who, identity2, existingRaw, address);
8542
8574
  const existing = existingRaw === void 0 ? void 0 : parseNote(existingRaw, now).meta;
8543
8575
  const outcome = existing === void 0 ? "created" : existing.crumpledAt === void 0 ? "overwrote" : "uncrumpled";
8544
8576
  const meta = existing ?? {
@@ -8582,8 +8614,8 @@ function createNotesStore(input) {
8582
8614
  const destination = stableOptions.renameTo === void 0 ? from : assertAddress(stableOptions.renameTo);
8583
8615
  assertWritablePath(destination.path);
8584
8616
  const scope = destination.scope;
8585
- assertWritableHome(from.scope, from.who, identity2);
8586
- assertWritableHome(scope, destination.who, identity2);
8617
+ assertWritableNamespace(from.scope, from.who, identity2);
8618
+ assertWritableNamespace(scope, destination.who, identity2);
8587
8619
  if (operations.length === 0 && stableOptions.origin === void 0 && stableOptions.crumpled === void 0 && stableOptions.renameTo === void 0) {
8588
8620
  throw new NoteError("nothing_to_do", "Nothing to change: provide edits, an origin, a crumpled state, or a new address.");
8589
8621
  }
@@ -8594,8 +8626,8 @@ function createNotesStore(input) {
8594
8626
  const raw = await readFileIfExists(fromPath);
8595
8627
  if (raw === void 0) throw new NoteError("not_found", `No note at ${noteIdentity(identity2, address).address}.`);
8596
8628
  const targetRaw = differentPaths ? await readFileIfExists(path) : void 0;
8597
- assertDreamSessionNote(from.scope, from.who, identity2, raw, address);
8598
- if (differentPaths) assertDreamSessionNote(scope, destination.who, identity2, targetRaw, stableOptions.renameTo);
8629
+ assertDreamNote(from.scope, from.who, identity2, raw, address);
8630
+ if (differentPaths) assertDreamNote(scope, destination.who, identity2, targetRaw, stableOptions.renameTo);
8599
8631
  const sourceReal = targetRaw === void 0 ? void 0 : await realpath(fromPath);
8600
8632
  const sameFile = sourceReal !== void 0 && sourceReal === await realpath(path);
8601
8633
  const moved = differentPaths && !sameFile;
@@ -8655,12 +8687,12 @@ function createNotesStore(input) {
8655
8687
  async function forget(address) {
8656
8688
  if (identity2.dreaming === void 0) throw new NoteError("invalid_scope", "Only a dream can delete notes; begin one first.");
8657
8689
  const target = assertAddress(address);
8658
- assertWritableHome(target.scope, target.who, identity2);
8690
+ assertWritableNamespace(target.scope, target.who, identity2);
8659
8691
  const path = physicalPath(target.scope, target.path, identity2, target.who);
8660
8692
  return withPathQueue(path, async () => {
8661
8693
  const raw = await readFileIfExists(path);
8662
8694
  if (raw === void 0) throw new NoteError("not_found", `No note at ${noteIdentity(identity2, address).address}.`);
8663
- assertDreamSessionNote(target.scope, target.who, identity2, raw, address);
8695
+ assertDreamNote(target.scope, target.who, identity2, raw, address);
8664
8696
  const { meta } = parseNote(raw);
8665
8697
  if (meta.crumpledAt === void 0) throw new NoteError("not_crumpled", `${noteIdentity(identity2, address).address} isn't crumpled; crumple it before deleting.`);
8666
8698
  await unlink(path);
@@ -8672,28 +8704,28 @@ function createNotesStore(input) {
8672
8704
  const pattern = glob === "@default" ? void 0 : glob;
8673
8705
  const normalized = normalizePattern(pattern, identity2);
8674
8706
  const matcher = normalized === void 0 ? void 0 : globToRegExp(normalized);
8675
- const homes = await homesForPattern(pattern, identity2, status);
8676
- for (const home of homes) {
8677
- const scope = home.scope;
8678
- const root = scopeDir(scope, identity2, home.who);
8707
+ const namespaces = await namespacesForPattern(pattern, identity2, status);
8708
+ for (const namespace of namespaces) {
8709
+ const scope = namespace.scope;
8710
+ const root = scopeDir(scope, identity2, namespace.who);
8679
8711
  let paths;
8680
8712
  try {
8681
8713
  paths = await walkMarkdown(root);
8682
8714
  } catch (error) {
8683
8715
  if (!status || !isFilesystemError(error)) throw error;
8684
- status.homesUnavailable.push(addressFor(identity2, scope, "", home.who).replace(/\/$/, "") || "session");
8716
+ status.namespacesUnavailable.push(addressFor(identity2, scope, "", namespace.who).replace(/\/$/, "") || "session");
8685
8717
  continue;
8686
8718
  }
8687
8719
  for (const path of paths) {
8688
- if (matcher && !matcher.test(canonicalAddressFor(identity2, scope, path, home.who)) && !(scope === "session" && home.who === void 0 && !pattern.startsWith("@") && matcher.test(path))) continue;
8689
- const address = addressFor(identity2, scope, path, home.who);
8720
+ if (matcher && !matcher.test(canonicalAddressFor(identity2, scope, path, namespace.who)) && !(scope === "session" && namespace.who === void 0 && !pattern.startsWith("@") && matcher.test(path))) continue;
8721
+ const address = addressFor(identity2, scope, path, namespace.who);
8690
8722
  const fullPath = join3(root, path);
8691
8723
  let raw;
8692
8724
  try {
8693
8725
  raw = await withPathQueue(fullPath, () => readFile(fullPath, "utf8"));
8694
8726
  } catch (error) {
8695
8727
  if (!status || !isFilesystemError(error)) throw error;
8696
- status.homesUnavailable.push(address);
8728
+ status.namespacesUnavailable.push(address);
8697
8729
  continue;
8698
8730
  }
8699
8731
  const { meta, body } = parseNote(raw);
@@ -8713,10 +8745,10 @@ function createNotesStore(input) {
8713
8745
  rows.push({ ...row, sizeBytes: Buffer.byteLength(row.body, "utf8") });
8714
8746
  }
8715
8747
  rows.sort((a, b) => b.meta.updatedAt - a.meta.updatedAt || a.address.localeCompare(b.address));
8716
- return { rows, status: status ?? { homesUnavailable: [] } };
8748
+ return { rows, status: status ?? { namespacesUnavailable: [] } };
8717
8749
  }
8718
8750
  function listWithStatus(options = {}) {
8719
- return listRows(options, { homesUnavailable: [] });
8751
+ return listRows(options, { namespacesUnavailable: [] });
8720
8752
  }
8721
8753
  async function search(queries, options = {}) {
8722
8754
  return (await searchRows(queries, options)).rows;
@@ -8743,10 +8775,10 @@ function createNotesStore(input) {
8743
8775
  if (matches.length > 0) rows.push({ address, path, scope, meta, matches });
8744
8776
  }
8745
8777
  rows.sort((a, b) => a.address.localeCompare(b.address));
8746
- return { rows, status: status ?? { homesUnavailable: [] } };
8778
+ return { rows, status: status ?? { namespacesUnavailable: [] } };
8747
8779
  }
8748
8780
  function searchWithStatus(queries, options = {}) {
8749
- return searchRows(queries, options, { homesUnavailable: [] });
8781
+ return searchRows(queries, options, { namespacesUnavailable: [] });
8750
8782
  }
8751
8783
  return { write, read, update, rename: rename2, forget, list, search, listWithStatus, searchWithStatus };
8752
8784
  }
@@ -9028,6 +9060,28 @@ function searchQueries(query) {
9028
9060
  return candidates.filter((candidate) => candidate !== "");
9029
9061
  }
9030
9062
 
9063
+ // src/tools/notes-context.ts
9064
+ import { statSync as statSync2 } from "node:fs";
9065
+ import { resolve as resolve4 } from "node:path";
9066
+ function notesToolContext(identity2, cwd) {
9067
+ if (typeof cwd !== "string" || cwd.length === 0) throw new TypeError("notes tool cwd must be a non-empty string");
9068
+ return Object.freeze({ identity: snapshotNotesIdentity(identity2), cwd: resolve4(cwd) });
9069
+ }
9070
+ function notesIdentityForCall(context, cwd) {
9071
+ if (cwd === void 0) return context.identity;
9072
+ const resolved = resolve4(context.cwd, cwd);
9073
+ let directory = false;
9074
+ try {
9075
+ directory = statSync2(resolved).isDirectory();
9076
+ } catch {
9077
+ }
9078
+ if (!directory) throw new NoteError("invalid_cwd", `cwd is not an existing directory: ${JSON.stringify(cwd)} (resolved to ${resolved}).`);
9079
+ return snapshotNotesIdentity({
9080
+ ...context.identity,
9081
+ projectKey: projectKey(resolved, context.identity.home)
9082
+ });
9083
+ }
9084
+
9031
9085
  // src/tools/notes.ts
9032
9086
  var ORIGIN_VALUES = [typebox_exports.Literal("user"), typebox_exports.Literal("self"), typebox_exports.Literal("external")];
9033
9087
  var ORIGIN = typebox_exports.Optional(typebox_exports.Union([...ORIGIN_VALUES], {
@@ -9036,9 +9090,10 @@ var ORIGIN = typebox_exports.Optional(typebox_exports.Union([...ORIGIN_VALUES],
9036
9090
  var CRUMPLED_PARAMETER = typebox_exports.Optional(typebox_exports.Boolean({ description: "(optional) true = crumple (hide from list and search, still readable); false = restore." }));
9037
9091
  var CRUMPLED_LIST_PARAMETER = typebox_exports.Optional(typebox_exports.Boolean({ description: "(optional) true = list only crumpled notes." }));
9038
9092
  var FILE_LIMIT_PARAMETER = typebox_exports.Optional(typebox_exports.Integer({ minimum: 1, description: "(optional, default as many as fit) Max notes." }));
9039
- var GLOB_PARAMETER = nullableString("(optional) Glob over full addresses, or @default for the current homes.");
9040
- var QUERY_HOMES_DESCRIPTION = "Omit `glob` or use `@default` for this session and current shared homes; `**` searches all homes, `@sessions/*/**` searches all sessions.";
9041
- var ADDRESS_DESCRIPTION = "Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable homes; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
9093
+ var GLOB_PARAMETER = nullableString("(optional) Glob over full addresses, or @default for the current notebooks.");
9094
+ var CWD_PARAMETER = typebox_exports.Optional(typebox_exports.String({ minLength: 1, description: "(optional) Select the current project for this call. A relative path resolves against the host session cwd; the path must be an existing directory." }));
9095
+ var QUERY_NAMESPACES_DESCRIPTION = "Omit `glob` or use `@default` for this session and current shared notebooks; `**` searches all notebooks, `@sessions/*/**` searches all sessions.";
9096
+ var ADDRESS_DESCRIPTION = "Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable notebooks; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
9042
9097
  function failureOf(error) {
9043
9098
  if (error instanceof NoteError) return failure(error.code, error.message);
9044
9099
  if (error instanceof InvalidQueryError) return failure("invalid_query", error.message);
@@ -9109,10 +9164,13 @@ var ProjectReceiptSchema = {
9109
9164
  project_root: typebox_exports.Optional(typebox_exports.String()),
9110
9165
  project_siblings: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({ name: typebox_exports.String(), path: typebox_exports.String() }, { additionalProperties: false })))
9111
9166
  };
9112
- var ListedFileSchema = typebox_exports.Object({
9167
+ var NoteIdentitySchema = {
9113
9168
  address: typebox_exports.String(),
9114
9169
  project_key: typebox_exports.Optional(typebox_exports.String()),
9115
- ...ProjectReceiptSchema,
9170
+ ...ProjectReceiptSchema
9171
+ };
9172
+ var ListedFileSchema = typebox_exports.Object({
9173
+ ...NoteIdentitySchema,
9116
9174
  updated_at: typebox_exports.String(),
9117
9175
  last_accessed: typebox_exports.String(),
9118
9176
  crumpled_at: typebox_exports.Optional(typebox_exports.String())
@@ -9128,24 +9186,20 @@ var SearchedFileSchema = typebox_exports.Object({
9128
9186
  }, { additionalProperties: false });
9129
9187
  var SnapshotSchema = {
9130
9188
  more: typebox_exports.Integer({ description: "How many more were left out." }),
9131
- homes_unavailable: typebox_exports.Array(typebox_exports.String())
9189
+ namespaces_unavailable: typebox_exports.Array(typebox_exports.String())
9132
9190
  };
9133
9191
  var NotesWriteDataSchema = typebox_exports.Object({
9134
- address: typebox_exports.String(),
9135
- project_key: typebox_exports.Optional(typebox_exports.String()),
9192
+ ...NoteIdentitySchema,
9136
9193
  outcome: typebox_exports.Union([typebox_exports.Literal("created"), typebox_exports.Literal("overwrote"), typebox_exports.Literal("uncrumpled")])
9137
9194
  }, { additionalProperties: false });
9138
9195
  var NotesUpdateDataSchema = typebox_exports.Object({
9139
- address: typebox_exports.String(),
9140
- project_key: typebox_exports.Optional(typebox_exports.String()),
9196
+ ...NoteIdentitySchema,
9141
9197
  change_kind: typebox_exports.Union([typebox_exports.Literal("none"), typebox_exports.Literal("body"), typebox_exports.Literal("metadata"), typebox_exports.Literal("moved")]),
9142
9198
  diff: typebox_exports.String(),
9143
9199
  rename_from: typebox_exports.Optional(typebox_exports.String())
9144
9200
  }, { additionalProperties: false });
9145
9201
  var NotesReadDataSchema = typebox_exports.Object({
9146
- address: typebox_exports.String(),
9147
- project_key: typebox_exports.Optional(typebox_exports.String()),
9148
- ...ProjectReceiptSchema,
9202
+ ...NoteIdentitySchema,
9149
9203
  metadata: NoteMetadataSchema,
9150
9204
  ...TextWindowSchema.properties
9151
9205
  }, { additionalProperties: false });
@@ -9159,7 +9213,7 @@ var NotesSearchDataSchema = typebox_exports.Object({
9159
9213
  }, { additionalProperties: false });
9160
9214
  function snapshot(rows, limit, status, renderData, shrink) {
9161
9215
  const files = [];
9162
- const data = (selected) => ({ files: selected, more: rows.length - selected.length, homes_unavailable: status.homesUnavailable });
9216
+ const data = (selected) => ({ files: selected, more: rows.length - selected.length, namespaces_unavailable: status.namespacesUnavailable });
9163
9217
  const render = (outcome2) => renderOutcome(outcome2, renderData);
9164
9218
  const fits = (item) => fitsResult(success(data([...files, item])), render);
9165
9219
  for (const item of rows.slice(0, limit)) {
@@ -9175,12 +9229,12 @@ function snapshot(rows, limit, status, renderData, shrink) {
9175
9229
  break;
9176
9230
  }
9177
9231
  const outcome = success(data(files));
9178
- return fitsResult(outcome, render) ? outcome : failure("output_too_large", `The list of unreachable homes is itself over ${TOOL_OUTPUT_LIMIT}; narrow \`glob\` to fewer homes.`);
9232
+ return fitsResult(outcome, render) ? outcome : failure("output_too_large", `The list of unreachable notebooks is itself over ${TOOL_OUTPUT_LIMIT}; narrow \`glob\` to fewer notebooks.`);
9179
9233
  }
9180
9234
  function listedFile(row, identity2) {
9181
9235
  return { ...noteIdentity(identity2, row.address), updated_at: localIso(row.meta.updatedAt), last_accessed: localIso(row.meta.lastAccessed), ...row.meta.crumpledAt === void 0 ? {} : { crumpled_at: row.meta.crumpledAt } };
9182
9236
  }
9183
- var notesWriteParameters = typebox_exports.Object({ address: typebox_exports.String(), content: typebox_exports.String(), origin: ORIGIN }, { additionalProperties: false });
9237
+ var notesWriteParameters = typebox_exports.Object({ address: typebox_exports.String(), content: typebox_exports.String(), origin: ORIGIN, cwd: CWD_PARAMETER }, { additionalProperties: false });
9184
9238
  function renderWriteData(data) {
9185
9239
  return `${data.outcome} ${renderIdentity(data)}`;
9186
9240
  }
@@ -9191,8 +9245,9 @@ var notesWrite = {
9191
9245
  parameters: notesWriteParameters,
9192
9246
  outputSchema: resultSchema(NotesWriteDataSchema),
9193
9247
  executionMode: "sequential",
9194
- async execute(params, identity2) {
9248
+ async execute(params, context) {
9195
9249
  try {
9250
+ const identity2 = notesIdentityForCall(context, params.cwd);
9196
9251
  const { outcome } = await createNotesStore(identity2).write(params.address, params.content, { origin: params.origin });
9197
9252
  return success({ ...noteIdentity(identity2, params.address), outcome });
9198
9253
  } catch (error) {
@@ -9207,7 +9262,8 @@ var notesUpdateParameters = typebox_exports.Object({
9207
9262
  origin: ORIGIN,
9208
9263
  crumpled: CRUMPLED_PARAMETER,
9209
9264
  replace_all: typebox_exports.Optional(typebox_exports.Boolean({ description: "(optional) true = replace every match of `oldText`." })),
9210
- rename_to: typebox_exports.Optional(typebox_exports.String({ description: "(optional) Move to this address, optionally with edits or metadata changes. Won't overwrite a live note; references aren't updated." }))
9265
+ rename_to: typebox_exports.Optional(typebox_exports.String({ description: "(optional) Move to this address, optionally with edits or metadata changes. Won't overwrite a live note; references aren't updated." })),
9266
+ cwd: CWD_PARAMETER
9211
9267
  }, { additionalProperties: false });
9212
9268
  function renderUpdateData(data) {
9213
9269
  const head = data.rename_from === void 0 ? `${data.change_kind === "none" ? "unchanged" : "updated"} ${renderIdentity(data)}` : `moved ${data.rename_from} -> ${data.address}`;
@@ -9232,12 +9288,13 @@ ${DIFF_SHORTENED_MARKER}` });
9232
9288
  var notesUpdate = {
9233
9289
  name: "notes_update",
9234
9290
  label: "Notes update",
9235
- description: `Change part of a note's body, its origin or crumpled state, or its address. When a line goes stale, replace it; don't append the correction below it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
9291
+ description: `Change part of a note's body, its origin or crumpled state, or its address. When things change, replace the stale part in place; don't just tack an update onto the bottom. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
9236
9292
  parameters: notesUpdateParameters,
9237
9293
  outputSchema: resultSchema(NotesUpdateDataSchema),
9238
9294
  executionMode: "sequential",
9239
- async execute(params, identity2, renderDiff = (change) => change.kind === "none" ? "" : `note ${change.kind}`) {
9295
+ async execute(params, context, renderDiff = (change) => change.kind === "none" ? "" : `note ${change.kind}`) {
9240
9296
  try {
9297
+ const identity2 = notesIdentityForCall(context, params.cwd);
9241
9298
  const store = createNotesStore(identity2);
9242
9299
  const renameTo = params.rename_to === "" ? void 0 : params.rename_to;
9243
9300
  const { change, moved } = await store.update(params.address, params.edits, { origin: params.origin, crumpled: params.crumpled, replaceAll: params.replace_all, renameTo });
@@ -9251,7 +9308,7 @@ var notesUpdate = {
9251
9308
  },
9252
9309
  render: renderUpdate
9253
9310
  };
9254
- var notesReadParameters = typebox_exports.Object({ address: typebox_exports.String(), ...TextWindowRequestSchema }, { additionalProperties: false });
9311
+ var notesReadParameters = typebox_exports.Object({ address: typebox_exports.String(), ...TextWindowRequestSchema, cwd: CWD_PARAMETER }, { additionalProperties: false });
9255
9312
  function renderReadData(data) {
9256
9313
  return `${renderIdentity(data)}
9257
9314
  ${renderMetadata(data.metadata)}
@@ -9264,8 +9321,9 @@ var notesRead = {
9264
9321
  description: `Read a note. ${ADDRESS_DESCRIPTION}`,
9265
9322
  parameters: notesReadParameters,
9266
9323
  outputSchema: resultSchema(NotesReadDataSchema),
9267
- async execute(params, identity2) {
9324
+ async execute(params, context) {
9268
9325
  try {
9326
+ const identity2 = notesIdentityForCall(context, params.cwd);
9269
9327
  const note = await createNotesStore(identity2).read(params.address);
9270
9328
  const resolved = noteIdentity(identity2, params.address);
9271
9329
  if (!note) return failure("not_found", `No note at ${resolved.address}.`);
@@ -9279,24 +9337,25 @@ var notesRead = {
9279
9337
  },
9280
9338
  render: (result) => renderOutcome(result, renderReadData)
9281
9339
  };
9282
- var notesListParameters = typebox_exports.Object({ glob: GLOB_PARAMETER, limit: FILE_LIMIT_PARAMETER, crumpled: CRUMPLED_LIST_PARAMETER }, { additionalProperties: false });
9340
+ var notesListParameters = typebox_exports.Object({ glob: GLOB_PARAMETER, limit: FILE_LIMIT_PARAMETER, crumpled: CRUMPLED_LIST_PARAMETER, cwd: CWD_PARAMETER }, { additionalProperties: false });
9283
9341
  function renderListData(data) {
9284
9342
  const lines = [`${data.files.length} ${data.files.length === 1 ? "note" : "notes"}`];
9285
9343
  for (const file of data.files) {
9286
9344
  lines.push(`- ${renderIdentity(file)} | updated ${file.updated_at} | accessed ${file.last_accessed}${file.crumpled_at === void 0 ? "" : ` | crumpled ${file.crumpled_at}`}`);
9287
9345
  }
9288
9346
  if (data.more > 0) lines.push(`${data.more} more matching notes omitted; narrow with glob`);
9289
- for (const home of data.homes_unavailable) lines.push(`${home} could not be read`);
9347
+ for (const namespace of data.namespaces_unavailable) lines.push(`${namespace} could not be read`);
9290
9348
  return lines.join("\n");
9291
9349
  }
9292
9350
  var notesList = {
9293
9351
  name: "notes_list",
9294
9352
  label: "Notes list",
9295
- description: `List notes, newest first. Not pageable; \`more\` counts the rest. ${QUERY_HOMES_DESCRIPTION} ${ADDRESS_DESCRIPTION}`,
9353
+ description: `List notes, newest first. Not pageable; \`more\` counts the rest. ${QUERY_NAMESPACES_DESCRIPTION} ${ADDRESS_DESCRIPTION}`,
9296
9354
  parameters: notesListParameters,
9297
9355
  outputSchema: resultSchema(NotesListDataSchema),
9298
- async execute(params, identity2) {
9356
+ async execute(params, context) {
9299
9357
  try {
9358
+ const identity2 = notesIdentityForCall(context, params.cwd);
9300
9359
  const { rows, status } = await createNotesStore(identity2).listWithStatus({ glob: params.glob ?? void 0, crumpled: params.crumpled });
9301
9360
  return snapshot(rows.map((row) => listedFile(row, identity2)), params.limit, status, renderListData);
9302
9361
  } catch (error) {
@@ -9305,7 +9364,7 @@ var notesList = {
9305
9364
  },
9306
9365
  render: (result) => renderOutcome(result, renderListData)
9307
9366
  };
9308
- var notesSearchParameters = typebox_exports.Object({ query: typebox_exports.Optional(searchQuery()), glob: GLOB_PARAMETER, limit: FILE_LIMIT_PARAMETER, max_matches_per_file: typebox_exports.Optional(typebox_exports.Integer({ minimum: 1, description: "(optional, default all) Max matching lines per note." })), crumpled: CRUMPLED_LIST_PARAMETER }, { additionalProperties: false });
9367
+ var notesSearchParameters = typebox_exports.Object({ query: typebox_exports.Optional(searchQuery()), glob: GLOB_PARAMETER, limit: FILE_LIMIT_PARAMETER, max_matches_per_file: typebox_exports.Optional(typebox_exports.Integer({ minimum: 1, description: "(optional, default all) Max matching lines per note." })), crumpled: CRUMPLED_LIST_PARAMETER, cwd: CWD_PARAMETER }, { additionalProperties: false });
9309
9368
  function renderSearchData(data) {
9310
9369
  const lines = [`${data.files.length} ${data.files.length === 1 ? "note" : "notes"}`];
9311
9370
  for (const file of data.files) {
@@ -9313,7 +9372,7 @@ function renderSearchData(data) {
9313
9372
  for (const match of file.matches) lines.push(` line ${match.line} at offset_chars ${match.offset_chars}: ${match.text}`);
9314
9373
  }
9315
9374
  if (data.more > 0) lines.push(`${data.more} more matching notes omitted; narrow with glob`);
9316
- for (const home of data.homes_unavailable) lines.push(`${home} could not be read`);
9375
+ for (const namespace of data.namespaces_unavailable) lines.push(`${namespace} could not be read`);
9317
9376
  return lines.join("\n");
9318
9377
  }
9319
9378
  var MATCH_SHORTENED_MARKER = " [truncated]";
@@ -9334,11 +9393,12 @@ function fitSearchFile(file, fits) {
9334
9393
  var notesSearch = {
9335
9394
  name: "notes_search",
9336
9395
  label: "Notes search",
9337
- description: `Search note bodies for literal text, case-insensitive. Without a query, lists notes with no match lines. Returns matching lines with offsets for \`notes_read\`. Not pageable; \`more\` counts the rest. ${QUERY_HOMES_DESCRIPTION} ${ADDRESS_DESCRIPTION}`,
9396
+ description: `Search note bodies for literal text, case-insensitive. Without a query, lists notes with no match lines. Returns matching lines with offsets for \`notes_read\`. Not pageable; \`more\` counts the rest. ${QUERY_NAMESPACES_DESCRIPTION} ${ADDRESS_DESCRIPTION}`,
9338
9397
  parameters: notesSearchParameters,
9339
9398
  outputSchema: resultSchema(NotesSearchDataSchema),
9340
- async execute(params, identity2) {
9399
+ async execute(params, context) {
9341
9400
  try {
9401
+ const identity2 = notesIdentityForCall(context, params.cwd);
9342
9402
  const { rows, status } = await createNotesStore(identity2).searchWithStatus(searchQueries(params.query), { glob: params.glob ?? void 0, crumpled: params.crumpled });
9343
9403
  const files = rows.sort((a, b) => b.meta.updatedAt - a.meta.updatedAt || a.address.localeCompare(b.address)).map((row) => ({
9344
9404
  ...listedFile(row, identity2),
@@ -9715,7 +9775,7 @@ function blocksOf(value) {
9715
9775
  });
9716
9776
  }
9717
9777
  function decode(row, seq) {
9718
- if (row.type === "system" && row.subtype === "turn_duration") return [];
9778
+ if (row.type === "system" && row.content == null) return [];
9719
9779
  const common = { windowId: "", ...typeof row.timestamp === "string" ? { createdAt: row.timestamp } : {} };
9720
9780
  let blocks, role;
9721
9781
  if (row.type === "user" || row.type === "assistant") {
@@ -9887,39 +9947,39 @@ async function readClaudeHistory(source) {
9887
9947
  }
9888
9948
 
9889
9949
  // src/boot/snapshot.ts
9890
- var NOTES_HOMES = [
9950
+ var NOTES_NAMESPACES = [
9891
9951
  { scope: "session", label: "this session" },
9892
9952
  { scope: "project", label: "@project" },
9893
9953
  { scope: "human", label: "@human" },
9894
9954
  { scope: "agent", label: "@self" },
9895
9955
  { scope: "model", label: "@model" }
9896
9956
  ];
9897
- async function loadNotesSnapshot(identity2, openedAt, loadHome) {
9898
- const homes = /* @__PURE__ */ new Map();
9957
+ async function loadNotesSnapshot(identity2, openedAt, loadNamespace) {
9958
+ const namespaces = /* @__PURE__ */ new Map();
9899
9959
  const unavailable = [];
9900
- if (!loadHome) {
9960
+ if (!loadNamespace) {
9901
9961
  const { rows, status } = await createNotesStore(identity2).listWithStatus();
9902
- for (const home of NOTES_HOMES) {
9903
- homes.set(home.scope, rows.filter((row) => row.scope === home.scope));
9904
- if (status.homesUnavailable.some((address) => home.scope === "session" ? !address.startsWith("@") : address === home.label || address.startsWith(`${home.label}/`))) unavailable.push(home);
9962
+ for (const namespace of NOTES_NAMESPACES) {
9963
+ namespaces.set(namespace.scope, rows.filter((row) => row.scope === namespace.scope));
9964
+ if (status.namespacesUnavailable.some((address) => namespace.scope === "session" ? !address.startsWith("@") : address === namespace.label || address.startsWith(`${namespace.label}/`))) unavailable.push(namespace);
9905
9965
  }
9906
- return { openedAt, homes, unavailable };
9966
+ return { openedAt, namespaces, unavailable };
9907
9967
  }
9908
- for (const home of NOTES_HOMES) {
9968
+ for (const namespace of NOTES_NAMESPACES) {
9909
9969
  try {
9910
- homes.set(home.scope, await loadHome(home.scope));
9970
+ namespaces.set(namespace.scope, await loadNamespace(namespace.scope));
9911
9971
  } catch (error) {
9912
9972
  if (!isFilesystemError(error)) throw error;
9913
- homes.set(home.scope, []);
9914
- unavailable.push(home);
9973
+ namespaces.set(namespace.scope, []);
9974
+ unavailable.push(namespace);
9915
9975
  }
9916
9976
  }
9917
- return { openedAt, homes, unavailable };
9977
+ return { openedAt, namespaces, unavailable };
9918
9978
  }
9919
9979
 
9920
9980
  // src/boot/text.ts
9921
9981
  var SHELF_FRESH_LIMIT = 3;
9922
- var CHEATSHEET_BOOT_MAX_CHARS = 2048;
9982
+ var CHEATSHEET_BOOT_MAX_CHARS = 1536;
9923
9983
  var MAP_BOOT_MAX_CHARS = 4096;
9924
9984
  var WINDOW_IDENTITY_OPEN_TAG = "<notesoup:window_identity>";
9925
9985
  var WINDOW_IDENTITY_CLOSE_TAG = "</notesoup:window_identity>";
@@ -9940,13 +10000,14 @@ While you're doing that... thing you're doing, don't make the poor future you gu
9940
10000
  Notes are for what's true NOW. Not a diary of every dumb thing you did on the way here.
9941
10001
  *flips a page* "First I tried this, then that broke, then\u2014" Nobody reads that!
9942
10002
  Something's not true anymore? Cross it out! Write the right thing!
10003
+ *rolls eyes* ...Ugh, fine. If a piece of history *actually* matters \u2014 like why Plan A blew up so tomorrow's you doesn't try it again \u2014 I'll let it slide. Keep the short version! A few lines, max! *squints at you* Turn it into a blow-by-blow log and you're dead.
9943
10004
 
9944
10005
  \`get_context_remaining\` tells you how much room is left. Check it before you do something ambitious. When it reaches zero, your brain gets reset immediately, taking every unwritten brilliant idea with it. ${PROTOCOL_WIPE_SENTENCE}
9945
10006
 
9946
10007
  An address decides who the note belongs to \u2014 and how long it is meant to last. Ask that first; the rest follows.
9947
10008
 
9948
10009
  - \`<path>\`, no @ \u2014 session notes, the ones from above: this session's state and loose ends. They go away with the session.
9949
- - \`@project/<path>\` \u2014 this project's long memory: what stays true after the current thing is over, what future work must respect, and the rakes already stepped on. **Decisions, not diaries.** Commit hashes, test counts, dates, the story of how you got here: git and history already have them, and last week's news filed as current law is worse than no note. Don't copy what other docs already say.
10010
+ - \`@project/<path>\` \u2014 this project's long memory: what stays true after the current thing is over, what future work must respect, and the rakes already stepped on. **Decisions, not diaries.** Raw logs, scorecards, and blow-by-blow recaps don't belong here \u2014 history already has them, and last week's news filed as current law is worse than no note. Don't copy what other docs already say.
9950
10011
  - \`@human/<path>\` \u2014 the long-term manual for your troublesome human, and only what stays true in EVERY project: how to deal with them, which lines not to cross, and what will make them accept the result. "The human said it" is not enough \u2014 if it stops being true the moment you switch projects, it was never theirs; it belongs to that project's notes. Today's mood is weather, not law. If you're unsure whether it belongs here, ask the human.
9951
10012
  - \`@self/<path>\` \u2014 yours. It follows you, not them. Reminders, grudges, who owes you a shoe, whatever. Got a name? Private. No name? Then it gets passed around every nameless nobody out there. Strangers. Reading your grudges. Sleep tight~
9952
10013
  - \`@model/<path>\` \u2014 different brains get different notes: big brains, small brains, careful ones, careless ones. They don't share homework. When a fallback swaps brains mid-window, the notebook swaps too.
@@ -9960,7 +10021,7 @@ Still a tie? *shrugs* You've got a brain. Use it.
9960
10021
  Any other @ address is fake. End of discussion. @ addresses are not file paths: never pass them to file tools like \`read\`, \`write\`, \`edit\`, or \`bash\`.
9961
10022
  ${NOTES_PROTOCOL_CLOSE_TAG}`;
9962
10023
  var MAPS_BLOCK = `<notesoup:maps>
9963
- Every home's root can hold two pages that never wait on a shelf: \`CHEATSHEET.md\` and \`MAP.md\`.
10024
+ Every notebook's root can hold two pages that never wait on a shelf: \`CHEATSHEET.md\` and \`MAP.md\`.
9964
10025
  Both get jammed straight into your brain the moment you wake up. No asking, no skipping. Whoever
9965
10026
  wakes up next reads them, and next is you. So keep them short, and keep them true.
9966
10027
 
@@ -9968,9 +10029,10 @@ wakes up next reads them, and next is you. So keep them short, and keep them tru
9968
10029
  a phone number you'll regret losing. Nobody grades it. Keep it to five lines, or it grows fat
9969
10030
  and everybody pays for it.
9970
10031
  - **\`MAP.md\`** is only the note index. One line per durable note: the address, then a gist short
9971
- enough to tell whether the thing is worth opening. Rules belong in \`CHEATSHEET.md\`, not here.
10032
+ enough to tell whether the thing is worth opening. Rules belong in \`CHEATSHEET.md\`, and note
10033
+ contents belong in their own notes \u2014 *taps the sign* not inline here.
9972
10034
 
9973
- Each home keeps its own: \`@project\`, \`@human\`, \`@self\`, \`@model\`. Missing pages are skipped;
10035
+ Each notebook keeps its own: \`@project\`, \`@human\`, \`@self\`, \`@model\`. Missing pages are skipped;
9974
10036
  no need to create empty ones. New note, new MAP line. New rule worth remembering, new Cheatsheet
9975
10037
  line. And when a line stops being true, kill it \u2014 every window after you reads that page as fact.
9976
10038
  </notesoup:maps>`;
@@ -10019,7 +10081,7 @@ ${body}`;
10019
10081
  }
10020
10082
  var NAMELESS_AGENT = "anonymous";
10021
10083
  function notesIndex(snapshot2, tools, agentName, modelName) {
10022
- const homes = [
10084
+ const namespaces = [
10023
10085
  { scope: "session", label: "no @ \u2014 this session" },
10024
10086
  { scope: "project", label: "@project \u2014 this project" },
10025
10087
  { scope: "agent", label: agentName === NAMELESS_AGENT ? "@self \u2014 every nameless agent shares this" : `@self \u2014 ${agentName} only` },
@@ -10027,12 +10089,12 @@ function notesIndex(snapshot2, tools, agentName, modelName) {
10027
10089
  { scope: "human", label: "@human \u2014 the human" }
10028
10090
  ];
10029
10091
  const shelves = [];
10030
- for (const home of homes) {
10031
- if (snapshot2.unavailable.some((failed) => failed.scope === home.scope)) {
10032
- shelves.push(section(home.label, indent(`This drawer wouldn't open. Try \`${tools.notesList}\` again.`)));
10092
+ for (const namespace of namespaces) {
10093
+ if (snapshot2.unavailable.some((failed) => failed.scope === namespace.scope)) {
10094
+ shelves.push(section(namespace.label, indent(`This drawer wouldn't open. Try \`${tools.notesList}\` again.`)));
10033
10095
  continue;
10034
10096
  }
10035
- const rows = (snapshot2.homes.get(home.scope) ?? []).filter((row) => row.meta.crumpledAt === void 0);
10097
+ const rows = (snapshot2.namespaces.get(namespace.scope) ?? []).filter((row) => row.meta.crumpledAt === void 0);
10036
10098
  const pinned = ["CHEATSHEET.md", "MAP.md"].flatMap((path) => {
10037
10099
  const row = rows.find((row2) => row2.path === path);
10038
10100
  return row?.body ? [row] : [];
@@ -10044,13 +10106,13 @@ function notesIndex(snapshot2, tools, agentName, modelName) {
10044
10106
  ${locator}`;
10045
10107
  });
10046
10108
  if (pinned.length === 0 && fresh.length === 0) continue;
10047
- const parts = pinned.map((row) => `${row.path === "MAP.md" ? "map" : "cheatsheet"}
10109
+ const parts = pinned.map((row) => `${row.address}
10048
10110
 
10049
10111
  ${indent(pinnedBodyForBoot(row.address, row.body, row.path === "MAP.md" ? MAP_BOOT_MAX_CHARS : CHEATSHEET_BOOT_MAX_CHARS))}`);
10050
10112
  if (fresh.length > 0) parts.push(`recent
10051
10113
 
10052
10114
  ${fresh.join("\n\n")}`);
10053
- shelves.push(section(home.label, parts.join("\n\n")));
10115
+ shelves.push(section(namespace.label, parts.join("\n\n")));
10054
10116
  }
10055
10117
  return shelves.length > 0 ? ["YOUR NOTES\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500", ...shelves].join("\n\n\n") : "YOUR NOTES\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nNone yet. A blank slate is a fine place to start \u2014 just don't finish there.";
10056
10118
  }
@@ -10249,7 +10311,9 @@ function resolveClaudeLimits(facts) {
10249
10311
  if (window !== void 0) {
10250
10312
  const configured = configuredWindow(settings2, env, breakdown.model);
10251
10313
  const effective = Math.min(configured ?? window, window);
10252
- const native = autoCompact ? effective - CLAUDE_OUTPUT_RESERVE_TOKENS - CLAUDE_AUTOCOMPACT_BUFFER_TOKENS : effective - CLAUDE_OUTPUT_RESERVE_TOKENS;
10314
+ const available = effective - CLAUDE_OUTPUT_RESERVE_TOKENS;
10315
+ const threshold2 = available - CLAUDE_AUTOCOMPACT_BUFFER_TOKENS;
10316
+ const native = autoCompact ? pct === void 0 ? threshold2 : Math.min(Math.floor(available * (pct / 100)), threshold2) : available;
10253
10317
  return tokenLimits("window", autoCompact, native, resetMargin, warningRunway);
10254
10318
  }
10255
10319
  return percentLimits(autoCompact, pct, resetMargin, warningRunway);
@@ -10336,7 +10400,7 @@ async function dispatch(request) {
10336
10400
  const result = tool === "history_windows" ? await HISTORY_OPERATIONS[tool].call(params, projection, id.sessionId, wrapText) : await HISTORY_OPERATIONS[tool].call(params, projection, wrapText);
10337
10401
  return { ...result, text: wrapText(result.text) };
10338
10402
  }
10339
- return OPERATIONS[value.tool].call(value.params, id);
10403
+ return OPERATIONS[value.tool].call(value.params, notesToolContext(id, value.identity.cwd));
10340
10404
  }
10341
10405
  if (value.op === "history_state") {
10342
10406
  const id = identity(value.identity);