@tinycloud/operations 0.3.4-beta.6 → 0.4.0-beta.7

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.
@@ -188,6 +188,7 @@ var require_decrypt_transport_response_error = __commonJS({
188
188
  var artifacts_exports = {};
189
189
  __export(artifacts_exports, {
190
190
  DelegationImportArtifactSchema: () => DelegationImportArtifactSchema,
191
+ DelegationRequestBindingSchema: () => DelegationRequestBindingSchema,
191
192
  PermissionEntrySchema: () => PermissionEntrySchema,
192
193
  PermissionRequestArtifactSchema: () => PermissionRequestArtifactSchema,
193
194
  buildPermissionRequestArtifact: () => buildPermissionRequestArtifact,
@@ -6958,8 +6959,13 @@ var TEST_LOCK_CLAIM_BARRIER_DIR = "TC_TEST_PROFILE_LOCK_CLAIM_BARRIER_DIR";
6958
6959
  var TEST_LOCK_CLAIMED_BARRIER_DIR = "TC_TEST_PROFILE_LOCK_CLAIMED_BARRIER_DIR";
6959
6960
  var TEST_LOCK_FENCED_BARRIER_DIR = "TC_TEST_PROFILE_LOCK_FENCED_BARRIER_DIR";
6960
6961
  var TEST_LOCK_VERIFIED_BARRIER_DIR = "TC_TEST_PROFILE_LOCK_VERIFIED_BARRIER_DIR";
6961
- var invocationStateRoot = new import_node_async_hooks.AsyncLocalStorage();
6962
- var heldProfileLocks = new import_node_async_hooks.AsyncLocalStorage();
6962
+ function processWideContext(key) {
6963
+ var _a;
6964
+ const registry = globalThis;
6965
+ return registry[_a = Symbol.for(key)] ?? (registry[_a] = new import_node_async_hooks.AsyncLocalStorage());
6966
+ }
6967
+ var invocationStateRoot = processWideContext("tinycloud.operations.invocationStateRoot.v1");
6968
+ var heldProfileLocks = processWideContext("tinycloud.operations.heldProfileLocks.v1");
6963
6969
  var ProfileLockTimeoutError = class extends Error {
6964
6970
  constructor(profile, timeoutMs) {
6965
6971
  super(`Timed out waiting for the profile lock for "${profile}" after ${timeoutMs}ms.`);
@@ -7323,6 +7329,7 @@ var DelegationImportArtifactSchema = import_zod2.z.object({
7323
7329
  expiry: import_zod2.z.string().datetime({ offset: true }).optional(),
7324
7330
  prompted: import_zod2.z.boolean().optional()
7325
7331
  }).strict();
7332
+ var DelegationRequestBindingSchema = PermissionRequestArtifactSchema.pick({ requestId: true, requested: true }).strict();
7326
7333
  function validatePermissionRequestArtifact(value) {
7327
7334
  return PermissionRequestArtifactSchema.parse(value);
7328
7335
  }
@@ -7536,6 +7543,7 @@ function defaultRequestId(now) {
7536
7543
  // Annotate the CommonJS export names for ESM import in node:
7537
7544
  0 && (module.exports = {
7538
7545
  DelegationImportArtifactSchema,
7546
+ DelegationRequestBindingSchema,
7539
7547
  PermissionEntrySchema,
7540
7548
  PermissionRequestArtifactSchema,
7541
7549
  buildPermissionRequestArtifact,