@rigxyz/tapd 0.6.3 → 0.6.5
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/dist/bin.js +41 -3
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-54AIKODH.js → chunk-7RKYNS5V.js} +0 -0
- package/dist/chunk-7RKYNS5V.js.map +1 -0
- package/dist/index.d.ts +37 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-54AIKODH.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { GetBindingResponse, PrepareUploadRequest, PrepareUploadResponse, Comple
|
|
|
7
7
|
* Layers:
|
|
8
8
|
* 1. Built-in defaults — common secrets, dependencies, OS noise, and
|
|
9
9
|
* bulky generated artifacts (per design doc § "Large File Policy").
|
|
10
|
+
* Bulky media/archives are re-included under the top-level
|
|
11
|
+
* `attachments/` folder (chat attachments must sync).
|
|
10
12
|
* A user CAN override these via `!pattern` in their .tapignore.
|
|
11
13
|
* 2. Project .tapignore.
|
|
12
14
|
* 3. Always-excluded paths — Tap's own local metadata. These cannot be
|
|
@@ -553,6 +555,18 @@ type IntentAssignment = {
|
|
|
553
555
|
* watcher event (debounced).
|
|
554
556
|
*/
|
|
555
557
|
|
|
558
|
+
type NotSyncedFile = {
|
|
559
|
+
path: string;
|
|
560
|
+
reason: "quota_exceeded" | "file_too_large";
|
|
561
|
+
/** Hash of the refused bytes; absent for walker-level oversize skips. */
|
|
562
|
+
hash?: string;
|
|
563
|
+
size?: number;
|
|
564
|
+
/** The space's byte limit, for quota_exceeded. */
|
|
565
|
+
limitBytes?: number;
|
|
566
|
+
/** When these bytes were (last) refused. */
|
|
567
|
+
at: string;
|
|
568
|
+
};
|
|
569
|
+
declare function readNotSynced(stateDb: StateDb): NotSyncedFile[];
|
|
556
570
|
type ScanAndPushResult = {
|
|
557
571
|
/** Bytes uploaded this cycle. */
|
|
558
572
|
uploaded: number;
|
|
@@ -743,6 +757,16 @@ type StartSubscriptionOptions = {
|
|
|
743
757
|
/** Test seam — disable SSE (poll-only). */
|
|
744
758
|
noSse?: boolean;
|
|
745
759
|
sseHeartbeatTimeoutMs?: number;
|
|
760
|
+
/**
|
|
761
|
+
* Called once, after this subscription has already stopped itself (poll
|
|
762
|
+
* timer cleared, SSE stopped, `.rig/sync-paused.json` written), when the
|
|
763
|
+
* relay reports the binding was deleted (410 `binding_deleted`). The
|
|
764
|
+
* caller (start.ts for the primary binding) can use this to also stop
|
|
765
|
+
* the writer — the subscription itself only owns the download side.
|
|
766
|
+
*/
|
|
767
|
+
onBindingDeleted?: (info: {
|
|
768
|
+
deletedAt: string;
|
|
769
|
+
}) => void;
|
|
746
770
|
};
|
|
747
771
|
declare function startSubscription(opts: StartSubscriptionOptions): Promise<SubscriptionHandle>;
|
|
748
772
|
|
|
@@ -924,6 +948,18 @@ type StartOptions = {
|
|
|
924
948
|
disableIntentCapture?: boolean;
|
|
925
949
|
/** Test seam — override active-session resolution (projectsRoot, now, idleMs). */
|
|
926
950
|
intentSessionOpts?: ActiveSessionOptions;
|
|
951
|
+
/**
|
|
952
|
+
* Called when the PRIMARY binding is reported deleted by the relay (410
|
|
953
|
+
* `binding_deleted`). By the time this fires, the primary subscription
|
|
954
|
+
* has already stopped itself (poll + SSE) and written
|
|
955
|
+
* `.rig/sync-paused.json`; the writer (watcher + scheduled scans) is
|
|
956
|
+
* ALSO already stopped before this callback runs. `bin.ts`'s CLI
|
|
957
|
+
* entrypoint uses this to exit the process cleanly.
|
|
958
|
+
*/
|
|
959
|
+
onBindingDeleted?: (info: {
|
|
960
|
+
bindingId: string;
|
|
961
|
+
deletedAt: string;
|
|
962
|
+
}) => void;
|
|
927
963
|
};
|
|
928
964
|
/** A live import mount — exposed for status + tests. */
|
|
929
965
|
type ImportHandle = {
|
|
@@ -946,4 +982,4 @@ type DaemonHandle = {
|
|
|
946
982
|
};
|
|
947
983
|
declare function start(opts: StartOptions): Promise<DaemonHandle>;
|
|
948
984
|
|
|
949
|
-
export { type AddImportOptions, type AddImportResult, AlreadyInitializedError, AlreadyJoinedError, type ApplyMode, type ApplyResult, BINDING_CONFIG_PATH, BUILTIN_IGNORE_LINES, type BindingConfig, type DaemonHandle, type ImportHandle, type ImportMountFile, type ImportSpec, ImportTokenScopeError, type ImportValidationError, ImportValidationFailed, type InitOptions, type InitResult, InvalidInviteUrlError, type JoinOptions, type JoinResult, type LocalPathState, type MintInviteOptions, NotInitializedError, RelayClient, type RelayClientOptions, RelayError, type RemoveImportResult, STATE_KEY_CONFLICT_COUNT, type ScanAndPushResult, type SseSubscriber, type SseSubscriberOptions, type StartOptions, type StartSubscriptionOptions, type StateDb, type SubscriptionConfig, type SubscriptionHandle, type WalkFile, type WalkResult, type WalkWarning, addImport, applyOnce, bindingConfigFile, conflictSidecarPath, createBinding, hashFile, importMountFile, importStateDbPath, importsDir, init, isAlwaysExcluded, join, list as listInvites, loadIgnore, loadImportMounts, mint as mintInvite, normalizeImportPath, openStateDb, parseInviteUrl, primaryStateDbPath, readBindingConfig, readImportMount, removeImport, revoke as revokeInvite, scanAndPush, subscribe as sseSubscribe, start, startSubscription, validateImportName, validateImportPath, validateImports, walk, writeBindingConfig, writeImportMount };
|
|
985
|
+
export { type AddImportOptions, type AddImportResult, AlreadyInitializedError, AlreadyJoinedError, type ApplyMode, type ApplyResult, BINDING_CONFIG_PATH, BUILTIN_IGNORE_LINES, type BindingConfig, type DaemonHandle, type ImportHandle, type ImportMountFile, type ImportSpec, ImportTokenScopeError, type ImportValidationError, ImportValidationFailed, type InitOptions, type InitResult, InvalidInviteUrlError, type JoinOptions, type JoinResult, type LocalPathState, type MintInviteOptions, NotInitializedError, type NotSyncedFile, RelayClient, type RelayClientOptions, RelayError, type RemoveImportResult, STATE_KEY_CONFLICT_COUNT, type ScanAndPushResult, type SseSubscriber, type SseSubscriberOptions, type StartOptions, type StartSubscriptionOptions, type StateDb, type SubscriptionConfig, type SubscriptionHandle, type WalkFile, type WalkResult, type WalkWarning, addImport, applyOnce, bindingConfigFile, conflictSidecarPath, createBinding, hashFile, importMountFile, importStateDbPath, importsDir, init, isAlwaysExcluded, join, list as listInvites, loadIgnore, loadImportMounts, mint as mintInvite, normalizeImportPath, openStateDb, parseInviteUrl, primaryStateDbPath, readBindingConfig, readImportMount, readNotSynced, removeImport, revoke as revokeInvite, scanAndPush, subscribe as sseSubscribe, start, startSubscription, validateImportName, validateImportPath, validateImports, walk, writeBindingConfig, writeImportMount };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
primaryStateDbPath,
|
|
34
34
|
readBindingConfig,
|
|
35
35
|
readImportMount,
|
|
36
|
+
readNotSynced,
|
|
36
37
|
removeImport,
|
|
37
38
|
revoke,
|
|
38
39
|
scanAndPush,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
walk,
|
|
46
47
|
writeBindingConfig,
|
|
47
48
|
writeImportMount
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7RKYNS5V.js";
|
|
49
50
|
export {
|
|
50
51
|
AlreadyInitializedError,
|
|
51
52
|
AlreadyJoinedError,
|
|
@@ -80,6 +81,7 @@ export {
|
|
|
80
81
|
primaryStateDbPath,
|
|
81
82
|
readBindingConfig,
|
|
82
83
|
readImportMount,
|
|
84
|
+
readNotSynced,
|
|
83
85
|
removeImport,
|
|
84
86
|
revoke as revokeInvite,
|
|
85
87
|
scanAndPush,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigxyz/tapd",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Local daemon for the hosted Tap relay — watches files, hashes content, uploads/downloads objects, applies remote changes. Pairs with @rigxyz/cli for shared-rig sync.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Dylan Bourgeois <dtsbourg@gmail.com>",
|