xinshu-core 1.0.56
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.md +23 -0
- package/README.md +60 -0
- package/cli.js +10 -0
- package/cli.mjs +2 -0
- package/package.json +35 -0
- package/sdk-tools.d.ts +42 -0
- package/sdk.d.ts +33 -0
- package/sdk.mjs +18 -0
- package/vendor/ripgrep/COPYING +3 -0
- package/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/vendor/ripgrep/arm64-darwin/ripgrep.node +0 -0
- package/vendor/ripgrep/arm64-linux/rg +0 -0
- package/vendor/ripgrep/arm64-linux/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-darwin/rg +0 -0
- package/vendor/ripgrep/x64-darwin/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-linux/rg +0 -0
- package/vendor/ripgrep/x64-linux/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/vendor/ripgrep/x64-win32/ripgrep.node +0 -0
- package/yoga.wasm +0 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
This software is licensed under the MIT License.
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2025 OpenAGI Team
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# OpenAGI (@anthropic-ai/claude-code style)
|
|
2
|
+
|
|
3
|
+
This is a self-contained distribution of OpenAGI, packaged in the style of @anthropic-ai/claude-code.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
This distribution follows the same structure as @anthropic-ai/claude-code:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
openagi-anthropic-style/
|
|
11
|
+
├── cli.js # Main CLI executable (self-contained bundle)
|
|
12
|
+
├── cli.mjs # ES module version
|
|
13
|
+
├── package.json # Package configuration
|
|
14
|
+
├── sdk.d.ts # TypeScript definitions for SDK
|
|
15
|
+
├── sdk-tools.d.ts # TypeScript definitions for tools
|
|
16
|
+
├── sdk.mjs # SDK ES module
|
|
17
|
+
├── LICENSE.md # License information
|
|
18
|
+
├── README.md # This file
|
|
19
|
+
├── node_modules/ # Optional dependencies structure
|
|
20
|
+
│ └── @img/ # Sharp platform-specific binaries
|
|
21
|
+
└── vendor/ # Binary tools and utilities
|
|
22
|
+
└── ripgrep # Ripgrep binary
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Make executable (if needed)
|
|
29
|
+
chmod +x cli.js
|
|
30
|
+
|
|
31
|
+
# Run OpenAGI directly
|
|
32
|
+
./cli.js --help
|
|
33
|
+
|
|
34
|
+
# Or via node
|
|
35
|
+
node cli.js --help
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
1. Copy this entire directory to your desired location
|
|
41
|
+
2. Add the directory to your PATH, or
|
|
42
|
+
3. Create a symlink: `ln -s /path/to/dist/cli.js /usr/local/bin/openagi`
|
|
43
|
+
|
|
44
|
+
## Features
|
|
45
|
+
|
|
46
|
+
- **@anthropic-ai/claude-code architecture**: Same structure and conventions
|
|
47
|
+
- **Self-contained**: All npm dependencies bundled into cli.js
|
|
48
|
+
- **Optional dependencies**: Platform-specific binaries in node_modules/@img/
|
|
49
|
+
- **SDK included**: TypeScript definitions and ES module SDK
|
|
50
|
+
- **Vendor tools**: Binary utilities in vendor/ directory
|
|
51
|
+
|
|
52
|
+
## Dependencies
|
|
53
|
+
|
|
54
|
+
This distribution is completely self-contained:
|
|
55
|
+
- **ALL** application dependencies are bundled into `cli.js`
|
|
56
|
+
- Only Node.js built-in modules are external
|
|
57
|
+
- Platform-specific optional dependencies for image processing are in node_modules/
|
|
58
|
+
- No additional `npm install` required!
|
|
59
|
+
|
|
60
|
+
Everything needed to run OpenAGI is included with just Node.js 18+.
|