@sepveneto/dnde-agent 0.2.0-beta.8 → 0.2.0-beta.9
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/README.md +9 -50
- package/dist/{agent-CfRVWxVS.js → agent-D0iJXvAv.js} +1 -1
- package/dist/agentInstructions.d.ts +2 -0
- package/dist/agentInstructions.d.ts.map +1 -0
- package/dist/agents.d.ts +0 -1
- package/dist/agents.d.ts.map +1 -1
- package/dist/element.js +7608 -7679
- package/dist/{index-0F_QrOIG.js → index-DiCtdOy1.js} +7494 -7565
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -20
- package/dist/tool.d.ts +0 -4
- package/dist/tool.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/initialization.d.ts +0 -50
- package/dist/initialization.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export type { CreateAgentsOptions } from './agents';
|
|
|
9
9
|
export { createAgents, DEFAULT_AGENT_BFF_URL, DEFAULT_AGENT_MODEL, } from './agents';
|
|
10
10
|
export type { PreparedEditorOperation, } from './editorContext';
|
|
11
11
|
export { completeEditorOperation, createEditorAgentContext, editorOperationSucceeded, prepareEditorOperation, } from './editorContext';
|
|
12
|
-
export type { AgentInitializationMode, AgentInitializationRequest, AgentInitializationResult, AgentInitializationTool, } from './initialization';
|
|
13
|
-
export { defineInitializationTool, findInitializationTool, INITIALIZATION_TOOL_ROLE, } from './initialization';
|
|
14
12
|
export type { AgentRuntime, AgentRuntimeConfig, AgentRuntimeOptions, AgentRuntimeTurn, } from './runtime';
|
|
15
13
|
export { createAgentRuntime } from './runtime';
|
|
16
14
|
export type { AgentUploadedFile } from './services';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qB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AAQ,CAAA;AAEf,OAAO,EACL,eAAe,EACf,gBAAgB,GACjB,MAAM,QAAQ,CAAA;AACf,YAAY,EACV,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,GACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,KAAK,EACL,aAAa,EACb,GAAG,EACH,MAAM,EACN,IAAI,GACL,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { c as t, D as
|
|
1
|
+
import { c as t, D as s, k as n, B as r, g as o, R as i, l as A, h as E, v as c, j as d, m as g, y as p, z as l, q as m, u, x as L, E as R, t as T } from "./index-DiCtdOy1.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Agent,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
o as
|
|
8
|
-
|
|
9
|
-
A as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
L as
|
|
19
|
-
O as findInitializationTool,
|
|
20
|
-
_ as prepareEditorOperation,
|
|
21
|
-
m as resolveAgentServiceURL,
|
|
4
|
+
s as DEFAULT_AGENT_BFF_URL,
|
|
5
|
+
n as DEFAULT_AGENT_MODEL,
|
|
6
|
+
r as MemorySession,
|
|
7
|
+
o as MpdAgent,
|
|
8
|
+
i as Runner,
|
|
9
|
+
A as completeEditorOperation,
|
|
10
|
+
E as createAgentElement,
|
|
11
|
+
c as createAgentRuntime,
|
|
12
|
+
d as createAgents,
|
|
13
|
+
g as createEditorAgentContext,
|
|
14
|
+
p as defineAgentTool,
|
|
15
|
+
l as defineCapability,
|
|
16
|
+
m as editorOperationSucceeded,
|
|
17
|
+
u as prepareEditorOperation,
|
|
18
|
+
L as resolveAgentServiceURL,
|
|
22
19
|
R as run,
|
|
23
|
-
|
|
20
|
+
T as tool
|
|
24
21
|
};
|
package/dist/tool.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { AgentHostApi, EditorAgentContext } from './types';
|
|
3
|
-
/** Workflow roles understood by the built-in agent topology. */
|
|
4
|
-
export type AgentToolRole = 'initialization';
|
|
5
3
|
export interface AgentToolContext {
|
|
6
4
|
api: AgentHostApi;
|
|
7
5
|
getContext: () => Record<string, unknown>;
|
|
@@ -17,8 +15,6 @@ export interface AgentToolDefinition<TInput = unknown, TOutput = unknown> {
|
|
|
17
15
|
kind?: 'agent-tool';
|
|
18
16
|
name: string;
|
|
19
17
|
description: string;
|
|
20
|
-
/** Optional workflow role used by the agent topology. */
|
|
21
|
-
role?: AgentToolRole;
|
|
22
18
|
parameters?: z.ZodType;
|
|
23
19
|
/** Alias kept for existing capability definitions. */
|
|
24
20
|
inputSchema?: z.ZodType;
|
package/dist/tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE/D,
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE/D,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,YAAY,CAAA;IACjB,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,0DAA0D;IAC1D,OAAO,EAAE,kBAAkB,CAAA;IAC3B,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAA;CACjC;AAED,MAAM,WAAW,mBAAmB,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IACtE,iFAAiF;IACjF,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;IACtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;IACzE,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,OAAO,EAAE,CACP,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,gBAAgB,KACtB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAChC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjE,UAAU,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/C,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAEtC;AAED,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,wBAAkB,CAAA"}
|
package/package.json
CHANGED
package/dist/initialization.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { AgentToolDefinition } from './tool';
|
|
2
|
-
export declare const INITIALIZATION_TOOL_ROLE: "initialization";
|
|
3
|
-
/** Lightweight context a host can show while asking how to initialize a page. */
|
|
4
|
-
export interface AgentInitializationRequest {
|
|
5
|
-
/**
|
|
6
|
-
* A short summary of the user's checklist or page request. The full document
|
|
7
|
-
* remains in the conversation and is intentionally not duplicated here.
|
|
8
|
-
*/
|
|
9
|
-
checklistSummary?: string;
|
|
10
|
-
}
|
|
11
|
-
export type AgentInitializationMode = 'custom' | 'reference' | 'cancelled';
|
|
12
|
-
/**
|
|
13
|
-
* Host-owned result of the initialization choice.
|
|
14
|
-
*
|
|
15
|
-
* `custom` lets the model design from the user's checklist. `reference` uses a
|
|
16
|
-
* reference ID explicitly entered by the user. `cancelled` stops initialization
|
|
17
|
-
* and waits for the user.
|
|
18
|
-
*/
|
|
19
|
-
export interface AgentInitializationResult {
|
|
20
|
-
mode: AgentInitializationMode;
|
|
21
|
-
/** Required when mode is `reference`; entered by the user. */
|
|
22
|
-
referenceId?: string;
|
|
23
|
-
/** Reference data fetched by the host using `referenceId`. */
|
|
24
|
-
referenceData?: unknown;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Optional host tool invoked whenever the agent enters initialization mode.
|
|
28
|
-
* The host owns the interaction and result shape; the agent only consumes the
|
|
29
|
-
* returned value as context for the initialization.
|
|
30
|
-
*/
|
|
31
|
-
export type AgentInitializationTool = AgentToolDefinition<AgentInitializationRequest, unknown> & {
|
|
32
|
-
role: typeof INITIALIZATION_TOOL_ROLE;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Define the optional host-owned initialization tool.
|
|
36
|
-
*/
|
|
37
|
-
export declare function defineInitializationTool(definition: Omit<AgentInitializationTool, 'kind' | 'role'>): AgentInitializationTool;
|
|
38
|
-
/** Find the optional host-owned initialization tool. */
|
|
39
|
-
export declare function findInitializationTool(tools?: readonly AgentToolDefinition[]): AgentToolDefinition | undefined;
|
|
40
|
-
export declare const INITIALIZATION_AGENT_NAME = "Initialization Agent";
|
|
41
|
-
export declare const INITIALIZATION_HANDOFF_TOOL_NAME = "start_initialization";
|
|
42
|
-
export declare const INITIALIZATION_RETURN_TOOL_NAME = "finish_initialization";
|
|
43
|
-
/** Main-agent instructions for deciding when to hand off to the initializer. */
|
|
44
|
-
export declare function buildInitializationInstructions(options?: {
|
|
45
|
-
toolName?: string;
|
|
46
|
-
agentName?: string;
|
|
47
|
-
}): string[];
|
|
48
|
-
/** Instructions for the isolated initialization sub-agent. */
|
|
49
|
-
export declare function buildInitializationAgentInstructions(toolName: string, mainAgentName: string): string[];
|
|
50
|
-
//# sourceMappingURL=initialization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initialization.d.ts","sourceRoot":"","sources":["../src/initialization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAEjD,eAAO,MAAM,wBAAwB,EAAG,gBAAyB,CAAA;AAEjE,iFAAiF;AACjF,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAA;AAE1E;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CACvD,0BAA0B,EAC1B,OAAO,CACR,GAAG;IACF,IAAI,EAAE,OAAO,wBAAwB,CAAA;CACtC,CAAA;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,IAAI,CAAC,uBAAuB,EAAE,MAAM,GAAG,MAAM,CAAC,GACzD,uBAAuB,CAMzB;AAED,wDAAwD;AACxD,wBAAgB,sBAAsB,CACpC,KAAK,GAAE,SAAS,mBAAmB,EAAO,GACzC,mBAAmB,GA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