@hy-sde-org/dsh-tool-codebase-memory 0.2.0-rc.2.1 → 0.2.1-alpha.2
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -23
- package/dist/invariant.d.ts +0 -18
- package/dist/invariant.d.ts.map +0 -1
- package/dist/invariant.js +0 -34
- package/dist/invariant.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface Config extends CodebaseMemoryToolConfig {
|
|
|
18
18
|
export { buildCodebaseMemoryPromptSection } from './prompt.ts';
|
|
19
19
|
export { applyCodebaseMemoryTools, CodebaseMemoryCliError, renderPayload } from './codebase-memory.ts';
|
|
20
20
|
export type { CodebaseMemoryToolConfig } from './codebase-memory.ts';
|
|
21
|
-
export { checkCodebaseMemoryCli } from './
|
|
21
|
+
export { checkCodebaseMemoryCli } from './cli-check.ts';
|
|
22
22
|
/** Cordis plugin name for loader diagnostics. */
|
|
23
23
|
export declare const name = "tool-codebase-memory";
|
|
24
24
|
/** Services consumed by this plugin (tools + systemPrompt from the agent bundle). */
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { applyCodebaseMemoryTools } from "./codebase-memory.js";
|
|
|
14
14
|
import { buildCodebaseMemoryPromptSection } from "./prompt.js";
|
|
15
15
|
export { buildCodebaseMemoryPromptSection } from "./prompt.js";
|
|
16
16
|
export { applyCodebaseMemoryTools, CodebaseMemoryCliError, renderPayload } from "./codebase-memory.js";
|
|
17
|
-
export { checkCodebaseMemoryCli } from "./
|
|
17
|
+
export { checkCodebaseMemoryCli } from "./cli-check.js";
|
|
18
18
|
/** Cordis plugin name for loader diagnostics. */
|
|
19
19
|
export const name = 'tool-codebase-memory';
|
|
20
20
|
/** Services consumed by this plugin (tools + systemPrompt from the agent bundle). */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hy-sde-org/dsh-tool-codebase-memory",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.2.
|
|
3
|
+
"description": "14 model-facing codebase-memory tools — search_graph, query_graph, trace_path, snippets, architecture, search_code, detect_changes, ADRs, and more — one-shot queries against the codebase-memory daemon; the local alternative to a stdio MCP client row.",
|
|
4
|
+
"version": "0.2.1-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
"types": "./dist/prompt.d.ts",
|
|
27
27
|
"default": "./dist/prompt.js"
|
|
28
28
|
},
|
|
29
|
-
"./invariant": {
|
|
30
|
-
"types": "./dist/invariant.d.ts",
|
|
31
|
-
"default": "./dist/invariant.js"
|
|
32
|
-
},
|
|
33
29
|
"./cli-check": {
|
|
34
30
|
"types": "./dist/cli-check.d.ts",
|
|
35
31
|
"default": "./dist/cli-check.js"
|
|
@@ -45,13 +41,6 @@
|
|
|
45
41
|
"README.i18n.yaml",
|
|
46
42
|
"LICENSE"
|
|
47
43
|
],
|
|
48
|
-
"scripts": {
|
|
49
|
-
"clean": "rm -rf dist",
|
|
50
|
-
"build": "tsc -p tsconfig.build.json",
|
|
51
|
-
"check": "tsc -p tsconfig.json --noEmit",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"prepack": "pnpm run clean && pnpm run build"
|
|
54
|
-
},
|
|
55
44
|
"engines": {
|
|
56
45
|
"node": ">=22.19.0"
|
|
57
46
|
},
|
|
@@ -63,17 +52,15 @@
|
|
|
63
52
|
},
|
|
64
53
|
"dependencies": {},
|
|
65
54
|
"peerDependencies": {
|
|
66
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-tools": "^0.2.0-rc.2"
|
|
55
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
56
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.1-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-alpha.2"
|
|
70
58
|
},
|
|
71
59
|
"devDependencies": {
|
|
72
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-
|
|
75
|
-
"@deepseek-ai/dsh-
|
|
76
|
-
"@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
|
|
60
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
61
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.1-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-alpha.2",
|
|
77
64
|
"@types/node": "^24.13.3",
|
|
78
65
|
"typescript": "^5.9.3",
|
|
79
66
|
"vitest": "^3.2.7"
|
|
@@ -91,5 +78,11 @@
|
|
|
91
78
|
"homepage": "https://github.com/hy-sde/dsh-tool-codebase-memory#readme",
|
|
92
79
|
"bugs": {
|
|
93
80
|
"url": "https://github.com/hy-sde/dsh-tool-codebase-memory/issues"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"clean": "rm -rf dist",
|
|
84
|
+
"build": "tsc -p tsconfig.build.json",
|
|
85
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
86
|
+
"test": "vitest run"
|
|
94
87
|
}
|
|
95
|
-
}
|
|
88
|
+
}
|
package/dist/invariant.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@hy-sde-org/dsh-tool-codebase-memory`.
|
|
3
|
-
* @module @hy-sde-org/dsh-tool-codebase-memory/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "tool-codebase-memory-invariant";
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
/**
|
|
11
|
-
* Register this package's invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
-
*/
|
|
15
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
-
/** Standalone availability probe re-export (usable outside the registry). */
|
|
17
|
-
export { checkCodebaseMemoryCli } from './cli-check.ts';
|
|
18
|
-
//# sourceMappingURL=invariant.d.ts.map
|
package/dist/invariant.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../src/invariant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAMlD,oCAAoC;AACpC,eAAO,MAAM,IAAI,mCAAmC,CAAA;AACpD,2EAA2E;AAC3E,eAAO,MAAM,MAAM,UAAiB,CAAA;AAgBpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,IAAI,CACU,CAAA;AAGjE,6EAA6E;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/invariant.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@hy-sde-org/dsh-tool-codebase-memory`.
|
|
3
|
-
* @module @hy-sde-org/dsh-tool-codebase-memory/invariant
|
|
4
|
-
*/
|
|
5
|
-
import { checkCodebaseMemoryCli } from "./cli-check.js";
|
|
6
|
-
const PACKAGE_NAME = '@hy-sde-org/dsh-tool-codebase-memory';
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
export const name = 'tool-codebase-memory-invariant';
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
export const inject = ['invariants'];
|
|
11
|
-
/**
|
|
12
|
-
* Install the activation invariant: the `codebase-memory-mcp` CLI must resolve
|
|
13
|
-
* and run, otherwise the tools would error on every call. Config-level
|
|
14
|
-
* `cliPath` overrides are per-call concerns; the companion check uses the PATH
|
|
15
|
-
* default.
|
|
16
|
-
*/
|
|
17
|
-
const install = async (_ctx, fail) => {
|
|
18
|
-
try {
|
|
19
|
-
await checkCodebaseMemoryCli();
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
fail(err.message);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Register this package's invariant companion.
|
|
27
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
28
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
29
|
-
*/
|
|
30
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
31
|
-
/* jscpd:ignore-end */
|
|
32
|
-
/** Standalone availability probe re-export (usable outside the registry). */
|
|
33
|
-
export { checkCodebaseMemoryCli } from "./cli-check.js";
|
|
34
|
-
//# sourceMappingURL=invariant.js.map
|
package/dist/invariant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.js","sourceRoot":"","sources":["../src/invariant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAEvD,MAAM,YAAY,GAAG,sCAAsC,CAAA;AAE3D,oCAAoC;AACpC,MAAM,CAAC,MAAM,IAAI,GAAG,gCAAgC,CAAA;AACpD,2EAA2E;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,YAAY,CAAC,CAAA;AAEpC;;;;;GAKG;AACH,MAAM,OAAO,GAAuB,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IACvD,IAAI,CAAC;QACH,MAAM,sBAAsB,EAAE,CAAA;IAChC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAE,GAAa,CAAC,OAAO,CAAC,CAAA;IAC9B,CAAC;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAY,EAAuB,EAAE,CACzD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAA;AACjE,sBAAsB;AAEtB,6EAA6E;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA"}
|