@tickernelz/paperclip-pro-adapter-utils 2026.1011.2 → 2026.1012.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 (122) hide show
  1. package/dist/acpx-engine/execute.d.ts.map +1 -1
  2. package/dist/acpx-engine/execute.js +77 -8
  3. package/dist/acpx-engine/execute.js.map +1 -1
  4. package/dist/acpx-engine/execute.test.js +186 -14
  5. package/dist/acpx-engine/execute.test.js.map +1 -1
  6. package/dist/acpx-engine/filesystem-protocol.test.d.ts +2 -0
  7. package/dist/acpx-engine/filesystem-protocol.test.d.ts.map +1 -0
  8. package/dist/acpx-engine/filesystem-protocol.test.js +99 -0
  9. package/dist/acpx-engine/filesystem-protocol.test.js.map +1 -0
  10. package/dist/acpx-engine/run-contracts.d.ts +1 -0
  11. package/dist/acpx-engine/run-contracts.d.ts.map +1 -1
  12. package/dist/billing.d.ts +7 -0
  13. package/dist/billing.d.ts.map +1 -1
  14. package/dist/billing.js +25 -2
  15. package/dist/billing.js.map +1 -1
  16. package/dist/billing.test.js +17 -1
  17. package/dist/billing.test.js.map +1 -1
  18. package/dist/chat-file-delivery.d.ts +1 -1
  19. package/dist/chat-file-delivery.d.ts.map +1 -1
  20. package/dist/chat-file-delivery.js +4 -3
  21. package/dist/chat-file-delivery.js.map +1 -1
  22. package/dist/chat-file-delivery.test.js +2 -2
  23. package/dist/chat-file-delivery.test.js.map +1 -1
  24. package/dist/command-managed-runtime.d.ts +1 -0
  25. package/dist/command-managed-runtime.d.ts.map +1 -1
  26. package/dist/command-managed-runtime.js +3 -1
  27. package/dist/command-managed-runtime.js.map +1 -1
  28. package/dist/connection-failure.d.ts +33 -0
  29. package/dist/connection-failure.d.ts.map +1 -0
  30. package/dist/connection-failure.js +43 -0
  31. package/dist/connection-failure.js.map +1 -0
  32. package/dist/connection-failure.test.d.ts +2 -0
  33. package/dist/connection-failure.test.d.ts.map +1 -0
  34. package/dist/connection-failure.test.js +94 -0
  35. package/dist/connection-failure.test.js.map +1 -0
  36. package/dist/directory-merge-lock.test.js +4 -2
  37. package/dist/directory-merge-lock.test.js.map +1 -1
  38. package/dist/execution-target-sandbox.test.js +228 -0
  39. package/dist/execution-target-sandbox.test.js.map +1 -1
  40. package/dist/execution-target.d.ts +4 -0
  41. package/dist/execution-target.d.ts.map +1 -1
  42. package/dist/execution-target.js +46 -13
  43. package/dist/execution-target.js.map +1 -1
  44. package/dist/execution-target.test.js +1 -1
  45. package/dist/execution-target.test.js.map +1 -1
  46. package/dist/github-launcher-environment.test.js +37 -0
  47. package/dist/github-launcher-environment.test.js.map +1 -1
  48. package/dist/index.d.ts +3 -3
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +2 -2
  51. package/dist/index.js.map +1 -1
  52. package/dist/paperclip-runner-permissions.d.ts +15 -4
  53. package/dist/paperclip-runner-permissions.d.ts.map +1 -1
  54. package/dist/paperclip-runner-permissions.js +29 -3
  55. package/dist/paperclip-runner-permissions.js.map +1 -1
  56. package/dist/paperclip-runner-permissions.test.js +34 -1
  57. package/dist/paperclip-runner-permissions.test.js.map +1 -1
  58. package/dist/remote-managed-runtime.d.ts.map +1 -1
  59. package/dist/remote-managed-runtime.js +18 -2
  60. package/dist/remote-managed-runtime.js.map +1 -1
  61. package/dist/sandbox-callback-bridge.d.ts.map +1 -1
  62. package/dist/sandbox-callback-bridge.js +1 -0
  63. package/dist/sandbox-callback-bridge.js.map +1 -1
  64. package/dist/sandbox-callback-bridge.test.js +113 -16
  65. package/dist/sandbox-callback-bridge.test.js.map +1 -1
  66. package/dist/sandbox-managed-runtime.d.ts +3 -0
  67. package/dist/sandbox-managed-runtime.d.ts.map +1 -1
  68. package/dist/sandbox-managed-runtime.js +8 -1
  69. package/dist/sandbox-managed-runtime.js.map +1 -1
  70. package/dist/server-utils.d.ts +6 -3
  71. package/dist/server-utils.d.ts.map +1 -1
  72. package/dist/server-utils.js +39 -9
  73. package/dist/server-utils.js.map +1 -1
  74. package/dist/server-utils.test.js +35 -1
  75. package/dist/server-utils.test.js.map +1 -1
  76. package/dist/ssh-fixture.test.js +172 -0
  77. package/dist/ssh-fixture.test.js.map +1 -1
  78. package/dist/ssh.d.ts +5 -0
  79. package/dist/ssh.d.ts.map +1 -1
  80. package/dist/ssh.js +138 -20
  81. package/dist/ssh.js.map +1 -1
  82. package/dist/types.d.ts +76 -1
  83. package/dist/types.d.ts.map +1 -1
  84. package/dist/usage-checkpoint.d.ts +11 -0
  85. package/dist/usage-checkpoint.d.ts.map +1 -0
  86. package/dist/usage-checkpoint.js +165 -0
  87. package/dist/usage-checkpoint.js.map +1 -0
  88. package/dist/usage-checkpoint.test.d.ts +2 -0
  89. package/dist/usage-checkpoint.test.d.ts.map +1 -0
  90. package/dist/usage-checkpoint.test.js +131 -0
  91. package/dist/usage-checkpoint.test.js.map +1 -0
  92. package/dist/workspace-restore-diagnostics.d.ts +8 -1
  93. package/dist/workspace-restore-diagnostics.d.ts.map +1 -1
  94. package/dist/workspace-restore-diagnostics.js +35 -8
  95. package/dist/workspace-restore-diagnostics.js.map +1 -1
  96. package/dist/workspace-restore-diagnostics.test.js +31 -1
  97. package/dist/workspace-restore-diagnostics.test.js.map +1 -1
  98. package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js +3 -0
  99. package/node_modules/zod/package.json +1 -1
  100. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  101. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  102. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  103. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  104. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  105. package/node_modules/zod/src/v4/core/util.ts +13 -0
  106. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  107. package/node_modules/zod/v4/core/compile.cjs +8 -0
  108. package/node_modules/zod/v4/core/compile.js +8 -0
  109. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  110. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  111. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  112. package/node_modules/zod/v4/core/schemas.js +30 -0
  113. package/node_modules/zod/v4/core/util.cjs +15 -0
  114. package/node_modules/zod/v4/core/util.d.cts +2 -0
  115. package/node_modules/zod/v4/core/util.d.ts +2 -0
  116. package/node_modules/zod/v4/core/util.js +14 -0
  117. package/node_modules/zod/v4/core/versions.cjs +1 -1
  118. package/node_modules/zod/v4/core/versions.js +1 -1
  119. package/package.json +31 -3
  120. package/node_modules/@esbuild/linux-x64/README.md +0 -3
  121. package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  122. package/node_modules/@esbuild/linux-x64/package.json +0 -20
