@dtoolkit/dcontext 0.1.3 → 0.1.4
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.js +8 -11
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -381,16 +381,13 @@ async function runHook(event, explicitTarget) {
|
|
|
381
381
|
process.stdout.write("{}");
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function formatOutput(
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
return JSON.stringify({ additionalContext: context });
|
|
384
|
+
function formatOutput(_target, event, context) {
|
|
385
|
+
return JSON.stringify({
|
|
386
|
+
hookSpecificOutput: {
|
|
387
|
+
hookEventName: event,
|
|
388
|
+
additionalContext: context
|
|
389
|
+
}
|
|
390
|
+
});
|
|
394
391
|
}
|
|
395
392
|
async function handleSessionStart(target, cwd, config) {
|
|
396
393
|
const projectEntity = config.projects[cwd];
|
|
@@ -852,7 +849,7 @@ var description = `${pc6.green(banner)}
|
|
|
852
849
|
|
|
853
850
|
${pc6.green("dbrain hooks for AI coding CLIs")}
|
|
854
851
|
${pc6.dim("Part of the dtoolkit suite")}`;
|
|
855
|
-
program.name("dcontext").description(description).version("0.1.
|
|
852
|
+
program.name("dcontext").description(description).version("0.1.4");
|
|
856
853
|
var guarded = (cmd) => {
|
|
857
854
|
cmd.hook("preAction", async () => {
|
|
858
855
|
await requireInit();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtoolkit/dcontext",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "dbrain hooks for AI coding CLIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@clack/prompts": "^1.3.0",
|
|
41
41
|
"commander": "^13.0.0",
|
|
42
42
|
"picocolors": "^1.1.0",
|
|
43
|
-
"@dtoolkit/adapter-codex": "1.3.2",
|
|
44
|
-
"@dtoolkit/adapter-claude": "1.3.2",
|
|
45
43
|
"@dtoolkit/adapter-gemini": "1.3.2",
|
|
46
|
-
"@dtoolkit/
|
|
44
|
+
"@dtoolkit/adapter-claude": "1.3.2",
|
|
47
45
|
"@dtoolkit/core": "0.5.0",
|
|
48
|
-
"@dtoolkit/adapter-opencode": "1.3.2"
|
|
46
|
+
"@dtoolkit/adapter-opencode": "1.3.2",
|
|
47
|
+
"@dtoolkit/adapter-codex": "1.3.2",
|
|
48
|
+
"@dtoolkit/sdk": "0.4.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.0.0",
|