@fluxlay/cli 1.4.0 → 2.0.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.
@@ -3,7 +3,7 @@
3
3
  export interface ArchiveFileInfo {
4
4
  mime: string
5
5
  size: number
6
- chunks: Array<string>
6
+ chunks: Array<ChunkRef>
7
7
  chunkSize: number
8
8
  }
9
9
 
@@ -28,6 +28,21 @@ export declare const enum BundleKind {
28
28
  Image = 'image'
29
29
  }
30
30
 
31
+ /**
32
+ * Reference to a single encrypted chunk inside a FLX3 bundle.
33
+ *
34
+ * `nonce` is the per-chunk random 12-byte AES-GCM nonce. It is stored as a
35
+ * `Vec<u8>` rather than `[u8; 12]` because NAPI object derivation does not
36
+ * support fixed-size arrays; length is validated to 12 at decryption time via
37
+ * [`ChunkRef::nonce_array`].
38
+ */
39
+ export interface ChunkRef {
40
+ /** SHA-256 hex digest of the plaintext chunk (content identifier). */
41
+ hash: string
42
+ /** Random 12-byte AES-GCM nonce used to encrypt this chunk. */
43
+ nonce: Array<number>
44
+ }
45
+
31
46
  export declare function getContentKey(versionId: string): Uint8Array | null
32
47
 
33
48
  export declare function getDeveloperKey(): Uint8Array | null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxlay/cli",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "description": "CLI for building, developing, and publishing Fluxlay wallpapers",
5
5
  "keywords": [
6
6
  "cli",
@@ -33,28 +33,32 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@bufbuild/protobuf": "^2.12.0",
36
- "@clack/prompts": "^1.2.0",
36
+ "@clack/prompts": "^1.4.0",
37
37
  "@connectrpc/connect": "^2.1.1",
38
38
  "@connectrpc/connect-node": "^2.1.1",
39
- "@sentry/node": "^10.53.1",
40
- "@supabase/supabase-js": "^2.105.0",
39
+ "@sentry/node": "^10.54.0",
40
+ "@supabase/supabase-js": "^2.106.2",
41
41
  "chalk": "^5.6.2",
42
- "commander": "^12.1.0",
42
+ "commander": "^14.0.3",
43
43
  "dotenv": "^17.4.2",
44
44
  "env-paths": "^4.0.0",
45
- "fs-extra": "^11.3.4",
45
+ "fs-extra": "^11.3.5",
46
46
  "js-yaml": "^4.1.1",
47
47
  "open": "^11.0.0",
48
- "vite": "^8.0.10"
48
+ "vite": "^8.0.14"
49
49
  },
50
50
  "devDependencies": {
51
+ "@aws-sdk/client-s3": "^3.700.0",
51
52
  "@fluxlay/core": "0.1.0",
52
53
  "@fluxlay/proto": "1.0.0",
53
54
  "@types/fs-extra": "^11.0.4",
54
55
  "@types/js-yaml": "^4.0.9",
55
- "@types/node": "^20.19.39",
56
- "tsdown": "^0.21.10",
57
- "typescript": "^5.9.3",
58
- "vitest": "^4.1.5"
56
+ "@types/node": "^25.9.1",
57
+ "@types/pg": "^8.11.10",
58
+ "p-limit": "^6.1.0",
59
+ "pg": "^8.13.1",
60
+ "tsdown": "^0.22.0",
61
+ "typescript": "^6.0.3",
62
+ "vitest": "^4.1.7"
59
63
  }
60
64
  }