@axiom-lattice/core 2.1.90 → 2.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -4635,6 +4635,13 @@ interface CacheEntry {
4635
4635
  address: ResourceAddress;
4636
4636
  /** true = password-protected share; cache hits must re-check auth */
4637
4637
  requiresUnlock: boolean;
4638
+ /** Sandbox config for fallback resolution when volume FS fails */
4639
+ sandboxConfig?: {
4640
+ tenantId: string;
4641
+ workspaceId: string;
4642
+ projectId: string;
4643
+ assistantId: string | null;
4644
+ };
4638
4645
  }
4639
4646
  /**
4640
4647
  * In-memory token → address cache.
package/dist/index.d.ts CHANGED
@@ -4635,6 +4635,13 @@ interface CacheEntry {
4635
4635
  address: ResourceAddress;
4636
4636
  /** true = password-protected share; cache hits must re-check auth */
4637
4637
  requiresUnlock: boolean;
4638
+ /** Sandbox config for fallback resolution when volume FS fails */
4639
+ sandboxConfig?: {
4640
+ tenantId: string;
4641
+ workspaceId: string;
4642
+ projectId: string;
4643
+ assistantId: string | null;
4644
+ };
4638
4645
  }
4639
4646
  /**
4640
4647
  * In-memory token → address cache.
package/dist/index.js CHANGED
@@ -24448,7 +24448,7 @@ var MicrosandboxRemoteProvider = class {
24448
24448
  getResourceResolver() {
24449
24449
  return {
24450
24450
  resolve: async (address) => {
24451
- return this.client.volumeFsDownload(address.volume, `/project/${address.resourcePath}`);
24451
+ return this.client.volumeFsDownload(address.volume, address.resourcePath);
24452
24452
  }
24453
24453
  };
24454
24454
  }
@@ -25717,17 +25717,19 @@ var TokenCache = class {
25717
25717
 
25718
25718
  // src/sandbox_lattice/ShareService.ts
25719
25719
  var import_crypto4 = require("crypto");
25720
+ var import_bcryptjs = __toESM(require("bcryptjs"));
25720
25721
  var TOKEN_BYTES = 24;
25721
25722
  function generateToken() {
25722
25723
  return (0, import_crypto4.randomBytes)(TOKEN_BYTES).toString("base64url");
25723
25724
  }
25724
25725
  function createSharePayload(tenantId, workspaceId, projectId, userId, request) {
25726
+ const resourcePath = (request.resourcePath || "").replace(/^\/?project\//, "");
25725
25727
  return {
25726
25728
  address: createResourceAddress({
25727
25729
  tenantId,
25728
25730
  workspaceId,
25729
25731
  projectId,
25730
- resourcePath: request.resourcePath
25732
+ resourcePath
25731
25733
  }),
25732
25734
  tenantId,
25733
25735
  workspaceId,
@@ -25735,7 +25737,7 @@ function createSharePayload(tenantId, workspaceId, projectId, userId, request) {
25735
25737
  assistantId: request.assistantId ?? null,
25736
25738
  vmIsolation: "project",
25737
25739
  visibility: request.visibility ?? "public",
25738
- passwordHash: request.visibility === "password" && request.password ? request.password : null,
25740
+ passwordHash: request.visibility === "password" && request.password ? import_bcryptjs.default.hashSync(request.password, 10) : null,
25739
25741
  title: request.title ?? null,
25740
25742
  createdBy: userId,
25741
25743
  expiresAt: request.expiresAt ? new Date(request.expiresAt) : null,