100xprompt-cli 0.1.72 → 0.1.74
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/LICENSE +10 -31
- package/NOTICE +8 -19
- package/package.json +12 -12
- package/postinstall.mjs +30 -8
package/LICENSE
CHANGED
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
100xprompt
|
|
2
|
-
Copyright (c)
|
|
2
|
+
Copyright (c) 2026 100xprompt. All rights reserved.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
No part of this software — neither the source code nor the compiled binary —
|
|
5
|
+
may be copied, pasted, reproduced, distributed, modified, merged, sublicensed,
|
|
6
|
+
or used as the basis for a derivative work, in whole or in part, without the
|
|
7
|
+
prior written permission of 100xprompt. This restriction covers the 100xprompt
|
|
8
|
+
codebase itself and every package within it that is authored by 100xprompt.
|
|
9
9
|
|
|
10
|
+
The backend of 100xprompt is original work by 100xprompt (the company).
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
MIT License
|
|
16
|
-
|
|
17
|
-
Copyright (c) 2025 opencode
|
|
18
|
-
|
|
19
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
20
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
21
|
-
in the Software without restriction, including without limitation the rights
|
|
22
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
24
|
-
furnished to do so, subject to the following conditions:
|
|
25
|
-
|
|
26
|
-
The above copyright notice and this permission notice shall be included in all
|
|
27
|
-
copies or substantial portions of the Software.
|
|
28
|
-
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
-
SOFTWARE.
|
|
12
|
+
100xprompt's terminal UI started from OpenTUI
|
|
13
|
+
(https://github.com/anomalyco/opentui) and has since been migrated to
|
|
14
|
+
100xprompt's own implementation (@100xprompt/tui), inspired by it.
|
package/NOTICE
CHANGED
|
@@ -2,24 +2,15 @@ NOTICE — third-party components distributed with 100xprompt
|
|
|
2
2
|
================================================================================
|
|
3
3
|
|
|
4
4
|
This file lists third-party material bundled into the 100xprompt binary or the
|
|
5
|
-
published npm packages.
|
|
6
|
-
|
|
5
|
+
published npm packages. The backend of 100xprompt is original work by
|
|
6
|
+
100xprompt (the company).
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
better than recording none; it is not a substitute for checking.
|
|
8
|
+
100xprompt's terminal UI started from OpenTUI
|
|
9
|
+
(https://github.com/anomalyco/opentui) and has since been migrated to
|
|
10
|
+
100xprompt's own implementation (@100xprompt/tui), inspired by it.
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
1.
|
|
15
|
-
--------------------------------------------------------------------------------
|
|
16
|
-
|
|
17
|
-
opencode — https://github.com/sst/opencode — MIT
|
|
18
|
-
100xprompt is a derivative work of opencode. Its copyright and permission
|
|
19
|
-
notice are reproduced in full in LICENSE.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
2. TREE-SITTER GRAMMARS (compiled into the binary as build assets)
|
|
13
|
+
1. TREE-SITTER GRAMMARS (compiled into the binary as build assets)
|
|
23
14
|
--------------------------------------------------------------------------------
|
|
24
15
|
|
|
25
16
|
The syntax highlighter embeds compiled tree-sitter grammars and their query
|
|
@@ -34,10 +25,8 @@ The `.scm` query files vendored alongside each grammar originate from those same
|
|
|
34
25
|
projects, except the markdown highlight queries, which are 100xprompt's own —
|
|
35
26
|
see packages/tui/scripts/queries/. The runtime is web-tree-sitter (MIT).
|
|
36
27
|
|
|
37
|
-
Regenerate with: bun run --cwd packages/tui vendor-grammars
|
|
38
|
-
|
|
39
28
|
|
|
40
|
-
|
|
29
|
+
2. TERMINAL COLOUR SCHEMES
|
|
41
30
|
--------------------------------------------------------------------------------
|
|
42
31
|
|
|
43
32
|
The bundled themes are ports of third-party colour schemes. The palettes are the
|
|
@@ -60,7 +49,7 @@ quietly shipped:
|
|
|
60
49
|
name is claimed as a trademark.
|
|
61
50
|
|
|
62
51
|
|
|
63
|
-
|
|
52
|
+
3. RUNTIME DEPENDENCIES
|
|
64
53
|
--------------------------------------------------------------------------------
|
|
65
54
|
|
|
66
55
|
Ordinary npm dependencies (react, react-reconciler, web-tree-sitter and others)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "100xprompt-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.74",
|
|
4
4
|
"description": "Multi-model terminal coding agent. Route work across Claude, GLM, Gemini, DeepSeek and local models from one harness.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "100XPrompt",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@100xprompt/cli-linux-arm64": "0.1.
|
|
30
|
-
"@100xprompt/cli-linux-x64": "0.1.
|
|
31
|
-
"@100xprompt/cli-linux-x64-baseline": "0.1.
|
|
32
|
-
"@100xprompt/cli-linux-arm64-musl": "0.1.
|
|
33
|
-
"@100xprompt/cli-linux-x64-musl": "0.1.
|
|
34
|
-
"@100xprompt/cli-linux-x64-baseline-musl": "0.1.
|
|
35
|
-
"@100xprompt/cli-darwin-arm64": "0.1.
|
|
36
|
-
"@100xprompt/cli-darwin-x64": "0.1.
|
|
37
|
-
"@100xprompt/cli-darwin-x64-baseline": "0.1.
|
|
38
|
-
"@100xprompt/cli-windows-x64": "0.1.
|
|
39
|
-
"@100xprompt/cli-windows-x64-baseline": "0.1.
|
|
29
|
+
"@100xprompt/cli-linux-arm64": "0.1.74",
|
|
30
|
+
"@100xprompt/cli-linux-x64": "0.1.74",
|
|
31
|
+
"@100xprompt/cli-linux-x64-baseline": "0.1.74",
|
|
32
|
+
"@100xprompt/cli-linux-arm64-musl": "0.1.74",
|
|
33
|
+
"@100xprompt/cli-linux-x64-musl": "0.1.74",
|
|
34
|
+
"@100xprompt/cli-linux-x64-baseline-musl": "0.1.74",
|
|
35
|
+
"@100xprompt/cli-darwin-arm64": "0.1.74",
|
|
36
|
+
"@100xprompt/cli-darwin-x64": "0.1.74",
|
|
37
|
+
"@100xprompt/cli-darwin-x64-baseline": "0.1.74",
|
|
38
|
+
"@100xprompt/cli-windows-x64": "0.1.74",
|
|
39
|
+
"@100xprompt/cli-windows-x64-baseline": "0.1.74"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -340,19 +340,41 @@ function printBanner() {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
// The curl installer (repo-root `install` script) now owns codesigning, chmod
|
|
344
|
+
// and binary placement: every version lives in <bin>/versions/<ver>/ behind a
|
|
345
|
+
// symlink it swaps atomically, already signed and chmodded. If this npm
|
|
346
|
+
// postinstall also rewrote the binary the two flows would fight (e.g. npm
|
|
347
|
+
// clobbering the installer's symlink with a copy into the package dir). When a
|
|
348
|
+
// versioned layout is detected next to an installed 100xprompt binary, binary
|
|
349
|
+
// setup becomes a no-op and this script only does config + banner.
|
|
350
|
+
function isVersionedInstall() {
|
|
351
|
+
const home = os.homedir()
|
|
352
|
+
const candidates = [process.env.HUNDREDXPROMPT_INSTALL_DIR, process.env.XDG_BIN_DIR]
|
|
353
|
+
if (process.platform !== "win32") {
|
|
354
|
+
candidates.push(path.join(home, "bin"), path.join(home, ".100xprompt", "bin"))
|
|
355
|
+
}
|
|
356
|
+
return candidates.some(
|
|
357
|
+
(dir) => dir && fs.existsSync(path.join(dir, "versions")) && fs.existsSync(path.join(dir, "current")),
|
|
358
|
+
)
|
|
359
|
+
}
|
|
360
|
+
|
|
343
361
|
async function main() {
|
|
344
362
|
// Binary setup is best-effort: the runtime wrapper (bin/100xprompt.js) resolves
|
|
345
363
|
// and launches the platform binary on its own, so postinstall must NEVER fail
|
|
346
364
|
// the npm install — a non-zero exit is exactly what pushes users to retry with
|
|
347
365
|
// sudo. We only normalize permissions/signing so the binary runs unprivileged.
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
366
|
+
if (isVersionedInstall()) {
|
|
367
|
+
console.log("100xprompt versioned install detected — the installer manages the binary; skipping binary setup")
|
|
368
|
+
} else {
|
|
369
|
+
try {
|
|
370
|
+
const { binaryPath, binaryName } = findBinary()
|
|
371
|
+
ensureExecutable(binaryPath) // fixes "permission denied" → no sudo needed to run
|
|
372
|
+
codesignDarwin(binaryPath) // prevents macOS SIGKILL of the unsigned binary
|
|
373
|
+
linkBinary(binaryPath, binaryName)
|
|
374
|
+
} catch (error) {
|
|
375
|
+
// Don't fail — the wrapper still finds the binary at runtime.
|
|
376
|
+
console.warn(`100xprompt binary setup skipped: ${error.message}`)
|
|
377
|
+
}
|
|
356
378
|
}
|
|
357
379
|
|
|
358
380
|
try {
|