@dxos/assistant-toolkit 0.8.4-main.cb12b3f963 → 0.8.4-main.dfabb4ec29
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-TWTWAY3H.mjs → add-artifact-ZUJ5DMSY.mjs} +3 -3
- package/dist/lib/neutral/{agent-7ROVDSSY.mjs → agent-5NIKAYUK.mjs} +3 -3
- package/dist/lib/neutral/{chunk-2Q63LLSY.mjs → chunk-246ACKSH.mjs} +6 -6
- package/dist/lib/neutral/chunk-246ACKSH.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-43U4ZAOZ.mjs → chunk-FIGO6CA6.mjs} +2 -2
- package/dist/lib/neutral/{chunk-J37DYY7A.mjs → chunk-GV66MKAQ.mjs} +12 -3
- package/dist/lib/neutral/chunk-GV66MKAQ.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-CVUA23QI.mjs → chunk-IKBIORQX.mjs} +14 -14
- package/dist/lib/neutral/chunk-IKBIORQX.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-DN4LTRFN.mjs → chunk-P4ZMYO4K.mjs} +27 -26
- package/dist/lib/neutral/chunk-P4ZMYO4K.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-2XK7EWKJ.mjs → chunk-QO5SU37C.mjs} +5 -5
- package/dist/lib/neutral/{chunk-2XK7EWKJ.mjs.map → chunk-QO5SU37C.mjs.map} +3 -3
- package/dist/lib/neutral/{chunk-OHDGJMVE.mjs → chunk-XUF53B6B.mjs} +2 -2
- package/dist/lib/neutral/{context-add-IIDPRRVB.mjs → context-add-VB7AOY3G.mjs} +2 -2
- package/dist/lib/neutral/{context-remove-RDYV4PD4.mjs → context-remove-VCM3VPSO.mjs} +2 -2
- package/dist/lib/neutral/{create-project-WEQYCL7A.mjs → create-project-EIF4OJMY.mjs} +5 -5
- package/dist/lib/neutral/{get-context-S735CUYM.mjs → get-context-TN7X7U2H.mjs} +3 -3
- package/dist/lib/neutral/index.mjs +31 -19
- package/dist/lib/neutral/index.mjs.map +3 -3
- package/dist/lib/neutral/{load-LI7HHVD6.mjs → load-ALP3TK2E.mjs} +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{object-create-ZRBHR72E.mjs → object-create-Z57Y3X6Y.mjs} +2 -2
- package/dist/lib/neutral/{object-delete-I266YAXI.mjs → object-delete-X53LS37B.mjs} +2 -2
- package/dist/lib/neutral/{object-update-HY4GI7LA.mjs → object-update-GVKSBR7T.mjs} +2 -2
- package/dist/lib/neutral/{project-KEZSS5UM.mjs → project-HPHTZ2CI.mjs} +4 -4
- package/dist/lib/neutral/{project-rules-UGFRHIX7.mjs → project-rules-IVDHKSKI.mjs} +3 -3
- package/dist/lib/neutral/{prompt-NPOR2MVC.mjs → prompt-Y7NN7M5D.mjs} +8 -5
- package/dist/lib/neutral/{prompt-NPOR2MVC.mjs.map → prompt-Y7NN7M5D.mjs.map} +3 -3
- package/dist/lib/neutral/{qualifier-NW5VBP64.mjs → qualifier-VDOY5CWU.mjs} +3 -3
- package/dist/lib/neutral/{query-B3NOYFCK.mjs → query-PPJU5622.mjs} +2 -2
- package/dist/lib/neutral/{relation-create-E7VOVXHU.mjs → relation-create-XJ2IX6X3.mjs} +2 -2
- package/dist/lib/neutral/{relation-delete-LXY7W2YO.mjs → relation-delete-EP4KXAFL.mjs} +2 -2
- package/dist/lib/neutral/{schema-add-4TXJO2V7.mjs → schema-add-Z5CY6P24.mjs} +2 -2
- package/dist/lib/neutral/{schema-list-PJS5AFZ3.mjs → schema-list-W326VPVX.mjs} +2 -2
- package/dist/lib/neutral/{sync-triggers-RFM3YGKG.mjs → sync-triggers-CDMJVW6E.mjs} +4 -4
- package/dist/lib/neutral/{tag-add-5NOHUTIE.mjs → tag-add-VNIIOVJA.mjs} +2 -2
- package/dist/lib/neutral/{tag-remove-QTKYDJAW.mjs → tag-remove-6R2R27W3.mjs} +2 -2
- package/dist/lib/neutral/{update-tasks-QN2EMFUU.mjs → update-tasks-H7SWIFQL.mjs} +3 -3
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +8 -4
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +4 -2
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +4 -2
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +4 -4
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +2 -2
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +2 -2
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +4 -4
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +2 -2
- package/dist/types/src/functions/agent/definitions.d.ts +6 -4
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
- package/dist/types/src/types/Agent.d.ts +2 -2
- package/dist/types/src/types/Agent.d.ts.map +1 -1
- package/dist/types/src/types/McpServer.d.ts +4 -1
- package/dist/types/src/types/McpServer.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -25
- package/src/blueprints/automation/blueprint.ts +1 -1
- package/src/blueprints/blueprint-manager/blueprint.ts +2 -2
- package/src/blueprints/browser/blueprint.test.ts +3 -3
- package/src/blueprints/browser/blueprint.ts +1 -1
- package/src/blueprints/database/blueprint.ts +1 -1
- package/src/blueprints/database/functions/definitions.ts +13 -13
- package/src/blueprints/discord/blueprint.ts +1 -1
- package/src/blueprints/linear/blueprint.ts +1 -1
- package/src/blueprints/memory/blueprint.ts +1 -1
- package/src/blueprints/project/blueprint.test.ts +4 -4
- package/src/blueprints/project/blueprint.ts +2 -2
- package/src/blueprints/project/functions/definitions.ts +4 -4
- package/src/functions/agent/definitions.ts +7 -2
- package/src/functions/agent/prompt.ts +4 -1
- package/src/types/Agent.ts +19 -18
- package/src/types/McpServer.ts +5 -5
- package/dist/lib/neutral/chunk-2Q63LLSY.mjs.map +0 -7
- package/dist/lib/neutral/chunk-CVUA23QI.mjs.map +0 -7
- package/dist/lib/neutral/chunk-DN4LTRFN.mjs.map +0 -7
- package/dist/lib/neutral/chunk-J37DYY7A.mjs.map +0 -7
- /package/dist/lib/neutral/{add-artifact-TWTWAY3H.mjs.map → add-artifact-ZUJ5DMSY.mjs.map} +0 -0
- /package/dist/lib/neutral/{agent-7ROVDSSY.mjs.map → agent-5NIKAYUK.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-43U4ZAOZ.mjs.map → chunk-FIGO6CA6.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-OHDGJMVE.mjs.map → chunk-XUF53B6B.mjs.map} +0 -0
- /package/dist/lib/neutral/{context-add-IIDPRRVB.mjs.map → context-add-VB7AOY3G.mjs.map} +0 -0
- /package/dist/lib/neutral/{context-remove-RDYV4PD4.mjs.map → context-remove-VCM3VPSO.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-project-WEQYCL7A.mjs.map → create-project-EIF4OJMY.mjs.map} +0 -0
- /package/dist/lib/neutral/{get-context-S735CUYM.mjs.map → get-context-TN7X7U2H.mjs.map} +0 -0
- /package/dist/lib/neutral/{load-LI7HHVD6.mjs.map → load-ALP3TK2E.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-create-ZRBHR72E.mjs.map → object-create-Z57Y3X6Y.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-delete-I266YAXI.mjs.map → object-delete-X53LS37B.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-update-HY4GI7LA.mjs.map → object-update-GVKSBR7T.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-KEZSS5UM.mjs.map → project-HPHTZ2CI.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-rules-UGFRHIX7.mjs.map → project-rules-IVDHKSKI.mjs.map} +0 -0
- /package/dist/lib/neutral/{qualifier-NW5VBP64.mjs.map → qualifier-VDOY5CWU.mjs.map} +0 -0
- /package/dist/lib/neutral/{query-B3NOYFCK.mjs.map → query-PPJU5622.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-create-E7VOVXHU.mjs.map → relation-create-XJ2IX6X3.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-delete-LXY7W2YO.mjs.map → relation-delete-EP4KXAFL.mjs.map} +0 -0
- /package/dist/lib/neutral/{schema-add-4TXJO2V7.mjs.map → schema-add-Z5CY6P24.mjs.map} +0 -0
- /package/dist/lib/neutral/{schema-list-PJS5AFZ3.mjs.map → schema-list-W326VPVX.mjs.map} +0 -0
- /package/dist/lib/neutral/{sync-triggers-RFM3YGKG.mjs.map → sync-triggers-CDMJVW6E.mjs.map} +0 -0
- /package/dist/lib/neutral/{tag-add-5NOHUTIE.mjs.map → tag-add-VNIIOVJA.mjs.map} +0 -0
- /package/dist/lib/neutral/{tag-remove-QTKYDJAW.mjs.map → tag-remove-6R2R27W3.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-tasks-QN2EMFUU.mjs.map → update-tasks-H7SWIFQL.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ObjectCreate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/object-create.ts
|
|
@@ -32,4 +32,4 @@ var object_create_default = ObjectCreate.pipe(Operation.withHandler(Effect.fn(fu
|
|
|
32
32
|
export {
|
|
33
33
|
object_create_default as default
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=object-create-
|
|
35
|
+
//# sourceMappingURL=object-create-Z57Y3X6Y.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ObjectDelete
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/object-delete.ts
|
|
@@ -15,4 +15,4 @@ var object_delete_default = ObjectDelete.pipe(Operation.withHandler(Effect.fn(fu
|
|
|
15
15
|
export {
|
|
16
16
|
object_delete_default as default
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=object-delete-
|
|
18
|
+
//# sourceMappingURL=object-delete-X53LS37B.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ObjectUpdate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/object-update.ts
|
|
@@ -25,4 +25,4 @@ var object_update_default = ObjectUpdate.pipe(Operation.withHandler(Effect.fn(fu
|
|
|
25
25
|
export {
|
|
26
26
|
object_update_default as default
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=object-update-
|
|
28
|
+
//# sourceMappingURL=object-update-GVKSBR7T.mjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentBlueprintHandlers,
|
|
3
3
|
blueprint_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QO5SU37C.mjs";
|
|
5
5
|
import {
|
|
6
6
|
AddArtifact,
|
|
7
7
|
AgentWorker,
|
|
8
8
|
GetContext,
|
|
9
9
|
Qualifier
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-246ACKSH.mjs";
|
|
11
|
+
import "./chunk-P4ZMYO4K.mjs";
|
|
12
12
|
import "./chunk-NR3GTWRC.mjs";
|
|
13
13
|
import "./chunk-KGU725LW.mjs";
|
|
14
14
|
import "./chunk-J5LGTIGS.mjs";
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
GetContext,
|
|
21
21
|
Qualifier
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=project-
|
|
23
|
+
//# sourceMappingURL=project-HPHTZ2CI.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRules
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XUF53B6B.mjs";
|
|
4
|
+
import "./chunk-P4ZMYO4K.mjs";
|
|
5
5
|
import "./chunk-NR3GTWRC.mjs";
|
|
6
6
|
import "./chunk-KGU725LW.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
@@ -75,4 +75,4 @@ var project_rules_default = AgentRules.pipe(Operation.withHandler(Effect.fnUntra
|
|
|
75
75
|
export {
|
|
76
76
|
project_rules_default as default
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=project-rules-
|
|
78
|
+
//# sourceMappingURL=project-rules-IVDHKSKI.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentPrompt
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GV66MKAQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Chat
|
|
6
6
|
} from "./chunk-NR3GTWRC.mjs";
|
|
@@ -113,7 +113,10 @@ ${data.systemInstructions}`;
|
|
|
113
113
|
}), makeToolResolverFromOperations())));
|
|
114
114
|
return yield* Deferred.poll(resultSink).pipe(Effect.flatten, Effect.flatten, Effect.catchTag("NoSuchElementException", () => Effect.fail(new PromptError("Agent did not signal task completion.", {}))));
|
|
115
115
|
})));
|
|
116
|
-
}, Effect.
|
|
116
|
+
}, Effect.tapBoth({
|
|
117
|
+
onSuccess: () => Database.flush(),
|
|
118
|
+
onFailure: () => Database.flush()
|
|
119
|
+
}), Effect.scoped)), Operation.opaqueHandler);
|
|
117
120
|
var makePromptAgentToolkit = (options) => {
|
|
118
121
|
class PromptAgentToolkit extends Toolkit.make(Tool.make("completeJob", {
|
|
119
122
|
parameters: {
|
|
@@ -150,13 +153,13 @@ var ToolExecutionService = ({ feed }) => Layer.unwrapEffect(Effect.gen(function*
|
|
|
150
153
|
log("invoking operation", {
|
|
151
154
|
operationDef,
|
|
152
155
|
input
|
|
153
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
156
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 133, S: this });
|
|
154
157
|
const result = yield* operationInvoker.invoke(operationDef, input, {
|
|
155
158
|
conversation: Obj.getDXN(feed).toString()
|
|
156
159
|
}).pipe(Effect.orDie);
|
|
157
160
|
log("result", {
|
|
158
161
|
result
|
|
159
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
162
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 140, S: this });
|
|
160
163
|
return result;
|
|
161
164
|
})
|
|
162
165
|
});
|
|
@@ -164,4 +167,4 @@ var ToolExecutionService = ({ feed }) => Layer.unwrapEffect(Effect.gen(function*
|
|
|
164
167
|
export {
|
|
165
168
|
prompt_default as default
|
|
166
169
|
};
|
|
167
|
-
//# sourceMappingURL=prompt-
|
|
170
|
+
//# sourceMappingURL=prompt-Y7NN7M5D.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/functions/agent/prompt.ts", "../../../src/errors.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Tool from '@effect/ai/Tool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Array from 'effect/Array';\nimport * as Deferred from 'effect/Deferred';\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\nimport * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport {\n AiSession,\n getOperationFromTool,\n makeToolExecutionService,\n makeToolResolverFromOperations,\n} from '@dxos/assistant';\nimport { Template, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Obj, Ref } from '@dxos/echo';\nimport { acquireReleaseResource } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { trim } from '@dxos/util';\n\nimport { PromptError } from '../../errors';\nimport * as Chat from '../../types/Chat';\nimport { AgentPrompt } from './definitions';\n\nconst DEFAULT_MODEL: ModelName = '@anthropic/claude-opus-4-6';\n\nexport default AgentPrompt.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* (data) {\n log.info('processing input', { input: data.input });\n\n const input = yield* Ref.isRef(data.input)\n ? Database.load(data.input).pipe(Effect.map(Obj.toJSON))\n : Effect.succeed(data.input);\n\n yield* Database.flush();\n const prompt = yield* Database.load(data.prompt);\n yield* Trace.emitStatus(`Running ${prompt.id}`);\n\n log.info('starting agent', { prompt: prompt.id, input });\n\n const blueprints = yield* Function.pipe(\n prompt.blueprints,\n Effect.forEach(Database.loadOption),\n Effect.map(Array.filter(Option.isSome)),\n Effect.map(Array.map((option) => option.value)),\n );\n\n const objects = yield* Function.pipe(\n prompt.context,\n Effect.forEach(Database.loadOption),\n Effect.map(Array.filter(Option.isSome)),\n Effect.map(Array.map((option) => option.value)),\n );\n\n const promptInstructions = yield* Database.load(prompt.instructions.source);\n let promptText = Template.process(promptInstructions.content, input);\n\n if (input !== undefined) {\n promptText += `\\n<input>${JSON.stringify(input)}</input>`;\n }\n\n let systemText = trim`\n You are an agent running in the non-interactive mode.\n The user is unable to see what you are doing, and cannot answer any questions.\n Do not ask questions.\n Complete the task before you, and at the end call [completeJob] with the output.\n If you are unable to complete the task, call [completeJob] with the failure reason.\n If no output is required, call [completeJob] with an empty object: {}\n Do not stop until you call [completeJob].\n `;\n if (data.systemInstructions) {\n systemText += `\\n\\n${data.systemInstructions}`;\n }\n\n const modelLayer = AiService.model(data.model ?? DEFAULT_MODEL);\n\n let feed: Feed.Feed;\n if (data.chat) {\n const chat = yield* Database.load(data.chat);\n invariant(Obj.instanceOf(Chat.Chat, chat), 'Expected Chat object.');\n feed = yield* Database.load(chat.feed);\n } else {\n feed = yield* Database.add(Feed.make());\n }\n\n const resultSink = yield* Deferred.make<unknown, PromptError>();\n const promptToolkit = makePromptAgentToolkit({\n output: Schema.Any, // TODO(dmaretskyi): Use prompt's output schema.\n resultSink,\n });\n\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const session = yield* acquireReleaseResource(() => new AiSession({ feed, runtime }));\n\n yield* Effect.promise(() =>\n session.context.bind({\n blueprints: blueprints.map((blueprint) => Ref.make(blueprint)),\n objects: objects.map((object) => Ref.make(object as Obj.Unknown)),\n }),\n );\n\n yield* session\n .createRequest({\n prompt: promptText,\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.gen(function* () {\n yield* session\n .createRequest({\n prompt: 'You must signal task completion by calling [completeJob] with the output or failure reason.',\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.fail(new PromptError('Agent did not signal task completion.', {})),\n ),\n );\n }),\n ),\n );\n },\n Effect.
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,YAAYA,UAAU;AACtB,YAAYC,aAAa;AACzB,YAAYC,WAAW;AACvB,YAAYC,cAAc;AAC1B,YAAYC,YAAY;AACxB,YAAYC,cAAc;AAC1B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ImB,eAAAA,eAAAA,YAAAA,qBAAAA;IAIjE;qCAMSJ,CAAa,CAAC,CAAA;gBACL,cAAA,UAAA,EAAA,KAAA,gBAAA,gBAAA,gBAAA,0BAAA,MAAA,WAAA,aAAA;WACRC,QAAQvB,cAAAA;MACRwB,QAAAA;MAEDC,QACCR;MACoDV,SAAAA;IAAK,CAAA,EAAA,KAAImB,eAAAA,eAAAA,YAAAA,qBAAAA;MAIjE;IAOF,CAAA,GAAA,+BAAA,CAAA,CAAA,CAAA;AAICC,
|
|
6
|
-
"names": ["Tool", "Toolkit", "Array", "Deferred", "Effect", "Function", "Layer", "Option", "Schema", "AiService", "OpaqueToolkit", "AiSession", "getOperationFromTool", "makeToolExecutionService", "makeToolResolverFromOperations", "Template", "Trace", "Operation", "Database", "Feed", "Obj", "Ref", "acquireReleaseResource", "invariant", "log", "trim", "BaseError", "PromptError", "extend", "message", "context", "DEFAULT_MODEL", "log", "data", "input", "Database", "prompt", "load", "Trace", "emitStatus", "info", "objects", "Function", "context", "promptInstructions", "instructions", "promptText", "process", "JSON", "systemText", "trim", "modelLayer", "AiService", "model", "invariant", "Obj", "feed", "chat", "add", "Feed", "make", "resultSink", "Deferred", "output", "Any", "runtime", "Effect", "map", "object", "Ref", "session", "createRequest", "system", "toolkit", "pipe", "makeToolResolverFromOperations", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Tool from '@effect/ai/Tool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Array from 'effect/Array';\nimport * as Deferred from 'effect/Deferred';\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\nimport * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport {\n AiSession,\n getOperationFromTool,\n makeToolExecutionService,\n makeToolResolverFromOperations,\n} from '@dxos/assistant';\nimport { Template, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Obj, Ref } from '@dxos/echo';\nimport { acquireReleaseResource } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { trim } from '@dxos/util';\n\nimport { PromptError } from '../../errors';\nimport * as Chat from '../../types/Chat';\nimport { AgentPrompt } from './definitions';\n\nconst DEFAULT_MODEL: ModelName = '@anthropic/claude-opus-4-6';\n\nexport default AgentPrompt.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* (data) {\n log.info('processing input', { input: data.input });\n\n const input = yield* Ref.isRef(data.input)\n ? Database.load(data.input).pipe(Effect.map(Obj.toJSON))\n : Effect.succeed(data.input);\n\n yield* Database.flush();\n const prompt = yield* Database.load(data.prompt);\n yield* Trace.emitStatus(`Running ${prompt.id}`);\n\n log.info('starting agent', { prompt: prompt.id, input });\n\n const blueprints = yield* Function.pipe(\n prompt.blueprints,\n Effect.forEach(Database.loadOption),\n Effect.map(Array.filter(Option.isSome)),\n Effect.map(Array.map((option) => option.value)),\n );\n\n const objects = yield* Function.pipe(\n prompt.context,\n Effect.forEach(Database.loadOption),\n Effect.map(Array.filter(Option.isSome)),\n Effect.map(Array.map((option) => option.value)),\n );\n\n const promptInstructions = yield* Database.load(prompt.instructions.source);\n let promptText = Template.process(promptInstructions.content, input);\n\n if (input !== undefined) {\n promptText += `\\n<input>${JSON.stringify(input)}</input>`;\n }\n\n let systemText = trim`\n You are an agent running in the non-interactive mode.\n The user is unable to see what you are doing, and cannot answer any questions.\n Do not ask questions.\n Complete the task before you, and at the end call [completeJob] with the output.\n If you are unable to complete the task, call [completeJob] with the failure reason.\n If no output is required, call [completeJob] with an empty object: {}\n Do not stop until you call [completeJob].\n `;\n if (data.systemInstructions) {\n systemText += `\\n\\n${data.systemInstructions}`;\n }\n\n const modelLayer = AiService.model(data.model ?? DEFAULT_MODEL);\n\n let feed: Feed.Feed;\n if (data.chat) {\n const chat = yield* Database.load(data.chat);\n invariant(Obj.instanceOf(Chat.Chat, chat), 'Expected Chat object.');\n feed = yield* Database.load(chat.feed);\n } else {\n feed = yield* Database.add(Feed.make());\n }\n\n const resultSink = yield* Deferred.make<unknown, PromptError>();\n const promptToolkit = makePromptAgentToolkit({\n output: Schema.Any, // TODO(dmaretskyi): Use prompt's output schema.\n resultSink,\n });\n\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const session = yield* acquireReleaseResource(() => new AiSession({ feed, runtime }));\n\n yield* Effect.promise(() =>\n session.context.bind({\n blueprints: blueprints.map((blueprint) => Ref.make(blueprint)),\n objects: objects.map((object) => Ref.make(object as Obj.Unknown)),\n }),\n );\n\n yield* session\n .createRequest({\n prompt: promptText,\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.gen(function* () {\n yield* session\n .createRequest({\n prompt: 'You must signal task completion by calling [completeJob] with the output or failure reason.',\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.fail(new PromptError('Agent did not signal task completion.', {})),\n ),\n );\n }),\n ),\n );\n },\n Effect.tapBoth({\n onSuccess: () => Database.flush(),\n onFailure: () => Database.flush(),\n }),\n Effect.scoped,\n ),\n ),\n Operation.opaqueHandler,\n);\n\nconst makePromptAgentToolkit = (options: {\n output: Schema.Schema.Any;\n resultSink: Deferred.Deferred<unknown, PromptError>;\n}) => {\n class PromptAgentToolkit extends Toolkit.make(\n Tool.make('completeJob', {\n parameters: {\n success: Schema.optional(Schema.Any), // TODO(dmaretskyi): Pipe output schema here.\n failure: Schema.optional(\n Schema.Struct({\n message: Schema.String.annotations({\n description: 'Short message describing the error.',\n }),\n description: Schema.optional(Schema.String).annotations({\n description: 'Optional longer message describing in detail what went wrong',\n }),\n }),\n ),\n },\n }),\n ) {}\n const layer = PromptAgentToolkit.toLayer({\n completeJob: Effect.fnUntraced(function* (result) {\n if (result.failure) {\n yield* Deferred.fail(\n options.resultSink,\n new PromptError(result.failure.message, {\n description: result.failure.description,\n }),\n );\n } else {\n yield* Deferred.succeed(options.resultSink, result.success);\n }\n }),\n });\n\n return OpaqueToolkit.make(PromptAgentToolkit, layer);\n};\n\ninterface ToolExecutionServiceOptions {\n feed: Feed.Feed;\n}\n\nconst ToolExecutionService = ({ feed }: ToolExecutionServiceOptions) =>\n Layer.unwrapEffect(\n Effect.gen(function* () {\n const operationInvoker = yield* Operation.Service;\n return makeToolExecutionService({\n invoke: (tool, input) =>\n Effect.gen(function* () {\n const operationDef = getOperationFromTool(tool).pipe(Option.getOrThrow);\n log('invoking operation', { operationDef, input });\n const result = yield* operationInvoker\n .invoke(operationDef, input, {\n conversation: Obj.getDXN(feed).toString(),\n })\n .pipe(Effect.orDie);\n log('result', { result });\n return result;\n }),\n });\n }),\n );\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { BaseError } from '@dxos/errors';\nimport { DXN } from '@dxos/keys';\n\n/**\n * Agent could not execute prompt.\n */\nexport class PromptError extends BaseError.extend('PromptError') {\n constructor(\n message: string,\n context: {\n description?: string;\n prompt?: DXN.String;\n chat?: DXN.String;\n },\n ) {\n super({\n message,\n context,\n });\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,UAAU;AACtB,YAAYC,aAAa;AACzB,YAAYC,WAAW;AACvB,YAAYC,cAAc;AAC1B,YAAYC,YAAY;AACxB,YAAYC,cAAc;AAC1B,YAAYC,WAAW;AACvB,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,WAAWC,qBAAgC;AACpD,SACEC,WACAC,sBACAC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UAAc7D,sBAAAA;QAAM;QAChD;uBAEI8D,YAAkBC,GAAAA,cAAaC,GAAAA,KAAQ,GAAA,KAAA,CAAA;AACzC,YACCxB,SAAYyB,OAAK,iBAAA,OAAA,cAAA,OAAA;QAChB,cAAU,IAAA,OAAA,IAAA,EAAA,SAAA;cAAET,YAAAA;AAAO,UAAA,UAAA;QACvB;MACF,GAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,KAAA,GAAA,KAAA,CAAA;AACJ,aAAA;IACF,CAAA;;;",
|
|
6
|
+
"names": ["Tool", "Toolkit", "Array", "Deferred", "Effect", "Function", "Layer", "Option", "Schema", "AiService", "OpaqueToolkit", "AiSession", "getOperationFromTool", "makeToolExecutionService", "makeToolResolverFromOperations", "Template", "Trace", "Operation", "Database", "Feed", "Obj", "Ref", "acquireReleaseResource", "invariant", "log", "trim", "BaseError", "PromptError", "extend", "message", "context", "DEFAULT_MODEL", "log", "data", "input", "Database", "prompt", "load", "Trace", "emitStatus", "info", "objects", "Function", "context", "promptInstructions", "instructions", "promptText", "process", "JSON", "systemText", "trim", "modelLayer", "AiService", "model", "invariant", "Obj", "feed", "chat", "add", "Feed", "make", "resultSink", "Deferred", "output", "Any", "runtime", "Effect", "map", "object", "Ref", "session", "createRequest", "system", "toolkit", "pipe", "makeToolResolverFromOperations", "tapBoth", "onSuccess", "onFailure", "scoped", "Operation", "opaqueHandler", "makePromptAgentToolkit", "options", "PromptAgentToolkit", "Toolkit", "failure", "Schema", "annotations", "description", "result", "ToolExecutionService", "unwrapEffect", "makeToolExecutionService", "invoke", "operationDef", "conversation", "getDXN", "toString", "orDie"]
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Qualifier
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-246ACKSH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Agent_exports,
|
|
6
6
|
Plan_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4ZMYO4K.mjs";
|
|
8
8
|
import "./chunk-NR3GTWRC.mjs";
|
|
9
9
|
import "./chunk-KGU725LW.mjs";
|
|
10
10
|
import "./chunk-J5LGTIGS.mjs";
|
|
@@ -85,4 +85,4 @@ var qualifier_default = Qualifier.pipe(Operation.withHandler(Effect.fnUntraced(f
|
|
|
85
85
|
export {
|
|
86
86
|
qualifier_default as default
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=qualifier-
|
|
88
|
+
//# sourceMappingURL=qualifier-VDOY5CWU.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Query
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/query.ts
|
|
@@ -67,4 +67,4 @@ var query_default = Query.pipe(Operation.withHandler(Effect.fn(function* ({ in:
|
|
|
67
67
|
export {
|
|
68
68
|
query_default as default
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=query-
|
|
70
|
+
//# sourceMappingURL=query-PPJU5622.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelationCreate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/relation-create.ts
|
|
@@ -31,4 +31,4 @@ var relation_create_default = RelationCreate.pipe(Operation.withHandler(Effect.f
|
|
|
31
31
|
export {
|
|
32
32
|
relation_create_default as default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=relation-create-
|
|
34
|
+
//# sourceMappingURL=relation-create-XJ2IX6X3.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelationDelete
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/relation-delete.ts
|
|
@@ -15,4 +15,4 @@ var relation_delete_default = RelationDelete.pipe(Operation.withHandler(Effect.f
|
|
|
15
15
|
export {
|
|
16
16
|
relation_delete_default as default
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=relation-delete-
|
|
18
|
+
//# sourceMappingURL=relation-delete-EP4KXAFL.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SchemaAdd
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/schema-add.ts
|
|
@@ -21,4 +21,4 @@ var schema_add_default = SchemaAdd.pipe(Operation.withHandler(Effect.fn(function
|
|
|
21
21
|
export {
|
|
22
22
|
schema_add_default as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=schema-add-
|
|
24
|
+
//# sourceMappingURL=schema-add-Z5CY6P24.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SchemaList
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/schema-list.ts
|
|
@@ -35,4 +35,4 @@ var schema_list_default = SchemaList.pipe(Operation.withHandler(Effect.fn(functi
|
|
|
35
35
|
export {
|
|
36
36
|
schema_list_default as default
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=schema-list-
|
|
38
|
+
//# sourceMappingURL=schema-list-W326VPVX.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SyncTriggers
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XUF53B6B.mjs";
|
|
4
|
+
import "./chunk-P4ZMYO4K.mjs";
|
|
5
5
|
import "./chunk-NR3GTWRC.mjs";
|
|
6
6
|
import "./chunk-KGU725LW.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
@@ -37,7 +37,7 @@ var syncAgentTriggers = (agent) => Effect.gen(function* () {
|
|
|
37
37
|
yield* Database.remove(trigger);
|
|
38
38
|
}
|
|
39
39
|
const triggersEnabled = agent.enabled ?? true;
|
|
40
|
-
const { Qualifier, AgentWorker } = yield* Effect.promise(() => import("./project-
|
|
40
|
+
const { Qualifier, AgentWorker } = yield* Effect.promise(() => import("./project-HPHTZ2CI.mjs"));
|
|
41
41
|
for (const subscription of agent.subscriptions) {
|
|
42
42
|
const targetOption = yield* Database.loadOption(subscription);
|
|
43
43
|
if (Option.isNone(targetOption)) {
|
|
@@ -133,4 +133,4 @@ var syncAgentTriggers = (agent) => Effect.gen(function* () {
|
|
|
133
133
|
export {
|
|
134
134
|
sync_triggers_default as default
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=sync-triggers-
|
|
136
|
+
//# sourceMappingURL=sync-triggers-CDMJVW6E.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagAdd
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/tag-add.ts
|
|
@@ -16,4 +16,4 @@ var tag_add_default = TagAdd.pipe(Operation.withHandler(Effect.fn(function* ({ t
|
|
|
16
16
|
export {
|
|
17
17
|
tag_add_default as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=tag-add-
|
|
19
|
+
//# sourceMappingURL=tag-add-VNIIOVJA.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRemove
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/tag-remove.ts
|
|
@@ -16,4 +16,4 @@ var tag_remove_default = TagRemove.pipe(Operation.withHandler(Effect.fn(function
|
|
|
16
16
|
export {
|
|
17
17
|
tag_remove_default as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=tag-remove-
|
|
19
|
+
//# sourceMappingURL=tag-remove-6R2R27W3.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UpdateTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FIGO6CA6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Agent_exports,
|
|
6
6
|
Plan_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4ZMYO4K.mjs";
|
|
8
8
|
import "./chunk-NR3GTWRC.mjs";
|
|
9
9
|
import "./chunk-KGU725LW.mjs";
|
|
10
10
|
import "./chunk-J5LGTIGS.mjs";
|
|
@@ -43,4 +43,4 @@ var update_tasks_default = UpdateTasks.pipe(Operation.withHandler(Effect.fn(func
|
|
|
43
43
|
export {
|
|
44
44
|
update_tasks_default as default
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=update-tasks-
|
|
46
|
+
//# sourceMappingURL=update-tasks-H7SWIFQL.mjs.map
|
|
@@ -12,16 +12,18 @@ export declare const QueryBlueprints: Operation.Definition<{}, readonly (import(
|
|
|
12
12
|
}>;
|
|
13
13
|
readonly inputs?: readonly {
|
|
14
14
|
readonly name: string;
|
|
15
|
-
readonly kind
|
|
15
|
+
readonly kind: "operation" | "value";
|
|
16
16
|
readonly default?: any;
|
|
17
|
-
readonly
|
|
17
|
+
readonly operation?: string | undefined;
|
|
18
18
|
}[] | undefined;
|
|
19
19
|
};
|
|
20
20
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
21
21
|
readonly agentCanEnable?: boolean | undefined;
|
|
22
22
|
readonly mcpServers?: readonly {
|
|
23
|
+
readonly name?: string | undefined;
|
|
23
24
|
readonly url: string;
|
|
24
25
|
readonly protocol: "http" | "sse";
|
|
26
|
+
readonly apiKey?: string | undefined;
|
|
25
27
|
}[] | undefined;
|
|
26
28
|
})[], Blueprint.RegistryService>;
|
|
27
29
|
export declare const EnableBlueprints: Operation.Definition<{
|
|
@@ -38,16 +40,18 @@ export declare const EnableBlueprints: Operation.Definition<{
|
|
|
38
40
|
}>;
|
|
39
41
|
readonly inputs?: readonly {
|
|
40
42
|
readonly name: string;
|
|
41
|
-
readonly kind
|
|
43
|
+
readonly kind: "operation" | "value";
|
|
42
44
|
readonly default?: any;
|
|
43
|
-
readonly
|
|
45
|
+
readonly operation?: string | undefined;
|
|
44
46
|
}[] | undefined;
|
|
45
47
|
};
|
|
46
48
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
47
49
|
readonly agentCanEnable?: boolean | undefined;
|
|
48
50
|
readonly mcpServers?: readonly {
|
|
51
|
+
readonly name?: string | undefined;
|
|
49
52
|
readonly url: string;
|
|
50
53
|
readonly protocol: "http" | "sse";
|
|
54
|
+
readonly apiKey?: string | undefined;
|
|
51
55
|
}[] | undefined;
|
|
52
56
|
})[];
|
|
53
57
|
readonly rejected: readonly {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;gCAS1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAuB3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAU3B,CAAC"}
|
|
@@ -14,16 +14,18 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
|
14
14
|
}>;
|
|
15
15
|
readonly inputs?: readonly {
|
|
16
16
|
readonly name: string;
|
|
17
|
-
readonly kind
|
|
17
|
+
readonly kind: "operation" | "value";
|
|
18
18
|
readonly default?: any;
|
|
19
|
-
readonly
|
|
19
|
+
readonly operation?: string | undefined;
|
|
20
20
|
}[] | undefined;
|
|
21
21
|
};
|
|
22
22
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
23
23
|
readonly agentCanEnable?: boolean | undefined;
|
|
24
24
|
readonly mcpServers?: readonly {
|
|
25
|
+
readonly name?: string | undefined;
|
|
25
26
|
readonly url: string;
|
|
26
27
|
readonly protocol: "http" | "sse";
|
|
28
|
+
readonly apiKey?: string | undefined;
|
|
27
29
|
}[] | undefined;
|
|
28
30
|
})[];
|
|
29
31
|
readonly rejected: readonly {
|
|
@@ -10,16 +10,18 @@ declare const _default: Operation.WithHandler<Operation.Definition<{}, readonly
|
|
|
10
10
|
}>;
|
|
11
11
|
readonly inputs?: readonly {
|
|
12
12
|
readonly name: string;
|
|
13
|
-
readonly kind
|
|
13
|
+
readonly kind: "operation" | "value";
|
|
14
14
|
readonly default?: any;
|
|
15
|
-
readonly
|
|
15
|
+
readonly operation?: string | undefined;
|
|
16
16
|
}[] | undefined;
|
|
17
17
|
};
|
|
18
18
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
19
19
|
readonly agentCanEnable?: boolean | undefined;
|
|
20
20
|
readonly mcpServers?: readonly {
|
|
21
|
+
readonly name?: string | undefined;
|
|
21
22
|
readonly url: string;
|
|
22
23
|
readonly protocol: "http" | "sse";
|
|
24
|
+
readonly apiKey?: string | undefined;
|
|
23
25
|
}[] | undefined;
|
|
24
26
|
})[], Blueprint.RegistryService>>;
|
|
25
27
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAO,QAAQ,EAAO,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,KAAK;;;;;;;
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAO,QAAQ,EAAO,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,KAAK;;;;;;;wCA4FU,CAAC;AAE7B,eAAO,MAAM,IAAI;;6BAkBW,CAAC;AAE7B,eAAO,MAAM,YAAY;;;6BAiBG,CAAC;AAE7B,eAAO,MAAM,YAAY;;;;;6BAgBG,CAAC;AAE7B,eAAO,MAAM,YAAY;;0BAaG,CAAC;AAE7B,eAAO,MAAM,SAAS;;;;0BAkBM,CAAC;AAE7B,eAAO,MAAM,UAAU;;wCAaK,CAAC;AAE7B,eAAO,MAAM,UAAU;;0BAgBK,CAAC;AAE7B,eAAO,MAAM,aAAa;;0BAgBE,CAAC;AAE7B,eAAO,MAAM,cAAc;;;;;6BAmBC,CAAC;AAE7B,eAAO,MAAM,cAAc;;0BAaC,CAAC;AAE7B,eAAO,MAAM,MAAM;;;6BAgBS,CAAC;AAE7B,eAAO,MAAM,SAAS;;;6BAeM,CAAC"}
|
|
@@ -41,10 +41,10 @@ export declare const AgentWorker: Operation.Definition<{
|
|
|
41
41
|
readonly name: string;
|
|
42
42
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
43
43
|
}[];
|
|
44
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
45
44
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
46
|
-
readonly filterEvents?: boolean | undefined;
|
|
47
45
|
readonly cron?: string | undefined;
|
|
46
|
+
readonly filterEvents?: boolean | undefined;
|
|
47
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
readonly prompt?: string | undefined;
|
|
50
50
|
readonly event?: {
|
|
@@ -110,10 +110,10 @@ export declare const Qualifier: Operation.Definition<{
|
|
|
110
110
|
readonly name: string;
|
|
111
111
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
112
112
|
}[];
|
|
113
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
114
113
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
115
|
-
readonly filterEvents?: boolean | undefined;
|
|
116
114
|
readonly cron?: string | undefined;
|
|
115
|
+
readonly filterEvents?: boolean | undefined;
|
|
116
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
readonly event: {
|
|
119
119
|
readonly from: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAgB,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAgB,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKAqBI,CAAC;AAE7B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAaM,CAAC;AAE7B,eAAO,MAAM,UAAU;;;;;;;;;;uCAqBK,CAAC;AAE7B,eAAO,MAAM,WAAW;;;6CAgBI,CAAC"}
|
|
@@ -39,10 +39,10 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
|
39
39
|
readonly name: string;
|
|
40
40
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
41
41
|
}[];
|
|
42
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
43
42
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
44
|
-
readonly filterEvents?: boolean | undefined;
|
|
45
43
|
readonly cron?: string | undefined;
|
|
44
|
+
readonly filterEvents?: boolean | undefined;
|
|
45
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
readonly event: {
|
|
48
48
|
readonly from: string;
|
|
@@ -42,10 +42,10 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
|
42
42
|
readonly name: string;
|
|
43
43
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
44
44
|
}[];
|
|
45
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
46
45
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
47
|
-
readonly filterEvents?: boolean | undefined;
|
|
48
46
|
readonly cron?: string | undefined;
|
|
47
|
+
readonly filterEvents?: boolean | undefined;
|
|
48
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
49
49
|
}, import("@dxos/echo/Feed").FeedService | import("@dxos/echo-db").QueueService | Blueprint.RegistryService | import("@dxos/echo/Database").Service>>;
|
|
50
50
|
export default _default;
|
|
51
51
|
//# sourceMappingURL=create-project.d.ts.map
|
|
@@ -44,10 +44,10 @@ export declare const CreateAgent: Operation.Definition<{
|
|
|
44
44
|
readonly name: string;
|
|
45
45
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
46
46
|
}[];
|
|
47
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
48
47
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
49
|
-
readonly filterEvents?: boolean | undefined;
|
|
50
48
|
readonly cron?: string | undefined;
|
|
49
|
+
readonly filterEvents?: boolean | undefined;
|
|
50
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
51
51
|
}, Feed.FeedService | QueueService | Blueprint.RegistryService | Database.Service>;
|
|
52
52
|
export declare const SyncTriggers: Operation.Definition<{
|
|
53
53
|
readonly agent: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
@@ -87,10 +87,10 @@ export declare const SyncTriggers: Operation.Definition<{
|
|
|
87
87
|
readonly name: string;
|
|
88
88
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
89
89
|
}[];
|
|
90
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
91
90
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
92
|
-
readonly filterEvents?: boolean | undefined;
|
|
93
91
|
readonly cron?: string | undefined;
|
|
92
|
+
readonly filterEvents?: boolean | undefined;
|
|
93
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
94
94
|
}>;
|
|
95
95
|
}, void, Database.Service>;
|
|
96
96
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -38,10 +38,10 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
|
38
38
|
readonly name: string;
|
|
39
39
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
40
40
|
}[];
|
|
41
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
42
41
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
43
|
-
readonly filterEvents?: boolean | undefined;
|
|
44
42
|
readonly cron?: string | undefined;
|
|
43
|
+
readonly filterEvents?: boolean | undefined;
|
|
44
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
}, void, Database.Service>>;
|
|
47
47
|
export default _default;
|
|
@@ -14,9 +14,9 @@ export declare const AgentPrompt: Operation.Definition<{
|
|
|
14
14
|
}>;
|
|
15
15
|
readonly inputs?: readonly {
|
|
16
16
|
readonly name: string;
|
|
17
|
-
readonly kind
|
|
17
|
+
readonly kind: "operation" | "value";
|
|
18
18
|
readonly default?: any;
|
|
19
|
-
readonly
|
|
19
|
+
readonly operation?: string | undefined;
|
|
20
20
|
}[] | undefined;
|
|
21
21
|
};
|
|
22
22
|
readonly blueprints: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
@@ -30,16 +30,18 @@ export declare const AgentPrompt: Operation.Definition<{
|
|
|
30
30
|
}>;
|
|
31
31
|
readonly inputs?: readonly {
|
|
32
32
|
readonly name: string;
|
|
33
|
-
readonly kind
|
|
33
|
+
readonly kind: "operation" | "value";
|
|
34
34
|
readonly default?: any;
|
|
35
|
-
readonly
|
|
35
|
+
readonly operation?: string | undefined;
|
|
36
36
|
}[] | undefined;
|
|
37
37
|
};
|
|
38
38
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
39
39
|
readonly agentCanEnable?: boolean | undefined;
|
|
40
40
|
readonly mcpServers?: readonly {
|
|
41
|
+
readonly name?: string | undefined;
|
|
41
42
|
readonly url: string;
|
|
42
43
|
readonly protocol: "http" | "sse";
|
|
44
|
+
readonly apiKey?: string | undefined;
|
|
43
45
|
}[] | undefined;
|
|
44
46
|
}>[];
|
|
45
47
|
readonly context: readonly any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAa,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAW,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAO,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAa,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAW,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAO,MAAM,YAAY,CAAC;AAMjD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yJAyCI,CAAC"}
|