@byfriends/cli 0.1.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.
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@byfriends/cli",
3
+ "version": "0.1.0",
4
+ "description": "BYF (Be Your Friend), an AI coding agent that runs in your terminal",
5
+ "license": "Proprietary",
6
+ "author": "ByronFinn",
7
+ "homepage": "https://github.com/ByronFinn/byf",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ByronFinn/byf.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/ByronFinn/byf/issues"
14
+ },
15
+ "keywords": [
16
+ "byf",
17
+ "cli",
18
+ "terminal",
19
+ "ai",
20
+ "coding-agent",
21
+ "tui"
22
+ ],
23
+ "bin": {
24
+ "byf": "dist/main.mjs"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "scripts/postinstall.mjs",
29
+ "README.md"
30
+ ],
31
+ "type": "module",
32
+ "imports": {
33
+ "#/*": [
34
+ "./src/*.ts",
35
+ "./src/*/index.ts"
36
+ ]
37
+ },
38
+ "publishConfig": {
39
+ "access": "public",
40
+ "provenance": false
41
+ },
42
+ "dependencies": {
43
+ "@earendil-works/pi-tui": "^0.74.0",
44
+ "@mariozechner/clipboard": "^0.3.2",
45
+ "chalk": "^5.4.1",
46
+ "cli-highlight": "^2.1.11",
47
+ "commander": "^13.1.0",
48
+ "semver": "^7.7.4",
49
+ "smol-toml": "^1.6.1",
50
+ "zod": "^4.3.6"
51
+ },
52
+ "devDependencies": {
53
+ "@types/semver": "^7.7.0",
54
+ "@types/yazl": "^2.4.6",
55
+ "postject": "1.0.0-alpha.6",
56
+ "tsx": "^4.21.0",
57
+ "yazl": "^3.3.1",
58
+ "@byfriends/oauth": "^1.0.0",
59
+ "@byfriends/sdk": "^1.0.0",
60
+ "@byfriends/telemetry": "^0.0.2"
61
+ },
62
+ "engines": {
63
+ "node": ">=22.19.0"
64
+ },
65
+ "scripts": {
66
+ "build": "tsdown",
67
+ "catalog:update": "node scripts/update-catalog.mjs --out dist/built-in-catalog.json",
68
+ "smoke": "node scripts/smoke.mjs",
69
+ "build:native:js": "node scripts/native/01-bundle.mjs",
70
+ "build:native:sea": "node scripts/native/build.mjs --profile=local",
71
+ "build:native:release": "node scripts/native/build.mjs --profile=release",
72
+ "package:native": "node scripts/native/package.mjs",
73
+ "produce:native:manifest": "node scripts/native/produce-manifest.mjs",
74
+ "release:native:resolve": "node scripts/native/resolve-release.mjs",
75
+ "test:native:smoke": "node scripts/native/smoke.mjs",
76
+ "dev": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
77
+ "dev:prod": "node dist/main.mjs",
78
+ "clean": "rm -rf dist",
79
+ "typecheck": "tsc -p tsconfig.json --noEmit",
80
+ "test": "pnpm -w run build:packages && vitest run",
81
+ "e2e": "pnpm -w run build:packages && BYF_E2E=1 vitest run test/e2e",
82
+ "e2e:real": "pnpm -w run build:packages && BYF_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
83
+ "postinstall": "node scripts/postinstall.mjs"
84
+ }
85
+ }
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Postinstall hook for @byfriends/cli.
4
+ *
5
+ * BYF has no predecessor CLI to migrate from. This script is a
6
+ * deliberate no-op: it exists so npm/pnpm/yarn do not error on
7
+ * `scripts.postinstall`, and can be extended with BYF-specific
8
+ * first-install behaviour (e.g. PATH reachability check) in the
9
+ * future.
10
+ *
11
+ * Rules:
12
+ * - Never fails the install. Always exits 0.
13
+ * - Non-global installs (npx, local deps, workspace bootstraps)
14
+ * are silent no-ops.
15
+ */