@aidenhq/sdk 0.5.20 → 0.5.22
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 +4 -0
- package/dist/src/task-state-types.d.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,3 +26,7 @@ without a version bump (services import the published package, so an unpublished
|
|
|
26
26
|
A change to the SDK lands in two steps: the PR that changes it and bumps the version; then, once it is published, the PRs that
|
|
27
27
|
move each consumer's pin (`bun add --exact @aidenhq/sdk@X.Y.Z` in its folder). A consumer's PR never depends on an SDK change that
|
|
28
28
|
is not yet on npm.
|
|
29
|
+
|
|
30
|
+
Test the consumers before opening the SDK PR, so one release carries everything they need: `bun pm pack` here, then
|
|
31
|
+
`bun add ../../kernel/sdk/aidenhq-sdk-X.Y.Z.tgz` (the relative path to the tarball) in each consumer you change, run its tests, and
|
|
32
|
+
revert that dependency change and delete the tarball before committing (the copies `scripts/sync-shared.ts` writes still land with the SDK change).
|
|
@@ -36,10 +36,15 @@ export type TaskState = {
|
|
|
36
36
|
export type StateRow = TaskState & {
|
|
37
37
|
task: string;
|
|
38
38
|
identifier: string | null;
|
|
39
|
+
/** The idle wakes since the task's last recorded progress (a `pr.pushed`, a `task.status_changed`, or a wake of any other cause), within a rolling 24 hours. */
|
|
39
40
|
idle_wakes: number;
|
|
40
41
|
origin: string | null;
|
|
41
42
|
holder_name?: string;
|
|
42
43
|
holder_gone?: true;
|
|
44
|
+
/** When the task last recorded progress (the newest `pr.pushed`, `task.status_changed` or non-idle `wake.opened`), if any: the idle count starts after it. */
|
|
45
|
+
progress_at?: string;
|
|
46
|
+
/** When the task's last idle wake ended (bound, dropped or covered); with it the idle sweep re-fires a `history_expired` task whose own `since` never moves. */
|
|
47
|
+
swept_since?: string;
|
|
43
48
|
};
|
|
44
49
|
export type StateRead = {
|
|
45
50
|
as_of: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aidenhq/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22",
|
|
4
4
|
"description": "The shared code of AidenHQ modules: contract types, engine IO, the caller check and fence, write executors, the reviewer side, the judges' models and call, the source writer and the vendor MCP pass-through.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|