@kyo-so/cli 0.5.0 → 0.7.0
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/CHANGELOG.md +48 -0
- package/README.ja.md +62 -29
- package/README.md +62 -29
- package/README.zh-CN.md +62 -29
- package/dist/bin/kyoso.js +1594 -208
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/config/loadConfig.d.ts +8 -0
- package/dist/config/projectScope.d.ts +15 -0
- package/dist/config/schema.d.ts +5 -0
- package/dist/config/tomlConfigLoader.d.ts +1 -0
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/types.d.ts +1 -0
- package/dist/index.js +1478 -125
- package/examples/claude-only.toml +2 -0
- package/examples/codex-only.toml +2 -0
- package/examples/kyoso.toml +11 -0
- package/package.json +2 -1
- package/examples/claude-only.config.ts +0 -9
- package/examples/codex-only.config.ts +0 -9
- package/examples/kyoso.config.ts +0 -22
package/dist/cli/doctor.d.ts
CHANGED
|
@@ -5,18 +5,26 @@ export type LoadConfigOptions = {
|
|
|
5
5
|
configPath?: string;
|
|
6
6
|
ignoreConfig?: boolean;
|
|
7
7
|
trustConfig?: boolean;
|
|
8
|
+
allowUnknownConfig?: boolean;
|
|
8
9
|
promptForTrust?: boolean;
|
|
9
10
|
trustStorePath?: string;
|
|
11
|
+
env?: NodeJS.ProcessEnv;
|
|
10
12
|
trustPrompt?: (config: {
|
|
11
13
|
configPath: string;
|
|
12
14
|
configHash: string;
|
|
13
15
|
}) => Promise<boolean>;
|
|
14
16
|
};
|
|
17
|
+
export type LoadedConfigSource = {
|
|
18
|
+
path: string;
|
|
19
|
+
layer: "global_toml" | "project_toml" | "project_ts";
|
|
20
|
+
};
|
|
15
21
|
export type LoadedConfig = {
|
|
16
22
|
config: KyosoConfig;
|
|
17
23
|
configPath?: string;
|
|
18
24
|
configHash?: string;
|
|
19
25
|
configTrustStatus: ConfigTrustStatus;
|
|
26
|
+
sources: LoadedConfigSource[];
|
|
20
27
|
warnings: string[];
|
|
21
28
|
};
|
|
22
29
|
export declare function loadConfig(options?: LoadConfigOptions): Promise<LoadedConfig>;
|
|
30
|
+
export declare function resolveGlobalTomlConfigPath(env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ProjectScopeOptions = {
|
|
2
|
+
projectPath: string;
|
|
3
|
+
globalConfigPath: string;
|
|
4
|
+
};
|
|
5
|
+
type Violation = {
|
|
6
|
+
path: string;
|
|
7
|
+
reason?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function mergeProjectTomlConfig(baseConfig: unknown, projectConfig: unknown, options: ProjectScopeOptions): unknown;
|
|
10
|
+
export declare function collectProjectScopeViolations(config: unknown): Violation[];
|
|
11
|
+
export declare function flattenLeaves(value: unknown, path?: string[]): Array<{
|
|
12
|
+
path: string[];
|
|
13
|
+
value: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const kyosoConfigSchema: z.ZodObject<{
|
|
|
20
20
|
command: z.ZodString;
|
|
21
21
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
22
|
model: z.ZodOptional<z.ZodString>;
|
|
23
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
23
24
|
role: z.ZodEnum<{
|
|
24
25
|
implementation_reviewer: "implementation_reviewer";
|
|
25
26
|
architecture_security_reviewer: "architecture_security_reviewer";
|
|
@@ -41,6 +42,7 @@ export declare const kyosoConfigSchema: z.ZodObject<{
|
|
|
41
42
|
command: z.ZodString;
|
|
42
43
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
43
44
|
model: z.ZodOptional<z.ZodString>;
|
|
45
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
44
46
|
role: z.ZodEnum<{
|
|
45
47
|
implementation_reviewer: "implementation_reviewer";
|
|
46
48
|
architecture_security_reviewer: "architecture_security_reviewer";
|
|
@@ -120,6 +122,9 @@ export declare const kyosoConfigSchema: z.ZodObject<{
|
|
|
120
122
|
includeFileContents: z.ZodBoolean;
|
|
121
123
|
}, z.core.$strip>;
|
|
122
124
|
}, z.core.$strip>;
|
|
125
|
+
export declare const kyosoConfigKnownLeafPaths: string[];
|
|
126
|
+
export declare const kyosoConfigRecordPrefixes: string[];
|
|
127
|
+
export declare const kyosoConfigSecuritySensitivePrefixes: string[];
|
|
123
128
|
export type KyosoConfig = z.infer<typeof kyosoConfigSchema>;
|
|
124
129
|
export type KyosoConfigInput = PartialDeep<KyosoConfig>;
|
|
125
130
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadTomlConfigFile(configPath: string): Promise<unknown>;
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const DEFAULT_MAX_DIFF_BYTES = 300000;
|
|
|
4
4
|
export declare const RAW_OUTPUT_MAX_CHARS = 16384;
|
|
5
5
|
export declare const TRACE_DIR = ".kyoso/traces";
|
|
6
6
|
export declare const KYOSO_CHILD_AGENT = "KYOSO_CHILD_AGENT";
|
|
7
|
-
export declare const KYOSO_VERSION = "0.
|
|
7
|
+
export declare const KYOSO_VERSION = "0.7.0";
|