@elizaos/plugin-goals 2.0.0-alpha.1
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/__tests__/e2e/goals-plugin.d.ts +3 -0
- package/dist/__tests__/e2e/goals-plugin.d.ts.map +1 -0
- package/dist/actions/cancelGoal.d.ts +4 -0
- package/dist/actions/cancelGoal.d.ts.map +1 -0
- package/dist/actions/completeGoal.d.ts +4 -0
- package/dist/actions/completeGoal.d.ts.map +1 -0
- package/dist/actions/confirmGoal.d.ts +4 -0
- package/dist/actions/confirmGoal.d.ts.map +1 -0
- package/dist/actions/createGoal.d.ts +4 -0
- package/dist/actions/createGoal.d.ts.map +1 -0
- package/dist/actions/updateGoal.d.ts +4 -0
- package/dist/actions/updateGoal.d.ts.map +1 -0
- package/dist/apis.d.ts +4 -0
- package/dist/apis.d.ts.map +1 -0
- package/dist/build.d.ts +3 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/frontend/utils.d.ts +3 -0
- package/dist/frontend/utils.d.ts.map +1 -0
- package/dist/generated/prompts/typescript/prompts.d.ts +22 -0
- package/dist/generated/prompts/typescript/prompts.d.ts.map +1 -0
- package/dist/generated/specs/spec-helpers.d.ts +49 -0
- package/dist/generated/specs/spec-helpers.d.ts.map +1 -0
- package/dist/generated/specs/specs.d.ts +71 -0
- package/dist/generated/specs/specs.d.ts.map +1 -0
- package/dist/index.browser.d.ts +4 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/node/index.node.js +5720 -0
- package/dist/node/index.node.js.map +103 -0
- package/dist/providers/goals.d.ts +4 -0
- package/dist/providers/goals.d.ts.map +1 -0
- package/dist/schema.d.ts +825 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/services/goalDataService.d.ts +68 -0
- package/dist/services/goalDataService.d.ts.map +1 -0
- package/dist/tests.d.ts +6 -0
- package/dist/tests.d.ts.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goals-plugin.d.ts","sourceRoot":"","sources":["../../../__tests__/e2e/goals-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EAEf,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,uBAAuB,EAAE,SAqNrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancelGoal.d.ts","sourceRoot":"","sources":["../../actions/cancelGoal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,eAAe,CAAC;AAmEvB,eAAO,MAAM,gBAAgB,EAAE,MAgI9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completeGoal.d.ts","sourceRoot":"","sources":["../../actions/completeGoal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAMvB,eAAO,MAAM,kBAAkB,EAAE,MA4LhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmGoal.d.ts","sourceRoot":"","sources":["../../actions/confirmGoal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,eAAe,CAAC;AAkFvB,eAAO,MAAM,iBAAiB,EAAE,MAqK/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGoal.d.ts","sourceRoot":"","sources":["../../actions/createGoal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAeZ,MAAM,eAAe,CAAC;AAqHvB,eAAO,MAAM,gBAAgB,EAAE,MAuH9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGoal.d.ts","sourceRoot":"","sources":["../../actions/updateGoal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,eAAe,CAAC;AAsHvB,eAAO,MAAM,gBAAgB,EAAE,MAgJ9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/apis.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.d.ts","sourceRoot":"","sources":["../apis.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,KAAK,EAKX,MAAM,eAAe,CAAC;AAuBvB,eAAO,MAAM,MAAM,EAAE,KAAK,EA8VzB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../build.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../frontend/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated prompt templates
|
|
3
|
+
* DO NOT EDIT - Generated from ../../../../prompts/*.txt
|
|
4
|
+
*
|
|
5
|
+
* These prompts use Handlebars-style template syntax:
|
|
6
|
+
* - {{variableName}} for simple substitution
|
|
7
|
+
* - {{#each items}}...{{/each}} for iteration
|
|
8
|
+
* - {{#if condition}}...{{/if}} for conditionals
|
|
9
|
+
*/
|
|
10
|
+
export declare const checkSimilarityTemplate = "# Task: Check Goal Similarity\n\n## New Goal\nName: {{newGoalName}}\nDescription: {{newGoalDescription}}\n\n## Existing Goals\n{{existingGoals}}\n\n## Instructions\nDetermine if the new goal is similar to any existing goals.\nConsider goals similar if they have the same objective, even if worded differently.\n\nReturn an XML object:\n<response>\n <hasSimilar>true or false</hasSimilar>\n <similarGoalName>Name of the similar goal if found</similarGoalName>\n <confidence>0-100 indicating confidence in similarity</confidence>\n</response>\n\n## Example\nNew Goal: \"Get better at public speaking\"\nExisting Goal: \"Improve presentation skills\"\nThese are similar (confidence: 85)";
|
|
11
|
+
export declare const CHECK_SIMILARITY_TEMPLATE = "# Task: Check Goal Similarity\n\n## New Goal\nName: {{newGoalName}}\nDescription: {{newGoalDescription}}\n\n## Existing Goals\n{{existingGoals}}\n\n## Instructions\nDetermine if the new goal is similar to any existing goals.\nConsider goals similar if they have the same objective, even if worded differently.\n\nReturn an XML object:\n<response>\n <hasSimilar>true or false</hasSimilar>\n <similarGoalName>Name of the similar goal if found</similarGoalName>\n <confidence>0-100 indicating confidence in similarity</confidence>\n</response>\n\n## Example\nNew Goal: \"Get better at public speaking\"\nExisting Goal: \"Improve presentation skills\"\nThese are similar (confidence: 85)";
|
|
12
|
+
export declare const extractCancellationTemplate = "# Task: Extract Task Cancellation Information\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Available Tasks\n{{availableTasks}}\n\n## Instructions\nParse the user's message to identify which task they want to cancel or delete.\nMatch against the list of available tasks by name or description.\nIf multiple tasks have similar names, choose the closest match.\n\nReturn an XML object with:\n<response>\n <taskId>ID of the task being cancelled, or 'null' if not found</taskId>\n <taskName>Name of the task being cancelled, or 'null' if not found</taskName>\n <isFound>'true' or 'false' indicating if a matching task was found</isFound>\n</response>\n\n## Example Output Format\n<response>\n <taskId>123e4567-e89b-12d3-a456-426614174000</taskId>\n <taskName>Finish report</taskName>\n <isFound>true</isFound>\n</response>\n\nIf no matching task was found:\n<response>\n <taskId>null</taskId>\n <taskName>null</taskName>\n <isFound>false</isFound>\n</response>";
|
|
13
|
+
export declare const EXTRACT_CANCELLATION_TEMPLATE = "# Task: Extract Task Cancellation Information\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Available Tasks\n{{availableTasks}}\n\n## Instructions\nParse the user's message to identify which task they want to cancel or delete.\nMatch against the list of available tasks by name or description.\nIf multiple tasks have similar names, choose the closest match.\n\nReturn an XML object with:\n<response>\n <taskId>ID of the task being cancelled, or 'null' if not found</taskId>\n <taskName>Name of the task being cancelled, or 'null' if not found</taskName>\n <isFound>'true' or 'false' indicating if a matching task was found</isFound>\n</response>\n\n## Example Output Format\n<response>\n <taskId>123e4567-e89b-12d3-a456-426614174000</taskId>\n <taskName>Finish report</taskName>\n <isFound>true</isFound>\n</response>\n\nIf no matching task was found:\n<response>\n <taskId>null</taskId>\n <taskName>null</taskName>\n <isFound>false</isFound>\n</response>";
|
|
14
|
+
export declare const extractConfirmationTemplate = "# Task: Extract Confirmation Intent\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Pending Task Details\n{{pendingTask}}\n\n## Instructions\nDetermine if the user is confirming, rejecting, or modifying the pending task creation.\nLook for:\n- Affirmative responses (yes, confirm, ok, do it, go ahead, etc.)\n- Negative responses (no, cancel, nevermind, stop, etc.)\n- Modification requests (change X to Y, make it priority 1, etc.)\n\nReturn an XML object with:\n<response>\n <isConfirmation>true/false - whether this is a response to the pending task</isConfirmation>\n <shouldProceed>true/false - whether to create the task</shouldProceed>\n <modifications>Any requested changes to the task, or 'none'</modifications>\n</response>\n\n## Example Output\n<response>\n <isConfirmation>true</isConfirmation>\n <shouldProceed>true</shouldProceed>\n <modifications>none</modifications>\n</response>";
|
|
15
|
+
export declare const EXTRACT_CONFIRMATION_TEMPLATE = "# Task: Extract Confirmation Intent\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Pending Task Details\n{{pendingTask}}\n\n## Instructions\nDetermine if the user is confirming, rejecting, or modifying the pending task creation.\nLook for:\n- Affirmative responses (yes, confirm, ok, do it, go ahead, etc.)\n- Negative responses (no, cancel, nevermind, stop, etc.)\n- Modification requests (change X to Y, make it priority 1, etc.)\n\nReturn an XML object with:\n<response>\n <isConfirmation>true/false - whether this is a response to the pending task</isConfirmation>\n <shouldProceed>true/false - whether to create the task</shouldProceed>\n <modifications>Any requested changes to the task, or 'none'</modifications>\n</response>\n\n## Example Output\n<response>\n <isConfirmation>true</isConfirmation>\n <shouldProceed>true</shouldProceed>\n <modifications>none</modifications>\n</response>";
|
|
16
|
+
export declare const extractGoalSelectionTemplate = "# Task: Extract Goal Selection Information\n\n## User Message\n{{text}}\n\n## Available Goals\n{{availableGoals}}\n\n## Instructions\nParse the user's message to identify which goal they want to update or modify.\nMatch against the list of available goals by name or description.\nIf multiple goals have similar names, choose the closest match.\n\nReturn an XML object with:\n<response>\n <goalId>ID of the goal being updated, or 'null' if not found</goalId>\n <goalName>Name of the goal being updated, or 'null' if not found</goalName>\n <isFound>'true' or 'false' indicating if a matching goal was found</isFound>\n</response>\n\n## Example Output Format\n<response>\n <goalId>123e4567-e89b-12d3-a456-426614174000</goalId>\n <goalName>Learn French fluently</goalName>\n <isFound>true</isFound>\n</response>\n\nIf no matching goal was found:\n<response>\n <goalId>null</goalId>\n <goalName>null</goalName>\n <isFound>false</isFound>\n</response>";
|
|
17
|
+
export declare const EXTRACT_GOAL_SELECTION_TEMPLATE = "# Task: Extract Goal Selection Information\n\n## User Message\n{{text}}\n\n## Available Goals\n{{availableGoals}}\n\n## Instructions\nParse the user's message to identify which goal they want to update or modify.\nMatch against the list of available goals by name or description.\nIf multiple goals have similar names, choose the closest match.\n\nReturn an XML object with:\n<response>\n <goalId>ID of the goal being updated, or 'null' if not found</goalId>\n <goalName>Name of the goal being updated, or 'null' if not found</goalName>\n <isFound>'true' or 'false' indicating if a matching goal was found</isFound>\n</response>\n\n## Example Output Format\n<response>\n <goalId>123e4567-e89b-12d3-a456-426614174000</goalId>\n <goalName>Learn French fluently</goalName>\n <isFound>true</isFound>\n</response>\n\nIf no matching goal was found:\n<response>\n <goalId>null</goalId>\n <goalName>null</goalName>\n <isFound>false</isFound>\n</response>";
|
|
18
|
+
export declare const extractGoalTemplate = "# Task: Extract Goal Information\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Instructions\nParse the user's message to extract information for creating a new goal.\nDetermine if this goal is for the agent itself or for tracking a user's goal.\n\nGoals should be long-term achievable objectives, not short-term tasks.\n\nReturn an XML object with these fields:\n<response>\n <name>A clear, concise name for the goal</name>\n <description>Optional detailed description</description>\n <ownerType>Either \"agent\" (for agent's own goals) or \"entity\" (for user's goals)</ownerType>\n</response>\n\nIf the message doesn't clearly indicate a goal to create, return empty response.\n\n## Example Output Format\n<response>\n <name>Learn Spanish fluently</name>\n <description>Achieve conversational fluency in Spanish within 6 months</description>\n <ownerType>entity</ownerType>\n</response>";
|
|
19
|
+
export declare const EXTRACT_GOAL_TEMPLATE = "# Task: Extract Goal Information\n\n## User Message\n{{text}}\n\n## Message History\n{{messageHistory}}\n\n## Instructions\nParse the user's message to extract information for creating a new goal.\nDetermine if this goal is for the agent itself or for tracking a user's goal.\n\nGoals should be long-term achievable objectives, not short-term tasks.\n\nReturn an XML object with these fields:\n<response>\n <name>A clear, concise name for the goal</name>\n <description>Optional detailed description</description>\n <ownerType>Either \"agent\" (for agent's own goals) or \"entity\" (for user's goals)</ownerType>\n</response>\n\nIf the message doesn't clearly indicate a goal to create, return empty response.\n\n## Example Output Format\n<response>\n <name>Learn Spanish fluently</name>\n <description>Achieve conversational fluency in Spanish within 6 months</description>\n <ownerType>entity</ownerType>\n</response>";
|
|
20
|
+
export declare const extractGoalUpdateTemplate = "# Task: Extract Goal Update Information\n\n## User Message\n{{text}}\n\n## Current Goal Details\n{{goalDetails}}\n\n## Instructions\nParse the user's message to determine what changes they want to make to the goal.\nOnly name and description can be updated.\n\nReturn an XML object with these potential fields (only include fields that should be changed):\n<response>\n <name>New name for the goal</name>\n <description>New description for the goal</description>\n</response>\n\n## Example Output Format\n<response>\n <name>Learn Spanish fluently</name>\n <description>Achieve conversational fluency in Spanish within 12 months</description>\n</response>";
|
|
21
|
+
export declare const EXTRACT_GOAL_UPDATE_TEMPLATE = "# Task: Extract Goal Update Information\n\n## User Message\n{{text}}\n\n## Current Goal Details\n{{goalDetails}}\n\n## Instructions\nParse the user's message to determine what changes they want to make to the goal.\nOnly name and description can be updated.\n\nReturn an XML object with these potential fields (only include fields that should be changed):\n<response>\n <name>New name for the goal</name>\n <description>New description for the goal</description>\n</response>\n\n## Example Output Format\n<response>\n <name>Learn Spanish fluently</name>\n <description>Achieve conversational fluency in Spanish within 12 months</description>\n</response>";
|
|
22
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../generated/prompts/typescript/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,uBAAuB,mrBAuBD,CAAC;AAEpC,eAAO,MAAM,yBAAyB,mrBAA0B,CAAC;AAEjE,eAAO,MAAM,2BAA2B,y+BAmC5B,CAAC;AAEb,eAAO,MAAM,6BAA6B,y+BAA8B,CAAC;AAEzE,eAAO,MAAM,2BAA2B,u6BA8B5B,CAAC;AAEb,eAAO,MAAM,6BAA6B,u6BAA8B,CAAC;AAEzE,eAAO,MAAM,4BAA4B,g8BAgC7B,CAAC;AAEb,eAAO,MAAM,+BAA+B,g8BAA+B,CAAC;AAE5E,eAAO,MAAM,mBAAmB,k6BA4BpB,CAAC;AAEb,eAAO,MAAM,qBAAqB,k6BAAsB,CAAC;AAEzD,eAAO,MAAM,yBAAyB,upBAsB1B,CAAC;AAEb,eAAO,MAAM,4BAA4B,upBAA4B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper functions to lookup action/provider/evaluator specs by name.
|
|
3
|
+
* These allow language-specific implementations to import their text content
|
|
4
|
+
* (description, similes, examples) from the centralized specs.
|
|
5
|
+
*
|
|
6
|
+
* DO NOT EDIT the spec data - update prompts/actions.json, prompts/providers.json, prompts/evaluators.json and regenerate.
|
|
7
|
+
*/
|
|
8
|
+
import { type ActionDoc, type EvaluatorDoc, type ProviderDoc } from "./specs";
|
|
9
|
+
/**
|
|
10
|
+
* Get an action spec by name from the core specs.
|
|
11
|
+
* @param name - The action name
|
|
12
|
+
* @returns The action spec or undefined if not found
|
|
13
|
+
*/
|
|
14
|
+
export declare function getActionSpec(name: string): ActionDoc | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Get an action spec by name, throwing if not found.
|
|
17
|
+
* @param name - The action name
|
|
18
|
+
* @returns The action spec
|
|
19
|
+
* @throws Error if the action is not found
|
|
20
|
+
*/
|
|
21
|
+
export declare function requireActionSpec(name: string): ActionDoc;
|
|
22
|
+
/**
|
|
23
|
+
* Get a provider spec by name from the core specs.
|
|
24
|
+
* @param name - The provider name
|
|
25
|
+
* @returns The provider spec or undefined if not found
|
|
26
|
+
*/
|
|
27
|
+
export declare function getProviderSpec(name: string): ProviderDoc | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Get a provider spec by name, throwing if not found.
|
|
30
|
+
* @param name - The provider name
|
|
31
|
+
* @returns The provider spec
|
|
32
|
+
* @throws Error if the provider is not found
|
|
33
|
+
*/
|
|
34
|
+
export declare function requireProviderSpec(name: string): ProviderDoc;
|
|
35
|
+
/**
|
|
36
|
+
* Get an evaluator spec by name from the core specs.
|
|
37
|
+
* @param name - The evaluator name
|
|
38
|
+
* @returns The evaluator spec or undefined if not found
|
|
39
|
+
*/
|
|
40
|
+
export declare function getEvaluatorSpec(name: string): EvaluatorDoc | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Get an evaluator spec by name, throwing if not found.
|
|
43
|
+
* @param name - The evaluator name
|
|
44
|
+
* @returns The evaluator spec
|
|
45
|
+
* @throws Error if the evaluator is not found
|
|
46
|
+
*/
|
|
47
|
+
export declare function requireEvaluatorSpec(name: string): EvaluatorDoc;
|
|
48
|
+
export type { ActionDoc, ProviderDoc, EvaluatorDoc };
|
|
49
|
+
//# sourceMappingURL=spec-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec-helpers.d.ts","sourceRoot":"","sources":["../../../generated/specs/spec-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,SAAS,EAOd,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAgBjB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAMzD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAM7D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAM/D;AAGD,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated canonical action/provider/evaluator docs for plugin-goals.
|
|
3
|
+
* DO NOT EDIT - Generated from prompts/specs/**.
|
|
4
|
+
*/
|
|
5
|
+
export type ActionDoc = {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
similes?: readonly string[];
|
|
9
|
+
parameters?: readonly unknown[];
|
|
10
|
+
examples?: readonly (readonly unknown[])[];
|
|
11
|
+
};
|
|
12
|
+
export type ProviderDoc = {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
position?: number;
|
|
16
|
+
dynamic?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type EvaluatorDoc = {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
similes?: readonly string[];
|
|
22
|
+
alwaysRun?: boolean;
|
|
23
|
+
examples?: readonly unknown[];
|
|
24
|
+
};
|
|
25
|
+
export declare const coreActionsSpec: {
|
|
26
|
+
readonly version: "1.0.0";
|
|
27
|
+
readonly actions: readonly [{
|
|
28
|
+
readonly name: "Alice";
|
|
29
|
+
readonly description: "";
|
|
30
|
+
readonly parameters: readonly [];
|
|
31
|
+
}];
|
|
32
|
+
};
|
|
33
|
+
export declare const allActionsSpec: {
|
|
34
|
+
readonly version: "1.0.0";
|
|
35
|
+
readonly actions: readonly [{
|
|
36
|
+
readonly name: "Alice";
|
|
37
|
+
readonly description: "";
|
|
38
|
+
readonly parameters: readonly [];
|
|
39
|
+
}];
|
|
40
|
+
};
|
|
41
|
+
export declare const coreProvidersSpec: {
|
|
42
|
+
readonly version: "1.0.0";
|
|
43
|
+
readonly providers: readonly [{
|
|
44
|
+
readonly name: "GOALS";
|
|
45
|
+
readonly description: "Provides information about active goals and recent achievements";
|
|
46
|
+
readonly dynamic: true;
|
|
47
|
+
}];
|
|
48
|
+
};
|
|
49
|
+
export declare const allProvidersSpec: {
|
|
50
|
+
readonly version: "1.0.0";
|
|
51
|
+
readonly providers: readonly [{
|
|
52
|
+
readonly name: "GOALS";
|
|
53
|
+
readonly description: "Provides information about active goals and recent achievements";
|
|
54
|
+
readonly dynamic: true;
|
|
55
|
+
}];
|
|
56
|
+
};
|
|
57
|
+
export declare const coreEvaluatorsSpec: {
|
|
58
|
+
readonly version: "1.0.0";
|
|
59
|
+
readonly evaluators: readonly [];
|
|
60
|
+
};
|
|
61
|
+
export declare const allEvaluatorsSpec: {
|
|
62
|
+
readonly version: "1.0.0";
|
|
63
|
+
readonly evaluators: readonly [];
|
|
64
|
+
};
|
|
65
|
+
export declare const coreActionDocs: readonly ActionDoc[];
|
|
66
|
+
export declare const allActionDocs: readonly ActionDoc[];
|
|
67
|
+
export declare const coreProviderDocs: readonly ProviderDoc[];
|
|
68
|
+
export declare const allProviderDocs: readonly ProviderDoc[];
|
|
69
|
+
export declare const coreEvaluatorDocs: readonly EvaluatorDoc[];
|
|
70
|
+
export declare const allEvaluatorDocs: readonly EvaluatorDoc[];
|
|
71
|
+
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../generated/specs/specs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;CASlB,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;CASjB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;;;;;CASpB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;;;CASnB,CAAC;AACX,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,SAAS,SAAS,EAA4B,CAAC;AAC5E,eAAO,MAAM,aAAa,EAAE,SAAS,SAAS,EAA2B,CAAC;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EAAgC,CAAC;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,WAAW,EAA+B,CAAC;AAClF,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,EAAkC,CAAC;AACxF,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAK3D,eAAO,MAAM,WAAW,EAAE,MAQzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Plugin } from "@elizaos/core";
|
|
2
|
+
export declare const GoalsPlugin: Plugin;
|
|
3
|
+
export default GoalsPlugin;
|
|
4
|
+
export { goalSchema } from "./schema.js";
|
|
5
|
+
export type { GoalData } from "./services/goalDataService.js";
|
|
6
|
+
export { createGoalDataService, GoalDataServiceWrapper, } from "./services/goalDataService.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAa5C,eAAO,MAAM,WAAW,EAAE,MAyBzB,CAAC;AAEF,eAAe,WAAW,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC"}
|