@kyo-so/cli 0.5.0 → 0.6.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 +29 -0
- package/README.ja.md +42 -23
- package/README.md +42 -23
- package/README.zh-CN.md +42 -23
- package/dist/bin/kyoso.js +1565 -204
- 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 +3 -0
- package/dist/config/tomlConfigLoader.d.ts +1 -0
- package/dist/core/constants.d.ts +1 -1
- package/dist/index.js +1449 -121
- 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
|
@@ -120,6 +120,9 @@ export declare const kyosoConfigSchema: z.ZodObject<{
|
|
|
120
120
|
includeFileContents: z.ZodBoolean;
|
|
121
121
|
}, z.core.$strip>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
|
+
export declare const kyosoConfigKnownLeafPaths: string[];
|
|
124
|
+
export declare const kyosoConfigRecordPrefixes: string[];
|
|
125
|
+
export declare const kyosoConfigSecuritySensitivePrefixes: string[];
|
|
123
126
|
export type KyosoConfig = z.infer<typeof kyosoConfigSchema>;
|
|
124
127
|
export type KyosoConfigInput = PartialDeep<KyosoConfig>;
|
|
125
128
|
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.6.0";
|