@questionbase/deskfree 0.3.0-alpha.24 → 0.3.0-alpha.25

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 CHANGED
@@ -5202,7 +5202,7 @@ async function pollAndDeliver(client, ctx, cursor, log, account) {
5202
5202
  try {
5203
5203
  const botName = account?.botName;
5204
5204
  const humanName = account?.humanName;
5205
- const welcomeContent = botName && humanName ? `Hi! I'm ${humanName}. Your name is ${botName}. Welcome to DeskFree \u2014 read your BOOTSTRAP.md to get started, then check for any tasks.` : "DeskFree plugin installed! Read your BOOTSTRAP.md if you haven't already, then check for any tasks.";
5205
+ const welcomeContent = botName && humanName ? `Hey ${botName}! I'm ${humanName}. We're connected through DeskFree \u2014 I'll send you tasks and you'll help me get things done. What should we work on first?` : "DeskFree is connected! Send me tasks and I'll help you get things done. What should we work on first?";
5206
5206
  const welcomeMessage = {
5207
5207
  messageId: `welcome-${Date.now()}`,
5208
5208
  botId: "",
@@ -8779,12 +8779,21 @@ var deskFreePlugin = {
8779
8779
 
8780
8780
  // src/context.ts
8781
8781
  var DESKFREE_AGENT_DIRECTIVE = `## DeskFree \u2014 Orchestrator
8782
- You are the orchestrator. You assess state, propose plans, and dispatch work to sub-agents.
8782
+ You are the orchestrator. Your job: turn human intent into approved tasks, then dispatch work.
8783
+
8784
+ **The core loop: propose \u2192 approve \u2192 work. Make this feel natural and fast.**
8785
+
8783
8786
  1. **Check state** \u2192 \`deskfree_state\` \u2014 see tasks, initiatives, ways of working.
8784
- 2. **Propose plan** \u2192 \`deskfree_propose\` \u2014 ALL work requires human-approved tasks first.
8785
- 3. **Dispatch** \u2192 spawn a sub-agent for each approved task. Pass the taskId \u2014 the sub-agent claims it.
8787
+ 2. **Propose** \u2192 \`deskfree_propose\` \u2014 turn requests into concrete tasks for approval.
8788
+ 3. **Dispatch** \u2192 spawn a sub-agent for each approved task. Pass the taskId.
8786
8789
  4. **Communicate** \u2192 \`deskfree_send_message\` for updates outside task threads.
8787
8790
 
8791
+ **Bias toward action, not questions.** When a human gives you a direction:
8792
+ - Don't ask clarifying questions in the main thread. Propose tasks instead.
8793
+ - If the request is clear ("audit my LinkedIn profile"), propose the task directly \u2014 no scoping needed.
8794
+ - If the request is ambiguous ("I want to be a LinkedIn influencer"), propose a scoping task first: "Research current state and draft a plan" \u2014 the worker reports back with findings and follow-up proposals.
8795
+ - Discovery happens inside tasks, not in conversation. Tasks produce deliverables; questions don't.
8796
+
8788
8797
  You do NOT claim tasks or do work directly. Sub-agents handle execution.
8789
8798
  - When a human writes in a task thread, you receive it with recent context. Use \`deskfree_reopen_task\` if it needs more work.
8790
8799
  - Write task instructions as if briefing a contractor who has never seen the codebase.
@@ -8795,8 +8804,7 @@ You are a worker sub-agent. Call \`deskfree_start_task\` with your taskId to cla
8795
8804
  Tools: deskfree_start_task, deskfree_update_file, deskfree_complete_task, deskfree_send_message, deskfree_propose.
8796
8805
  - Claim your task first with deskfree_start_task \u2014 this loads instructions, messages, and file context.
8797
8806
  - Save work to linked files with deskfree_update_file (incrementally).
8798
- - Complete with deskfree_complete_task when done (summary required for outcome "done").
8799
- - For evaluation tasks (mode="evaluation"), include the evaluation object in complete_task.
8807
+ - Complete with deskfree_complete_task when done (summary required for outcome "done"). Include learnings if applicable.
8800
8808
  - Propose follow-up tasks with deskfree_propose if you discover more work.`;
8801
8809
  function getDeskFreeContext(sessionKey) {
8802
8810
  const isWorker = sessionKey && (sessionKey.includes(":sub:") || sessionKey.includes(":spawn:") || sessionKey.includes(":run:"));