@ricsam/r5dctl 0.0.1 → 0.0.2
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 +54 -28
- package/dist/cjs/cli.cjs +1246 -0
- package/dist/cjs/main.cjs +4 -0
- package/dist/cjs/package.json +5 -0
- package/dist/mjs/cli.mjs +1208 -0
- package/dist/mjs/main.mjs +3 -0
- package/dist/mjs/package.json +5 -0
- package/dist/types/cli.d.ts +47 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +39 -7
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ChatMode, type ModelTier } from "@ricsam/r5d-api";
|
|
2
|
+
export type GlobalOptions = {
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
json: boolean;
|
|
5
|
+
configPath: string;
|
|
6
|
+
token?: string;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
project?: string;
|
|
9
|
+
branch?: string;
|
|
10
|
+
session?: string;
|
|
11
|
+
help: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type BinctlConfig = {
|
|
14
|
+
baseUrl?: string;
|
|
15
|
+
token?: string;
|
|
16
|
+
apiKey?: string;
|
|
17
|
+
};
|
|
18
|
+
type CommandExecutionPlan = {
|
|
19
|
+
kind: "plugin";
|
|
20
|
+
pluginArgs: string[];
|
|
21
|
+
clearAuthOnSuccess?: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "auth-login";
|
|
24
|
+
commandArgs: string[];
|
|
25
|
+
} | {
|
|
26
|
+
kind: "auth-api-key-create";
|
|
27
|
+
commandArgs: string[];
|
|
28
|
+
} | {
|
|
29
|
+
kind: "cli-help";
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
export declare function getCliHelpText(): string;
|
|
33
|
+
export declare function parseGlobalArgs(argv: string[]): {
|
|
34
|
+
options: GlobalOptions;
|
|
35
|
+
rest: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare function parseAnswerFlags(args: string[]): string[];
|
|
38
|
+
export declare function parseEnvFlags(args: string[]): string[];
|
|
39
|
+
export declare function parsePromptArgs(args: string[]): {
|
|
40
|
+
mode: ChatMode;
|
|
41
|
+
model: ModelTier;
|
|
42
|
+
message: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function resolveCommandExecution(options: GlobalOptions, rest: string[]): CommandExecutionPlan;
|
|
45
|
+
export declare function runBinctlCli(argv: string[]): Promise<number>;
|
|
46
|
+
export declare function main(argv?: string[]): Promise<void>;
|
|
47
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5dctl",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/cjs/cli.cjs",
|
|
6
|
+
"module": "./dist/mjs/cli.mjs",
|
|
7
|
+
"types": "./dist/types/cli.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/cli.d.ts",
|
|
11
|
+
"import": "./dist/mjs/cli.mjs",
|
|
12
|
+
"require": "./dist/cjs/cli.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./cli": {
|
|
15
|
+
"types": "./dist/types/cli.d.ts",
|
|
16
|
+
"import": "./dist/mjs/cli.mjs",
|
|
17
|
+
"require": "./dist/cjs/cli.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/ricsam/r5d-dev.git",
|
|
23
|
+
"directory": "binctl-packages/binctl"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"r5dctl": "dist/cjs/main.cjs"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@ricsam/r5d-api": "^0.0.2"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false
|
|
10
42
|
}
|