@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.
Files changed (39) hide show
  1. package/dist/__tests__/e2e/goals-plugin.d.ts +3 -0
  2. package/dist/__tests__/e2e/goals-plugin.d.ts.map +1 -0
  3. package/dist/actions/cancelGoal.d.ts +4 -0
  4. package/dist/actions/cancelGoal.d.ts.map +1 -0
  5. package/dist/actions/completeGoal.d.ts +4 -0
  6. package/dist/actions/completeGoal.d.ts.map +1 -0
  7. package/dist/actions/confirmGoal.d.ts +4 -0
  8. package/dist/actions/confirmGoal.d.ts.map +1 -0
  9. package/dist/actions/createGoal.d.ts +4 -0
  10. package/dist/actions/createGoal.d.ts.map +1 -0
  11. package/dist/actions/updateGoal.d.ts +4 -0
  12. package/dist/actions/updateGoal.d.ts.map +1 -0
  13. package/dist/apis.d.ts +4 -0
  14. package/dist/apis.d.ts.map +1 -0
  15. package/dist/build.d.ts +3 -0
  16. package/dist/build.d.ts.map +1 -0
  17. package/dist/frontend/utils.d.ts +3 -0
  18. package/dist/frontend/utils.d.ts.map +1 -0
  19. package/dist/generated/prompts/typescript/prompts.d.ts +22 -0
  20. package/dist/generated/prompts/typescript/prompts.d.ts.map +1 -0
  21. package/dist/generated/specs/spec-helpers.d.ts +49 -0
  22. package/dist/generated/specs/spec-helpers.d.ts.map +1 -0
  23. package/dist/generated/specs/specs.d.ts +71 -0
  24. package/dist/generated/specs/specs.d.ts.map +1 -0
  25. package/dist/index.browser.d.ts +4 -0
  26. package/dist/index.browser.d.ts.map +1 -0
  27. package/dist/index.d.ts +7 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/node/index.node.js +5720 -0
  30. package/dist/node/index.node.js.map +103 -0
  31. package/dist/providers/goals.d.ts +4 -0
  32. package/dist/providers/goals.d.ts.map +1 -0
  33. package/dist/schema.d.ts +825 -0
  34. package/dist/schema.d.ts.map +1 -0
  35. package/dist/services/goalDataService.d.ts +68 -0
  36. package/dist/services/goalDataService.d.ts.map +1 -0
  37. package/dist/tests.d.ts +6 -0
  38. package/dist/tests.d.ts.map +1 -0
  39. package/package.json +85 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBtB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AAEF,eAAO,MAAM,cAAc;;EAExB,CAAC;AAEJ,eAAO,MAAM,iBAAiB;;EAK3B,CAAC;AAEJ,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { type IAgentRuntime, Service, type UUID } from "@elizaos/core";
