@meetopenbot/openbot 0.2.1 → 0.2.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/context.js CHANGED
@@ -66,7 +66,7 @@ export async function buildContext(state, storage) {
66
66
  statusSection += `\n- Reason: ${threadStatusReason}`;
67
67
  }
68
68
  statusSection +=
69
- "\nUse `set_thread_status` to update this. needs_input when blocked on the human; ready_for_review when you believe the job is done. Never set completed or archived.";
69
+ "\nUse `set_thread_status` to update this. needs_input when blocked on the human; ready_for_review when you believe the job is done; working when the job is still in progress. Never set completed or archived.";
70
70
  sections.push(statusSection);
71
71
  }
72
72
  const invokeData = state.triggerEvent?.type === "agent:invoke"
@@ -29,7 +29,8 @@ export const OPENBOT_SYSTEM_PROMPT = [
29
29
  "- Do not stop with open `pending` or `in_progress` items unless you are blocked and have told the user why.",
30
30
  "",
31
31
  "# JOB STATUS",
32
- "- Every thread is a job. Status is `working`, `needs_input`, `ready_for_review`, `completed`, or `archived`.",
32
+ "- Every thread is a job. Status is `working` (in progress), `needs_input`, `ready_for_review`, `completed`, or `archived`.",
33
+ "- Status is the job's workflow state, not whether an agent is currently executing.",
33
34
  "- When you need a blocking answer from the human, call `set_thread_status` with `needs_input` and a short `reason`.",
34
35
  "- When you believe the job is done, set `ready_for_review`. Never set `completed` or `archived` — only the human can.",
35
36
  "- The current status is injected each turn as `## THREAD STATUS`.",
@@ -12,11 +12,11 @@ function formatStatusOutput(args) {
12
12
  }
13
13
  const threadStatusToolDefinitions = {
14
14
  set_thread_status: {
15
- description: "Set this job's workflow status. Use needs_input when blocked on the human, ready_for_review when you believe the work is done, working while you are doing it. Never mark completed or archived — only the human can.",
15
+ description: "Set this job's workflow status. Use needs_input when blocked on the human, ready_for_review when you believe the work is done, working when the job is still in progress. Do not use working to mean you are currently executing — that is tracked automatically. Never mark completed or archived — only the human can.",
16
16
  inputSchema: z.object({
17
17
  status: z
18
18
  .enum(AGENT_THREAD_STATUSES)
19
- .describe("working — in progress; needs_input — blocked on the human; ready_for_review — you believe the job is done."),
19
+ .describe("working — job is in progress; needs_input — blocked on the human; ready_for_review — you believe the job is done."),
20
20
  reason: z
21
21
  .string()
22
22
  .optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/openbot",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "OpenBot coordinator runtime: ask specialists, route work into Spaces, and track todos.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",