buliangrenai 1.3.9
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 +21 -0
- package/README.md +22 -0
- package/bin/cli.js +20 -0
- package/package.json +30 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 buliangrenai.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# buliangrenai
|
|
2
|
+
|
|
3
|
+
这是 `buliangrenai.com` 的兼容入口包,用于支持更短命令:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx buliangrenai
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
实际功能由主包 `buliangrenai.com` 提供,两个命令等价:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx buliangrenai
|
|
13
|
+
npx buliangrenai.com
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
推荐稳定写法:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx --yes buliangrenai@latest
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
需要 Node.js >= 18。
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { main } from 'buliangrenai.com/src/index.js'
|
|
4
|
+
|
|
5
|
+
main(process.argv.slice(2)).catch((error) => {
|
|
6
|
+
const message = error && error.message ? error.message : String(error)
|
|
7
|
+
if (error?.name === 'BackNavigationError' || message === '已返回上一级') {
|
|
8
|
+
console.error('\n已取消。')
|
|
9
|
+
process.exit(0)
|
|
10
|
+
}
|
|
11
|
+
if (message.includes('User force closed the prompt')) {
|
|
12
|
+
console.error('\n已取消。')
|
|
13
|
+
process.exit(130)
|
|
14
|
+
}
|
|
15
|
+
console.error(`\n执行失败:${message}`)
|
|
16
|
+
if (process.env.DEBUG || process.env.BULIANGRENAI_DEBUG) {
|
|
17
|
+
console.error(error)
|
|
18
|
+
}
|
|
19
|
+
process.exit(1)
|
|
20
|
+
})
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "buliangrenai",
|
|
3
|
+
"version": "1.3.9",
|
|
4
|
+
"description": "Compatibility alias for npx buliangrenai; delegates to buliangrenai.com CLI.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"buliangrenai": "bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"codex",
|
|
16
|
+
"claude",
|
|
17
|
+
"newapi",
|
|
18
|
+
"cli",
|
|
19
|
+
"setup",
|
|
20
|
+
"buliangrenai"
|
|
21
|
+
],
|
|
22
|
+
"author": "buliangrenai.com",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"buliangrenai.com": "^1.3.9"
|
|
29
|
+
}
|
|
30
|
+
}
|