doer-agent 0.9.4 → 0.9.5
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.
|
@@ -115,13 +115,14 @@ function configFingerprint(tags) {
|
|
|
115
115
|
color: tag.color,
|
|
116
116
|
})))).digest("hex");
|
|
117
117
|
}
|
|
118
|
-
function publicConfig(config) {
|
|
118
|
+
function publicConfig(config, workspaceRoot) {
|
|
119
119
|
return {
|
|
120
120
|
version: config.version,
|
|
121
121
|
tags: config.tags,
|
|
122
122
|
updatedAt: config.updatedAt,
|
|
123
123
|
source: config.source,
|
|
124
124
|
fingerprint: config.fingerprint,
|
|
125
|
+
workspaceRoot: path.resolve(workspaceRoot),
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
async function readConfig(workspaceRoot) {
|
|
@@ -339,7 +340,7 @@ async function classifyThreads(args) {
|
|
|
339
340
|
return {
|
|
340
341
|
classifications: [...classifications.values()],
|
|
341
342
|
classificationError,
|
|
342
|
-
config: publicConfig(config),
|
|
343
|
+
config: publicConfig(config, args.workspaceRoot),
|
|
343
344
|
};
|
|
344
345
|
}
|
|
345
346
|
async function suggestConfig(args) {
|
|
@@ -374,10 +375,10 @@ async function handleThreadTagsRpcMessage(args) {
|
|
|
374
375
|
const action = stringValue(request.action);
|
|
375
376
|
let result;
|
|
376
377
|
if (action === "get-config") {
|
|
377
|
-
result = { config: publicConfig(await readConfig(args.workspaceRoot)) };
|
|
378
|
+
result = { config: publicConfig(await readConfig(args.workspaceRoot), args.workspaceRoot) };
|
|
378
379
|
}
|
|
379
380
|
else if (action === "save-config") {
|
|
380
|
-
result = { config: publicConfig(await writeConfig(args.workspaceRoot, request.tags)) };
|
|
381
|
+
result = { config: publicConfig(await writeConfig(args.workspaceRoot, request.tags), args.workspaceRoot) };
|
|
381
382
|
}
|
|
382
383
|
else if (action === "suggest-config") {
|
|
383
384
|
result = {
|