@carllee1983/dbcli 9.1.1 → 10.0.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/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@carllee1983/dbcli",
6
- version: "9.1.1",
6
+ version: "10.0.0",
7
7
  description: "Database CLI for AI agents",
8
8
  type: "module",
9
9
  publishConfig: {
@@ -44,7 +44,7 @@ var package_default = {
44
44
  "blacklist"
45
45
  ],
46
46
  engines: {
47
- bun: ">=1.3.3"
47
+ bun: ">=1.4.0"
48
48
  },
49
49
  files: [
50
50
  "dist/",
@@ -88,8 +88,6 @@ var package_default = {
88
88
  "agent-core:check": "bun run scripts/check-agent-core-purity.ts",
89
89
  "core-stdout:check": "bun run scripts/check-core-no-stdout.ts",
90
90
  "plan:check": "bun run scripts/check-plan-acceptance.ts",
91
- "forgeflow:check": "bun run scripts/check-forgeflow-adoption.ts && bun run scripts/check-forgeflow-handoff.ts",
92
- "forgeflow:contract": "bun run scripts/check-forgeflow-contract.ts",
93
91
  typecheck: "tsc --noEmit --pretty false",
94
92
  "typecheck:tests": "tsc --noEmit --pretty false -p tsconfig.tests.json",
95
93
  "test:perf": "bun test --timeout 30000 ./tests/perf/*.bench.ts",
@@ -137,7 +135,7 @@ var package_default = {
137
135
  },
138
136
  overrides: {
139
137
  "@humanfs/node": "^0.16.8",
140
- "brace-expansion": "^5.0.9",
138
+ "brace-expansion": "^5.0.12",
141
139
  browserslist: "^4.28.7",
142
140
  postcss: "^8.5.26",
143
141
  "postcss-selector-parser": "^6.1.3"
@@ -157,6 +155,6 @@ if (import.meta.main && !process.argv.slice(2).includes("--agent-output") && isS
157
155
  }
158
156
  var cli_default = program;
159
157
  export {
160
- isStandaloneVersionRequest,
161
- cli_default as default
158
+ cli_default as default,
159
+ isStandaloneVersionRequest
162
160
  };
package/dist/core.d.ts CHANGED
@@ -1827,7 +1827,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1827
1827
  type DbcliConfig$1 = z.infer<typeof DbcliConfigSchema>;
1828
1828
  declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1829
1829
  version: z.ZodLiteral<2>;
1830
- default: z.ZodString;
1830
+ default: z.ZodOptional<z.ZodString>;
1831
1831
  connections: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[
1832
1832
  z.ZodObject<{
1833
1833
  timeout: z.ZodOptional<z.ZodNumber>;
@@ -2898,7 +2898,6 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2898
2898
  };
2899
2899
  };
2900
2900
  version: 2;
2901
- default: string;
2902
2901
  metadata: {
2903
2902
  version: string;
2904
2903
  createdAt?: string | undefined;
@@ -3047,9 +3046,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
3047
3046
  fields?: string[] | undefined;
3048
3047
  }[];
3049
3048
  } | undefined;
3049
+ default?: string | undefined;
3050
3050
  }, {
3051
3051
  version: 2;
3052
- default: string;
3053
3052
  connections: Record<string, unknown>;
3054
3053
  redis?: {
3055
3054
  mask?: {
@@ -3070,6 +3069,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
3070
3069
  max_entries?: number | undefined;
3071
3070
  } | undefined;
3072
3071
  } | undefined;
3072
+ default?: string | undefined;
3073
3073
  metadata?: {
3074
3074
  version?: string | undefined;
3075
3075
  createdAt?: string | undefined;
@@ -3092,7 +3092,6 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
3092
3092
  };
3093
3093
  };
3094
3094
  version: 2;
3095
- default: string;
3096
3095
  metadata: {
3097
3096
  version: string;
3098
3097
  createdAt?: string | undefined;
@@ -3241,9 +3240,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
3241
3240
  fields?: string[] | undefined;
3242
3241
  }[];
3243
3242
  } | undefined;
3243
+ default?: string | undefined;
3244
3244
  }, {
3245
3245
  version: 2;
3246
- default: string;
3247
3246
  connections: Record<string, unknown>;
3248
3247
  redis?: {
3249
3248
  mask?: {
@@ -3264,6 +3263,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
3264
3263
  max_entries?: number | undefined;
3265
3264
  } | undefined;
3266
3265
  } | undefined;
3266
+ default?: string | undefined;
3267
3267
  metadata?: {
3268
3268
  version?: string | undefined;
3269
3269
  createdAt?: string | undefined;
@@ -3630,9 +3630,7 @@ export declare function resolveConnection(config: DbcliConfigV2, name: string |
3630
3630
  * Load env file for a connection if specified
3631
3631
  */
3632
3632
  export declare function loadConnectionEnv(resolved: ResolvedConnection, basePath: string): Promise<void>;
3633
- /**
3634
- * Read and validate a v2 config from disk
3635
- */
3633
+ /** Read and validate a v2 config from disk. */
3636
3634
  export declare function readV2Config(path: string): Promise<DbcliConfigV2>;
3637
3635
  /**
3638
3636
  * Write a v2 config and its integrity records as one recoverable publication.
@@ -3675,7 +3673,7 @@ export interface ConnectionInput {
3675
3673
  user: string;
3676
3674
  database: string;
3677
3675
  }
3678
- /** 刪除連線(immutable)。刪預設則改派為剩餘第一條;刪最後一條則擋下(v2 需至少一條)。 */
3676
+ /** 刪除連線(immutable)。刪預設則清空預設;刪最後一條則擋下(v2 需至少一條)。 */
3679
3677
  export declare function removeConnection(config: DbcliConfigV2, name: string): DbcliConfigV2;
3680
3678
  /** 設定預設連線(immutable)。 */
3681
3679
  export declare function setDefaultConnection(config: DbcliConfigV2, name: string): DbcliConfigV2;