@dxos/assistant-toolkit 0.9.0 → 0.9.1-main.c7dcc2e112
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/lib/neutral/{add-artifact-54DVWE53.mjs → add-artifact-QEQP6T7Z.mjs} +4 -4
- package/dist/lib/neutral/{agent-LCBDWP74.mjs → agent-BU6PB7J6.mjs} +4 -4
- package/dist/lib/neutral/{agent-rules-3TBAIVTS.mjs → agent-rules-L3AHRSR4.mjs} +4 -4
- package/dist/lib/neutral/{chunk-URUJQGI6.mjs → chunk-5HANNHZZ.mjs} +11 -2
- package/dist/lib/neutral/chunk-5HANNHZZ.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-KC2LPECT.mjs → chunk-ABOAU3NN.mjs} +4 -4
- package/dist/lib/neutral/chunk-ABOAU3NN.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-RNIUE4LK.mjs → chunk-CUT6GB2W.mjs} +2 -2
- package/dist/lib/neutral/{chunk-Z3KITY4U.mjs → chunk-JZHXJBSM.mjs} +2 -2
- package/dist/lib/neutral/chunk-JZHXJBSM.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-3YH7MWSD.mjs → chunk-KZDQGI3S.mjs} +2 -2
- package/dist/lib/neutral/{chunk-JRUTUKPS.mjs → chunk-OK3P6URP.mjs} +3 -3
- package/dist/lib/neutral/{chunk-BOB6M2YM.mjs → chunk-WTUY5UCA.mjs} +3 -3
- package/dist/lib/neutral/{chunk-BOB6M2YM.mjs.map → chunk-WTUY5UCA.mjs.map} +1 -1
- package/dist/lib/neutral/chunk-ZA5WZL4H.mjs +97 -0
- package/dist/lib/neutral/chunk-ZA5WZL4H.mjs.map +7 -0
- package/dist/lib/neutral/{create-agent-KUTBEXLJ.mjs → create-agent-7PBQFYHF.mjs} +6 -6
- package/dist/lib/neutral/{definitions-6HU2P7R7.mjs → definitions-BHRGH45G.mjs} +4 -4
- package/dist/lib/neutral/{delegate-task-E7WLHT6S.mjs → delegate-task-IQJSRLN3.mjs} +4 -4
- package/dist/lib/neutral/{get-context-X4FCUMLK.mjs → get-context-6SZ7HOV4.mjs} +4 -4
- package/dist/lib/neutral/index.mjs +61 -18
- package/dist/lib/neutral/index.mjs.map +4 -4
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{prompt-QL7TTLM3.mjs → prompt-37GJGKNM.mjs} +4 -4
- package/dist/lib/neutral/{prompt-QL7TTLM3.mjs.map → prompt-37GJGKNM.mjs.map} +1 -1
- package/dist/lib/neutral/{qualifier-QAW6LSYF.mjs → qualifier-DHPHY3YH.mjs} +4 -4
- package/dist/lib/neutral/{sync-triggers-JEVTYIGU.mjs → sync-triggers-CI6ECSZX.mjs} +5 -5
- package/dist/lib/neutral/testing/index.mjs +2 -12
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/{update-tasks-N65UQUHS.mjs → update-tasks-R5YXESZ6.mjs} +4 -4
- package/dist/types/src/blueprints/agent/operations/definitions.d.ts +6 -4
- package/dist/types/src/blueprints/agent/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/agent-wizard/operations/create-agent.d.ts +3 -2
- package/dist/types/src/blueprints/agent-wizard/operations/definitions.d.ts +6 -4
- package/dist/types/src/blueprints/agent-wizard/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/agent-wizard/operations/sync-triggers.d.ts +3 -2
- package/dist/types/src/blueprints/delegation/operations/delegate-task.d.ts +4 -2
- package/dist/types/src/blueprints/delegation/operations/delegate-task.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/operations/update-tasks.d.ts.map +1 -1
- package/dist/types/src/functions/agent/definitions.d.ts +2 -2
- package/dist/types/src/supervisor/delegation-strategy.d.ts.map +1 -1
- package/dist/types/src/supervisor/index.d.ts +1 -0
- package/dist/types/src/supervisor/index.d.ts.map +1 -1
- package/dist/types/src/supervisor/plan-completion-guard.d.ts +6 -0
- package/dist/types/src/supervisor/plan-completion-guard.d.ts.map +1 -0
- package/dist/types/src/testing/plugins.d.ts.map +1 -1
- package/dist/types/src/types/Agent.d.ts +3 -2
- package/dist/types/src/types/Agent.d.ts.map +1 -1
- package/dist/types/src/types/Chat.d.ts +4 -4
- package/dist/types/src/types/Plan.d.ts +14 -3
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +27 -26
- package/src/blueprints/agent/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/delegation/operations/delegate-task.test.ts +68 -4
- package/src/blueprints/delegation/operations/delegate-task.ts +47 -11
- package/src/blueprints/memory/blueprint.conversations.json +1 -1
- package/src/blueprints/planning/operations/update-tasks.ts +4 -3
- package/src/functions/agent/definitions.ts +1 -1
- package/src/functions/agent/prompt.conversations.json +1 -1
- package/src/functions/agent/prompt.ts +1 -1
- package/src/supervisor/delegation-strategy.ts +8 -1
- package/src/supervisor/index.ts +1 -0
- package/src/supervisor/plan-completion-guard.ts +50 -0
- package/src/testing/plugins.tsx +2 -21
- package/src/types/Chat.ts +1 -1
- package/src/types/Plan.ts +14 -0
- package/dist/lib/neutral/chunk-KC2LPECT.mjs.map +0 -7
- package/dist/lib/neutral/chunk-U5FCQXA2.mjs +0 -69
- package/dist/lib/neutral/chunk-U5FCQXA2.mjs.map +0 -7
- package/dist/lib/neutral/chunk-URUJQGI6.mjs.map +0 -7
- package/dist/lib/neutral/chunk-Z3KITY4U.mjs.map +0 -7
- package/src/blueprints/blueprint-manager/blueprint.conversations.json +0 -1
- package/src/blueprints/browser/blueprint.conversations.json +0 -1
- package/src/blueprints/websearch/blueprint.conversations.json +0 -1
- /package/dist/lib/neutral/{add-artifact-54DVWE53.mjs.map → add-artifact-QEQP6T7Z.mjs.map} +0 -0
- /package/dist/lib/neutral/{agent-LCBDWP74.mjs.map → agent-BU6PB7J6.mjs.map} +0 -0
- /package/dist/lib/neutral/{agent-rules-3TBAIVTS.mjs.map → agent-rules-L3AHRSR4.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-RNIUE4LK.mjs.map → chunk-CUT6GB2W.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-3YH7MWSD.mjs.map → chunk-KZDQGI3S.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-JRUTUKPS.mjs.map → chunk-OK3P6URP.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-agent-KUTBEXLJ.mjs.map → create-agent-7PBQFYHF.mjs.map} +0 -0
- /package/dist/lib/neutral/{definitions-6HU2P7R7.mjs.map → definitions-BHRGH45G.mjs.map} +0 -0
- /package/dist/lib/neutral/{delegate-task-E7WLHT6S.mjs.map → delegate-task-IQJSRLN3.mjs.map} +0 -0
- /package/dist/lib/neutral/{get-context-X4FCUMLK.mjs.map → get-context-6SZ7HOV4.mjs.map} +0 -0
- /package/dist/lib/neutral/{qualifier-QAW6LSYF.mjs.map → qualifier-DHPHY3YH.mjs.map} +0 -0
- /package/dist/lib/neutral/{sync-triggers-JEVTYIGU.mjs.map → sync-triggers-CI6ECSZX.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-tasks-N65UQUHS.mjs.map → update-tasks-R5YXESZ6.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddArtifact
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUT6GB2W.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Agent_exports
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
7
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
8
8
|
import "./chunk-SYUTQPSB.mjs";
|
|
9
9
|
import "./chunk-J5LGTIGS.mjs";
|
|
10
10
|
|
|
@@ -21,4 +21,4 @@ var add_artifact_default = AddArtifact.pipe(Operation.withHandler(Effect.fnUntra
|
|
|
21
21
|
export {
|
|
22
22
|
add_artifact_default as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=add-artifact-
|
|
24
|
+
//# sourceMappingURL=add-artifact-QEQP6T7Z.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentWorker
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUT6GB2W.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Agent_exports
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
7
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
8
8
|
import "./chunk-SYUTQPSB.mjs";
|
|
9
9
|
import "./chunk-J5LGTIGS.mjs";
|
|
10
10
|
|
|
@@ -62,4 +62,4 @@ var agent_default = AgentWorker.pipe(Operation.withHandler(Effect.fnUntraced(fun
|
|
|
62
62
|
export {
|
|
63
63
|
agent_default as default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=agent-
|
|
65
|
+
//# sourceMappingURL=agent-BU6PB7J6.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRules
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KZDQGI3S.mjs";
|
|
4
|
+
import "./chunk-5HANNHZZ.mjs";
|
|
5
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
6
6
|
import "./chunk-SYUTQPSB.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
@@ -75,4 +75,4 @@ var agent_rules_default = AgentRules.pipe(Operation.withHandler(Effect.fnUntrace
|
|
|
75
75
|
export {
|
|
76
76
|
agent_rules_default as default
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=agent-rules-
|
|
78
|
+
//# sourceMappingURL=agent-rules-L3AHRSR4.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Chat,
|
|
3
3
|
CompanionTo,
|
|
4
4
|
make
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JZHXJBSM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -14,11 +14,13 @@ __export(Plan_exports, {
|
|
|
14
14
|
Task: () => Task,
|
|
15
15
|
TaskId: () => TaskId,
|
|
16
16
|
addTasks: () => addTasks,
|
|
17
|
+
formatAgentPidTag: () => formatAgentPidTag,
|
|
17
18
|
formatPlan: () => formatPlan,
|
|
18
19
|
generateTaskId: () => generateTaskId,
|
|
19
20
|
makePlan: () => makePlan
|
|
20
21
|
});
|
|
21
22
|
import * as Schema from "effect/Schema";
|
|
23
|
+
import { Process } from "@dxos/compute";
|
|
22
24
|
import { DXN, Annotation, Obj, Ref, Type } from "@dxos/echo";
|
|
23
25
|
var TaskId = Schema.String.pipe(Schema.brand("@dxos/assistant-toolkit/TaskId"));
|
|
24
26
|
var Task = Schema.Struct({
|
|
@@ -37,6 +39,12 @@ var Task = Schema.Struct({
|
|
|
37
39
|
*/
|
|
38
40
|
delegated: Schema.optional(Schema.Boolean),
|
|
39
41
|
/**
|
|
42
|
+
* Sub-agent process id; set when the supervisor spawns a delegated task.
|
|
43
|
+
*/
|
|
44
|
+
agentPid: Schema.optional(Process.ID).annotations({
|
|
45
|
+
description: "Sub-agent process id for delegated tasks."
|
|
46
|
+
}),
|
|
47
|
+
/**
|
|
40
48
|
* Parent task ID.
|
|
41
49
|
*/
|
|
42
50
|
parent: Schema.optional(TaskId).annotations({
|
|
@@ -47,6 +55,7 @@ var Task = Schema.Struct({
|
|
|
47
55
|
*/
|
|
48
56
|
chat: Schema.optional(Ref.Ref(Chat))
|
|
49
57
|
});
|
|
58
|
+
var formatAgentPidTag = (pid) => `agent-${String(pid).replaceAll("-", "").slice(0, 4)}`;
|
|
50
59
|
var Plan = Schema.Struct({
|
|
51
60
|
tasks: Schema.Array(Task)
|
|
52
61
|
}).pipe(Annotation.HiddenAnnotation.set(true), Type.makeObject(DXN.make("org.dxos.type.plan", "0.1.0")));
|
|
@@ -304,4 +313,4 @@ export {
|
|
|
304
313
|
Agent_exports,
|
|
305
314
|
McpServer_exports
|
|
306
315
|
};
|
|
307
|
-
//# sourceMappingURL=chunk-
|
|
316
|
+
//# sourceMappingURL=chunk-5HANNHZZ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Plan.ts", "../../../src/types/Agent.ts", "../../../src/types/McpServer.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Process } from '@dxos/compute';\nimport { DXN, Annotation, Obj, Ref, Type } from '@dxos/echo';\n\nimport * as Chat from './Chat';\n\nexport const TaskId = Schema.String.pipe(Schema.brand('@dxos/assistant-toolkit/TaskId'));\nexport type TaskId = Schema.Schema.Type<typeof TaskId>;\n\nexport const Task = Schema.Struct({\n /**\n * Short task ID unique within the plan.\n */\n id: TaskId,\n\n title: Schema.String.annotations({\n description: 'Task title and description.',\n }),\n\n status: Schema.Literal('todo', 'in-progress', 'done', 'failed'),\n\n /**\n * Whether this task was handed to a sub-agent via the delegation tool. Only delegated tasks are\n * picked up by the supervisor's reconcile loop, so a task created via ordinary planning\n * (`update-tasks`) is not double-spawned as a sub-agent.\n */\n delegated: Schema.optional(Schema.Boolean),\n\n /**\n * Sub-agent process id; set when the supervisor spawns a delegated task.\n */\n agentPid: Schema.optional(Process.ID).annotations({\n description: 'Sub-agent process id for delegated tasks.',\n }),\n\n /**\n * Parent task ID.\n */\n parent: Schema.optional(TaskId).annotations({\n description: 'Parent task ID.',\n }),\n\n /**\n * Chat object that this task is associated with.\n */\n chat: Schema.optional(Ref.Ref(Chat.Chat)),\n});\n\nexport type Task = Schema.Schema.Type<typeof Task>;\n\n/**\n * Short tag label for a delegated sub-agent process id (e.g. `agent-a1b2`).\n */\nexport const formatAgentPidTag = (pid: Process.ID): string => `agent-${String(pid).replaceAll('-', '').slice(0, 4)}`;\n\n/**\n * Hierarchical collection of tasks for humans and agents to track progress.\n */\nexport const Plan = Schema.Struct({\n tasks: Schema.Array(Task),\n}).pipe(Annotation.HiddenAnnotation.set(true), Type.makeObject(DXN.make('org.dxos.type.plan', '0.1.0')));\nexport type Plan = Type.InstanceType<typeof Plan>;\nexport const generateTaskId = (plan: Plan): TaskId => {\n const existingIds = plan.tasks\n .map((task) => {\n const [num, letter] = task.id.split('-');\n return parseInt(num);\n })\n .filter((_) => !isNaN(_));\n let newId;\n if (existingIds.length === 0) {\n newId = 1;\n } else {\n newId = Math.max(...existingIds) + 1;\n }\n // Add random suffix to avoid collisions.\n return TaskId.make(`${newId}-${crypto.randomUUID().slice(0, 2)}`);\n};\n\n/**\n * Add new tasks to a plan, generating IDs for new tasks.\n * Use inside an `Obj.update` callback.\n */\nexport const addTasks = (\n plan: Obj.Mutable<Plan>,\n tasks: (Pick<Task, 'title'> & Partial<Pick<Task, 'status' | 'parent' | 'chat' | 'delegated'>>)[],\n) => {\n for (const task of tasks) {\n const taskId = generateTaskId(plan);\n plan.tasks.push({ id: taskId, ...task, status: task.status ?? 'todo' });\n }\n return plan;\n};\n\ninterface MakePlanProps {\n tasks: (Pick<Task, 'title'> & Partial<Pick<Task, 'status'>>)[];\n}\n\nexport const makePlan = (props: MakePlanProps): Plan => {\n const plan = Obj.make(Plan, { tasks: [] });\n Obj.update(plan, (plan) => {\n addTasks(plan, props.tasks);\n });\n return plan;\n};\n\n/**\n * Formats plan to markdown format.\n */\nexport const formatPlan = (plan: Plan): string => {\n return plan.tasks\n .map((task) => `- **${task.status?.toLocaleUpperCase()}**: ${task.title ?? 'No title'} <!-- id=${task.id} -->`)\n .join('\\n');\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\nimport * as Schema from 'effect/Schema';\n\nimport { AiContext } from '@dxos/assistant';\nimport { type Blueprint } from '@dxos/compute';\nimport { DXN, Annotation, Database, Feed, Format, Obj, Ref, Relation, Type } from '@dxos/echo';\nimport { FormInputAnnotation } from '@dxos/echo/Annotation';\nimport { type EntityNotFoundError } from '@dxos/echo/Err';\nimport { EffectEx } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { EID, type EntityId } from '@dxos/keys';\nimport { Text } from '@dxos/schema';\n\nimport * as Chat from './Chat';\nimport * as Plan from './Plan';\n\n/**\n * Agent schema definition.\n */\nexport const Agent = Schema.Struct({\n name: Schema.optional(Schema.String),\n\n /**\n * When false, agent triggers are disabled after sync-triggers runs.\n */\n enabled: Schema.optional(Schema.Boolean).annotations({\n title: 'Enabled',\n description: 'Master switch for agent automation; propagated to all triggers on sync.',\n }),\n\n /**\n * Instructions for the agent.\n */\n instructions: Ref.Ref(Text.Text).pipe(\n Format.FormatAnnotation.set(Format.TypeFormat.Markdown),\n Schema.annotations({ title: 'Instructions' }),\n ),\n\n /**\n * Primary chat for the agent.\n */\n // TODO(dmaretskyi): Multiple chats; RB: branching hierarchy.\n chat: Schema.optional(Ref.Ref(Chat.Chat).pipe(FormInputAnnotation.set(false))),\n\n // TODO(burdon): Is this used? Should it be an artifact?\n // Format.FormatAnnotation.set(Format.TypeFormat.Markdown)\n plan: Ref.Ref(Plan.Plan).pipe(FormInputAnnotation.set(false)),\n\n // TODO(burdon): Currently Memory.Memory objects are global to the space; make them artifacts?\n artifacts: Schema.Array(\n Schema.Struct({\n // TODO(dmaretskyi): Consider gettings names from the artifact itself using Obj.getLabel.\n name: Schema.String,\n // TODO(burdon): Rename object.\n data: Ref.Ref(Obj.Unknown),\n }),\n ).pipe(FormInputAnnotation.set(false)),\n\n /**\n * References to objects with a canonical queue property.\n * Schema must have the QueueAnnotation.\n */\n // Change to trigger.\n // TODO(dmaretskyi): Turn into an array of objects when form-data\n subscriptions: Schema.Array(Ref.Ref(Obj.Unknown)).pipe(FormInputAnnotation.set(false)),\n\n /**\n * Cron expression for a timer trigger that invokes the agent worker on a schedule.\n * The timer trigger bypasses the qualifier and goes straight to the agent worker.\n */\n // Change to trigger.\n cron: Schema.optional(Schema.String).annotations({\n title: 'Cron',\n description: 'Cron expression for a timer trigger that invokes the agent on a schedule.',\n }),\n\n /**\n * Input feed for subscriptions.\n * @deprecated Subscriptions will write directly to the agent.\n */\n feed: Schema.optional(Ref.Ref(Feed.Feed).pipe(FormInputAnnotation.set(false))),\n\n /**\n * Allow the agent to filter events.\n * Related events will be added to the input queue of the agent.\n * It is recommended to enable this.\n * @deprecated\n */\n filterEvents: Schema.optional(Schema.Boolean).annotations({\n title: 'Filter events',\n description: 'Allow the agent to filter events.',\n }),\n}).pipe(\n Annotation.LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({ icon: 'ph--drone--regular', hue: 'sky' }),\n Type.makeObject(DXN.make('org.dxos.type.agent', '0.1.0')),\n);\n\nexport type Agent = Type.InstanceType<typeof Agent>;\n\nexport type MakeProps = Omit<\n Obj.MakeProps<typeof Agent>,\n 'instructions' | 'plan' | 'artifacts' | 'subscriptions' | 'chat'\n> &\n Partial<Pick<Obj.MakeProps<typeof Agent>, 'artifacts' | 'subscriptions'>> & {\n instructions: string;\n blueprints?: Ref.Ref<Blueprint.Blueprint>[];\n contextObjects?: Ref.Ref<Obj.Any>[];\n };\n\n/**\n * Creates a fully initialized Agent with chat, queue, and context bindings.\n *\n * @param props - Agent properties including spec, plan, blueprints, and context objects.\n * @param blueprint - The blueprint to use for the agent context.\n * @returns An Effect that yields the initialized Agent.\n */\nexport const makeInitialized = (\n props: MakeProps,\n // TODO(burdon): Reconcile with props.blueprints.\n blueprint: Blueprint.Blueprint,\n): Effect.Effect<Agent, never, Feed.FeedService | Database.Service> =>\n Effect.gen(function* () {\n const agent = yield* Database.add(\n Obj.make(Agent, {\n ...props,\n instructions: Ref.make(Text.make({ content: props.instructions })),\n plan: Ref.make(Plan.makePlan({ tasks: [] })),\n artifacts: props.artifacts ?? [],\n subscriptions: props.subscriptions ?? [],\n filterEvents: props.filterEvents ?? true,\n enabled: props.enabled ?? true,\n }),\n );\n const feed = yield* Database.add(Feed.make());\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const contextBinder = new AiContext.Binder({ feed, runtime });\n // TODO(dmaretskyi): Blueprint registry.\n const agentBlueprint = yield* Database.add(Obj.clone(blueprint, { deep: true }));\n yield* Effect.promise(() =>\n contextBinder.bind({\n blueprints: [Ref.make(agentBlueprint), ...(props.blueprints ?? [])],\n objects: [Ref.make(agent), ...(props.contextObjects ?? [])],\n }),\n );\n\n const chat = yield* Database.add(\n Chat.make({\n [Obj.Parent]: agent,\n feed: Ref.make(feed),\n }),\n );\n Obj.setParent(feed, chat);\n yield* Database.add(\n Relation.make(Chat.CompanionTo, {\n [Relation.Source]: chat,\n [Relation.Target]: agent,\n }),\n );\n\n const inputFeed = yield* Database.add(Feed.make());\n Obj.update(agent, (agent) => {\n agent.chat = Ref.make(chat);\n agent.feed = Ref.make(inputFeed);\n });\n\n return agent;\n });\n\n/**\n * Resets the agent chat history by rebuilding the chat context.\n * Preserves the existing blueprints and objects from the current chat context.\n *\n * @param agent - The agent whose chat history should be reset. Must have an existing chat.\n * @returns An Effect that resets the chat history.\n */\nexport const resetChatHistory = (\n agent: Agent,\n): Effect.Effect<void, EntityNotFoundError, Feed.FeedService | Database.Service> =>\n Effect.gen(function* () {\n invariant(agent.chat, 'Agent must have an existing chat to reset.');\n\n const existingFeed = yield* agent.chat.pipe(Database.load).pipe(\n Effect.map((_) => _.feed),\n Effect.flatMap(Database.load),\n );\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const existingContextBinder = yield* EffectEx.acquireReleaseResource(\n () =>\n new AiContext.Binder({\n feed: existingFeed,\n runtime,\n }),\n );\n const blueprints = existingContextBinder.getBlueprints().map((blueprint) => Ref.make(blueprint));\n const objects = existingContextBinder.getObjects().map((object) => Ref.make(object));\n\n const feed = yield* Database.add(Feed.make());\n const contextBinder = new AiContext.Binder({ feed, runtime });\n yield* Effect.promise(() =>\n contextBinder.bind({\n blueprints,\n objects,\n }),\n );\n\n const chat = yield* Database.add(\n Chat.make({\n feed: Ref.make(feed),\n }),\n );\n Obj.setParent(feed, chat);\n Obj.update(agent, (agent) => {\n agent.chat = Ref.make(chat);\n });\n\n yield* Database.add(\n Relation.make(Chat.CompanionTo, {\n [Relation.Source]: chat,\n [Relation.Target]: agent,\n }),\n );\n }).pipe(Effect.scoped);\n\nexport const getFromChatContext: Effect.Effect<Agent, Error, AiContext.Service> = Effect.gen(function* () {\n const agents = yield* Function.pipe(AiContext.Service.findObjects(Agent));\n if (agents.length !== 1) {\n return yield* Effect.fail(new Error(`There should be exactly one agent in context. Got: ${agents.length}`));\n }\n\n const agent = agents[0];\n return agent;\n});\n\n/**\n * Adds an object to the agent's artifacts (context), resolving it by id within the agent's space.\n *\n * Accepts whatever reference a tool returned — a bare entity id (e.g. `01J…`) or a full ECHO URI\n * (`echo:/…`, `echo://…`). LLMs frequently strip a returned URI down to the bare id, which is not\n * a resolvable URI on its own; resolving by entity id within the space tolerates both forms.\n *\n * Returns the fully-qualified {@link Ref.Ref} that was stored (also usable for an inline message\n * reference block).\n */\nexport const addArtifact = (\n agent: Agent,\n { name, id }: { name: string; id: string },\n): Effect.Effect<Ref.Ref<Obj.Unknown>, Error, Database.Service> =>\n Effect.gen(function* () {\n // Untyped, LLM-provided reference: normalize to the entity id, falling back to the raw value\n // (a bare id is already an entity id) — a genuine external-data boundary.\n const parsed = EID.tryParse(id);\n const entityId = ((parsed ? EID.getEntityId(parsed) : undefined) ?? id) as EntityId;\n\n // Store a FULLY-QUALIFIED ref (`echo://<space>/<id>`), not a local `echo:/<id>` one: the artifact\n // is created by a separate tool/process invocation, and a space-less local ref does not resolve\n // when the agent is later read from a different db view (e.g. the UI). It is not resolved here —\n // it resolves lazily when read, by which point the artifact is persisted.\n const { db } = yield* Database.Service;\n const ref = db.makeRef<Obj.Unknown>(EID.make({ spaceId: db.spaceId, entityId }));\n\n Obj.update(agent, (agent) => {\n agent.artifacts.push({ name, data: ref });\n });\n yield* Database.flush();\n return ref;\n });\n", "//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { McpServer as McpServerSpec } from '@dxos/compute';\nimport { DXN, Annotation, Type } from '@dxos/echo';\nimport { LabelAnnotation } from '@dxos/echo/Annotation';\n\n/**\n * MCP server configuration stored as a space-level ECHO object.\n *\n * Composes the canonical connection spec from `@dxos/compute` (`url`, `protocol`, `apiKey`)\n * and adds instance-level fields (`name`, `enabled`) plus ECHO annotations.\n *\n * NOTE: `apiKey` is stored in plaintext and replicated to all peers with access to the space.\n * A future iteration should move secrets to per-device credential storage or use envelope encryption.\n */\nexport const McpServer = Schema.Struct({\n ...McpServerSpec.McpServer.fields,\n enabled: Schema.optional(Schema.Boolean),\n}).pipe(\n LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({ icon: 'ph--plugs-connected--regular', hue: 'sky' }),\n Type.makeObject(DXN.make('org.dxos.type.assistant.mcpServer', '0.1.0')),\n);\n\nexport type McpServer = Type.InstanceType<typeof McpServer>;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAAA;;;;;;;;;;;AAMA,YAAYA,YAAY;AAExB,SAASC,eAAe;AACxB,SAASC,KAAKC,YAAYC,KAAKC,KAAKC,YAAY;AAIzC,IAAMC,SAAgBC,cAAOC,KAAYC,aAAM,gCAAA,CAAA;AAG/C,IAAMC,OAAcC,cAAO;;;;EAIhCC,IAAIN;EAEJO,OAAcN,cAAOO,YAAY;IAC/BC,aAAa;EACf,CAAA;EAEAC,QAAeC,eAAQ,QAAQ,eAAe,QAAQ,QAAA;;;;;;EAOtDC,WAAkBC,gBAAgBC,cAAO;;;;EAKzCC,UAAiBF,gB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Y,WAAWd,KAAIe,KAAK,qCAAqC,OAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Schema", "Process", "DXN", "Annotation", "Obj", "Ref", "Type", "TaskId", "String", "pipe", "brand", "Task", "Struct", "id", "title", "annotations", "description", "status", "Literal", "delegated", "optional", "Boolean", "agentPid", "Process", "ID", "parent", "chat", "Ref", "Chat", "formatAgentPidTag", "pid", "replaceAll", "slice", "Plan", "tasks", "Array", "Annotation", "HiddenAnnotation", "set", "Type", "makeObject", "DXN", "make", "generateTaskId", "plan", "existingIds", "map", "task", "num", "letter", "split", "parseInt", "filter", "_", "isNaN", "newId", "length", "Math", "max", "crypto", "randomUUID", "addTasks", "taskId", "push", "makePlan", "props", "Obj", "update", "formatPlan", "toLocaleUpperCase", "join", "Effect", "Function", "Schema", "AiContext", "DXN", "Annotation", "Database", "Feed", "Format", "Obj", "Ref", "Relation", "Type", "FormInputAnnotation", "EffectEx", "invariant", "EID", "Text", "Ref", "artifacts", "Array", "Schema", "String", "data", "Obj", "description", "Annotation", "LabelAnnotation", "IconAnnotation", "icon", "hue", "Type", "makeObject", "agent", "Database", "props", "instructions", "Text", "make", "plan", "Plan", "subscriptions", "filterEvents", "enabled", "add", "contextBinder", "AiContext", "Binder", "feed", "runtime", "Effect", "agentBlueprint", "objects", "chat", "setParent", "Source", "Relation", "Target", "inputFeed", "existingFeed", "pipe", "existingContextBinder", "EffectEx", "acquireReleaseResource", "blueprints", "scoped", "agents", "Error", "spaceId", "db", "entityId", "update", "name", "ref", "Schema", "McpServer", "McpServerSpec", "DXN", "Annotation", "Type", "LabelAnnotation", "Struct", "fields", "enabled", "optional", "Boolean", "pipe", "set", "IconAnnotation", "icon", "hue", "makeObject", "make"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent_exports,
|
|
3
3
|
Plan_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -20,11 +20,11 @@ import { Database, Obj } from "@dxos/echo";
|
|
|
20
20
|
import { DXN } from "@dxos/keys";
|
|
21
21
|
import { trim } from "@dxos/util";
|
|
22
22
|
|
|
23
|
-
// raw-loader:/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/blueprints/planning/operations/update-tasks.md
|
|
23
|
+
// raw-loader:/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/blueprints/planning/operations/update-tasks.md
|
|
24
24
|
var update_tasks_default = '## PLANNING TOOL\n\nThis tool maintains an organized task list.\nUse this to track progress, break down objectives, and ensure thoroughness.\nIf you are asked to create a plan use this tool instead of creating a new document.\nAfter creating initial tasks, update them silently without announcing changes to the user.\nImportant: Do not show or summarize the contents of the task list unless the user asks for this.\n\n### CORE USAGE PRINCIPLES\n\nCreate and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing,\nuser requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs),\ncompleted work (mark `done` and add follow-ups), and active work (mark as `in-progress`, limit one at a time).\n\nSkip task management for: single straightforward actions, simple requests achievable in 1-2 steps,\ninformational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.\n\n### TOOL SPECIFICATION\n\n`update-tasks` requires an array of task objects. Each task object contains:\n\n- id (string, required): unique identifier like "task_1" or "research_sources"\n- title (string, optional): update to clarify or refine task description\n- status (string, optional): `todo` | `in-progress` | `done`\n\nTask status meanings: \'todo\' means not yet started, `in-progress` means currently being worked on, `done` means completed successfully.\n\n### OPERATIONAL GUIDELINES\n\nUpdate tasks in realtime as work progresses. Mark tasks `done` immediately upon completion.\nMaintain only ONE task with `in-progress` status at a time. Complete current tasks before starting new ones.\nUse specific, actionable task titles. Break complex work into manageable logical pieces.\nBatch task updates with other actions when possible for efficiency.\n\n### USAGE EXAMPLES\n\n<example type="research_project">\n<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: "research_materials", title: "Research sustainable packaging materials", status: "in-progress"}\n2. {id: "compare_costs", title: "Compile cost comparison data", status: "todo"}\n3. {id: "assess_impact", title: "Evaluate environmental impact metrics", status: "todo"}\n4. {id: "draft_report", title: "Write comparative analysis report", status: "todo"}\n\nBegins research work immediately in same response.\n</assistant_action>\n<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>\n</example>\n\n<example type="event_planning">\n<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: "venue_options", title: "Research and recommend venues", status: "in-progress"}\n2. {id: "draft_agenda", title: "Create retreat agenda", status: "todo"}\n3. {id: "arrange_catering", title: "Coordinate catering options", status: "todo"}\n4. {id: "send_invites", title: "Draft and send invitations", status: "todo"}\n</assistant_action>\n<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>\n</example>\n\n<example type="document_analysis">\n<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: "extract_key_terms", title: "Identify key contractual terms", status: "in-progress"}\n2. {id: "flag_risks", title: "Flag potential risks and liabilities", status: "todo"}\n3. {id: "negotiation_points", title: "Compile negotiation recommendations", status: "todo"}\n4. {id: "summary_doc", title: "Prepare executive summary", status: "todo"}\n</assistant_action>\n<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>\n</example>\n\n<example type="multiple_deliverables">\n<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: "competitor_research", title: "Research three competitor companies", status: "in-progress"}\n2. {id: "swot_analysis", title: "Develop SWOT analysis", status: "todo"}\n3. {id: "positioning_recs", title: "Create market positioning recommendations", status: "todo"}\n</assistant_action>\n<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>\n</example>\n\n<example type="skip_simple_question">\n<user_message>What\'s the difference between renewable and sustainable energy?</user_message>\n<assistant_action>Provides explanation directly without creating tasks.</assistant_action>\n<reasoning>Informational request with no actionable work to complete or track.</reasoning>\n</example>\n\n<example type="skip_quick_lookup">\n<user_message>Find the population of Tokyo.</user_message>\n<assistant_action>Searches and provides answer without task tracking.</assistant_action>\n<reasoning>Single straightforward lookup completable immediately.</reasoning>\n</example>\n\n<example type="skip_trivial_task">\n<user_message>Summarize this 2-paragraph email.</user_message>\n<assistant_action>Provides summary directly without creating tasks.</assistant_action>\n<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>\n</example>\n\n<example type="skip_single_action">\n<user_message>Check if my flight is on time.</user_message>\n<assistant_action>Performs lookup and reports status without task management.</assistant_action>\n<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>\n</example>\n\n### BEST PRACTICES\n\nFor task creation: use descriptive unique IDs reflecting the work, start first task as `in-progress`, batch initial creation with beginning work.\nFor progress tracking: update status immediately upon completion, keep only one `in-progress` task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.\n\nWhen uncertain whether to use task management, err on the side of creating tasks.\nProactive organization demonstrates thoroughness and ensures comprehensive work completion.\n';
|
|
25
25
|
|
|
26
26
|
// src/blueprints/planning/operations/update-tasks.ts
|
|
27
|
-
var SimpleTask = Plan_exports.Task.omit("chat", "delegated");
|
|
27
|
+
var SimpleTask = Plan_exports.Task.omit("chat", "delegated", "agentPid");
|
|
28
28
|
var UpdateTasks = Operation.make({
|
|
29
29
|
meta: {
|
|
30
30
|
key: DXN.make("org.dxos.function.planning.updateTasks"),
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
update_tasks_default2 as update_tasks_default,
|
|
74
74
|
update_tasks_exports
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-ABOAU3NN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/planning/operations/update-tasks.ts", "raw-loader:/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/blueprints/planning/operations/update-tasks.md"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { AiContext } from '@dxos/assistant';\nimport { Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nimport { Plan, Agent } from '../../../types';\nimport INSTRUCTIONS from './update-tasks.md?raw';\n\n// Omit `chat`, `delegated`, and `agentPid` from the LLM-facing schema: these are set by the\n// delegation tool / runtime, never by ordinary planning, and keeping them out leaves the tool\n// schema unchanged.\nconst SimpleTask = Plan.Task.omit('chat', 'delegated', 'agentPid');\n\nexport const UpdateTasks = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.planning.updateTasks'),\n name: 'Update tasks',\n description: INSTRUCTIONS,\n icon: 'ph--check-square-offset--regular',\n },\n input: Schema.Struct({\n tasks: Schema.Array(SimpleTask),\n }),\n output: Schema.Any,\n services: [AiContext.Service, Database.Service],\n});\n\n/**\n * Updates the planning document (Agent.plan) with the given tasks.\n */\nexport default UpdateTasks.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tasks: newTasks }) {\n const agent = yield* Agent.getFromChatContext;\n // TODO(burdon): How to specify requirements/preconditions before calling?\n // TODO(burdon): How to report non-technical error?\n const plan = yield* Database.load(agent.plan);\n\n Obj.update(plan, (plan) => {\n for (const task of newTasks) {\n const existingTask = plan.tasks.find((t) => t.id === task.id);\n if (existingTask) {\n existingTask.title = task.title;\n existingTask.status = task.status;\n } else {\n plan.tasks.push({\n id: task.id,\n title: task.title,\n status: task.status,\n });\n }\n }\n });\n\n return trim`\n You must update the task status to 'in-progress' when you start and 'done' when complete.\n Current plan updated:\n <plan>\n ${Plan.formatPlan(plan)}\n </plan>\n `;\n }) as any,\n ),\n);\n", "## PLANNING TOOL\n\nThis tool maintains an organized task list.\nUse this to track progress, break down objectives, and ensure thoroughness.\nIf you are asked to create a plan use this tool instead of creating a new document.\nAfter creating initial tasks, update them silently without announcing changes to the user.\nImportant: Do not show or summarize the contents of the task list unless the user asks for this.\n\n### CORE USAGE PRINCIPLES\n\nCreate and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing,\nuser requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs),\ncompleted work (mark `done` and add follow-ups), and active work (mark as `in-progress`, limit one at a time).\n\nSkip task management for: single straightforward actions, simple requests achievable in 1-2 steps,\ninformational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.\n\n### TOOL SPECIFICATION\n\n`update-tasks` requires an array of task objects. Each task object contains:\n\n- id (string, required): unique identifier like \"task_1\" or \"research_sources\"\n- title (string, optional): update to clarify or refine task description\n- status (string, optional): `todo` | `in-progress` | `done`\n\nTask status meanings: 'todo' means not yet started, `in-progress` means currently being worked on, `done` means completed successfully.\n\n### OPERATIONAL GUIDELINES\n\nUpdate tasks in realtime as work progresses. Mark tasks `done` immediately upon completion.\nMaintain only ONE task with `in-progress` status at a time. Complete current tasks before starting new ones.\nUse specific, actionable task titles. Break complex work into manageable logical pieces.\nBatch task updates with other actions when possible for efficiency.\n\n### USAGE EXAMPLES\n\n<example type=\"research_project\">\n<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"research_materials\", title: \"Research sustainable packaging materials\", status: \"in-progress\"}\n2. {id: \"compare_costs\", title: \"Compile cost comparison data\", status: \"todo\"}\n3. {id: \"assess_impact\", title: \"Evaluate environmental impact metrics\", status: \"todo\"}\n4. {id: \"draft_report\", title: \"Write comparative analysis report\", status: \"todo\"}\n\nBegins research work immediately in same response.\n</assistant_action>\n<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>\n</example>\n\n<example type=\"event_planning\">\n<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"venue_options\", title: \"Research and recommend venues\", status: \"in-progress\"}\n2. {id: \"draft_agenda\", title: \"Create retreat agenda\", status: \"todo\"}\n3. {id: \"arrange_catering\", title: \"Coordinate catering options\", status: \"todo\"}\n4. {id: \"send_invites\", title: \"Draft and send invitations\", status: \"todo\"}\n</assistant_action>\n<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>\n</example>\n\n<example type=\"document_analysis\">\n<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"extract_key_terms\", title: \"Identify key contractual terms\", status: \"in-progress\"}\n2. {id: \"flag_risks\", title: \"Flag potential risks and liabilities\", status: \"todo\"}\n3. {id: \"negotiation_points\", title: \"Compile negotiation recommendations\", status: \"todo\"}\n4. {id: \"summary_doc\", title: \"Prepare executive summary\", status: \"todo\"}\n</assistant_action>\n<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>\n</example>\n\n<example type=\"multiple_deliverables\">\n<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"competitor_research\", title: \"Research three competitor companies\", status: \"in-progress\"}\n2. {id: \"swot_analysis\", title: \"Develop SWOT analysis\", status: \"todo\"}\n3. {id: \"positioning_recs\", title: \"Create market positioning recommendations\", status: \"todo\"}\n</assistant_action>\n<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>\n</example>\n\n<example type=\"skip_simple_question\">\n<user_message>What's the difference between renewable and sustainable energy?</user_message>\n<assistant_action>Provides explanation directly without creating tasks.</assistant_action>\n<reasoning>Informational request with no actionable work to complete or track.</reasoning>\n</example>\n\n<example type=\"skip_quick_lookup\">\n<user_message>Find the population of Tokyo.</user_message>\n<assistant_action>Searches and provides answer without task tracking.</assistant_action>\n<reasoning>Single straightforward lookup completable immediately.</reasoning>\n</example>\n\n<example type=\"skip_trivial_task\">\n<user_message>Summarize this 2-paragraph email.</user_message>\n<assistant_action>Provides summary directly without creating tasks.</assistant_action>\n<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>\n</example>\n\n<example type=\"skip_single_action\">\n<user_message>Check if my flight is on time.</user_message>\n<assistant_action>Performs lookup and reports status without task management.</assistant_action>\n<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>\n</example>\n\n### BEST PRACTICES\n\nFor task creation: use descriptive unique IDs reflecting the work, start first task as `in-progress`, batch initial creation with beginning work.\nFor progress tracking: update status immediately upon completion, keep only one `in-progress` task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.\n\nWhen uncertain whether to use task management, err on the side of creating tasks.\nProactive organization demonstrates thoroughness and ensures comprehensive work completion.\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAAA;;;iBAAAA;;AAIA,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;AACpB,SAASC,YAAY;;;ACXrB;;;ADmBA,IAAMC,aAAaC,aAAKC,KAAKC,KAAK,QAAQ,aAAa,UAAA;AAEhD,IAAMC,cAAcC,UAAUC,KAAK;EACxCC,MAAM;IACJC,KAAKC,IAAIH,KAAK,wCAAA;IACdI,MAAM;IACNC,aAAaC;IACbC,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBC,OAAcC,aAAMjB,UAAAA;EACtB,CAAA;EACAkB,QAAeC;EACfC,UAAU;IAACC,UAAUC;IAASC,SAASD;;AACzC,CAAA;AAKA,IAAAE,wBAAepB,YAAYqB,KACzBpB,UAAUqB,YACDC,UAAG,WAAW,EAAEX,OAAOY,SAAQ,GAAE;AACtC,QAAMC,QAAQ,OAAOC,cAAMC;AAG3B,QAAMC,OAAO,OAAOT,SAASU,KAAKJ,MAAMG,IAAI;AAE5CE,MAAIC,OAAOH,MAAM,CAACA,UAAAA;AAChB,eAAWI,QAAQR,UAAU;AAC3B,YAAMS,eAAeL,MAAKhB,MAAMsB,KAAK,CAACC,MAAMA,EAAEC,OAAOJ,KAAKI,EAAE;AAC5D,UAAIH,cAAc;AAChBA,qBAAaI,QAAQL,KAAKK;AAC1BJ,qBAAaK,SAASN,KAAKM;MAC7B,OAAO;AACLV,QAAAA,MAAKhB,MAAM2B,KAAK;UACdH,IAAIJ,KAAKI;UACTC,OAAOL,KAAKK;UACZC,QAAQN,KAAKM;QACf,CAAA;MACF;IACF;EACF,CAAA;AAEA,SAAOE;;;;YAID3C,aAAK4C,WAAWb,IAAAA,CAAAA;;;AAGxB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["update_tasks_default", "Effect", "Schema", "AiContext", "Operation", "Database", "Obj", "DXN", "trim", "SimpleTask", "Plan", "Task", "omit", "UpdateTasks", "Operation", "make", "meta", "key", "DXN", "name", "description", "INSTRUCTIONS", "icon", "input", "Struct", "tasks", "Array", "output", "Any", "services", "AiContext", "Service", "Database", "update_tasks_default", "pipe", "withHandler", "fn", "newTasks", "agent", "Agent", "getFromChatContext", "plan", "load", "Obj", "update", "task", "existingTask", "find", "t", "id", "title", "status", "push", "trim", "formatPlan"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -112,4 +112,4 @@ export {
|
|
|
112
112
|
AddArtifact,
|
|
113
113
|
definitions_exports
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-CUT6GB2W.mjs.map
|
|
@@ -16,7 +16,7 @@ import { FormInputAnnotation, LabelAnnotation } from "@dxos/echo/Annotation";
|
|
|
16
16
|
var Chat = Schema.Struct({
|
|
17
17
|
name: Schema.String.pipe(Schema.optional),
|
|
18
18
|
feed: Ref.Ref(Feed.Feed).pipe(FormInputAnnotation.set(false)),
|
|
19
|
-
|
|
19
|
+
viewType: Schema.String.pipe(Schema.optional)
|
|
20
20
|
}).pipe(LabelAnnotation.set([
|
|
21
21
|
"name"
|
|
22
22
|
]), Annotation.IconAnnotation.set({
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
CompanionTo,
|
|
46
46
|
Chat_exports
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-JZHXJBSM.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Chat.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { DXN, Annotation, Feed, Obj, Ref, Type } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/Annotation';\n\n/**\n * AI chat.\n */\nexport const Chat = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n feed: Ref.Ref(Feed.Feed).pipe(FormInputAnnotation.set(false)),\n viewType: Schema.String.pipe(Schema.optional),\n}).pipe(\n LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({ icon: 'ph--sparkle--regular', hue: 'sky' }),\n Type.makeObject(DXN.make('org.dxos.type.assistant.chat', '0.1.0')),\n);\n\nexport type Chat = Type.InstanceType<typeof Chat>;\nexport const make = (props: Obj.MakeProps<typeof Chat>) => Obj.make(Chat, props);\n\n/** @deprecated Use CompanionTo instead. */\nexport const LegacyCompanionTo = Schema.Struct({\n id: Obj.ID,\n}).pipe(\n Type.makeRelation({\n dxn: DXN.make('org.dxos.relation.assistant.companionTo', '0.1.0'),\n source: Chat,\n target: Obj.Unknown,\n }),\n);\n\nexport type LegacyCompanionTo = Type.InstanceType<typeof LegacyCompanionTo>;\n/**\n * Relation between a Chat and companion objects (e.g., artifacts).\n */\nexport const CompanionTo = Schema.Struct({\n id: Obj.ID,\n}).pipe(\n Type.makeRelation({\n dxn: DXN.make('org.dxos.relation.assistant.companionTo', '0.1.0'),\n source: Chat,\n target: Obj.Unknown,\n }),\n);\n\nexport type CompanionTo = Type.InstanceType<typeof CompanionTo>;\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;;;;;;;AAMA,YAAYA,YAAY;AAExB,SAASC,KAAKC,YAAYC,MAAMC,KAAKC,KAAKC,YAAY;AACtD,SAASC,qBAAqBC,uBAAuB;AAK9C,IAAMC,OAAcC,cAAO;EAChCC,MAAaC,cAAOC,KAAYC,eAAQ;EACxCC,MAAMV,IAAIA,IAAIF,KAAKA,IAAI,EAAEU,KAAKN,oBAAoBS,IAAI,KAAA,CAAA;EACtDC,UAAiBL,cAAOC,KAAYC,eAAQ;AAC9C,CAAA,EAAGD,KACDL,gBAAgBQ,IAAI;EAAC;CAAO,GAC5Bd,WAAWgB,eAAeF,IAAI;EAAEG,MAAM;EAAwBC,KAAK;AAAM,CAAA,GACzEd,KAAKe,WAAWpB,IAAIqB,KAAK,gCAAgC,OAAA,CAAA,CAAA;AAIpD,IAAMA,OAAO,CAACC,UAAsCnB,IAAIkB,KAAKb,MAAMc,KAAAA;AAGnE,IAAMC,oBAA2Bd,cAAO;EAC7Ce,IAAIrB,IAAIsB;AACV,CAAA,EAAGb,KACDP,KAAKqB,aAAa;EAChBC,KAAK3B,IAAIqB,KAAK,2CAA2C,OAAA;EACzDO,QAAQpB;EACRqB,QAAQ1B,IAAI2B;AACd,CAAA,CAAA;AAOK,IAAMC,cAAqBtB,cAAO;EACvCe,IAAIrB,IAAIsB;AACV,CAAA,EAAGb,KACDP,KAAKqB,aAAa;EAChBC,KAAK3B,IAAIqB,KAAK,2CAA2C,OAAA;EACzDO,QAAQpB;EACRqB,QAAQ1B,IAAI2B;AACd,CAAA,CAAA;",
|
|
6
|
+
"names": ["Schema", "DXN", "Annotation", "Feed", "Obj", "Ref", "Type", "FormInputAnnotation", "LabelAnnotation", "Chat", "Struct", "name", "String", "pipe", "optional", "feed", "set", "viewType", "IconAnnotation", "icon", "hue", "makeObject", "make", "props", "LegacyCompanionTo", "id", "ID", "makeRelation", "dxn", "source", "target", "Unknown", "CompanionTo"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
SyncTriggers,
|
|
85
85
|
definitions_exports
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-KZDQGI3S.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddArtifact
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUT6GB2W.mjs";
|
|
4
4
|
|
|
5
5
|
// src/blueprints/agent/blueprint.ts
|
|
6
6
|
import { Blueprint, Template } from "@dxos/compute";
|
|
@@ -59,10 +59,10 @@ var blueprint_default = blueprint;
|
|
|
59
59
|
|
|
60
60
|
// src/blueprints/agent/operations/index.ts
|
|
61
61
|
import { OperationHandlerSet } from "@dxos/compute";
|
|
62
|
-
var AgentBlueprintHandlers = OperationHandlerSet.lazy(() => import("./add-artifact-
|
|
62
|
+
var AgentBlueprintHandlers = OperationHandlerSet.lazy(() => import("./add-artifact-QEQP6T7Z.mjs"), () => import("./agent-BU6PB7J6.mjs"), () => import("./get-context-6SZ7HOV4.mjs"), () => import("./qualifier-DHPHY3YH.mjs"));
|
|
63
63
|
|
|
64
64
|
export {
|
|
65
65
|
blueprint_default,
|
|
66
66
|
AgentBlueprintHandlers
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-OK3P6URP.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Chat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZHXJBSM.mjs";
|
|
4
4
|
|
|
5
5
|
// src/functions/agent/definitions.ts
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
@@ -23,7 +23,7 @@ var AgentPrompt = Operation.make({
|
|
|
23
23
|
*/
|
|
24
24
|
chat: Schema.optional(Ref.Ref(Chat)),
|
|
25
25
|
/**
|
|
26
|
-
* @default ai.claude.model.claude-opus-4-
|
|
26
|
+
* @default ai.claude.model.claude-opus-4-8
|
|
27
27
|
*/
|
|
28
28
|
model: Schema.optional(ModelName),
|
|
29
29
|
/**
|
|
@@ -59,4 +59,4 @@ var AgentPrompt = Operation.make({
|
|
|
59
59
|
export {
|
|
60
60
|
AgentPrompt
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-WTUY5UCA.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/functions/agent/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport { Routine, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Ref, Registry } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\nimport { Text } from '@dxos/schema';\n\nimport * as Chat from '../../types/Chat';\n\n// TODO(dmaretskyi): Rename to RunRoutine.\nexport const AgentPrompt = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.prompt'),\n name: 'Run Routine',\n description: 'Agentic worker that executes a provided prompt using blueprints and tools.',\n icon: 'ph--brain--regular',\n },\n input: Schema.Struct({\n prompt: Ref.Ref(Routine.Routine),\n\n /**\n * When set, runs in this chat (history, queue, and bound context). Routine blueprints and context objects are merged into the conversation for this request.\n */\n chat: Schema.optional(Ref.Ref(Chat.Chat)),\n\n /**\n * @default ai.claude.model.claude-opus-4-
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport { Routine, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Ref, Registry } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\nimport { Text } from '@dxos/schema';\n\nimport * as Chat from '../../types/Chat';\n\n// TODO(dmaretskyi): Rename to RunRoutine.\nexport const AgentPrompt = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.prompt'),\n name: 'Run Routine',\n description: 'Agentic worker that executes a provided prompt using blueprints and tools.',\n icon: 'ph--brain--regular',\n },\n input: Schema.Struct({\n prompt: Ref.Ref(Routine.Routine),\n\n /**\n * When set, runs in this chat (history, queue, and bound context). Routine blueprints and context objects are merged into the conversation for this request.\n */\n chat: Schema.optional(Ref.Ref(Chat.Chat)),\n\n /**\n * @default ai.claude.model.claude-opus-4-8\n */\n model: Schema.optional(ModelName),\n\n /**\n * Input object or data.\n * References get auto-resolved.\n */\n input: Schema.Any.pipe(Schema.annotations({ title: 'Input' })),\n\n systemInstructions: Schema.optional(Schema.String).annotations({\n description: 'Additional system instructions to add to the system prompt.',\n }),\n }),\n output: Schema.Any,\n // ECHO types that the handler loads via Database.load(). Declaring them here ensures the\n // runtime registers their schema before remote invocation (e.g. via the EDGE function service).\n types: [Routine.Routine, Text.Text, Feed.Feed, Chat.Chat],\n services: [\n AiService.AiService,\n Database.Service,\n Feed.FeedService,\n OpaqueToolkit.OpaqueToolkitProvider,\n Registry.Service,\n Trace.TraceService,\n ],\n});\n"],
|
|
5
5
|
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,WAAWC,eAAeC,iBAAiB;AACpD,SAASC,SAASC,OAAOC,iBAAiB;AAC1C,SAASC,UAAUC,MAAMC,KAAKC,gBAAgB;AAC9C,SAASC,WAAW;AACpB,SAASC,YAAY;AAKd,IAAMC,cAAcC,UAAUC,KAAK;EACxCC,MAAM;IACJC,KAAKC,IAAIH,KAAK,0BAAA;IACdI,MAAM;IACNC,aAAa;IACbC,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBC,QAAQC,IAAIA,IAAIC,QAAQA,OAAO;;;;IAK/BC,MAAaC,gBAASH,IAAIA,IAASI,IAAI,CAAA;;;;IAKvCC,OAAcF,gBAASG,SAAAA;;;;;IAMvBT,OAAcU,WAAIC,KAAYC,mBAAY;MAAEC,OAAO;IAAQ,CAAA,CAAA;IAE3DC,oBAA2BR,gBAAgBS,aAAM,EAAEH,YAAY;MAC7Dd,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,QAAeN;;;EAGfO,OAAO;IAACb,QAAQA;IAASc,KAAKA;IAAMC,KAAKA;IAAWZ;;EACpDa,UAAU;IACRC,UAAUA;IACVC,SAASC;IACTJ,KAAKK;IACLC,cAAcC;IACdC,SAASJ;IACTK,MAAMC;;AAEV,CAAA;",
|
|
6
6
|
"names": ["Schema", "AiService", "OpaqueToolkit", "ModelName", "Routine", "Trace", "Operation", "Database", "Feed", "Ref", "Registry", "DXN", "Text", "AgentPrompt", "Operation", "make", "meta", "key", "DXN", "name", "description", "icon", "input", "Struct", "prompt", "Ref", "Routine", "chat", "optional", "Chat", "model", "ModelName", "Any", "pipe", "annotations", "title", "systemInstructions", "String", "output", "types", "Text", "Feed", "services", "AiService", "Database", "Service", "FeedService", "OpaqueToolkit", "OpaqueToolkitProvider", "Registry", "Trace", "TraceService"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Agent_exports,
|
|
3
|
+
Plan_exports
|
|
4
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__export
|
|
7
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/blueprints/delegation/operations/delegate-task.ts
|
|
10
|
+
var delegate_task_exports = {};
|
|
11
|
+
__export(delegate_task_exports, {
|
|
12
|
+
DelegateTask: () => DelegateTask,
|
|
13
|
+
default: () => delegate_task_default
|
|
14
|
+
});
|
|
15
|
+
import * as Effect from "effect/Effect";
|
|
16
|
+
import * as Schema from "effect/Schema";
|
|
17
|
+
import { AiContext } from "@dxos/assistant";
|
|
18
|
+
import { Operation } from "@dxos/compute";
|
|
19
|
+
import { Database, Obj } from "@dxos/echo";
|
|
20
|
+
import { DXN } from "@dxos/keys";
|
|
21
|
+
import { trim } from "@dxos/util";
|
|
22
|
+
var DelegateTask = Operation.make({
|
|
23
|
+
meta: {
|
|
24
|
+
key: DXN.make("org.dxos.function.delegation.delegateTask"),
|
|
25
|
+
name: "Delegate task",
|
|
26
|
+
description: trim`
|
|
27
|
+
Delegate a unit of work to a sub-agent.
|
|
28
|
+
Provide either \`id\` (an existing plan task from update-tasks) or \`title\` (to create a new task).
|
|
29
|
+
Marks the task in-progress and delegated so the supervisor spawns a background sub-agent.
|
|
30
|
+
`,
|
|
31
|
+
icon: "ph--share-network--regular"
|
|
32
|
+
},
|
|
33
|
+
input: Schema.Struct({
|
|
34
|
+
id: Schema.optional(Plan_exports.TaskId).annotations({
|
|
35
|
+
description: "Id of an existing plan task to delegate (from update-tasks)."
|
|
36
|
+
}),
|
|
37
|
+
title: Schema.optional(Schema.String).annotations({
|
|
38
|
+
description: "Title for a new task to create and delegate. Omit when delegating by id."
|
|
39
|
+
})
|
|
40
|
+
}),
|
|
41
|
+
output: Schema.Any,
|
|
42
|
+
services: [
|
|
43
|
+
AiContext.Service,
|
|
44
|
+
Database.Service
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
var delegate_task_default = DelegateTask.pipe(Operation.withHandler(Effect.fn(function* ({ id, title }) {
|
|
48
|
+
const hasId = id !== void 0;
|
|
49
|
+
const hasTitle = title !== void 0 && title.length > 0;
|
|
50
|
+
if (hasId === hasTitle) {
|
|
51
|
+
return yield* Effect.fail(new Error("Provide exactly one of `id` (existing plan task) or `title` (new task to create)."));
|
|
52
|
+
}
|
|
53
|
+
const agent = yield* Agent_exports.getFromChatContext;
|
|
54
|
+
const plan = yield* Database.load(agent.plan);
|
|
55
|
+
if (hasId) {
|
|
56
|
+
const existing = plan.tasks.find((task) => task.id === id);
|
|
57
|
+
if (!existing) {
|
|
58
|
+
return yield* Effect.fail(new Error(`Plan task not found: ${id}`));
|
|
59
|
+
}
|
|
60
|
+
if (existing.status === "done" || existing.status === "failed") {
|
|
61
|
+
return yield* Effect.fail(new Error(`Plan task "${id}" is already ${existing.status} and cannot be delegated.`));
|
|
62
|
+
}
|
|
63
|
+
Obj.update(plan, (plan2) => {
|
|
64
|
+
const task = plan2.tasks.find((task2) => task2.id === id);
|
|
65
|
+
if (task) {
|
|
66
|
+
task.delegated = true;
|
|
67
|
+
task.status = "in-progress";
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
} else {
|
|
71
|
+
if (title === void 0) {
|
|
72
|
+
return yield* Effect.fail(new Error("Provide exactly one of `id` (existing plan task) or `title` (new task to create)."));
|
|
73
|
+
}
|
|
74
|
+
Obj.update(plan, (plan2) => {
|
|
75
|
+
Plan_exports.addTasks(plan2, [
|
|
76
|
+
{
|
|
77
|
+
title,
|
|
78
|
+
status: "in-progress",
|
|
79
|
+
delegated: true
|
|
80
|
+
}
|
|
81
|
+
]);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return trim`
|
|
85
|
+
Delegated work as an in-progress task. Current plan:
|
|
86
|
+
<plan>
|
|
87
|
+
${Plan_exports.formatPlan(plan)}
|
|
88
|
+
</plan>
|
|
89
|
+
`;
|
|
90
|
+
})));
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
DelegateTask,
|
|
94
|
+
delegate_task_default,
|
|
95
|
+
delegate_task_exports
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=chunk-ZA5WZL4H.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/delegation/operations/delegate-task.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { AiContext } from '@dxos/assistant';\nimport { Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nimport { Agent, Plan } from '../../../types';\n\nexport const DelegateTask = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.delegation.delegateTask'),\n name: 'Delegate task',\n description: trim`\n Delegate a unit of work to a sub-agent.\n Provide either \\`id\\` (an existing plan task from update-tasks) or \\`title\\` (to create a new task).\n Marks the task in-progress and delegated so the supervisor spawns a background sub-agent.\n `,\n icon: 'ph--share-network--regular',\n },\n input: Schema.Struct({\n id: Schema.optional(Plan.TaskId).annotations({\n description: 'Id of an existing plan task to delegate (from update-tasks).',\n }),\n title: Schema.optional(Schema.String).annotations({\n description: 'Title for a new task to create and delegate. Omit when delegating by id.',\n }),\n }),\n output: Schema.Any,\n services: [AiContext.Service, Database.Service],\n});\n\n/**\n * Records delegated work as an in-progress task on the current agent's plan.\n */\nexport default DelegateTask.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ id, title }) {\n const hasId = id !== undefined;\n const hasTitle = title !== undefined && title.length > 0;\n if (hasId === hasTitle) {\n return yield* Effect.fail(\n new Error('Provide exactly one of `id` (existing plan task) or `title` (new task to create).'),\n );\n }\n\n const agent = yield* Agent.getFromChatContext;\n const plan = yield* Database.load(agent.plan);\n\n if (hasId) {\n const existing = plan.tasks.find((task) => task.id === id);\n if (!existing) {\n return yield* Effect.fail(new Error(`Plan task not found: ${id}`));\n }\n if (existing.status === 'done' || existing.status === 'failed') {\n return yield* Effect.fail(\n new Error(`Plan task \"${id}\" is already ${existing.status} and cannot be delegated.`),\n );\n }\n\n Obj.update(plan, (plan) => {\n const task = plan.tasks.find((task) => task.id === id);\n if (task) {\n task.delegated = true;\n task.status = 'in-progress';\n }\n });\n } else {\n if (title === undefined) {\n return yield* Effect.fail(\n new Error('Provide exactly one of `id` (existing plan task) or `title` (new task to create).'),\n );\n }\n Obj.update(plan, (plan) => {\n Plan.addTasks(plan, [{ title, status: 'in-progress', delegated: true }]);\n });\n }\n\n return trim`\n Delegated work as an in-progress task. Current plan:\n <plan>\n ${Plan.formatPlan(plan)}\n </plan>\n `;\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAAA;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;AACpB,SAASC,YAAY;AAId,IAAMC,eAAeC,UAAUC,KAAK;EACzCC,MAAM;IACJC,KAAKC,IAAIH,KAAK,2CAAA;IACdI,MAAM;IACNC,aAAaC;;;;;IAKbC,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBC,IAAWC,gBAASC,aAAKC,MAAM,EAAEC,YAAY;MAC3CT,aAAa;IACf,CAAA;IACAU,OAAcJ,gBAAgBK,aAAM,EAAEF,YAAY;MAChDT,aAAa;IACf,CAAA;EACF,CAAA;EACAY,QAAeC;EACfC,UAAU;IAACC,UAAUC;IAASC,SAASD;;AACzC,CAAA;AAKA,IAAA,wBAAevB,aAAayB,KAC1BxB,UAAUyB,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", "Operation", "make", "meta", "key", "DXN", "name", "description", "trim", "icon", "input", "Struct", "id", "optional", "Plan", "TaskId", "annotations", "title", "String", "output", "Any", "services", "AiContext", "Service", "Database", "pipe", "withHandler", "fn", "hasId", "undefined", "hasTitle", "length", "fail", "Error", "agent", "Agent", "getFromChatContext", "plan", "load", "existing", "tasks", "find", "task", "status", "Obj", "update", "delegated", "addTasks", "formatPlan"]
|
|
7
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blueprint_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OK3P6URP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
CreateAgent,
|
|
6
6
|
SyncTriggers
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-KZDQGI3S.mjs";
|
|
8
|
+
import "./chunk-CUT6GB2W.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Agent_exports
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
12
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
13
13
|
import "./chunk-SYUTQPSB.mjs";
|
|
14
14
|
import "./chunk-J5LGTIGS.mjs";
|
|
15
15
|
|
|
@@ -32,4 +32,4 @@ var create_agent_default = CreateAgent.pipe(Operation.withHandler(Effect.fnUntra
|
|
|
32
32
|
export {
|
|
33
33
|
create_agent_default as default
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=create-agent-
|
|
35
|
+
//# sourceMappingURL=create-agent-7PBQFYHF.mjs.map
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
AgentWorker,
|
|
4
4
|
GetContext,
|
|
5
5
|
Qualifier
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CUT6GB2W.mjs";
|
|
7
|
+
import "./chunk-5HANNHZZ.mjs";
|
|
8
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
9
9
|
import "./chunk-SYUTQPSB.mjs";
|
|
10
10
|
import "./chunk-J5LGTIGS.mjs";
|
|
11
11
|
export {
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
GetContext,
|
|
15
15
|
Qualifier
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=definitions-
|
|
17
|
+
//# sourceMappingURL=definitions-BHRGH45G.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DelegateTask,
|
|
3
3
|
delegate_task_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZA5WZL4H.mjs";
|
|
5
|
+
import "./chunk-5HANNHZZ.mjs";
|
|
6
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
7
7
|
import "./chunk-SYUTQPSB.mjs";
|
|
8
8
|
import "./chunk-J5LGTIGS.mjs";
|
|
9
9
|
export {
|
|
10
10
|
DelegateTask,
|
|
11
11
|
delegate_task_default as default
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=delegate-task-
|
|
13
|
+
//# sourceMappingURL=delegate-task-IQJSRLN3.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GetContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUT6GB2W.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Agent_exports,
|
|
6
6
|
Plan_exports
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5HANNHZZ.mjs";
|
|
8
|
+
import "./chunk-JZHXJBSM.mjs";
|
|
9
9
|
import "./chunk-SYUTQPSB.mjs";
|
|
10
10
|
import "./chunk-J5LGTIGS.mjs";
|
|
11
11
|
|
|
@@ -46,4 +46,4 @@ var get_context_default = GetContext.pipe(Operation.withHandler(Effect.fnUntrace
|
|
|
46
46
|
export {
|
|
47
47
|
get_context_default as default
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=get-context-
|
|
49
|
+
//# sourceMappingURL=get-context-6SZ7HOV4.mjs.map
|