2
+ /**
3
+ * Goal data structure from database
4
+ */
5
+ export interface GoalData {
6
+ id: UUID;
7
+ agentId: UUID;
8
+ ownerType: "agent" | "entity";
9
+ ownerId: UUID;
10
+ name: string;
11
+ description?: string | null;
12
+ isCompleted: boolean;
13
+ completedAt?: Date | null;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ metadata: Record<string, unknown>;
17
+ tags?: string[];
18
+ }
19
+ export declare class GoalDataService {
20
+ private runtime;
21
+ constructor(runtime: IAgentRuntime);
22
+ /**
23
+ * Create a new goal
24
+ */
25
+ createGoal(params: {
26
+ agentId: UUID;
27
+ ownerType: "agent" | "entity";
28
+ ownerId: UUID;
29
+ name: string;
30
+ description?: string;
31
+ metadata?: Record<string, unknown>;
32
+ tags?: string[];
33
+ }): Promise<UUID | null>;
34
+ getGoals(filters?: {
35
+ ownerType?: "agent" | "entity";
36
+ ownerId?: UUID;
37
+ isCompleted?: boolean;
38
+ tags?: string[];
39
+ }): Promise<GoalData[]>;
40
+ getGoal(goalId: UUID): Promise<GoalData | null>;
41
+ updateGoal(goalId: UUID, updates: {
42
+ name?: string;
43
+ description?: string;
44
+ isCompleted?: boolean;
45
+ completedAt?: Date;
46
+ metadata?: Record<string, unknown>;
47
+ tags?: string[];
48
+ }): Promise<boolean>;
49
+ deleteGoal(goalId: UUID): Promise<boolean>;
50
+ getUncompletedGoals(ownerType?: "agent" | "entity", ownerId?: UUID): Promise<GoalData[]>;
51
+ getCompletedGoals(ownerType?: "agent" | "entity", ownerId?: UUID): Promise<GoalData[]>;
52
+ countGoals(ownerType: "agent" | "entity", ownerId: UUID, isCompleted?: boolean): Promise<number>;
53
+ getAllGoalsForOwner(ownerType: "agent" | "entity", ownerId: UUID): Promise<GoalData[]>;
54
+ }
55
+ /**
56
+ * Factory function to create a GoalDataService
57
+ */
58
+ export declare function createGoalDataService(runtime: IAgentRuntime): GoalDataService;
59
+ export declare class GoalDataServiceWrapper extends Service {
60
+ static serviceName: string;
61
+ static serviceType: "GOAL_DATA";
62
+ private goalDataService;
63
+ capabilityDescription: string;
64
+ stop(): Promise<void>;
65
+ static start(runtime: IAgentRuntime): Promise<GoalDataServiceWrapper>;
66
+ getDataService(): GoalDataService | null;
67
+ }
68
+ //# sourceMappingURL=goalDataService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goalDataService.d.ts","sourceRoot":"","sources":["../../services/goalDataService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAU,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AAsCvF;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,IAAI,CAAC;IACT,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAgB;gBAEnB,OAAO,EAAE,aAAa;IAIlC;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,IAAI,CAAC;QACd,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AAE,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAgBtF,UAAU,CACd,SAAS,EAAE,OAAO,GAAG,QAAQ,EAC7B,OAAO,EAAE,IAAI,EACb,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAAC,MAAM,CAAC;IAcZ,mBAAmB,CAAC,SAAS,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAc7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,eAAe,CAK7E;AAED,qBAAa,sBAAuB,SAAQ,OAAO;IACjD,MAAM,CAAC,WAAW,SAAqB;IACvC,MAAM,CAAC,WAAW,EAAG,WAAW,CAAU;IAE1C,OAAO,CAAC,eAAe,CAAgC;IAEvD,qBAAqB,SAA6C;IAE5D,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;WAId,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAY3E,cAAc,IAAI,eAAe,GAAG,IAAI;CAGzC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Test exports for the goals plugin
3
+ * This file exports all test suites so they can be included in the plugin build
4
+ */
5
+ export { GoalsPluginE2ETestSuite } from "./__tests__/e2e/goals-plugin.js";
6
+ //# sourceMappingURL=tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../tests.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@elizaos/plugin-goals",
3
+ "description": "Goals management plugin for ElizaOS - tracking and achieving objectives",
4
+ "version": "2.0.0-alpha.1",
5
+ "type": "module",
6
+ "main": "dist/node/index.node.js",
7
+ "module": "dist/node/index.node.js",
8
+ "types": "dist/index.d.ts",
9
+ "packageType": "plugin",
10
+ "platform": "node",
11
+ "license": "MIT",
12
+ "author": "elizaOS",
13
+ "keywords": [
14
+ "plugin",
15
+ "elizaos",
16
+ "goals",
17
+ "objectives",
18
+ "task-management"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/elizaos/elizaos"
23
+ },
24
+ "homepage": "https://elizaos.ai",
25
+ "exports": {
26
+ "./package.json": "./package.json",
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "node": {
30
+ "types": "./dist/node/index.d.ts",
31
+ "import": "./dist/node/index.node.js",
32
+ "default": "./dist/node/index.node.js"
33
+ },
34
+ "bun": {
35
+ "types": "./dist/node/index.d.ts",
36
+ "default": "./dist/node/index.node.js"
37
+ },
38
+ "default": "./dist/node/index.node.js"
39
+ }
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "README.md"
44
+ ],
45
+ "sideEffects": false,
46
+ "dependencies": {
47
+ "@elizaos/core": "workspace:*",
48
+ "@radix-ui/react-checkbox": "^1.1.4",
49
+ "@radix-ui/react-collapsible": "^1.1.3",
50
+ "@radix-ui/react-label": "^2.1.2",
51
+ "@radix-ui/react-select": "^2.2.2",
52
+ "@radix-ui/react-separator": "^1.1.2",
53
+ "@radix-ui/react-slot": "^1.1.2",
54
+ "class-variance-authority": "^0.7.1"
55
+ },
56
+ "devDependencies": {
57
+ "@types/bun": "^1.3.5",
58
+ "@types/node": "^25.0.3",
59
+ "typescript": "^5.9.3",
60
+ "@biomejs/biome": "^2.3.11"
61
+ },
62
+ "scripts": {
63
+ "dev": "bun --hot build.ts",
64
+ "clean": "rm -rf dist .turbo node_modules tsconfig.tsbuildinfo",
65
+ "format": "bunx @biomejs/biome format --write .",
66
+ "format:check": "bunx @biomejs/biome format .",
67
+ "typecheck": "tsc --noEmit -p tsconfig.json",
68
+ "test": "vitest run tests/",
69
+ "test:unit": "vitest run tests/",
70
+ "test:integration": "vitest run tests/e2e*",
71
+ "test:watch": "vitest",
72
+ "lint": "bunx @biomejs/biome check --write --unsafe .",
73
+ "lint:check": "bunx @biomejs/biome check .",
74
+ "build": "bun run build.ts",
75
+ "build:ts": "bun run build.ts"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "agentConfig": {
81
+ "pluginType": "elizaos:plugin:1.0.0",
82
+ "pluginParameters": {},
83
+ "description": "Goals management plugin for tracking and achieving objectives"
84
+ }
85
+ }