@photon-ai/cli 2.3.0-staging.42987892882.1 → 3.0.1

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/package.json CHANGED
@@ -1,73 +1,100 @@
1
1
  {
2
- "name": "@photon-ai/cli",
3
- "version": "2.3.0-staging.42987892882.1",
4
- "description": "Photon CLI — typed terminal UI for the Photon Dashboard. Binary: `photon` (alias `pho`).",
5
- "keywords": [
6
- "photon",
7
- "cli",
8
- "dashboard",
9
- "spectrum",
10
- "messaging",
11
- "imessage",
12
- "developer-tools"
13
- ],
14
- "author": "Photon",
15
- "license": "MIT",
16
- "homepage": "https://github.com/photon-hq/cli#readme",
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/photon-hq/cli.git"
2
+ "devDependencies": {
3
+ "@biomejs/biome": "2.5.5",
4
+ "@clack/prompts": "1.7.0",
5
+ "@gunshi/plugin-completion": "1.0.0-rc.5",
6
+ "@gunshi/plugin-suggestion": "1.0.0-rc.5",
7
+ "@photon-ai/api": "npm:@photon-ai/api@0.6.0",
8
+ "@photon-ai/api-public": "npm:@photon-ai/api@0.6.0",
9
+ "@types/node": "22.20.1",
10
+ "bun": "1.4.4",
11
+ "env-paths": "4.0.0",
12
+ "esbuild": "0.28.1",
13
+ "fast-string-width": "3.0.2",
14
+ "gunshi": "1.0.0-rc.5",
15
+ "open": "11.0.0",
16
+ "ora": "10.0.0",
17
+ "qrcode": "1.5.4",
18
+ "tsx": "4.23.1",
19
+ "typescript": "7.0.2",
20
+ "ultracite": "7.9.4",
21
+ "undici": "7.30.2",
22
+ "vitest": "4.1.10",
23
+ "zod": "4.4.3"
20
24
  },
21
- "bugs": {
22
- "url": "https://github.com/photon-hq/cli/issues"
25
+ "optionalDependencies": {
26
+ "@napi-rs/keyring": "2.1.2"
23
27
  },
28
+ "imports": {
29
+ "#build-config": {
30
+ "photon-internal": "./config/cli.staging.json",
31
+ "default": "./config/cli.production.json"
32
+ },
33
+ "#internal": {
34
+ "photon-internal": "./src/internal/index.ts",
35
+ "default": "./src/app/no-internal.ts"
36
+ },
37
+ "#sdk-version": {
38
+ "photon-internal": "./src/internal/sdk-version.ts",
39
+ "default": "./src/sdk-version.ts"
40
+ }
41
+ },
42
+ "name": "@photon-ai/cli",
24
43
  "type": "module",
44
+ "version": "3.0.1",
45
+ "description": "Photon CLI built with Gunshi for Node.js and standalone binaries.",
25
46
  "bin": {
26
- "photon": "./dist/photon.js",
27
- "pho": "./dist/photon.js"
47
+ "photon": "./dist/bin.js",
48
+ "pho": "./dist/bin.js"
28
49
  },
29
50
  "files": [
30
- "dist",
51
+ "dist/bin.js",
52
+ "dist/bin.js.map",
53
+ "dist/THIRD_PARTY_NOTICES.txt",
54
+ "LICENSE",
31
55
  "README.md"
32
56
  ],
33
- "publishConfig": {
34
- "access": "public"
35
- },
36
57
  "engines": {
37
- "bun": ">=1.3.0",
38
- "node": ">=18.0.0"
58
+ "node": ">=22"
39
59
  },
40
- "scripts": {
41
- "start": "bun run src/index.ts",
42
- "dev": "bun run --watch src/index.ts",
43
- "build": "bun build ./src/index.ts --outfile dist/photon.js --target node --minify --external update-notifier && chmod +x dist/photon.js",
44
- "compile": "bun build ./src/index.ts --compile --outfile dist/photon",
45
- "typecheck": "tsc --noEmit",
46
- "test": "bun test",
47
- "check": "bun run typecheck && bun test && bun run build",
48
- "manifest": "bun run scripts/generate-route-manifest.ts",
49
- "prepublishOnly": "bun run typecheck && bun run build",
50
- "docs:reference": "bun run scripts/export-docs.ts"
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/photon-hq/cli.git"
51
63
  },
52
- "devDependencies": {
53
- "@photon-ai/dashboard-api": "1.6.12",
54
- "@types/bun": "latest",
55
- "@types/node": "^25.6.2",
56
- "@types/semver": "^7.7.1",
57
- "@types/update-notifier": "^6.0.8",
58
- "elysia": "1.4.28",
59
- "typescript": "^5"
64
+ "homepage": "https://github.com/photon-hq/cli#readme",
65
+ "bugs": {
66
+ "url": "https://github.com/photon-hq/cli/issues"
60
67
  },
61
- "dependencies": {
62
- "@clack/prompts": "^1.2.0",
63
- "@commander-js/extra-typings": "^14.0.0",
64
- "@elysiajs/eden": "1.4.9",
65
- "better-auth": "1.4.18",
66
- "cli-table3": "^0.6.5",
67
- "commander": "^14.0.3",
68
- "open": "^11.0.0",
69
- "picocolors": "^1.1.1",
70
- "semver": "^7.8.5",
71
- "update-notifier": "^7.3.1"
68
+ "license": "Apache-2.0",
69
+ "publishConfig": {
70
+ "access": "public",
71
+ "provenance": true,
72
+ "registry": "https://registry.npmjs.org",
73
+ "tag": "latest"
74
+ },
75
+ "scripts": {
76
+ "cli": "tsx --import ./scripts/public-sdk.mjs src/bin.ts",
77
+ "dev": "tsx --import ./scripts/public-sdk.mjs --watch src/bin.ts",
78
+ "build": "pnpm clean && node scripts/build-javascript.mjs",
79
+ "build:binary": "bun run scripts/build-local-binary.mjs",
80
+ "build:binaries": "bun run scripts/build-binaries.mjs",
81
+ "check": "pnpm check:config && pnpm lint && pnpm typecheck && pnpm test:production && pnpm test:release && pnpm test:production-plan && pnpm build",
82
+ "check:biome": "ultracite check",
83
+ "check:fix": "ultracite fix",
84
+ "clean": "node scripts/clean.mjs",
85
+ "format": "biome format --write .",
86
+ "format:check": "biome format .",
87
+ "lint": "ultracite check",
88
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.public.json",
89
+ "test": "vitest run --config vitest.production.config.ts --test-timeout=15000",
90
+ "test:production": "vitest run --config vitest.production.config.ts --test-timeout=15000",
91
+ "test:native-storage": "tsx scripts/test-native-credential-store.ts",
92
+ "test:watch": "vitest --config vitest.production.config.ts",
93
+ "smoke": "node dist/bin.js --version && node dist/bin.js --help",
94
+ "fix": "ultracite fix",
95
+ "docs:reference": "tsx scripts/export-docs.ts",
96
+ "check:config": "node scripts/build-config.mjs production",
97
+ "test:production-plan": "tsx scripts/production-test/index.ts check",
98
+ "test:release": "node --test scripts/build-config.production.node-test.mjs"
72
99
  }
73
- }
100
+ }