@agimon-ai/po-wake 0.0.1-alpha.2 → 0.0.1-alpha.21
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/LICENSE +110 -149
- package/README.md +9 -8
- package/dist/extensions/server.cjs +1231 -193
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +1233 -195
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +10 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -0
- package/dist/po-runtime-identity.json +1 -1
- package/dist/wakeRecords-CfkvJoto.cjs.map +1 -1
- package/dist/{wakeRecords-BKby8VQs.d.mts → wakeRecords-Dokgla-S.d.mts} +15 -6
- package/dist/wakeRecords-Dokgla-S.d.mts.map +1 -0
- package/dist/wakeRecords-mOiBrclj.mjs.map +1 -1
- package/dist/wakeRecords.d.mts +1 -1
- package/llms.txt +3 -1
- package/package.json +11 -9
- package/src/prompts/codemode-how-to-wake/SKILL.md +16 -0
- package/src/prompts/codemode-how-to-wake-admin/SKILL.md +25 -0
- package/src/prompts/help-how-to-wake/SKILL.md +26 -9
- package/dist/wakeRecords-BKby8VQs.d.mts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-wake",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.21",
|
|
4
4
|
"description": "Bot wake check for Po: plugins supply records, and the reminder fires only when none covers the bot",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"typescript"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://agimon.ai",
|
|
15
|
-
"license": "
|
|
15
|
+
"license": "FSL-1.1-MIT",
|
|
16
16
|
"author": "Vuong Ngo",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
@@ -54,14 +54,16 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
58
|
-
"@agimon-ai/po-
|
|
59
|
-
"@
|
|
57
|
+
"@agimon-ai/po-core": "0.0.0-alpha.209",
|
|
58
|
+
"@agimon-ai/po-db": "0.0.0-alpha.209",
|
|
59
|
+
"@agimon-ai/po-profile": "0.0.0-alpha.209",
|
|
60
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
61
|
+
"typebox": "1.4.2"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
63
|
-
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.
|
|
64
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
64
|
+
"@agimon-ai/po-build": "0.0.0-alpha.209",
|
|
65
|
+
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.209",
|
|
66
|
+
"@earendil-works/pi-coding-agent": "1.6.1",
|
|
65
67
|
"@types/node": "26.6.5",
|
|
66
68
|
"@vitest/coverage-v8": "5.0.4",
|
|
67
69
|
"tsdown": "0.23.1",
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
"vitest": "5.0.4"
|
|
70
72
|
},
|
|
71
73
|
"peerDependencies": {
|
|
72
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
74
|
+
"@earendil-works/pi-coding-agent": "1.6.1"
|
|
73
75
|
},
|
|
74
76
|
"peerDependenciesMeta": {
|
|
75
77
|
"@earendil-works/pi-coding-agent": {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codemode-how-to-wake
|
|
3
|
+
description: Plan this bot session's next wake, one durable private nudge to your future self, through the wake namespace.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Use Wake
|
|
7
|
+
|
|
8
|
+
Po plans a bot's next wake automatically when needed; no tool call is required at settle. `wake.schedule({ inMinutes, prompt })` is an optional override for the main agent of a bot session. Discover `wake` for signatures.
|
|
9
|
+
|
|
10
|
+
- `inMinutes` runs from 5 to 10080 (7 days). Pick the earliest time the next step can make progress, not a guess at the latest.
|
|
11
|
+
- `prompt` is the whole message you receive when woken, so write it for a future self with no memory of this run: what to check, where, and what done looks like. 1 to 4000 characters.
|
|
12
|
+
- There is one planned wake per session. A new call replaces the earlier one, so fold every follow-up into one prompt.
|
|
13
|
+
- While a wake is planned, the generic reminder holds. Routine wakes from other plugins (calendar, due tasks) still fire.
|
|
14
|
+
- The wake survives restarts. It is skipped if the applied profile changed since you planned it.
|
|
15
|
+
- If `discover` does not list `wake`, do not try to call it. In an ordinary session, `/wake` only reports that the session is not a bot.
|
|
16
|
+
- Do not plan a wake to poll for work that already wakes you (a calendar event, a due task), and never put secrets in the prompt.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codemode-how-to-wake-admin
|
|
3
|
+
description: "Explain why a bot session wakes when it does, change the selected profile's wake defaults, and set the host-wide wake planner model and reasoning through the wakeAdmin namespace in Help mode."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# codemode-how-to-wake-admin
|
|
7
|
+
|
|
8
|
+
`wakeAdmin` is available to the main agent of any session in Help mode. If `discover` does not list it, do not try to call it. How the wake decides is in `help-how-to-wake`.
|
|
9
|
+
|
|
10
|
+
- Start with `wakeAdmin.read()`. It answers "why now?": whether this is a bot session, the effective period and
|
|
11
|
+
where it comes from (`bot`, `profile` or `default`), every armed deadline (slot, time, origin), the saved
|
|
12
|
+
profile block with its revision, what the session has applied, and the host planner settings. It never shows a
|
|
13
|
+
planned nudge's text. Outside a bot session, or without a profile, only `planner` is meaningful.
|
|
14
|
+
- A bot's own period wins over the profile's. Changing the profile does not move a bot that sets its own.
|
|
15
|
+
- `wakeAdmin.setProfileDefaults({ period?, prompt? })` changes only the selected profile's `wake` block. Left-out
|
|
16
|
+
keys keep their saved values; `null` removes `prompt`. The host owner reviews the merged result before anything
|
|
17
|
+
is saved. Periods run from 15 minutes to 7 days (`30m`, `2h`, `1d`).
|
|
18
|
+
- `wakeAdmin.setPlanner({ model?, thinkingLevel? })` sets the side planner for every bot on this host. `model` is
|
|
19
|
+
`provider/model-id`; `thinkingLevel` is `off`, `minimal`, `low`, `medium`, `high`, `xhigh` or `max`. Left-out
|
|
20
|
+
keys keep their values; `null` clears one, so the planner uses the current session model or its default
|
|
21
|
+
reasoning. The host owner approves the change.
|
|
22
|
+
- If the profile or planner settings changed after the review, the save is refused. Read again and propose again;
|
|
23
|
+
do not retry blindly.
|
|
24
|
+
- A read-only profile (no saved revision) cannot be changed here. Tell the person where it is defined instead.
|
|
25
|
+
- After a save, `active: true` means this session re-applies the profile once the current tool round ends.
|
|
@@ -1,25 +1,42 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: help-how-to-wake
|
|
3
|
-
description:
|
|
3
|
+
description: "Use @agimon-ai/po-wake: why a bot session was or was not woken, how plugins supply the standing work that decides it, and how wakeAdmin changes a profile's check-in defaults."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Bot wake
|
|
7
7
|
|
|
8
|
-
po-wake
|
|
8
|
+
po-wake owns the durable timer. Only bot sessions are eligible, and no standing-work provider is required.
|
|
9
9
|
|
|
10
10
|
## How it decides
|
|
11
11
|
|
|
12
12
|
- Plugins register a provider on the session service `po/wake-records`. Each record is one piece of standing work.
|
|
13
|
-
- A record that `covers` (an event due within the bot's wake period, or one running)
|
|
14
|
-
- A record that is `due` (a
|
|
15
|
-
minutes after the last turn ended. A new turn withdraws it, so it only fires after 15 quiet minutes.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
- A record that `covers` (an event due within the bot's wake period, or one running) postpones reminders and routine wakes.
|
|
14
|
+
- A record that is `due` (such as a standing task under its target this window) asks for a routine wake: a durable
|
|
15
|
+
one-off wake 15 minutes after the last turn ended. A new turn withdraws it, so it only fires after 15 quiet minutes.
|
|
16
|
+
A due record can supply a private `prompt` with instructions for that work.
|
|
17
|
+
- After a routine wake fires, no new one is scheduled until a due record changes its `progress` (a run lands or
|
|
18
|
+
its window rolls over). Until then the ordinary reminder applies.
|
|
19
|
+
- If the host was offline at the deadline, it makes one late check rather than replaying missed periods.
|
|
19
20
|
- If any provider cannot answer, the outcome is unavailable, never "nothing covers".
|
|
20
21
|
|
|
21
22
|
## Checking a session
|
|
22
23
|
|
|
23
24
|
- `/wake` lists every record with `[covers]` and `[due]` marks.
|
|
24
|
-
-
|
|
25
|
+
- `/wake describe` shows the effective period and its source, every armed deadline (slot, time, origin) and the
|
|
26
|
+
last delivery or planner outcome. It never shows a planned nudge's text.
|
|
25
27
|
- Only sessions marked as bots are woken.
|
|
28
|
+
|
|
29
|
+
## Wake planner
|
|
30
|
+
|
|
31
|
+
- After an uncovered turn, Wake asks a side model whether to plan an earlier `self` wake, from 5 minutes up to the
|
|
32
|
+
ordinary reminder period. It uses the host-wide planner model and reasoning when set, otherwise the current session
|
|
33
|
+
model.
|
|
34
|
+
- Planning does not start a session turn. If no plan is made, the delayed reminder stays armed. Reopening the
|
|
35
|
+
session restores timers without starting a check-in or planning call.
|
|
36
|
+
- A newer run, a profile change, a timeout or a bad reply discards the answer. The planner never replaces the bot's
|
|
37
|
+
own plan, and new input drops a model plan.
|
|
38
|
+
|
|
39
|
+
## Changing the defaults
|
|
40
|
+
|
|
41
|
+
- In Help mode, the `wakeAdmin` namespace explains a session's next wake, changes the selected profile's `wake`
|
|
42
|
+
block, and sets the host-wide planner model and reasoning. Its guide is `codemode-how-to-wake-admin`.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wakeRecords-BKby8VQs.d.mts","names":[],"sources":["../src/schemas/wakeRecords.ts"],"mappings":";;cAEa;;UAGI;;WAEN;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;;KAIC;UAEK;WACN;;EAET,QAAQ,YAAY,oBAAoB,iBAAiB;;EAEzD,UAAU,MAAM,UAAU,YAAY,cAAc,2BAA2B;EAC/E,QAAQ,MAAM,WAAW;;;UAIV;EACf,SAAS,UAAU;;;YAIT;IACR,mBAAmB;;;iBAIP,kBAAkB,SAAS,UAAU"}
|