@huynle/hub 0.7.2 → 0.7.4
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/CHANGELOG.md +29 -0
- package/README.md +5 -5
- package/package.json +1 -1
- package/packages/claude-code/package.json +1 -1
- package/packages/cli/dist/hub-cli.js +7 -7
- package/packages/cli/package.json +1 -1
- package/packages/codex/package.json +1 -1
- package/packages/node/package.json +1 -1
- package/packages/preset/package.json +1 -1
- package/packages/protocol/package.json +1 -1
- package/packages/protocol/src/harness-events.ts +2 -2
- package/packages/protocol/src/index.ts +70 -7
- package/packages/runtime-openshell/package.json +1 -1
- package/packages/runtime-sdk/package.json +1 -1
- package/packages/sdk/package.json +1 -1
- package/packages/spoke-sdk/package.json +1 -1
- package/src/central/http.ts +2 -1
- package/src/central/push.ts +14 -1
- package/src/central/registry.ts +34 -5
- package/src/central/store.ts +7 -0
- package/src/spoke/spoke.ts +8 -4
- package/src/spoke/timeline.ts +59 -3
- package/src/spoke/tracker.ts +59 -6
- package/src/status.ts +97 -6
- package/web/dist/assets/index-Dm8OmkaO.css +1 -0
- package/web/dist/assets/index-FUJbj_Du.js +20 -0
- package/web/dist/index.html +2 -2
- package/web/dist/sw.js +4 -1
- package/web/dist/assets/index-DWnMhXk9.js +0 -20
- package/web/dist/assets/index-DmUXEnw9.css +0 -1
package/web/dist/index.html
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
|
|
29
29
|
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192" />
|
|
30
30
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
31
|
-
<script type="module" crossorigin src="/assets/index-
|
|
32
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
31
|
+
<script type="module" crossorigin src="/assets/index-FUJbj_Du.js"></script>
|
|
32
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Dm8OmkaO.css">
|
|
33
33
|
</head>
|
|
34
34
|
<body>
|
|
35
35
|
<div id="root"></div>
|
package/web/dist/sw.js
CHANGED
|
@@ -17,6 +17,7 @@ const VIBRATE = {
|
|
|
17
17
|
decision: [200, 100, 200],
|
|
18
18
|
message: [150, 80, 150],
|
|
19
19
|
failed: [300],
|
|
20
|
+
providerError: [300, 100, 300],
|
|
20
21
|
subagentFailed: [300],
|
|
21
22
|
jobFailed: [300],
|
|
22
23
|
done: [100, 60, 100],
|
|
@@ -98,6 +99,8 @@ self.addEventListener("push", (event) => {
|
|
|
98
99
|
const sessionID = typeof data.sessionID === "string" ? data.sessionID : ""
|
|
99
100
|
const kind = typeof data.kind === "string" ? data.kind : "update"
|
|
100
101
|
const requestID = typeof data.requestID === "string" ? data.requestID : ""
|
|
102
|
+
// Per-session kinds (a root's and a subagent's provider error) keep one notification each.
|
|
103
|
+
const tagKey = typeof data.tagKey === "string" && /^ses_[A-Za-z0-9]{1,64}$/.test(data.tagKey) ? data.tagKey : ""
|
|
101
104
|
const decisionID = kind === "decision" && typeof data.decisionID === "string" && /^dec_[A-Za-z0-9]{1,64}$/.test(data.decisionID) ? data.decisionID : ""
|
|
102
105
|
event.waitUntil(
|
|
103
106
|
(async () => {
|
|
@@ -125,7 +128,7 @@ self.addEventListener("push", (event) => {
|
|
|
125
128
|
await self.registration.showNotification(data.title || "Hub", {
|
|
126
129
|
body,
|
|
127
130
|
// One notification per session and kind (a test one does not replace a real one).
|
|
128
|
-
tag: `${data.test ? "test:" : ""}${sessionID}:${kind}`,
|
|
131
|
+
tag: `${data.test ? "test:" : ""}${sessionID}:${kind}${tagKey && tagKey !== sessionID ? `:${tagKey}` : ""}`,
|
|
129
132
|
renotify: !QUIET.has(kind),
|
|
130
133
|
requireInteraction: STICKY.has(kind),
|
|
131
134
|
vibrate: VIBRATE[kind] || [100],
|