jazz-ai 0.15.6 → 0.15.8
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/README.md +2 -2
- package/bin/jazz +13 -0
- package/package.json +30 -121
- package/postinstall.mjs +93 -0
- package/dist/BrowserWebSocketTransport-w63x74v4.js +0 -2
- package/dist/LaunchOptions-myzdtavq.js +0 -2
- package/dist/NodeWebSocketTransport-f3b1md5g.js +0 -2
- package/dist/agent-management-psjjh1v4.js +0 -2
- package/dist/app-layer-dcs6205x.js +0 -475
- package/dist/bidi-z2rfbsm1.js +0 -27
- package/dist/chat-agent-z4s1wy29.js +0 -2
- package/dist/config-a8nftw03.js +0 -5
- package/dist/create-agent-d3naymat.js +0 -2
- package/dist/daemon-cwpgy995.js +0 -8
- package/dist/edit-agent-5dvx9zxk.js +0 -2
- package/dist/entry-0a25xyay.js +0 -3
- package/dist/entry-0wtwnqzb.js +0 -5
- package/dist/entry-0yr3faht.js +0 -3
- package/dist/entry-1d3r39vh.js +0 -3
- package/dist/entry-1nswkdby.js +0 -66
- package/dist/entry-2b5hk38y.js +0 -3
- package/dist/entry-36pg1a2d.js +0 -3
- package/dist/entry-5bhe92v1.js +0 -3
- package/dist/entry-5ppp4m7e.js +0 -3
- package/dist/entry-5rc946me.js +0 -16
- package/dist/entry-6qf4604b.js +0 -33
- package/dist/entry-74274en5.js +0 -3
- package/dist/entry-7egjzbtk.js +0 -3
- package/dist/entry-7pt4328k.js +0 -9
- package/dist/entry-7ygxdy72.js +0 -3
- package/dist/entry-9ctp0xtq.js +0 -48
- package/dist/entry-ak1jpj9t.js +0 -3
- package/dist/entry-b0f79ssz.js +0 -11
- package/dist/entry-brter0br.js +0 -42
- package/dist/entry-crxs5krq.js +0 -4
- package/dist/entry-ekxbvx44.js +0 -3
- package/dist/entry-eng90vz3.js +0 -7
- package/dist/entry-f60t653t.js +0 -3
- package/dist/entry-fpkmncfc.js +0 -3
- package/dist/entry-frex69ap.js +0 -3
- package/dist/entry-gjqn97y7.js +0 -3
- package/dist/entry-gr2n9r5h.js +0 -14
- package/dist/entry-gvwgv346.js +0 -8
- package/dist/entry-h9svkzjy.js +0 -3
- package/dist/entry-hb1pdd50.js +0 -3
- package/dist/entry-hxt546zf.js +0 -24
- package/dist/entry-jbwtd1nx.js +0 -3
- package/dist/entry-jhm048xt.js +0 -3
- package/dist/entry-jnm92561.js +0 -3
- package/dist/entry-k8g42ys1.js +0 -19
- package/dist/entry-k92369wd.js +0 -3
- package/dist/entry-kewkc3pm.js +0 -6
- package/dist/entry-kf5tvzw9.js +0 -3
- package/dist/entry-kkv0qqzx.js +0 -92
- package/dist/entry-kwzyq2kb.js +0 -7
- package/dist/entry-kztb78gg.js +0 -3
- package/dist/entry-m5sgcpjm.js +0 -3
- package/dist/entry-mgyshja4.js +0 -3
- package/dist/entry-ngf82vr9.js +0 -12
- package/dist/entry-nhc4ejqp.js +0 -3
- package/dist/entry-p3n9hnhc.js +0 -9
- package/dist/entry-pd0hzhgc.js +0 -3
- package/dist/entry-pgnwj763.js +0 -26
- package/dist/entry-q4naz37c.js +0 -6844
- package/dist/entry-qmkf1yq2.js +0 -3
- package/dist/entry-qp71tqab.js +0 -19
- package/dist/entry-rrkxy4a4.js +0 -3
- package/dist/entry-svbz97fm.js +0 -7
- package/dist/entry-ta8bkskc.js +0 -3
- package/dist/entry-v145mfqz.js +0 -3
- package/dist/entry-v5aqgmy6.js +0 -3
- package/dist/entry-vs7vbvgt.js +0 -3
- package/dist/entry-w0cv0bmf.js +0 -3
- package/dist/entry-wz450339.js +0 -21
- package/dist/entry-xq8cdj89.js +0 -3
- package/dist/entry-yh0xtvdn.js +0 -22
- package/dist/entry-z8py9dvz.js +0 -79
- package/dist/execute-x4q2rrsn.js +0 -13
- package/dist/helpers-zd0k106f.js +0 -2
- package/dist/index-079ban1j.js +0 -133
- package/dist/index-880w6cc5.js +0 -3
- package/dist/index-bspcwkjk.js +0 -69
- package/dist/lifecycle-d35g52kt.js +0 -26
- package/dist/main-gn18jqj1.js +0 -49
- package/dist/main-vem83esc.js +0 -2
- package/dist/main.js +0 -2
- package/dist/mcp-8a60k6xb.js +0 -14
- package/dist/peers-tsqnxfrq.js +0 -16
- package/dist/persona-dda3hyv6.js +0 -3
- package/dist/proxy-y3z1jt80.js +0 -2
- package/dist/token-mf9g6sgn.js +0 -2
- package/dist/token-util-79msm1cm.js +0 -2
- package/dist/update-8znscq1n.js +0 -2
- package/dist/web-cassette-dbzprmav.js +0 -2
- package/dist/wizard-20tcp94s.js +0 -2
- package/dist/workflow-habfzn8p.js +0 -2
- package/personas/coder/persona.md +0 -89
- package/personas/default/persona.md +0 -85
- package/personas/researcher/persona.md +0 -79
- package/personas/summarizer/persona.md +0 -41
- package/skills/boilerplate/SKILL.md +0 -71
- package/skills/calendar/SKILL.md +0 -696
- package/skills/calendar/references/providers.md +0 -545
- package/skills/commit-message/SKILL.md +0 -141
- package/skills/create-system-routine/SKILL.md +0 -192
- package/skills/create-workflow/SKILL.md +0 -350
- package/skills/decision-log/SKILL.md +0 -120
- package/skills/deep-research/SKILL.md +0 -624
- package/skills/deep-research/references/memory-format.md +0 -497
- package/skills/deep-research/references/pdf-analysis.md +0 -455
- package/skills/deep-research/references/query-decomposition.md +0 -188
- package/skills/deep-research/references/verification-patterns.md +0 -276
- package/skills/defuddle/SKILL.md +0 -41
- package/skills/email/SKILL.md +0 -426
- package/skills/email/references/providers.md +0 -393
- package/skills/github-action/SKILL.md +0 -214
- package/skills/journal/SKILL.md +0 -86
- package/skills/meeting-notes/SKILL.md +0 -103
- package/skills/obsidian/SKILL.md +0 -233
- package/skills/obsidian/references/canvas-format.md +0 -651
- package/skills/obsidian/references/markdown-features.md +0 -615
- package/skills/persona/SKILL.md +0 -234
- package/skills/prompt-writer/SKILL.md +0 -50
- package/skills/skill-creator/SKILL.md +0 -257
- package/skills/skill-creator/references/output-patterns.md +0 -73
- package/skills/startup-brainstorm/SKILL.md +0 -160
- package/skills/startup-brainstorm/references/founder-frameworks.md +0 -157
- package/skills/todo/SKILL.md +0 -96
- package/vendor/terminal-notifier/LICENSE +0 -23
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/Info.plist +0 -65
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/PkgInfo +0 -1
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
- package/vendor/terminal-notifier/arm64/terminal-notifier.app/Contents/_CodeSignature/CodeResources +0 -182
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/Info.plist +0 -65
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/PkgInfo +0 -1
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
- package/vendor/terminal-notifier/x64/terminal-notifier.app/Contents/_CodeSignature/CodeResources +0 -182
- package/workflows/email-cleanup/WORKFLOW.md +0 -47
- package/workflows/market-analysis/WORKFLOW.md +0 -258
- package/workflows/weather-briefing/WORKFLOW.md +0 -55
package/README.md
CHANGED
|
@@ -78,8 +78,8 @@ The [Cookbook](docs/cookbook/index.md) walks through each one.
|
|
|
78
78
|
| Scripts & pipes | `jazz run --json --agent dev "…"` |
|
|
79
79
|
| Cron / launchd | `jazz workflow schedule <name>` |
|
|
80
80
|
| GitHub PRs & Actions | [`.github/jazz/`](.github/jazz/), reviews every PR in this repo |
|
|
81
|
-
| Telegram | [`
|
|
82
|
-
| Discord | [`
|
|
81
|
+
| Telegram | [`packages/telegram-bot/`](packages/telegram-bot/), `docker compose up` |
|
|
82
|
+
| Discord | [`packages/discord-bot/`](packages/discord-bot/), `docker compose up` |
|
|
83
83
|
|
|
84
84
|
Slack, Google Chat, or your own app work the same way. See
|
|
85
85
|
[Chat platforms](docs/surfaces/chat-platforms.md).
|
package/bin/jazz
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Placeholder shipped inside the jazz-ai npm package itself. postinstall.mjs
|
|
3
|
+
# overwrites this file with the real platform binary right after install, so
|
|
4
|
+
# reaching this script means postinstall never ran — most commonly because
|
|
5
|
+
# the install used --ignore-scripts, or a package manager (pnpm, in its
|
|
6
|
+
# default config) that skips postinstall scripts unless explicitly allowed.
|
|
7
|
+
echo "Error: jazz-ai's postinstall script did not run, so no binary was installed." >&2
|
|
8
|
+
echo "" >&2
|
|
9
|
+
echo "If you're on pnpm, allow this package's postinstall script (pnpm approve-builds" >&2
|
|
10
|
+
echo "or the equivalent config) and reinstall. Otherwise, reinstall without --ignore-scripts:" >&2
|
|
11
|
+
echo "" >&2
|
|
12
|
+
echo " npm install -g jazz-ai" >&2
|
|
13
|
+
exit 1
|
package/package.json
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jazz-ai",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"description": "One agent. Every surface. Your rules.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "dist/main.js",
|
|
7
|
-
"type": "module",
|
|
8
6
|
"bin": {
|
|
9
|
-
"jazz": "./
|
|
7
|
+
"jazz": "./bin/jazz"
|
|
10
8
|
},
|
|
9
|
+
"os": [
|
|
10
|
+
"darwin",
|
|
11
|
+
"linux"
|
|
12
|
+
],
|
|
13
|
+
"cpu": [
|
|
14
|
+
"arm64",
|
|
15
|
+
"x64"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"postinstall": "node ./postinstall.mjs"
|
|
19
|
+
},
|
|
20
|
+
"optionalDependencies": {
|
|
21
|
+
"jazz-ai-darwin-arm64": "0.15.8",
|
|
22
|
+
"jazz-ai-darwin-x64": "0.15.8",
|
|
23
|
+
"jazz-ai-linux-arm64": "0.15.8",
|
|
24
|
+
"jazz-ai-linux-arm64-musl": "0.15.8",
|
|
25
|
+
"jazz-ai-linux-x64": "0.15.8",
|
|
26
|
+
"jazz-ai-linux-x64-musl": "0.15.8"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"npm": ">=10.0.0"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin/",
|
|
33
|
+
"postinstall.mjs",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE"
|
|
36
|
+
],
|
|
11
37
|
"author": {
|
|
12
38
|
"name": "lvndry",
|
|
13
39
|
"email": "lvndry@proton.me",
|
|
@@ -42,122 +68,5 @@
|
|
|
42
68
|
"mcp",
|
|
43
69
|
"mcp-server",
|
|
44
70
|
"agent-skills"
|
|
45
|
-
],
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "bun run scripts/build.ts",
|
|
48
|
-
"build:binary": "bun run scripts/build.ts --compile",
|
|
49
|
-
"build:binaries": "bun run scripts/build.ts --compile --all-targets",
|
|
50
|
-
"typecheck": "bun run tsc --noEmit -p tsconfig.app.json && bun run tsc --noEmit -p tsconfig.build.json && bun run tsc --noEmit -p tsconfig.integrations.json",
|
|
51
|
-
"typecheck:evals": "tsc -p evals/tsconfig.json",
|
|
52
|
-
"evals": "bun run evals/cli.ts",
|
|
53
|
-
"dev": "bun --watch src/main.ts",
|
|
54
|
-
"start": "bun dist/main.js",
|
|
55
|
-
"cli": "bun src/main.ts",
|
|
56
|
-
"prepare": "git config core.hooksPath .githooks || true",
|
|
57
|
-
"lint": "bun eslint src scripts integrations --cache",
|
|
58
|
-
"lint:fix": "bun eslint src scripts integrations --fix --cache",
|
|
59
|
-
"format": "bun prettier --write src",
|
|
60
|
-
"test": "bun test",
|
|
61
|
-
"test:watch": "bun test --watch",
|
|
62
|
-
"bench": "bun bench/run.ts",
|
|
63
|
-
"docs:check-links": "bun run scripts/check-docs-links.ts",
|
|
64
|
-
"docs:design": "bun run scripts/gen-design-docs.ts",
|
|
65
|
-
"docs:lint": "bunx markdownlint-cli2",
|
|
66
|
-
"docs:lint:fix": "bunx markdownlint-cli2 --fix",
|
|
67
|
-
"test:typecheck": "bunx tsc --project tsconfig.test.json",
|
|
68
|
-
"clean": "rm -rf dist binaries .build .tsbuild .tsbuildinfo .tsbuildinfo.scripts",
|
|
69
|
-
"prebuild": "bun run clean",
|
|
70
|
-
"prepublishOnly": "bun run build"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@opentui/core": "^0.5.8",
|
|
74
|
-
"@opentui/react": "^0.5.8",
|
|
75
|
-
"ink": "^7.1.1",
|
|
76
|
-
"pdf-parse": "^2.4.5",
|
|
77
|
-
"react": "^19.2.8"
|
|
78
|
-
},
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@ai-sdk/alibaba": "^2.0.35",
|
|
81
|
-
"@ai-sdk/anthropic": "^4.0.42",
|
|
82
|
-
"@ai-sdk/cerebras": "^3.0.37",
|
|
83
|
-
"@ai-sdk/deepseek": "^3.0.32",
|
|
84
|
-
"@ai-sdk/fireworks": "^3.0.40",
|
|
85
|
-
"@ai-sdk/google": "^4.0.51",
|
|
86
|
-
"@ai-sdk/groq": "^4.0.31",
|
|
87
|
-
"@ai-sdk/mistral": "^4.0.33",
|
|
88
|
-
"@ai-sdk/moonshotai": "^3.0.38",
|
|
89
|
-
"@ai-sdk/openai": "^4.0.47",
|
|
90
|
-
"@ai-sdk/openai-compatible": "^3.0.37",
|
|
91
|
-
"@ai-sdk/provider-utils": "^5.0.30",
|
|
92
|
-
"@ai-sdk/togetherai": "^3.0.38",
|
|
93
|
-
"@ai-sdk/xai": "^4.0.44",
|
|
94
|
-
"@effect/cluster": "^0.60.2",
|
|
95
|
-
"@effect/experimental": "^0.61.1",
|
|
96
|
-
"@effect/platform": "^0.97.1",
|
|
97
|
-
"@effect/platform-node": "^0.108.1",
|
|
98
|
-
"@effect/rpc": "^0.76.2",
|
|
99
|
-
"@effect/sql": "^0.52.1",
|
|
100
|
-
"@effect/workflow": "^0.19.1",
|
|
101
|
-
"@eslint/js": "^10.0.1",
|
|
102
|
-
"@openrouter/ai-sdk-provider": "^3.0.0",
|
|
103
|
-
"@perplexity-ai/perplexity_ai": "^0.38.3",
|
|
104
|
-
"@tavily/core": "^0.7.8",
|
|
105
|
-
"@types/bun": "^1.4.0",
|
|
106
|
-
"@types/marked": "^6.0.0",
|
|
107
|
-
"@types/marked-terminal": "^6.1.1",
|
|
108
|
-
"@types/node": "^26.3.0",
|
|
109
|
-
"@types/react": "^19.2.18",
|
|
110
|
-
"ai": "^7.0.79",
|
|
111
|
-
"chalk": "^6.0.0",
|
|
112
|
-
"cli-highlight": "^2.1.11",
|
|
113
|
-
"commander": "^15.0.0",
|
|
114
|
-
"cron-parser": "^5.10.0",
|
|
115
|
-
"cronstrue": "^3.24.0",
|
|
116
|
-
"diff": "^9.0.0",
|
|
117
|
-
"effect": "^3.22.1",
|
|
118
|
-
"eslint": "^10.9.1",
|
|
119
|
-
"eslint-config-prettier": "^10.1.8",
|
|
120
|
-
"eslint-plugin-import-x": "^4.17.1",
|
|
121
|
-
"eslint-plugin-n": "^18.3.0",
|
|
122
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
123
|
-
"exa-js": "^2.18.1",
|
|
124
|
-
"fast-glob": "^3.3.3",
|
|
125
|
-
"gpt-tokenizer": "^3.4.0",
|
|
126
|
-
"gray-matter": "^4.0.3",
|
|
127
|
-
"ink-select-input": "^6.2.0",
|
|
128
|
-
"ink-spinner": "^5.0.0",
|
|
129
|
-
"linkup-sdk": "^3.5.0",
|
|
130
|
-
"marked": "^18.0.11",
|
|
131
|
-
"marked-terminal": "^7.3.0",
|
|
132
|
-
"node-emoji": "^2.2.0",
|
|
133
|
-
"ollama-ai-provider-v2": "^4.0.1",
|
|
134
|
-
"parallel-web": "^1.3.0",
|
|
135
|
-
"plist": "^5.0.0",
|
|
136
|
-
"prettier": "^3.9.6",
|
|
137
|
-
"puppeteer-core": "^25.9.0",
|
|
138
|
-
"semver": "^7.8.5",
|
|
139
|
-
"short-uuid": "^6.0.3",
|
|
140
|
-
"typescript": "^6.0.3",
|
|
141
|
-
"typescript-eslint": "^8.68.0",
|
|
142
|
-
"tz-lookup": "^6.1.25",
|
|
143
|
-
"undici": "^8.10.0",
|
|
144
|
-
"vercel-minimax-ai-provider": "^0.0.2",
|
|
145
|
-
"wrap-ansi": "^10.0.1",
|
|
146
|
-
"zhipu-ai-provider": "^0.4.0",
|
|
147
|
-
"zod": "^4.4.3",
|
|
148
|
-
"@modelcontextprotocol/client": "^2.0.0"
|
|
149
|
-
},
|
|
150
|
-
"engines": {
|
|
151
|
-
"node": ">=22.16.0",
|
|
152
|
-
"npm": ">=10.0.0"
|
|
153
|
-
},
|
|
154
|
-
"files": [
|
|
155
|
-
"dist/",
|
|
156
|
-
"vendor/terminal-notifier/",
|
|
157
|
-
"personas/",
|
|
158
|
-
"skills/",
|
|
159
|
-
"workflows/",
|
|
160
|
-
"README.md",
|
|
161
|
-
"LICENSE"
|
|
162
71
|
]
|
|
163
72
|
}
|
package/postinstall.mjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Replaces bin/jazz — a guard script in the published tarball — with the real
|
|
4
|
+
* platform binary. The actual binary never ships inside jazz-ai itself; it
|
|
5
|
+
* lives in a per-platform optionalDependency (jazz-ai-darwin-arm64 and
|
|
6
|
+
* friends) that npm/pnpm/bun already resolved to just this machine's
|
|
7
|
+
* platform, so this only has to find and copy it into place.
|
|
8
|
+
*/
|
|
9
|
+
import childProcess from "node:child_process";
|
|
10
|
+
import fs from "node:fs";
|
|
11
|
+
import { createRequire } from "node:module";
|
|
12
|
+
import os from "node:os";
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
|
|
16
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
17
|
+
const require = createRequire(import.meta.url);
|
|
18
|
+
const targetBinary = path.join(__dirname, "bin", "jazz");
|
|
19
|
+
|
|
20
|
+
function isMusl() {
|
|
21
|
+
if (os.platform() !== "linux") return false;
|
|
22
|
+
try {
|
|
23
|
+
if (fs.existsSync("/etc/alpine-release")) return true;
|
|
24
|
+
} catch {
|
|
25
|
+
// Ignore filesystem probes a sandboxed host may block.
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8" });
|
|
29
|
+
return `${result.stdout ?? ""}${result.stderr ?? ""}`.toLowerCase().includes("musl");
|
|
30
|
+
} catch {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function candidatePackageNames() {
|
|
36
|
+
const platform = os.platform();
|
|
37
|
+
const arch = os.arch();
|
|
38
|
+
const base = `jazz-ai-${platform}-${arch}`;
|
|
39
|
+
if (platform === "linux") return isMusl() ? [`${base}-musl`, base] : [base, `${base}-musl`];
|
|
40
|
+
return [base];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function resolveBinaryFrom(packageName) {
|
|
44
|
+
const packageJsonPath = require.resolve(`${packageName}/package.json`);
|
|
45
|
+
const binaryPath = path.join(path.dirname(packageJsonPath), "bin", "jazz");
|
|
46
|
+
if (!fs.existsSync(binaryPath)) throw new Error(`Binary not found at ${binaryPath}`);
|
|
47
|
+
return binaryPath;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function installBinary(source) {
|
|
51
|
+
fs.mkdirSync(path.dirname(targetBinary), { recursive: true });
|
|
52
|
+
if (fs.existsSync(targetBinary)) fs.unlinkSync(targetBinary);
|
|
53
|
+
try {
|
|
54
|
+
fs.linkSync(source, targetBinary);
|
|
55
|
+
} catch {
|
|
56
|
+
fs.copyFileSync(source, targetBinary);
|
|
57
|
+
}
|
|
58
|
+
fs.chmodSync(targetBinary, 0o755);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function verifyBinary() {
|
|
62
|
+
const result = childProcess.spawnSync(targetBinary, ["--version"], {
|
|
63
|
+
encoding: "utf8",
|
|
64
|
+
stdio: "ignore",
|
|
65
|
+
});
|
|
66
|
+
return result.status === 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function main() {
|
|
70
|
+
const candidates = candidatePackageNames();
|
|
71
|
+
for (const packageName of candidates) {
|
|
72
|
+
try {
|
|
73
|
+
installBinary(resolveBinaryFrom(packageName));
|
|
74
|
+
if (verifyBinary()) return;
|
|
75
|
+
} catch {
|
|
76
|
+
// Try the next candidate (e.g. the glibc build on a system that turns
|
|
77
|
+
// out not to be musl after all).
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
throw new Error(
|
|
82
|
+
`Could not find a jazz binary for this platform (${os.platform()}-${os.arch()}). ` +
|
|
83
|
+
`Your package manager may not have installed one of: ${candidates.join(", ")}. ` +
|
|
84
|
+
`Reinstall without --ignore-scripts, or install one of those packages directly.`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
try {
|
|
89
|
+
main();
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
92
|
+
process.exit(1);
|
|
93
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{b as a,c as b,d as c}from"./entry-b0f79ssz.js";import"./entry-k92369wd.js";import"./entry-74274en5.js";import"./entry-gjqn97y7.js";import"./entry-xq8cdj89.js";import"./entry-0a25xyay.js";import"./entry-mgyshja4.js";import"./entry-fpkmncfc.js";import"./entry-1d3r39vh.js";import"./entry-jnm92561.js";import"./entry-7ygxdy72.js";import"./entry-kwzyq2kb.js";import"./entry-crxs5krq.js";import"./entry-7egjzbtk.js";import"./entry-36pg1a2d.js";import"./entry-brter0br.js";import"./entry-rrkxy4a4.js";export{b as deleteAgentCommand,c as getAgentCommand,a as listAgentsCommand};
|