@elizaos/plugin-goals 2.0.0-alpha.9 → 2.0.3-beta.3

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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +82 -0
  3. package/assets/hero.svg +69 -0
  4. package/package.json +75 -110
  5. package/registry-entry.json +77 -0
  6. package/dist/__tests__/e2e/goals-plugin.d.ts +0 -3
  7. package/dist/__tests__/e2e/goals-plugin.d.ts.map +0 -1
  8. package/dist/actions/cancelGoal.d.ts +0 -4
  9. package/dist/actions/cancelGoal.d.ts.map +0 -1
  10. package/dist/actions/completeGoal.d.ts +0 -4
  11. package/dist/actions/completeGoal.d.ts.map +0 -1
  12. package/dist/actions/confirmGoal.d.ts +0 -4
  13. package/dist/actions/confirmGoal.d.ts.map +0 -1
  14. package/dist/actions/createGoal.d.ts +0 -4
  15. package/dist/actions/createGoal.d.ts.map +0 -1
  16. package/dist/actions/updateGoal.d.ts +0 -4
  17. package/dist/actions/updateGoal.d.ts.map +0 -1
  18. package/dist/apis.d.ts +0 -4
  19. package/dist/apis.d.ts.map +0 -1
  20. package/dist/build.d.ts +0 -3
  21. package/dist/build.d.ts.map +0 -1
  22. package/dist/frontend/utils.d.ts +0 -3
  23. package/dist/frontend/utils.d.ts.map +0 -1
  24. package/dist/generated/prompts/typescript/prompts.d.ts +0 -22
  25. package/dist/generated/prompts/typescript/prompts.d.ts.map +0 -1
  26. package/dist/generated/specs/spec-helpers.d.ts +0 -49
  27. package/dist/generated/specs/spec-helpers.d.ts.map +0 -1
  28. package/dist/generated/specs/specs.d.ts +0 -113
  29. package/dist/generated/specs/specs.d.ts.map +0 -1
  30. package/dist/index.browser.d.ts +0 -4
  31. package/dist/index.browser.d.ts.map +0 -1
  32. package/dist/index.d.ts +0 -7
  33. package/dist/index.d.ts.map +0 -1
  34. package/dist/node/index.node.js +0 -5876
  35. package/dist/node/index.node.js.map +0 -103
  36. package/dist/providers/goals.d.ts +0 -4
  37. package/dist/providers/goals.d.ts.map +0 -1
  38. package/dist/schema.d.ts +0 -825
  39. package/dist/schema.d.ts.map +0 -1
  40. package/dist/services/goalDataService.d.ts +0 -68
  41. package/dist/services/goalDataService.d.ts.map +0 -1
  42. package/dist/tests.d.ts +0 -6
  43. package/dist/tests.d.ts.map +0 -1
  44. package/dist/vitest.config.d.ts +0 -3
  45. package/dist/vitest.config.d.ts.map +0 -1
