@agimon-ai/po-wake 0.0.1-alpha.5 → 0.0.1-alpha.7
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 +2 -2
- 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 +9 -9
- package/src/prompts/help-how-to-wake/SKILL.md +4 -4
package/LICENSE
CHANGED
|
@@ -1,149 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Terms
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Any use of the Licensed Work in violation of this License will automatically
|
|
113
|
-
terminate your rights under this License for the current and all other
|
|
114
|
-
versions of the Licensed Work.
|
|
115
|
-
|
|
116
|
-
This License does not grant you any right in any trademark or logo of
|
|
117
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
118
|
-
Licensor as expressly required by this License).
|
|
119
|
-
|
|
120
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
121
|
-
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
122
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
123
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
124
|
-
TITLE.
|
|
125
|
-
|
|
126
|
-
MariaDB hereby grants you permission to use this License’s text to license
|
|
127
|
-
your works, and to refer to it using the trademark “Business Source License”,
|
|
128
|
-
as long as you comply with the Covenants of Licensor below.
|
|
129
|
-
|
|
130
|
-
Covenants of Licensor
|
|
131
|
-
|
|
132
|
-
In consideration of the right to use this License’s text and the “Business
|
|
133
|
-
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
134
|
-
other recipients of the licensed work to be provided by Licensor:
|
|
135
|
-
|
|
136
|
-
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
137
|
-
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
138
|
-
where “compatible” means that software provided under the Change License can
|
|
139
|
-
be included in a program with software provided under GPL Version 2.0 or a
|
|
140
|
-
later version. Licensor may specify additional Change Licenses without
|
|
141
|
-
limitation.
|
|
142
|
-
|
|
143
|
-
2. To either: (a) specify an additional grant of rights to use that does not
|
|
144
|
-
impose any additional restriction on the right granted in this License, as
|
|
145
|
-
the Additional Use Grant; or (b) insert the text “None”.
|
|
146
|
-
|
|
147
|
-
3. To specify a Change Date.
|
|
148
|
-
|
|
149
|
-
4. Not to modify this License in any other way.
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Agimon Pty Ltd
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in all
|
|
102
|
+
copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
110
|
+
SOFTWARE.
|
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.
|
|
@@ -38,4 +38,4 @@ Run the package's `build`, `typecheck`, `test`, and `lint` scripts from this dir
|
|
|
38
38
|
|
|
39
39
|
## License
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
Functional Source License 1.1, MIT Future License (FSL-1.1-MIT): free for any purpose except a Competing Use; each version converts to MIT two years after release. See [LICENSE](LICENSE).
|
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":"04e1d32ad2976603f07dbe3a2867cb5f","manifestRevision":"bbbf6fb3dfab80de6b94a37cb0b629b1","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":"1b7efd88500bf91c181708971f918056"}
|
|
@@ -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.7",
|
|
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,15 +54,15 @@
|
|
|
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.195",
|
|
58
|
+
"@agimon-ai/po-db": "0.0.0-alpha.195",
|
|
59
|
+
"@agimon-ai/po-profile": "0.0.0-alpha.195",
|
|
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.
|
|
65
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
63
|
+
"@agimon-ai/po-build": "0.0.0-alpha.195",
|
|
64
|
+
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.195",
|
|
65
|
+
"@earendil-works/pi-coding-agent": "1.6.1",
|
|
66
66
|
"@types/node": "26.6.5",
|
|
67
67
|
"@vitest/coverage-v8": "5.0.4",
|
|
68
68
|
"tsdown": "0.23.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vitest": "5.0.4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
73
|
+
"@earendil-works/pi-coding-agent": "1.6.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@earendil-works/pi-coding-agent": {
|
|
@@ -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".
|