thinkpool-pair 0.7.364 → 0.7.366
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 +18 -0
- package/README.md +20 -0
- package/abort-turn-barrier.mjs +1 -23
- package/account.mjs +1 -1437
- package/acp-client.mjs +1 -140
- package/agent-detect.mjs +1 -28
- package/agent-notify.mjs +1 -142
- package/agent-visibility.mjs +1 -67
- package/auth-store.mjs +1 -120
- package/bridge.mjs +1 -6266
- package/byok-detect.mjs +1 -126
- package/claude-command-catalog.mjs +1 -91
- package/claude-session.mjs +1 -1519
- package/code-event-contract.mjs +1 -118
- package/codex-app-server.mjs +1 -340
- package/codex-commands.mjs +1 -83
- package/codex-event-mapper.mjs +1 -232
- package/codex-images.mjs +1 -69
- package/codex-mcp-http.mjs +1 -131
- package/codex-session.mjs +1 -1295
- package/command-catalog.mjs +1 -118
- package/command-guidance.mjs +1 -8
- package/context-contract.mjs +1 -95
- package/context-windows.mjs +1 -107
- package/cross-terminal.mjs +1 -789
- package/cumulative-event-relay.mjs +1 -53
- package/design-edit.mjs +1 -424
- package/design-source-contract.mjs +1 -4
- package/direct-pair-room.mjs +1 -57
- package/dispatch-lease.mjs +1 -37
- package/dispatch-permission-cleanup.mjs +1 -86
- package/edit-diff.mjs +1 -136
- package/error-recovery.mjs +1 -50
- package/event-bounds.mjs +1 -121
- package/event-delivery-queue.mjs +1 -60
- package/event-id.mjs +1 -549
- package/evidence-citations.mjs +1 -50
- package/evidence-compact.mjs +1 -11
- package/flow-assembly.mjs +1 -196
- package/flow-budget.mjs +1 -84
- package/flow-conductor.mjs +1 -259
- package/flow-context-store.mjs +1 -387
- package/flow-host-revert.mjs +1 -42
- package/flow-models.mjs +1 -139
- package/flow-preview.mjs +1 -148
- package/flow-receipt.mjs +1 -122
- package/flow-redispatch.mjs +1 -72
- package/flow-review-gate.mjs +1 -402
- package/flow-review-reflect.mjs +1 -115
- package/flow-review.mjs +1 -152
- package/flow-scope-evidence.mjs +1 -117
- package/flow-skill-registry.mjs +1 -140
- package/flow-task-graph.mjs +1 -562
- package/flow-worktree.mjs +1 -71
- package/git-diff-report.mjs +1 -121
- package/hermes-delegation-guard.mjs +1 -14
- package/hermes-event-mapper.mjs +1 -194
- package/hermes-isolation.mjs +1 -61
- package/hermes-model-cache.mjs +1 -54
- package/hermes-policy.mjs +1 -92
- package/hermes-probe.mjs +1 -57
- package/hermes-session.mjs +1 -683
- package/hermes-setup.mjs +1 -167
- package/host-memory.mjs +1 -116
- package/interrupted-resume.mjs +1 -95
- package/keep-awake.mjs +1 -148
- package/key-shape.mjs +1 -49
- package/lane-continuation.mjs +1 -83
- package/lane-lifecycle.mjs +1 -189
- package/lane-worktree.mjs +1 -77
- package/launcher.mjs +1 -354
- package/mcp-flight-recorder.mjs +1 -79
- package/mockup-delivery.mjs +1 -57
- package/model-prices.mjs +1 -113
- package/package.json +13 -4
- package/pair-bus.mjs +1 -98
- package/pair-control-authority.mjs +1 -89
- package/past-work-search.mjs +1 -105
- package/plan-meters.mjs +1 -144
- package/presence.mjs +1 -191
- package/privacy-report.mjs +1 -108
- package/provider-resilience.mjs +1 -356
- package/provider.mjs +1 -133
- package/providers.mjs +1 -491
- package/publish-guard.mjs +2 -0
- package/publish-manifest.json +129 -0
- package/question-response.mjs +1 -58
- package/reap-terminal.mjs +1 -68
- package/recap.mjs +1 -297
- package/replay-transport.mjs +1 -64
- package/repo-search.mjs +1 -190
- package/review-check.mjs +1 -182
- package/runtime-contract.mjs +1 -93
- package/runtime-registry.mjs +1 -64
- package/runtime-session.mjs +1 -20
- package/scheduled-run-admission.mjs +1 -364
- package/scheduled-runs.mjs +1 -268
- package/sdk-admission.mjs +1 -9
- package/sdk-smoke.mjs +1 -61
- package/serve-consent.mjs +1 -118
- package/serve-dir.mjs +1 -40
- package/service.mjs +1 -877
- package/session-store.mjs +1 -484
- package/side-lane.mjs +1 -63
- package/supabase-key.mjs +1 -176
- package/supervisor-ready.mjs +1 -57
- package/switch-provider.mjs +1 -84
- package/terminal-name.mjs +1 -359
- package/terminal-row-reconcile.mjs +1 -70
- package/thinkpool-prompt-contracts.mjs +1 -85
- package/thinkpool-room-prompt.mjs +1 -187
- package/transcript-sanitize.mjs +1 -332
- package/turn-stall.mjs +1 -61
- package/update-gate.mjs +1 -53
- package/viewport.mjs +1 -810
- package/worker-completion.mjs +1 -57
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Thinkpool Proprietary Software Notice
|
|
2
|
+
|
|
3
|
+
Copyright © 2026 Thinkpool, UAB. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software is proprietary.
|
|
6
|
+
|
|
7
|
+
A person who lawfully obtains thinkpool-pair may install and run an
|
|
8
|
+
unmodified copy solely to access and use the Thinkpool service in accordance
|
|
9
|
+
with the Terms of Service at https://thinkpool.io/terms.
|
|
10
|
+
|
|
11
|
+
Except for that limited permission, no licence is granted to copy, modify,
|
|
12
|
+
create derivative works from, redistribute, sublicense, sell, or otherwise
|
|
13
|
+
exploit this software without prior written permission from Thinkpool, UAB.
|
|
14
|
+
Nothing in this notice restricts rights that cannot lawfully be restricted.
|
|
15
|
+
|
|
16
|
+
Third-party components remain governed by their own licences.
|
|
17
|
+
|
|
18
|
+
For additional permission, contact support@thinkpool.io.
|
package/README.md
CHANGED
|
@@ -291,6 +291,19 @@ npm run test:bridge
|
|
|
291
291
|
node bridge/test-packed-artifact.mjs
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
+
The public npm artifact is built separately from the readable private source:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
npm --prefix bridge run build:package
|
|
298
|
+
node bridge/.publish-package/publish-guard.mjs
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
The staging build preserves the runtime module/file graph but removes comments,
|
|
302
|
+
formatting, and local symbol names. It emits no source maps and integrity-binds
|
|
303
|
+
every published file. Raw `npm pack` and `npm publish` from `bridge/` are
|
|
304
|
+
deliberately blocked; the release command below builds and verifies the staged
|
|
305
|
+
artifact itself.
|
|
306
|
+
|
|
294
307
|
Run the checked-out launcher with:
|
|
295
308
|
|
|
296
309
|
```bash
|
|
@@ -305,3 +318,10 @@ npm --prefix bridge run release
|
|
|
305
318
|
|
|
306
319
|
The release command has external side effects and requires npm publish
|
|
307
320
|
authority. Do not use it as a local verification command.
|
|
321
|
+
|
|
322
|
+
## Licence
|
|
323
|
+
|
|
324
|
+
`thinkpool-pair` is proprietary software. A lawful recipient may install and
|
|
325
|
+
run an unmodified copy to use Thinkpool. Redistribution, modification, resale,
|
|
326
|
+
and other uses require prior written permission. See [LICENSE](LICENSE) and
|
|
327
|
+
the [Thinkpool Terms of Service](https://thinkpool.io/terms).
|
package/abort-turn-barrier.mjs
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// independent handlers. Keep that next human turn behind the runtime's real abort
|
|
3
|
-
// completion so a late aborted boundary cannot close the new turn.
|
|
4
|
-
|
|
5
|
-
export function queueAbortBarrier(entry, runAbort = () => entry?.session?.abort?.()) {
|
|
6
|
-
if (!entry) return Promise.resolve()
|
|
7
|
-
const prior = entry._abortBarrier || Promise.resolve()
|
|
8
|
-
let barrier
|
|
9
|
-
barrier = Promise.resolve(prior)
|
|
10
|
-
.catch(() => {})
|
|
11
|
-
.then(() => runAbort())
|
|
12
|
-
.catch(() => {})
|
|
13
|
-
.finally(() => {
|
|
14
|
-
if (entry._abortBarrier === barrier) entry._abortBarrier = null
|
|
15
|
-
})
|
|
16
|
-
entry._abortBarrier = barrier
|
|
17
|
-
return barrier
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export async function waitForAbortBarrier(entry) {
|
|
21
|
-
const barrier = entry?._abortBarrier
|
|
22
|
-
if (barrier) await barrier
|
|
23
|
-
}
|
|
1
|
+
const r=r=>{const e=Number(r);return Number.isSafeInteger(e)&&e>0?e:0},e=(r,e)=>{for(r._abortCommandCids||(r._abortCommandCids=new Set),r._abortCommandCids.add(e);r._abortCommandCids.size>128;)r._abortCommandCids.delete(r._abortCommandCids.values().next().value)};export function admitAbortRequest(t,n={}){const o="string"==typeof n.cid?n.cid.trim():"",u=r(n.turnRev),i="string"==typeof n.turnCid?n.turnCid.trim():"",a=r(t?._turnRev);return t?.session?o?t._abortCommandCids?.has(o)?{action:"duplicate",code:"duplicate",currentTurnRev:a}:u?u<a?{action:"reject",code:"stale_turn",currentTurnRev:a}:u>a+1?{action:"reject",code:"future_turn",currentTurnRev:a}:u===a+1?!0===t._busyAnn?{action:"reject",code:"future_turn",currentTurnRev:a}:i?(e(t,o),t._pendingAbortRequest={cid:o,turnRev:u,turnCid:i},{action:"defer",code:"awaiting_turn",currentTurnRev:a,targetTurnRev:u}):{action:"reject",code:"missing_turn_id",currentTurnRev:a}:!0!==t._busyAnn?{action:"reject",code:"turn_already_settled",currentTurnRev:a}:(e(t,o),{action:"abort",code:"accepted",currentTurnRev:a,targetTurnRev:u}):{action:"reject",code:"missing_turn_revision",currentTurnRev:a}:{action:"reject",code:"missing_abort_id",currentTurnRev:a}:{action:"reject",code:"session_unavailable",currentTurnRev:a}}export function takePendingAbortRequest(e,{turnRev:t,turnCid:n}={}){const o=e?._pendingAbortRequest;if(!o)return null;const u=r(t);return u<o.turnRev?null:(e._pendingAbortRequest=null,u===o.turnRev&&n&&n===o.turnCid?o:null)}export function queueAbortBarrier(r,e=()=>r?.session?.abort?.()){if(!r)return Promise.resolve();const t=r._abortBarrier||Promise.resolve();let n;return n=Promise.resolve(t).catch(()=>{}).then(()=>e()).catch(()=>{}).finally(()=>{r._abortBarrier===n&&(r._abortBarrier=null)}),r._abortBarrier=n,n}export async function waitForAbortBarrier(r){const e=r?._abortBarrier;e&&await e}
|