@mesadev/mesafs-napi
Advanced tools
+63
-16
@@ -127,2 +127,17 @@ /* auto-generated by NAPI-RS */ | ||
| /** | ||
| * Fork a new revision from a parent tip at mount time. | ||
| * | ||
| * TypeScript has no data-carrying enum like Rust; exclusivity is a union | ||
| * (same shape as SDK `RevisionIdentifier`) plus optional `as`. | ||
| * Re-apply after `napi build` if bindgen regenerates a loose interface. | ||
| */ | ||
| export type JsBranchedRevision = JsRevisionIdentifier & { | ||
| /** | ||
| * Optional new revision bookmark + describe. Omit `as` (or `as.bookmark`) | ||
| * for an anonymous tip. | ||
| */ | ||
| as?: JsMountRevisionProperties | ||
| } | ||
| /** Cache configuration passed from JavaScript. */ | ||
@@ -242,23 +257,55 @@ export interface JsCacheConfig { | ||
| /** Per-repo configuration passed from JavaScript. */ | ||
| export interface JsRepoConfig { | ||
| /** Repository name. */ | ||
| name: string | ||
| /** Properties for the new revision created by `branchedFrom`. */ | ||
| export interface JsMountRevisionProperties { | ||
| /** | ||
| * Create a new change from the tip of this bookmark. Mutually exclusive | ||
| * with `change_id`. If neither is set, defaults to the repo's default bookmark. | ||
| * Optional bookmark created on the new empty descendant. When omitted, | ||
| * the checkout is an anonymous (unbookmarked) tip. | ||
| */ | ||
| bookmark?: string | ||
| /** | ||
| * Create a new change from an existing change's current commit (hex ID). | ||
| * Mutually exclusive with `bookmark`. | ||
| */ | ||
| changeId?: string | ||
| /** | ||
| * When true, the mesa daemon rejects writes to this repo with EROFS. | ||
| * Per-repo read-only; defaults to writable when omitted. | ||
| */ | ||
| readOnly?: boolean | ||
| /** Optional description applied as the create-change message. */ | ||
| describe?: string | ||
| } | ||
| /** | ||
| * Existing revision pin: exactly one of `bookmark` or `changeId`. | ||
| * | ||
| * TypeScript exclusive union (`never` on the other field), analogous to Rust | ||
| * `MountRevTarget`. Re-apply after `napi build` if bindgen regenerates a loose | ||
| * interface; field-level `ts_type` on `at` / `branchedFrom` usually survives. | ||
| */ | ||
| export type JsRevisionIdentifier = | ||
| | { bookmark: string; changeId?: never } | ||
| | { bookmark?: never; changeId: string } | ||
| /** Fork a new revision from a parent tip at mount time. */ | ||
| export type JsBranchedRevision = JsRevisionIdentifier & { | ||
| as?: JsMountRevisionProperties | ||
| } | ||
| /** | ||
| * Per-repo configuration passed from JavaScript. | ||
| * | ||
| * Mirrors SDK `RepoConfig`: `at` and `branchedFrom` are mutually exclusive, and | ||
| * `branchedFrom` permits only writable mode. Re-apply after `napi build` if | ||
| * bindgen regenerates a loose `interface` (Rust keeps optional fields for | ||
| * runtime validation via `repo_options_from_mount_fields`). | ||
| */ | ||
| export type JsRepoConfig = { | ||
| /** Repository name. */ | ||
| name: string | ||
| } & ( | ||
| | { | ||
| at?: JsRevisionIdentifier | ||
| branchedFrom?: never | ||
| /** `"rw"` or `"ro"`. Defaults to writable when omitted. */ | ||
| mode?: 'rw' | 'ro' | ||
| } | ||
| | { | ||
| at?: never | ||
| branchedFrom?: JsBranchedRevision | ||
| /** Fork requires writable mode; omit or pass `"rw"`. */ | ||
| mode?: 'rw' | ||
| } | ||
| ) | ||
| /** Telemetry configuration passed from JavaScript. */ | ||
@@ -265,0 +312,0 @@ export interface JsTelemetryConfig { |
+6
-6
| { | ||
| "name": "@mesadev/mesafs-napi", | ||
| "version": "0.44.1", | ||
| "version": "0.45.0", | ||
| "main": "index.js", | ||
@@ -23,8 +23,8 @@ "types": "index.d.ts", | ||
| "optionalDependencies": { | ||
| "@mesadev/mesafs-napi-darwin-arm64": "0.44.1", | ||
| "@mesadev/mesafs-napi-linux-x64-gnu": "0.44.1", | ||
| "@mesadev/mesafs-napi-linux-x64-musl": "0.44.1", | ||
| "@mesadev/mesafs-napi-linux-arm64-gnu": "0.44.1", | ||
| "@mesadev/mesafs-napi-linux-arm64-musl": "0.44.1" | ||
| "@mesadev/mesafs-napi-darwin-arm64": "0.45.0", | ||
| "@mesadev/mesafs-napi-linux-x64-gnu": "0.45.0", | ||
| "@mesadev/mesafs-napi-linux-x64-musl": "0.45.0", | ||
| "@mesadev/mesafs-napi-linux-arm64-gnu": "0.45.0", | ||
| "@mesadev/mesafs-napi-linux-arm64-musl": "0.45.0" | ||
| } | ||
| } |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
41262
3.91%1056
4.24%