@tonbo/cli 0.0.1
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 +77 -0
- package/dist/src/api.d.ts +70 -0
- package/dist/src/api.js +179 -0
- package/dist/src/app.d.ts +4 -0
- package/dist/src/app.js +99 -0
- package/dist/src/auth.d.ts +13 -0
- package/dist/src/auth.js +147 -0
- package/dist/src/callback-page.d.ts +23 -0
- package/dist/src/callback-page.js +145 -0
- package/dist/src/commands.d.ts +35 -0
- package/dist/src/commands.js +168 -0
- package/dist/src/config.d.ts +13 -0
- package/dist/src/config.js +46 -0
- package/dist/src/contracts.d.ts +3 -0
- package/dist/src/contracts.js +24 -0
- package/dist/src/credentials.d.ts +17 -0
- package/dist/src/credentials.js +90 -0
- package/dist/src/declaration.d.ts +4 -0
- package/dist/src/declaration.js +32 -0
- package/dist/src/generated/contracts.d.ts +187 -0
- package/dist/src/generated/contracts.js +221 -0
- package/dist/src/http.d.ts +6 -0
- package/dist/src/http.js +19 -0
- package/dist/src/main.d.ts +2 -0
- package/dist/src/main.js +9 -0
- package/dist/src/source.d.ts +8 -0
- package/dist/src/source.js +139 -0
- package/dist/src/ssh-key.d.ts +9 -0
- package/dist/src/ssh-key.js +36 -0
- package/dist/src/ssh.d.ts +3 -0
- package/dist/src/ssh.js +22 -0
- package/dist/src/types.d.ts +85 -0
- package/dist/src/types.js +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export interface TonboDeclaration {
|
|
2
|
+
version: 1;
|
|
3
|
+
execution: {
|
|
4
|
+
mode: "managed";
|
|
5
|
+
runtime: "pi";
|
|
6
|
+
};
|
|
7
|
+
inference: {
|
|
8
|
+
model: string;
|
|
9
|
+
};
|
|
10
|
+
session_capture: {
|
|
11
|
+
adapter: "pi-jsonl-v3";
|
|
12
|
+
};
|
|
13
|
+
service?: {
|
|
14
|
+
command: string[];
|
|
15
|
+
secrets?: string[];
|
|
16
|
+
kubernetes?: {
|
|
17
|
+
profile: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface ManagedRevisionSpec {
|
|
22
|
+
version: 1;
|
|
23
|
+
execution: {
|
|
24
|
+
mode: "managed";
|
|
25
|
+
runtime: "pi";
|
|
26
|
+
};
|
|
27
|
+
source: {
|
|
28
|
+
format: "tar-v1";
|
|
29
|
+
sha256: string;
|
|
30
|
+
size_bytes: number;
|
|
31
|
+
};
|
|
32
|
+
inference: {
|
|
33
|
+
model: string;
|
|
34
|
+
};
|
|
35
|
+
session_capture: {
|
|
36
|
+
adapter: "pi-jsonl-v3";
|
|
37
|
+
};
|
|
38
|
+
service?: {
|
|
39
|
+
command: string[];
|
|
40
|
+
secrets?: string[];
|
|
41
|
+
kubernetes?: {
|
|
42
|
+
profile: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface SourceBundle {
|
|
47
|
+
bytes: Buffer;
|
|
48
|
+
format: "tar-v1";
|
|
49
|
+
root: string;
|
|
50
|
+
sha256: string;
|
|
51
|
+
size_bytes: number;
|
|
52
|
+
}
|
|
53
|
+
export interface ProjectSummary {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
slug: string;
|
|
57
|
+
status: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ProjectBinding {
|
|
60
|
+
projectId: string;
|
|
61
|
+
projectSlug: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ProjectSession {
|
|
64
|
+
id: string;
|
|
65
|
+
created_revision_id: string;
|
|
66
|
+
project_id: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ProjectSessionTurn {
|
|
69
|
+
assistant_text: string;
|
|
70
|
+
session_id: string;
|
|
71
|
+
turn_id: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ProjectSessionTurnEvent {
|
|
74
|
+
sequence: number;
|
|
75
|
+
event_type: "run.started" | "tool.started" | "tool.completed" | "run.completed" | "run.failed";
|
|
76
|
+
payload: Record<string, unknown>;
|
|
77
|
+
created_at: string;
|
|
78
|
+
}
|
|
79
|
+
export interface OAuthTokenSet {
|
|
80
|
+
access_token: string;
|
|
81
|
+
expires_at?: number;
|
|
82
|
+
expires_in?: number;
|
|
83
|
+
refresh_token?: string;
|
|
84
|
+
token_type: string;
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tonbo/cli",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Deploy one persistent Agent per Project from the command line.",
|
|
5
|
+
"homepage": "https://tonbo.dev",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/tonbo-io/cloud/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/tonbo-io/cloud.git",
|
|
12
|
+
"directory": "clients/tonbo-cli"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"bin": {
|
|
16
|
+
"tonbo": "dist/src/main.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/src"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node scripts/generate-contracts.mjs --check && tsc -p tsconfig.json",
|
|
26
|
+
"format:check": "prettier --ignore-path ../../.prettierignore --check \"**/*.{js,mjs,cjs,jsx,ts,tsx}\"",
|
|
27
|
+
"generate:contracts": "node scripts/generate-contracts.mjs",
|
|
28
|
+
"lint": "eslint . --max-warnings=0",
|
|
29
|
+
"test": "pnpm build && node --test dist/test/*.test.js",
|
|
30
|
+
"typecheck": "node scripts/generate-contracts.mjs --check && tsc -p tsconfig.json --noEmit"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"ajv": "8.20.0",
|
|
34
|
+
"commander": "^14.0.3",
|
|
35
|
+
"ignore": "^7.0.5",
|
|
36
|
+
"tar-stream": "^3.1.7"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^20.19.37",
|
|
40
|
+
"@types/tar-stream": "^3.1.4",
|
|
41
|
+
"typescript": "^5.9.3"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22"
|
|
45
|
+
},
|
|
46
|
+
"license": "Apache-2.0"
|
|
47
|
+
}
|