@akalsey/openclaw-goals 0.1.0 → 0.1.2
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 +3 -3
- package/dist/src/service.js +2 -9
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ This plugin can be used without Sapience if all you want to do is track multi-st
|
|
|
15
15
|
### Install
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
openclaw plugins install
|
|
18
|
+
openclaw plugins install npm:@akalsey/openclaw-goals
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Configuration
|
|
@@ -23,7 +23,7 @@ openclaw plugins install local:/path/to/openclaw-goals
|
|
|
23
23
|
```json
|
|
24
24
|
{
|
|
25
25
|
"plugins": {
|
|
26
|
-
"goals": {
|
|
26
|
+
"sapience-goals": {
|
|
27
27
|
"weeklyCheckInDay": "monday",
|
|
28
28
|
"weeklyCheckInTime": "09:00",
|
|
29
29
|
"activeHours": {
|
|
@@ -129,7 +129,7 @@ The next delivery date is stored per-goal in `goals.json` and rolls forward auto
|
|
|
129
129
|
**Goal submitted but no decomposition prompt**
|
|
130
130
|
The cron fires every 15 minutes. Wait for the next pass, or trigger manually:
|
|
131
131
|
```bash
|
|
132
|
-
openclaw cron run goals-check-pass
|
|
132
|
+
openclaw cron run sapience-goals-check-pass
|
|
133
133
|
```
|
|
134
134
|
Also confirm the inbox path matches your config and that the file is readable.
|
|
135
135
|
|
package/dist/src/service.js
CHANGED
|
@@ -23,8 +23,8 @@ function isWeeklyCheckInDue(goal) {
|
|
|
23
23
|
return goal.status === "active" && new Date(goal.next_status_delivery) <= new Date();
|
|
24
24
|
}
|
|
25
25
|
export default definePluginEntry({
|
|
26
|
-
id: "goals",
|
|
27
|
-
name: "Goals",
|
|
26
|
+
id: "sapience-goals",
|
|
27
|
+
name: "Sapience Goals",
|
|
28
28
|
description: "Persistent fuzzy goal tracking with weekly status delivery",
|
|
29
29
|
register(api) {
|
|
30
30
|
const workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
|
|
@@ -99,12 +99,5 @@ export default definePluginEntry({
|
|
|
99
99
|
return { content: [{ type: "text", text: "SILENT_REPLY_TOKEN" }] };
|
|
100
100
|
},
|
|
101
101
|
});
|
|
102
|
-
api.session.workflow.scheduleSessionTurn({
|
|
103
|
-
schedule: { cron: config.schedule },
|
|
104
|
-
sessionTarget: "isolated",
|
|
105
|
-
tag: "goals-check-pass",
|
|
106
|
-
systemPrompt: `You are the goals tracking agent. Call check_goals() to process new goals and deliver weekly status updates. Reply SILENT_REPLY_TOKEN after the tool call.`,
|
|
107
|
-
maxTurns: 2,
|
|
108
|
-
});
|
|
109
102
|
},
|
|
110
103
|
});
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "goals",
|
|
3
|
-
"name": "Goals",
|
|
2
|
+
"id": "sapience-goals",
|
|
3
|
+
"name": "Sapience Goals",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"description": "Persistent fuzzy goal tracking: accepts vague objectives, decomposes them into candidate approaches, tracks incremental progress, and delivers weekly status",
|
|
6
6
|
"contracts": {
|