kitsuden 0.0.0-stage → 0.9.0-beta
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 +57 -2
- package/bin/kitsuden.mjs +21 -0
- package/index.cjs +3 -0
- package/index.d.cts +2 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/package.json +65 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Victor Antinori Broce
|
|
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
CHANGED
|
@@ -1,3 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kitsuden
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Kitsuden in one install: the typed SDK and the `kitsuden` command.
|
|
4
|
+
|
|
5
|
+
Kitsuden is a self-hosted backend for AI agents, on Postgres with row-level
|
|
6
|
+
security and human approval. This package does not contain the server: run that
|
|
7
|
+
from the Docker images (`npm create kitsuden@beta`) or from the repository.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install kitsuden@beta
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## The SDK
|
|
14
|
+
|
|
15
|
+
`kitsuden` re-exports [`@kitsuden/sdk`](https://www.npmjs.com/package/@kitsuden/sdk):
|
|
16
|
+
the same module, not a copy, so both names can be mixed in one project.
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { createKitsuden } from "kitsuden";
|
|
20
|
+
|
|
21
|
+
const kitsuden = createKitsuden({
|
|
22
|
+
url: process.env.KITSUDEN_API_URL!,
|
|
23
|
+
token: process.env.KITSUDEN_API_TOKEN!,
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The SDK's subpaths (`/realtime`, `/rpc`, `/toon-protocol`, `/openapi.json`) are
|
|
28
|
+
imported from `@kitsuden/sdk` directly.
|
|
29
|
+
|
|
30
|
+
## The command
|
|
31
|
+
|
|
32
|
+
`npx kitsuden …` runs [`@kitsuden/cli`](https://www.npmjs.com/package/@kitsuden/cli)
|
|
33
|
+
with the same arguments:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx kitsuden --help
|
|
37
|
+
npx kitsuden kon list --available
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Install either `kitsuden` or `@kitsuden/cli` globally, not both: they declare the
|
|
41
|
+
same `kitsuden` command.
|
|
42
|
+
|
|
43
|
+
## Related packages
|
|
44
|
+
|
|
45
|
+
| Package | What it is |
|
|
46
|
+
| ---------------------- | --------------------------------------------------- |
|
|
47
|
+
| `create-kitsuden` | `npm create kitsuden`: a new project |
|
|
48
|
+
| `@kitsuden/sdk` | the typed client |
|
|
49
|
+
| `@kitsuden/cli` | the `kitsuden` command |
|
|
50
|
+
| `@kitsuden/mcp-server` | the MCP server for agents (runs on Bun) |
|
|
51
|
+
| `@kitsuden/shared` | types and Zod schemas shared by the API and clients |
|
|
52
|
+
| `@kitsuden/codegen` | frontend code generation for collections |
|
|
53
|
+
|
|
54
|
+
Server images: `ghcr.io/kitsuden/kitsuden/api` and `ghcr.io/kitsuden/kitsuden/admin`.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|
package/bin/kitsuden.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* `npx kitsuden …` runs the Kitsuden CLI (@kitsuden/cli), with the same arguments.
|
|
4
|
+
*
|
|
5
|
+
* The CLI's entry point reads `process.argv` when it is imported, so importing it
|
|
6
|
+
* IS running it: no child process, the exit code and the signals stay its own.
|
|
7
|
+
*/
|
|
8
|
+
import { readFileSync } from "node:fs";
|
|
9
|
+
import { createRequire } from "node:module";
|
|
10
|
+
import { dirname, join } from "node:path";
|
|
11
|
+
import { pathToFileURL } from "node:url";
|
|
12
|
+
|
|
13
|
+
const require = createRequire(import.meta.url);
|
|
14
|
+
const manifestPath = require.resolve("@kitsuden/cli/package.json");
|
|
15
|
+
const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
16
|
+
const bin = typeof manifest.bin === "string" ? manifest.bin : manifest.bin?.kitsuden;
|
|
17
|
+
if (!bin) {
|
|
18
|
+
console.error("kitsuden: @kitsuden/cli declares no `kitsuden` bin; reinstall the package");
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
await import(pathToFileURL(join(dirname(manifestPath), bin)).href);
|
package/index.cjs
ADDED
package/index.d.cts
ADDED
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitsuden",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.9.0-beta",
|
|
4
|
+
"description": "Kitsuden in one install: the typed SDK (@kitsuden/sdk) and the `kitsuden` command (@kitsuden/cli). The server runs from the Docker images or the repository.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Victor Antinori Broce (https://github.com/vigogami)",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Kitsuden/kitsuden.git",
|
|
10
|
+
"directory": "packages/kitsuden"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/Kitsuden/kitsuden/tree/main/packages/kitsuden#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Kitsuden/kitsuden/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"kitsuden",
|
|
18
|
+
"backend",
|
|
19
|
+
"baas",
|
|
20
|
+
"sdk",
|
|
21
|
+
"cli",
|
|
22
|
+
"mcp",
|
|
23
|
+
"ai-agents",
|
|
24
|
+
"postgres",
|
|
25
|
+
"rls"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"main": "./index.cjs",
|
|
29
|
+
"module": "./index.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"default": "./index.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./index.d.cts",
|
|
39
|
+
"default": "./index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"bin": {
|
|
45
|
+
"kitsuden": "bin/kitsuden.mjs"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"bin",
|
|
49
|
+
"index.js",
|
|
50
|
+
"index.cjs",
|
|
51
|
+
"index.d.ts",
|
|
52
|
+
"index.d.cts",
|
|
53
|
+
"README.md"
|
|
54
|
+
],
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@kitsuden/cli": "^0.9.0-beta",
|
|
57
|
+
"@kitsuden/sdk": "^0.9.0-beta"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=22.12.0"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"test": "node --test \"tests/*.test.mjs\""
|
|
67
|
+
}
|
|
6
68
|
}
|