@@ -46,6 +46,7 @@ exports.aborted = aborted;
46
46
  exports.explicitlyAborted = explicitlyAborted;
47
47
  exports.prefixIssues = prefixIssues;
48
48
  exports.unwrapMessage = unwrapMessage;
49
+ exports.sizeCaps = sizeCaps;
49
50
  exports.attachSchema = attachSchema;
50
51
  exports.finalizeIssue = finalizeIssue;
51
52
  exports.getSizableOrigin = getSizableOrigin;
@@ -620,6 +621,20 @@ function unwrapMessage(message) {
620
621
  return typeof message === "string" ? message : message?.message;
621
622
  }
622
623
  /* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
624
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
625
+ function sizeCaps(defChecks) {
626
+ const caps = [];
627
+ for (const ch of defChecks ?? []) {
628
+ const d = ch._zod.def;
629
+ // a later check may rewrite the value
630
+ if (!/_(length|size)$|_equals$/.test(d.check))
631
+ break;
632
+ const max = d.maximum ?? d.length ?? d.size;
633
+ if (max >= 0)
634
+ caps.push([max, ch]);
635
+ }
636
+ return caps;
637
+ }
623
638
  function attachSchema(issues, start, inst) {
624
639
  var _a;
625
640
  for (let i = start; i < issues.length; i++) {
@@ -221,6 +221,8 @@ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIs
221
221
  export declare function unwrapMessage(message: string | {
222
222
  message: string;
223
223
  } | undefined | null): string | undefined;
224
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
225
+ export declare function sizeCaps(defChecks: checks.$ZodCheck<never>[] | undefined): [number, checks.$ZodCheck<never>][];
224
226
  export declare function attachSchema(issues: errors.$ZodRawIssue[], start: number, inst: schemas.$ZodType): void;
225
227
  export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
226
228
  export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
@@ -221,6 +221,8 @@ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIs
221
221
  export declare function unwrapMessage(message: string | {
222
222
  message: string;
223
223
  } | undefined | null): string | undefined;
224
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
225
+ export declare function sizeCaps(defChecks: checks.$ZodCheck<never>[] | undefined): [number, checks.$ZodCheck<never>][];
224
226
  export declare function attachSchema(issues: errors.$ZodRawIssue[], start: number, inst: schemas.$ZodType): void;
225
227
  export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
226
228
  export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
@@ -550,6 +550,20 @@ export function unwrapMessage(message) {
550
550
  return typeof message === "string" ? message : message?.message;
551
551
  }
552
552
  /* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
553
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
554
+ export function sizeCaps(defChecks) {
555
+ const caps = [];
556
+ for (const ch of defChecks ?? []) {
557
+ const d = ch._zod.def;
558
+ // a later check may rewrite the value
559
+ if (!/_(length|size)$|_equals$/.test(d.check))
560
+ break;
561
+ const max = d.maximum ?? d.length ?? d.size;
562
+ if (max >= 0)
563
+ caps.push([max, ch]);
564
+ }
565
+ return caps;
566
+ }
553
567
  export function attachSchema(issues, start, inst) {
554
568
  var _a;
555
569
  for (let i = start; i < issues.length; i++) {
@@ -4,7 +4,7 @@ exports.version = void 0;
4
4
  exports.version = {
5
5
  major: 4,
6
6
  minor: 6,
7
- patch: 5,
7
+ patch: 6,
8
8
  };
9
9
 
10
10
  // seal-cjs-exports
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 6,
4
- patch: 5,
4
+ patch: 6,
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tickernelz/paperclip-pro-adapter-utils",
3
- "version": "2026.1011.2",
3
+ "version": "2026.1012.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/tickernelz/paperclip-pro",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "typecheck": "tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@tickernelz/paperclip-pro-shared": "2026.1011.2",
37
+ "@tickernelz/paperclip-pro-shared": "2026.1012.0",
38
38
  "acpx": "0.12.0",
39
39
  "picocolors": "^1.1.1"
40
40
  },
@@ -46,5 +46,33 @@
46
46
  "node": ">=24.11.0"
47
47
  },
48
48
  "main": "./dist/index.js",
49
- "types": "./dist/index.d.ts"
49
+ "types": "./dist/index.d.ts",
50
+ "optionalDependencies": {
51
+ "@esbuild/aix-ppc64": "0.28.2",
52
+ "@esbuild/android-arm": "0.28.2",
53
+ "@esbuild/android-arm64": "0.28.2",
54
+ "@esbuild/android-x64": "0.28.2",
55
+ "@esbuild/darwin-arm64": "0.28.2",
56
+ "@esbuild/darwin-x64": "0.28.2",
57
+ "@esbuild/freebsd-arm64": "0.28.2",
58
+ "@esbuild/freebsd-x64": "0.28.2",
59
+ "@esbuild/linux-arm": "0.28.2",
60
+ "@esbuild/linux-arm64": "0.28.2",
61
+ "@esbuild/linux-ia32": "0.28.2",
62
+ "@esbuild/linux-loong64": "0.28.2",
63
+ "@esbuild/linux-mips64el": "0.28.2",
64
+ "@esbuild/linux-ppc64": "0.28.2",
65
+ "@esbuild/linux-riscv64": "0.28.2",
66
+ "@esbuild/linux-s390x": "0.28.2",
67
+ "@esbuild/linux-x64": "0.28.2",
68
+ "@esbuild/netbsd-arm64": "0.28.2",
69
+ "@esbuild/netbsd-x64": "0.28.2",
70
+ "@esbuild/openbsd-arm64": "0.28.2",
71
+ "@esbuild/openbsd-x64": "0.28.2",
72
+ "@esbuild/openharmony-arm64": "0.28.2",
73
+ "@esbuild/sunos-x64": "0.28.2",
74
+ "@esbuild/win32-arm64": "0.28.2",
75
+ "@esbuild/win32-ia32": "0.28.2",
76
+ "@esbuild/win32-x64": "0.28.2"
77
+ }
50
78
  }
@@ -1,3 +0,0 @@
1
- # esbuild
2
-
3
- This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@esbuild/linux-x64",
3
- "version": "0.28.2",
4
- "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/evanw/esbuild.git"
8
- },
9
- "license": "MIT",
10
- "preferUnplugged": true,
11
- "engines": {
12
- "node": ">=18"
13
- },
14
- "os": [
15
- "linux"
16
- ],
17
- "cpu": [
18
- "x64"
19
- ]
20
- }