pandacode 0.3.35 → 0.3.38

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/bin/pandacode.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { readFileSync } from 'node:fs';
3
- import { install } from '../installer.mjs';
3
+ import { install, supportedPlatforms } from '../installer.mjs';
4
4
 
5
5
  const args = process.argv.slice(2);
6
6
  if (args.includes('--help') || args.includes('-h')) {
7
7
  console.log(`Usage: npx pandacode [--dry-run] [--help] [--version]
8
8
 
9
9
  Downloads the latest PandaCode release from GitHub, verifies its signature and
10
- installs it (macOS Apple silicon, Windows x64, Linux x64).
10
+ installs it (${supportedPlatforms().join(', ')}).
11
11
 
12
12
  --dry-run download and verify only
13
13
  --version print this installer's version`);
package/installer.mjs CHANGED
@@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url';
10
10
  // plugins.updater.pubkey from src-tauri/tauri.conf.json (a test keeps them equal).
11
11
  export const PUBKEY = 'dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM3OEQ0RkYwQ0I4QzRGODEKUldTQlQ0ekw4RStOTnhNYW9jL1pTZENocVU3TGNPeVVxcDdzdkN4d0s3R2lPekxGRitGLzVwM3oK';
12
12
  export const BASE = 'https://github.com/aicodeking/pandacode/releases/latest/download';
13
- const ASSETS = {
13
+ export const ASSETS = {
14
14
  'darwin-arm64': 'PandaCode-macOS-arm64.app.tar.gz',
15
15
  'darwin-x64': 'PandaCode-macOS-x64.app.tar.gz',
16
16
  'win32-x64': 'PandaCode-Windows-x64-setup.exe',
@@ -19,9 +19,24 @@ const ASSETS = {
19
19
  'linux-arm64': 'PandaCode-Linux-aarch64.AppImage',
20
20
  };
21
21
 
22
+ /** How each published build is named for people. */
23
+ const PLATFORMS = {
24
+ 'darwin-arm64': 'macOS Apple silicon',
25
+ 'darwin-x64': 'macOS Intel',
26
+ 'win32-x64': 'Windows x64',
27
+ 'win32-arm64': 'Windows arm64',
28
+ 'linux-x64': 'Linux x64',
29
+ 'linux-arm64': 'Linux arm64',
30
+ };
31
+
32
+ /** Every build a release publishes, named for people. */
33
+ export function supportedPlatforms() {
34
+ return Object.keys(ASSETS).map(key => PLATFORMS[key]);
35
+ }
36
+
22
37
  export function assetFor(platform = process.platform, arch = process.arch) {
23
38
  const asset = ASSETS[`${platform}-${arch}`];
24
- if (!asset) throw new Error(`PandaCode has no build for ${platform}-${arch}. Supported: macOS (Apple silicon or Intel), Windows x64, Linux x64.`);
39
+ if (!asset) throw new Error(`PandaCode has no build for ${platform}-${arch}. Supported: ${supportedPlatforms().join(', ')}.`);
25
40
  return asset;
26
41
  }
27
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pandacode",
3
- "version": "0.3.35",
3
+ "version": "0.3.38",
4
4
  "description": "Install PandaCode, the open-source desktop app for coding agents, with npx pandacode.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",