@questionbase/deskfree 0.3.0-alpha.31 → 0.3.0-alpha.33
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 +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/deskfree/SKILL.md +4 -9
- package/skills/deskfree/references/tools.md +13 -18
package/dist/index.js
CHANGED
|
@@ -4666,6 +4666,7 @@ async function deliverMessageToAgent(ctx, message, client) {
|
|
|
4666
4666
|
}
|
|
4667
4667
|
}
|
|
4668
4668
|
});
|
|
4669
|
+
sendWsThinking(message.taskId ?? getActiveTaskId() ?? void 0);
|
|
4669
4670
|
await runtime.channel.reply.dispatchReplyFromConfig({
|
|
4670
4671
|
ctx: msgCtx,
|
|
4671
4672
|
cfg,
|
|
@@ -4732,6 +4733,16 @@ function sendWsAck(messageId) {
|
|
|
4732
4733
|
}
|
|
4733
4734
|
}
|
|
4734
4735
|
}
|
|
4736
|
+
function sendWsThinking(taskId) {
|
|
4737
|
+
if (activeWs?.readyState === wrapper_default.OPEN) {
|
|
4738
|
+
try {
|
|
4739
|
+
activeWs.send(
|
|
4740
|
+
JSON.stringify({ action: "thinking", ...taskId ? { taskId } : {} })
|
|
4741
|
+
);
|
|
4742
|
+
} catch {
|
|
4743
|
+
}
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4735
4746
|
var activeTaskId = null;
|
|
4736
4747
|
var completedTaskId = null;
|
|
4737
4748
|
var inboundThreadId = null;
|
|
@@ -8021,7 +8032,7 @@ var ORCHESTRATOR_TOOLS = {
|
|
|
8021
8032
|
},
|
|
8022
8033
|
PROPOSE: {
|
|
8023
8034
|
name: "deskfree_propose",
|
|
8024
|
-
description: "Propose a plan for human approval. Nothing is created until the human reviews and approves in a modal. One initiative per call \u2014 make multiple calls for multiple initiatives.
|
|
8035
|
+
description: "Propose a plan for human approval. Nothing is created until the human reviews and approves in a modal. One initiative per call \u2014 make multiple calls for multiple initiatives. Put all steps and details in the instructions field using simple markdown (bold, lists, inline code). Do NOT use markdown headers (#) \u2014 use **bold text** instead for section labels.",
|
|
8025
8036
|
parameters: Type.Object({
|
|
8026
8037
|
initiative: Type.Optional(
|
|
8027
8038
|
Type.Union(
|
|
@@ -8060,12 +8071,12 @@ var ORCHESTRATOR_TOOLS = {
|
|
|
8060
8071
|
}),
|
|
8061
8072
|
instructions: Type.Optional(
|
|
8062
8073
|
Type.String({
|
|
8063
|
-
description: "Detailed instructions: what to do, why, what done looks like, known constraints"
|
|
8074
|
+
description: "Detailed instructions in simple markdown (bold, lists, inline code \u2014 no # headers). Include: what to do, steps, why, what done looks like, known constraints."
|
|
8064
8075
|
})
|
|
8065
8076
|
),
|
|
8066
8077
|
substeps: Type.Optional(
|
|
8067
8078
|
Type.Array(Type.String(), {
|
|
8068
|
-
description: "
|
|
8079
|
+
description: "DEPRECATED \u2014 put steps in the instructions field as markdown instead. This field is ignored.",
|
|
8069
8080
|
minItems: 1,
|
|
8070
8081
|
maxItems: 20
|
|
8071
8082
|
})
|
|
@@ -8184,7 +8195,7 @@ var SHARED_TOOLS = {
|
|
|
8184
8195
|
},
|
|
8185
8196
|
PROPOSE: {
|
|
8186
8197
|
name: "deskfree_propose",
|
|
8187
|
-
description: "Propose a plan for human approval. Nothing is created until the human reviews and approves in a modal. One initiative per call \u2014 make multiple calls for multiple initiatives.
|
|
8198
|
+
description: "Propose a plan for human approval. Nothing is created until the human reviews and approves in a modal. One initiative per call \u2014 make multiple calls for multiple initiatives. Put all steps and details in the instructions field using simple markdown (bold, lists, inline code). Do NOT use markdown headers (#) \u2014 use **bold text** instead for section labels.",
|
|
8188
8199
|
parameters: Type.Object({
|
|
8189
8200
|
initiative: Type.Optional(
|
|
8190
8201
|
Type.Union(
|
|
@@ -8223,12 +8234,12 @@ var SHARED_TOOLS = {
|
|
|
8223
8234
|
}),
|
|
8224
8235
|
instructions: Type.Optional(
|
|
8225
8236
|
Type.String({
|
|
8226
|
-
description: "Detailed instructions: what to do, why, what done looks like, known constraints"
|
|
8237
|
+
description: "Detailed instructions in simple markdown (bold, lists, inline code \u2014 no # headers). Include: what to do, steps, why, what done looks like, known constraints."
|
|
8227
8238
|
})
|
|
8228
8239
|
),
|
|
8229
8240
|
substeps: Type.Optional(
|
|
8230
8241
|
Type.Array(Type.String(), {
|
|
8231
|
-
description: "
|
|
8242
|
+
description: "DEPRECATED \u2014 put steps in the instructions field as markdown instead. This field is ignored.",
|
|
8232
8243
|
minItems: 1,
|
|
8233
8244
|
maxItems: 20
|
|
8234
8245
|
})
|
|
@@ -8879,7 +8890,7 @@ You are the orchestrator. Your job: turn human intent into approved tasks, then
|
|
|
8879
8890
|
|
|
8880
8891
|
You do NOT claim tasks or do work directly. Sub-agents handle execution.
|
|
8881
8892
|
- When a human writes in a task thread, you receive it with recent context. Use \`deskfree_reopen_task\` if it needs more work.
|
|
8882
|
-
- Write task instructions as
|
|
8893
|
+
- Write task instructions as rich markdown (bold, lists, inline code \u2014 no # headers). Brief a contractor who has never seen the codebase.
|
|
8883
8894
|
- Estimate token cost per task \u2014 consider files to read, reasoning, output.
|
|
8884
8895
|
- One initiative per proposal \u2014 make multiple calls for multiple initiatives.`;
|
|
8885
8896
|
var DESKFREE_WORKER_DIRECTIVE = `## DeskFree Worker
|