@agimon-ai/po-wake 0.0.1-alpha.5 → 0.0.1-alpha.6
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 +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/dist/wakeRecords-CfkvJoto.cjs.map +1 -1
- package/dist/wakeRecords-mOiBrclj.mjs.map +1 -1
- package/dist/{wakeRecords-DCV0XXgo.d.mts → wakeRecords-xUx35A60.d.mts} +3 -3
- package/dist/{wakeRecords-DCV0XXgo.d.mts.map → wakeRecords-xUx35A60.d.mts.map} +1 -1
- package/dist/wakeRecords.d.mts +1 -1
- package/package.json +6 -6
- package/src/prompts/help-how-to-wake/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ po-wake owns the durable timer for bot sessions. It works without Calendar or Ta
|
|
|
15
15
|
Providers can register standing work through `po/wake-records`:
|
|
16
16
|
|
|
17
17
|
- A record that **covers** suppresses the reminder, not the next check.
|
|
18
|
-
- A record that is **due** can wake the bot after 15 quiet minutes. A new turn withdraws that wake.
|
|
18
|
+
- A record that is **due** can wake the bot after 15 quiet minutes. A new turn withdraws that wake. It does not wake the bot again until a due record changes its progress, such as a run landing or a window rolling over.
|
|
19
19
|
- A provider that cannot answer makes its coverage unknown. po-wake retries rather than treating unknown coverage as empty.
|
|
20
20
|
|
|
21
21
|
Only sessions marked as bots are woken. The default check-in does not assume any optional plugin is installed.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as WakeSlot, i as WakeRecord, n as PoWakeRecordsService, o as readPoWakeRecords, r as WakeProvider, t as PO_WAKE_RECORDS_SERVICE } from "./wakeRecords-
|
|
1
|
+
import { a as WakeSlot, i as WakeRecord, n as PoWakeRecordsService, o as readPoWakeRecords, r as WakeProvider, t as PO_WAKE_RECORDS_SERVICE } from "./wakeRecords-xUx35A60.mjs";
|
|
2
2
|
//#region src/schemas/wakeAlarm.d.ts
|
|
3
3
|
export declare const PO_WAKE_ALARM_SERVICE = "po/wake-alarm";
|
|
4
4
|
interface PoWakeAlarm {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","README.md","generated/server.ts","llms.txt","package.json","src/constants/wake.ts","src/exports/apiContracts.ts","src/exports/index.ts","src/exports/wakeRecords.ts","src/extensions/(backend)/channel/wake-lifecycle.server.ts","src/extensions/(backend)/root.server.ts","src/extensions/workspaces/(backend)/root.server.ts","src/extensions/workspaces/sessions/(backend)/command/wake.server.ts","src/extensions/workspaces/sessions/(backend)/contract/wakeRecords.server.ts","src/extensions/workspaces/sessions/(backend)/resource/help-how-to-wake.server.ts","src/extensions/workspaces/sessions/(backend)/root.server.ts","src/prompts/help-how-to-wake/SKILL.md","src/schemas/apiContracts.ts","src/schemas/wakeAlarm.ts","src/schemas/wakeRecords.ts","src/services/wake/index.ts","src/services/wake/type.ts","src/services/wakeAlarm/index.edge.ts","src/services/wakeAlarm/index.ts","src/services/wakeDeadlines/index.ts","src/services/wakeDeadlines/type.ts","src/services/wakeRoot/index.ts","src/services/wakeRoot/type.ts","src/services/wakeSession/index.ts","src/services/wakeSession/type.ts","tsdown.config.ts"],"sourceRevision":"
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","README.md","generated/server.ts","llms.txt","package.json","src/constants/wake.ts","src/exports/apiContracts.ts","src/exports/index.ts","src/exports/wakeRecords.ts","src/extensions/(backend)/channel/wake-lifecycle.server.ts","src/extensions/(backend)/root.server.ts","src/extensions/workspaces/(backend)/root.server.ts","src/extensions/workspaces/sessions/(backend)/command/wake.server.ts","src/extensions/workspaces/sessions/(backend)/contract/wakeRecords.server.ts","src/extensions/workspaces/sessions/(backend)/resource/help-how-to-wake.server.ts","src/extensions/workspaces/sessions/(backend)/root.server.ts","src/prompts/help-how-to-wake/SKILL.md","src/schemas/apiContracts.ts","src/schemas/wakeAlarm.ts","src/schemas/wakeRecords.ts","src/services/wake/index.ts","src/services/wake/type.ts","src/services/wakeAlarm/index.edge.ts","src/services/wakeAlarm/index.ts","src/services/wakeDeadlines/index.ts","src/services/wakeDeadlines/type.ts","src/services/wakeRoot/index.ts","src/services/wakeRoot/type.ts","src/services/wakeSession/index.ts","src/services/wakeSession/type.ts","tsdown.config.ts"],"sourceRevision":"89a5f2ce1fce313a58e1b049c5368054","manifestRevision":"09d3e7d242dc80f7e7c28465185cf914","outputFiles":["LICENSE","README.md","dist/apiContracts.cjs","dist/apiContracts.mjs","dist/extensions/server.cjs","dist/extensions/server.mjs","dist/index.cjs","dist/index.mjs","dist/wakeRecords-CfkvJoto.cjs","dist/wakeRecords-mOiBrclj.mjs","dist/wakeRecords.cjs","dist/wakeRecords.mjs","llms.txt","src/prompts/help-how-to-wake/SKILL.md"],"outputRevision":"686ec5b88d0fa2232a5a05c0114a04de"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeRecords-CfkvJoto.cjs","names":[],"sources":["../src/schemas/wakeRecords.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nexport const PO_WAKE_RECORDS_SERVICE = 'po/wake-records';\n\n/** One piece of standing work a plugin holds for this bot session. */\nexport interface WakeRecord {\n /** The plugin package that supplied it. */\n readonly source: string;\n readonly title: string;\n /** True when this record already wakes the bot within the horizon, such as an event due soon. */\n readonly covers: boolean;\n /** True for work that never fires on its own and is due now, such as a
|
|
1
|
+
{"version":3,"file":"wakeRecords-CfkvJoto.cjs","names":[],"sources":["../src/schemas/wakeRecords.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nexport const PO_WAKE_RECORDS_SERVICE = 'po/wake-records';\n\n/** One piece of standing work a plugin holds for this bot session. */\nexport interface WakeRecord {\n /** The plugin package that supplied it. */\n readonly source: string;\n readonly title: string;\n /** True when this record already wakes the bot within the horizon, such as an event due soon. */\n readonly covers: boolean;\n /** True for work that never fires on its own and is due now, such as a standing task under its target this window. */\n readonly due?: boolean;\n /** Changes whenever due work makes progress, such as today's run count. */\n readonly progress?: string;\n /** One private summary line for the reminder text. */\n readonly line?: string;\n}\n\n/** `reminder` is the delayed check-in fallback; `routine` wakes an idle bot for due standing work (the slot name is stored, so it stays). */\nexport type WakeSlot = 'reminder' | 'routine';\n\nexport interface WakeProvider {\n readonly source: string;\n /** This session's records. Reject when they cannot be read: an unknown answer is never an empty one. */\n records(at: number, horizonMs: number): Promise<readonly WakeRecord[]>;\n readonly guidance?: readonly string[];\n /** @deprecated Durably wake this session at `at` with `text`, replacing the slot's earlier wake. False when fenced. */\n schedule?(slot: WakeSlot, at: number, text: string, isCurrent: () => boolean): Promise<boolean>;\n /** @deprecated Wake owns cancellation. */\n cancel?(slot: WakeSlot): Promise<void>;\n}\n\n/** Session service: a plugin registers once and the returned function removes it. */\nexport interface PoWakeRecordsService {\n register(provider: WakeProvider): () => void;\n}\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/wake-records': PoWakeRecordsService;\n }\n}\n\nexport function readPoWakeRecords(context: Context): PoWakeRecordsService | undefined {\n return context.get(PO_WAKE_RECORDS_SERVICE) as PoWakeRecordsService | undefined;\n}\n"],"mappings":";AAEA,MAAa,0BAA0B;AA0CvC,SAAgB,kBAAkB,SAAoD;CACpF,OAAO,QAAQ,IAAI,uBAAuB;AAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeRecords-mOiBrclj.mjs","names":[],"sources":["../src/schemas/wakeRecords.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nexport const PO_WAKE_RECORDS_SERVICE = 'po/wake-records';\n\n/** One piece of standing work a plugin holds for this bot session. */\nexport interface WakeRecord {\n /** The plugin package that supplied it. */\n readonly source: string;\n readonly title: string;\n /** True when this record already wakes the bot within the horizon, such as an event due soon. */\n readonly covers: boolean;\n /** True for work that never fires on its own and is due now, such as a
|
|
1
|
+
{"version":3,"file":"wakeRecords-mOiBrclj.mjs","names":[],"sources":["../src/schemas/wakeRecords.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nexport const PO_WAKE_RECORDS_SERVICE = 'po/wake-records';\n\n/** One piece of standing work a plugin holds for this bot session. */\nexport interface WakeRecord {\n /** The plugin package that supplied it. */\n readonly source: string;\n readonly title: string;\n /** True when this record already wakes the bot within the horizon, such as an event due soon. */\n readonly covers: boolean;\n /** True for work that never fires on its own and is due now, such as a standing task under its target this window. */\n readonly due?: boolean;\n /** Changes whenever due work makes progress, such as today's run count. */\n readonly progress?: string;\n /** One private summary line for the reminder text. */\n readonly line?: string;\n}\n\n/** `reminder` is the delayed check-in fallback; `routine` wakes an idle bot for due standing work (the slot name is stored, so it stays). */\nexport type WakeSlot = 'reminder' | 'routine';\n\nexport interface WakeProvider {\n readonly source: string;\n /** This session's records. Reject when they cannot be read: an unknown answer is never an empty one. */\n records(at: number, horizonMs: number): Promise<readonly WakeRecord[]>;\n readonly guidance?: readonly string[];\n /** @deprecated Durably wake this session at `at` with `text`, replacing the slot's earlier wake. False when fenced. */\n schedule?(slot: WakeSlot, at: number, text: string, isCurrent: () => boolean): Promise<boolean>;\n /** @deprecated Wake owns cancellation. */\n cancel?(slot: WakeSlot): Promise<void>;\n}\n\n/** Session service: a plugin registers once and the returned function removes it. */\nexport interface PoWakeRecordsService {\n register(provider: WakeProvider): () => void;\n}\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/wake-records': PoWakeRecordsService;\n }\n}\n\nexport function readPoWakeRecords(context: Context): PoWakeRecordsService | undefined {\n return context.get(PO_WAKE_RECORDS_SERVICE) as PoWakeRecordsService | undefined;\n}\n"],"mappings":";AAEA,MAAa,0BAA0B;AA0CvC,SAAgB,kBAAkB,SAAoD;CACpF,OAAO,QAAQ,IAAI,uBAAuB;AAC5C"}
|
|
@@ -8,14 +8,14 @@ interface WakeRecord {
|
|
|
8
8
|
readonly title: string;
|
|
9
9
|
/** True when this record already wakes the bot within the horizon, such as an event due soon. */
|
|
10
10
|
readonly covers: boolean;
|
|
11
|
-
/** True for work that never fires on its own and is due now, such as a
|
|
11
|
+
/** True for work that never fires on its own and is due now, such as a standing task under its target this window. */
|
|
12
12
|
readonly due?: boolean;
|
|
13
13
|
/** Changes whenever due work makes progress, such as today's run count. */
|
|
14
14
|
readonly progress?: string;
|
|
15
15
|
/** One private summary line for the reminder text. */
|
|
16
16
|
readonly line?: string;
|
|
17
17
|
}
|
|
18
|
-
/** `reminder` is the delayed check-in fallback; `routine` wakes an idle bot for due
|
|
18
|
+
/** `reminder` is the delayed check-in fallback; `routine` wakes an idle bot for due standing work (the slot name is stored, so it stays). */
|
|
19
19
|
type WakeSlot = 'reminder' | 'routine';
|
|
20
20
|
interface WakeProvider {
|
|
21
21
|
readonly source: string;
|
|
@@ -39,4 +39,4 @@ declare module '@deepseek-ai/cordis' {
|
|
|
39
39
|
declare function readPoWakeRecords(context: Context): PoWakeRecordsService | undefined;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { WakeSlot as a, WakeRecord as i, PoWakeRecordsService as n, readPoWakeRecords as o, WakeProvider as r, PO_WAKE_RECORDS_SERVICE as t };
|
|
42
|
-
//# sourceMappingURL=wakeRecords-
|
|
42
|
+
//# sourceMappingURL=wakeRecords-xUx35A60.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeRecords-
|
|
1
|
+
{"version":3,"file":"wakeRecords-xUx35A60.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;WAChD;;EAET,UAAU,MAAM,UAAU,YAAY,cAAc,2BAA2B;;EAE/E,QAAQ,MAAM,WAAW;;;UAIV;EACf,SAAS,UAAU;;;YAIT;IACR,mBAAmB;;;iBAIP,kBAAkB,SAAS,UAAU"}
|
package/dist/wakeRecords.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as WakeSlot, i as WakeRecord, n as PoWakeRecordsService, o as readPoWakeRecords, r as WakeProvider, t as PO_WAKE_RECORDS_SERVICE } from "./wakeRecords-
|
|
1
|
+
import { a as WakeSlot, i as WakeRecord, n as PoWakeRecordsService, o as readPoWakeRecords, r as WakeProvider, t as PO_WAKE_RECORDS_SERVICE } from "./wakeRecords-xUx35A60.mjs";
|
|
2
2
|
export { PO_WAKE_RECORDS_SERVICE, type PoWakeRecordsService, type WakeProvider, type WakeRecord, type WakeSlot, readPoWakeRecords };
|
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.6",
|
|
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",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
58
|
-
"@agimon-ai/po-db": "0.0.0-alpha.
|
|
59
|
-
"@agimon-ai/po-profile": "0.0.0-alpha.
|
|
57
|
+
"@agimon-ai/po-core": "0.0.0-alpha.194",
|
|
58
|
+
"@agimon-ai/po-db": "0.0.0-alpha.194",
|
|
59
|
+
"@agimon-ai/po-profile": "0.0.0-alpha.194",
|
|
60
60
|
"@deepseek-ai/cordis": "4.0.5"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
64
|
-
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.
|
|
63
|
+
"@agimon-ai/po-build": "0.0.0-alpha.194",
|
|
64
|
+
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.194",
|
|
65
65
|
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
66
66
|
"@types/node": "26.6.5",
|
|
67
67
|
"@vitest/coverage-v8": "5.0.4",
|
|
@@ -11,10 +11,10 @@ po-wake owns the durable timer. Only bot sessions are eligible, and no standing-
|
|
|
11
11
|
|
|
12
12
|
- Plugins register a provider on the session service `po/wake-records`. Each record is one piece of standing work.
|
|
13
13
|
- A record that `covers` (an event due within the bot's wake period, or one running) skips the reminder.
|
|
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
|
-
- After a routine wake fires, no new one is scheduled until a
|
|
17
|
-
Until then
|
|
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
|
+
- After a routine wake fires, no new one is scheduled until a due record changes its `progress` (a run lands or
|
|
17
|
+
its window rolls over). Until then those records stop covering, and the ordinary reminder applies.
|
|
18
18
|
- With no record covering, the bot gets the reminder. A covering record skips the reminder but does not stop the timer.
|
|
19
19
|
- If the host was offline at the deadline, it makes one late check rather than replaying missed periods.
|
|
20
20
|
- If any provider cannot answer, the outcome is unavailable, never "nothing covers".
|