@aliyunrds/ctxdb 0.0.8 → 0.0.9
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/{chunk-WBFP2KGQ.js → chunk-PZJZ5O62.js} +1 -1
- package/dist/{chunk-6PIRPPWU.js → chunk-RHWGDY6S.js} +2 -2
- package/dist/{chunk-R6TLOWVZ.js → chunk-TOXXGL5L.js} +1 -0
- package/dist/cli/main.js +7 -4
- package/dist/hooks/pre-tool-use.js +3 -1
- package/dist/hooks/session-start.js +6 -4
- package/dist/hooks/stop.js +5 -3
- package/dist/hooks/user-prompt-submit.js +6 -4
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
isConnectionError,
|
|
7
7
|
resetCircuit,
|
|
8
8
|
tripCircuit
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PZJZ5O62.js";
|
|
10
10
|
import {
|
|
11
11
|
CtxdbError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TOXXGL5L.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/recall-orchestrator.ts
|
|
15
15
|
import {
|
package/dist/cli/main.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
removeAgent,
|
|
32
32
|
save,
|
|
33
33
|
writeInstalledPkgVersion
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-TOXXGL5L.js";
|
|
35
35
|
|
|
36
36
|
// src/cli/util.ts
|
|
37
37
|
var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -1503,7 +1503,8 @@ function checkLatestVersion(currentVersion) {
|
|
|
1503
1503
|
const result = spawnSync(npmCommand(), ["view", PACKAGE_NAME, "version"], {
|
|
1504
1504
|
encoding: "utf-8",
|
|
1505
1505
|
timeout: NPM_VIEW_TIMEOUT_MS,
|
|
1506
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
1506
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
1507
|
+
shell: process.platform === "win32"
|
|
1507
1508
|
});
|
|
1508
1509
|
if (result.status !== 0 || !result.stdout?.trim()) {
|
|
1509
1510
|
return {
|
|
@@ -1560,7 +1561,8 @@ function runSelfUpdate(currentVersion, passthroughArgs = []) {
|
|
|
1560
1561
|
`);
|
|
1561
1562
|
const install = spawnSync(npmCommand(), ["install", "-g", `${PACKAGE_NAME}@${check.latest}`], {
|
|
1562
1563
|
stdio: "inherit",
|
|
1563
|
-
encoding: "utf-8"
|
|
1564
|
+
encoding: "utf-8",
|
|
1565
|
+
shell: process.platform === "win32"
|
|
1564
1566
|
});
|
|
1565
1567
|
if (install.status !== 0) {
|
|
1566
1568
|
return {
|
|
@@ -1575,7 +1577,8 @@ function runSelfUpdate(currentVersion, passthroughArgs = []) {
|
|
|
1575
1577
|
const upgradeArgs = ["upgrade", ...passthroughArgs];
|
|
1576
1578
|
const refresh = spawnSync(ctxdbCommand(), upgradeArgs, {
|
|
1577
1579
|
stdio: "inherit",
|
|
1578
|
-
encoding: "utf-8"
|
|
1580
|
+
encoding: "utf-8",
|
|
1581
|
+
shell: process.platform === "win32"
|
|
1579
1582
|
});
|
|
1580
1583
|
return {
|
|
1581
1584
|
ok: refresh.status === 0,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
fetchKbCatalogBlock,
|
|
4
4
|
recallTurn
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RHWGDY6S.js";
|
|
6
6
|
import "../chunk-6S5RJYBC.js";
|
|
7
7
|
import {
|
|
8
8
|
isCircuitOpen
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-PZJZ5O62.js";
|
|
10
10
|
import {
|
|
11
11
|
HttpClient,
|
|
12
12
|
agentFromArgvWithFallback,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isComplete,
|
|
15
15
|
load,
|
|
16
16
|
setDebug
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-TOXXGL5L.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/session-start.ts
|
|
20
20
|
import { pathToFileURL } from "url";
|
|
@@ -170,7 +170,9 @@ async function main() {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
|
173
|
-
main().then((code) =>
|
|
173
|
+
main().then((code) => {
|
|
174
|
+
process.exitCode = code;
|
|
175
|
+
});
|
|
174
176
|
}
|
|
175
177
|
export {
|
|
176
178
|
HOOK_TIMEOUT_MS,
|
package/dist/hooks/stop.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isConnectionError,
|
|
5
5
|
resetCircuit,
|
|
6
6
|
tripCircuit
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PZJZ5O62.js";
|
|
8
8
|
import {
|
|
9
9
|
CtxdbError,
|
|
10
10
|
HttpClient,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isDebug,
|
|
14
14
|
load,
|
|
15
15
|
setDebug
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-TOXXGL5L.js";
|
|
17
17
|
|
|
18
18
|
// src/lib/capture-orchestrator.ts
|
|
19
19
|
import {
|
|
@@ -543,4 +543,6 @@ async function main() {
|
|
|
543
543
|
return 0;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
main().then((code) =>
|
|
546
|
+
main().then((code) => {
|
|
547
|
+
process.exitCode = code;
|
|
548
|
+
});
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
fetchKbCatalogBlock,
|
|
4
4
|
recallTurn
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RHWGDY6S.js";
|
|
6
6
|
import "../chunk-6S5RJYBC.js";
|
|
7
7
|
import {
|
|
8
8
|
isCircuitOpen
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-PZJZ5O62.js";
|
|
10
10
|
import {
|
|
11
11
|
HttpClient,
|
|
12
12
|
agentFromArgvWithFallback,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isComplete,
|
|
15
15
|
load,
|
|
16
16
|
setDebug
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-TOXXGL5L.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/user-prompt-submit.ts
|
|
20
20
|
import { pathToFileURL } from "url";
|
|
@@ -97,7 +97,9 @@ async function main() {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
|
100
|
-
main().then((code) =>
|
|
100
|
+
main().then((code) => {
|
|
101
|
+
process.exitCode = code;
|
|
102
|
+
});
|
|
101
103
|
}
|
|
102
104
|
export {
|
|
103
105
|
composeUserPromptSubmit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aliyunrds/ctxdb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified access layer for RDS ContextDatabase: `ctxdb` CLI (memory + KB ops), one-shot `setup --agent <qoder|codex|claude>` installer, per-agent config, hooks, and SKILL.md.",
|
|
6
6
|
"license": "Apache-2.0",
|