@@ -1,49 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,113 +0,0 @@
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: "CREATE_GOAL";
29
- readonly description: "Create a new goal or task for the user to track progress on";
30
- readonly similes: readonly ["ADD_GOAL", "NEW_GOAL", "SET_GOAL", "ADD_TASK", "CREATE_TASK"];
31
- readonly parameters: readonly [];
32
- }, {
33
- readonly name: "UPDATE_GOAL";
34
- readonly description: "Update an existing goal's name, description, or progress";
35
- readonly similes: readonly ["EDIT_GOAL", "MODIFY_GOAL", "CHANGE_GOAL", "UPDATE_TASK"];
36
- readonly parameters: readonly [];
37
- }, {
38
- readonly name: "CANCEL_GOAL";
39
- readonly description: "Cancel or remove an existing goal that is no longer needed";
40
- readonly similes: readonly ["DELETE_GOAL", "REMOVE_GOAL", "ABANDON_GOAL", "CANCEL_TASK"];
41
- readonly parameters: readonly [];
42
- }, {
43
- readonly name: "COMPLETE_GOAL";
44
- readonly description: "Mark a goal as completed when it has been achieved";
45
- readonly similes: readonly ["FINISH_GOAL", "DONE_GOAL", "ACHIEVE_GOAL", "COMPLETE_TASK"];
46
- readonly parameters: readonly [];
47
- }, {
48
- readonly name: "CONFIRM_GOAL";
49
- readonly description: "Confirm and finalize a pending goal that was proposed";
50
- readonly similes: readonly ["APPROVE_GOAL", "ACCEPT_GOAL", "VERIFY_GOAL", "CONFIRM_TASK"];
51
- readonly parameters: readonly [];
52
- }];
53
- };
54
- export declare const allActionsSpec: {
55
- readonly version: "1.0.0";
56
- readonly actions: readonly [{
57
- readonly name: "CREATE_GOAL";
58
- readonly description: "Create a new goal or task for the user to track progress on";
59
- readonly similes: readonly ["ADD_GOAL", "NEW_GOAL", "SET_GOAL", "ADD_TASK", "CREATE_TASK"];
60
- readonly parameters: readonly [];
61
- }, {
62
- readonly name: "UPDATE_GOAL";
63
- readonly description: "Update an existing goal's name, description, or progress";
64
- readonly similes: readonly ["EDIT_GOAL", "MODIFY_GOAL", "CHANGE_GOAL", "UPDATE_TASK"];
65
- readonly parameters: readonly [];
66
- }, {
67
- readonly name: "CANCEL_GOAL";
68
- readonly description: "Cancel or remove an existing goal that is no longer needed";
69
- readonly similes: readonly ["DELETE_GOAL", "REMOVE_GOAL", "ABANDON_GOAL", "CANCEL_TASK"];
70
- readonly parameters: readonly [];
71
- }, {
72
- readonly name: "COMPLETE_GOAL";
73
- readonly description: "Mark a goal as completed when it has been achieved";
74
- readonly similes: readonly ["FINISH_GOAL", "DONE_GOAL", "ACHIEVE_GOAL", "COMPLETE_TASK"];
75
- readonly parameters: readonly [];
76
- }, {
77
- readonly name: "CONFIRM_GOAL";
78
- readonly description: "Confirm and finalize a pending goal that was proposed";
79
- readonly similes: readonly ["APPROVE_GOAL", "ACCEPT_GOAL", "VERIFY_GOAL", "CONFIRM_TASK"];
80
- readonly parameters: readonly [];
81
- }];
82
- };
83
- export declare const coreProvidersSpec: {
84
- readonly version: "1.0.0";
85
- readonly providers: readonly [{
86
- readonly name: "GOALS";
87
- readonly description: "Provides information about active goals and recent achievements";
88
- readonly dynamic: true;
89
- }];
90
- };
91
- export declare const allProvidersSpec: {
92
- readonly version: "1.0.0";
93
- readonly providers: readonly [{
94
- readonly name: "GOALS";
95
- readonly description: "Provides information about active goals and recent achievements";
96
- readonly dynamic: true;
97
- }];
98
- };
99
- export declare const coreEvaluatorsSpec: {
100
- readonly version: "1.0.0";
101
- readonly evaluators: readonly [];
102
- };
103
- export declare const allEvaluatorsSpec: {
104
- readonly version: "1.0.0";
105
- readonly evaluators: readonly [];
106
- };
107
- export declare const coreActionDocs: readonly ActionDoc[];
108
- export declare const allActionDocs: readonly ActionDoc[];
109
- export declare const coreProviderDocs: readonly ProviderDoc[];
110
- export declare const allProviderDocs: readonly ProviderDoc[];
111
- export declare const coreEvaluatorDocs: readonly EvaluatorDoc[];
112
- export declare const allEvaluatorDocs: readonly EvaluatorDoc[];
113
- //# sourceMappingURL=specs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec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AAC;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"}
@@ -1,4 +0,0 @@
1
- import type { Plugin } from "@elizaos/core";
2
- export declare const goalsPlugin: Plugin;
3
- export default goalsPlugin;
4
- //# sourceMappingURL=index.browser.d.ts.map
@@ -1 +0,0 @@
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 DELETED
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}