@yoooclaw/cli 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/dist/bin.cjs +4378 -65
- package/dist/bin.cjs.map +52 -7
- package/dist/command-tree.d.ts +13 -3
- package/dist/context.d.ts +0 -1
- package/dist/errors.d.ts +14 -1
- package/dist/index.cjs +4378 -65
- package/dist/index.cjs.map +52 -7
- package/dist/index.d.ts +0 -1
- package/dist/output/format.d.ts +0 -1
- package/dist/paths.d.ts +6 -1
- package/dist/program.d.ts +4 -3
- package/dist/version.d.ts +0 -1
- package/package.json +3 -4
- package/skills/yoooclaw-lightrule-create/SKILL.md +62 -0
- package/skills/yoooclaw-notification-query/SKILL.md +70 -0
- package/skills/yoooclaw-tunnel-debug/SKILL.md +52 -0
- package/dist/bin.d.ts +0 -2
- package/dist/bin.d.ts.map +0 -1
- package/dist/command-tree.d.ts.map +0 -1
- package/dist/context.d.ts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/output/format.d.ts.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/program.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
package/dist/command-tree.d.ts
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 命令树声明 —— Service-oriented,对齐 lark-cli 形态与本仓 PRD「命令树总览」。
|
|
3
3
|
*
|
|
4
|
-
* 这是命令树的**单一事实来源**:program.ts 据此构建 commander
|
|
5
|
-
*
|
|
4
|
+
* 这是命令树的**单一事实来源**:program.ts 据此构建 commander 程序(结构 + options),
|
|
5
|
+
* 实现体由 commands/registry.ts 按 path 提供;未注册的 path 回落 notImplemented 占位。
|
|
6
6
|
*
|
|
7
7
|
* daemon 依赖标记(仅文档用途,体现在 summary 里):
|
|
8
8
|
* 🟢 不需要 daemon 🟡 需要 daemon 在跑 🔵 进程类(管理 daemon 自身)
|
|
9
9
|
*/
|
|
10
|
+
export interface OptionSpec {
|
|
11
|
+
/** commander flags,如 `--from <iso8601>`、`--follow` */
|
|
12
|
+
flags: string;
|
|
13
|
+
summary: string;
|
|
14
|
+
/** 默认值(仅对带值的 option 有意义) */
|
|
15
|
+
default?: string;
|
|
16
|
+
}
|
|
10
17
|
export interface SubcommandSpec {
|
|
11
18
|
/** 子命令名 + 位置参数,如 `show <id>`、`api <method> <path>` */
|
|
12
19
|
name: string;
|
|
13
20
|
summary: string;
|
|
21
|
+
options?: OptionSpec[];
|
|
14
22
|
}
|
|
15
23
|
export interface ShortcutSpec {
|
|
16
24
|
/** 含 `+` 前缀的快捷命令名,如 `+today` */
|
|
17
25
|
name: string;
|
|
18
26
|
summary: string;
|
|
27
|
+
options?: OptionSpec[];
|
|
19
28
|
}
|
|
20
29
|
export interface ServiceSpec {
|
|
21
30
|
name: string;
|
|
@@ -24,7 +33,8 @@ export interface ServiceSpec {
|
|
|
24
33
|
subcommands?: SubcommandSpec[];
|
|
25
34
|
/** leaf 命令的位置参数,如 `[keyword]`、`<method> <path>`。 */
|
|
26
35
|
args?: string;
|
|
36
|
+
/** leaf 命令的 options。 */
|
|
37
|
+
options?: OptionSpec[];
|
|
27
38
|
shortcuts?: ShortcutSpec[];
|
|
28
39
|
}
|
|
29
40
|
export declare const COMMAND_TREE: ServiceSpec[];
|
|
30
|
-
//# sourceMappingURL=command-tree.d.ts.map
|
package/dist/context.d.ts
CHANGED
package/dist/errors.d.ts
CHANGED
|
@@ -23,6 +23,20 @@ export declare const ErrorCode: {
|
|
|
23
23
|
readonly IMAGE_NOT_READY: "YOOOCLAW_IMAGE_NOT_READY";
|
|
24
24
|
/** 资源未找到 */
|
|
25
25
|
readonly NOT_FOUND: "YOOOCLAW_NOT_FOUND";
|
|
26
|
+
/** 资源已存在(如 profile 重名) */
|
|
27
|
+
readonly ALREADY_EXISTS: "YOOOCLAW_ALREADY_EXISTS";
|
|
28
|
+
/** 存储目录不可用 */
|
|
29
|
+
readonly STORAGE_UNAVAILABLE: "YOOOCLAW_STORAGE_UNAVAILABLE";
|
|
30
|
+
/** 凭据缺失 */
|
|
31
|
+
readonly CREDENTIAL_MISSING: "YOOOCLAW_CREDENTIAL_MISSING";
|
|
32
|
+
/** OS keychain 不可用 */
|
|
33
|
+
readonly KEYCHAIN_UNAVAILABLE: "YOOOCLAW_KEYCHAIN_UNAVAILABLE";
|
|
34
|
+
/** 网络 / 出站调用失败 */
|
|
35
|
+
readonly NETWORK_ERROR: "YOOOCLAW_NETWORK_ERROR";
|
|
36
|
+
/** 操作被用户取消或需要确认 */
|
|
37
|
+
readonly CONFIRMATION_REQUIRED: "YOOOCLAW_CONFIRMATION_REQUIRED";
|
|
38
|
+
/** 需要 TTY 交互但当前非交互环境 */
|
|
39
|
+
readonly NOT_INTERACTIVE: "YOOOCLAW_NOT_INTERACTIVE";
|
|
26
40
|
};
|
|
27
41
|
export type ErrorCodeValue = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
28
42
|
export interface YoooclawErrorDetails {
|
|
@@ -45,4 +59,3 @@ export declare class YoooclawError extends Error {
|
|
|
45
59
|
} & YoooclawErrorDetails;
|
|
46
60
|
}
|
|
47
61
|
export declare function notImplemented(command: string): YoooclawError;
|
|
48
|
-
//# sourceMappingURL=errors.d.ts.map
|