@carllee1983/dbcli 1.43.0 → 1.44.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 +6 -0
- package/dist/agent-core.d.ts +5 -1
- package/dist/agent-core.mjs +2 -1
- package/dist/cli.mjs +11273 -569
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to dbcli are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.44.0] - 2026-08-02 - agent-core 補上錯誤型別與 env reference 型別
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`./agent-core` 匯出 `ConfigError` 與 `EnvReference`。** 下游工具原本無法用 `instanceof` 判別 env reference 解析失敗,只能比對錯誤訊息字串;也無法引用 `{ $env: string }` 的型別名稱,只能各自重複定義一個結構相同的介面。兩者都是既有模組早已匯出、只是沒有出現在 `public.ts` 的疏漏。runtime interface 因此從五項變六項,型別從三項變四項,皆為加法變更。
|
|
13
|
+
|
|
8
14
|
## [1.43.0] - 2026-08-02 - Agent Core、查詢完整性與跨平台修復
|
|
9
15
|
|
|
10
16
|
### Added
|
package/dist/agent-core.d.ts
CHANGED
|
@@ -23,10 +23,14 @@ export interface ConnectionSelectorInputs {
|
|
|
23
23
|
export declare function resolveConnectionSelector(inputs: ConnectionSelectorInputs): string | undefined;
|
|
24
24
|
/** Parse a comma-separated selector into ordered, unique names. */
|
|
25
25
|
export declare function parseConnectionNames(selector: string): string[];
|
|
26
|
-
interface EnvReference {
|
|
26
|
+
export interface EnvReference {
|
|
27
27
|
$env: string;
|
|
28
28
|
}
|
|
29
29
|
/** Resolve a literal or environment reference with a field-specific error. */
|
|
30
30
|
export declare function resolveEnvRef(value: string | EnvReference, fieldName: string, env?: Record<string, string | undefined>): string;
|
|
31
|
+
/** Configuration error shared by agent-facing command-line tools. */
|
|
32
|
+
export declare class ConfigError extends Error {
|
|
33
|
+
constructor(message: string);
|
|
34
|
+
}
|
|
31
35
|
|
|
32
36
|
export {};
|