@jive-sh/skill-sync 0.1.2-latest-linux-arm64 → 0.1.2
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 +29 -0
- package/bin/skill-sync +568 -0
- package/bin/skill-sync-daemon +568 -0
- package/dist/daemons/skill-sync-daemon.js +99 -0
- package/dist/daemons/skill-sync-daemon.js.map +1 -0
- package/dist/entrypoints/skill-sync.js +135 -0
- package/dist/entrypoints/skill-sync.js.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/config.js +135 -0
- package/dist/internal/config.js.map +1 -0
- package/dist/internal/notify.js +50 -0
- package/dist/internal/notify.js.map +1 -0
- package/dist/internal/path.js +36 -0
- package/dist/internal/path.js.map +1 -0
- package/dist/internal/sync.js +131 -0
- package/dist/internal/sync.js.map +1 -0
- package/dist/internal/wire.js +7 -0
- package/dist/internal/wire.js.map +1 -0
- package/install.js +568 -0
- package/package.json +39 -11
- package/src/daemons/skill-sync-daemon.ts +104 -0
- package/src/entrypoints/skill-sync.ts +140 -0
- package/src/index.ts +10 -0
- package/src/internal/config.ts +170 -0
- package/src/internal/notify.ts +53 -0
- package/src/internal/path.ts +32 -0
- package/src/internal/sync.ts +165 -0
- package/src/internal/wire.ts +32 -0
- package/multi-call-binary +0 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shapes the daemon and the service exchange.
|
|
3
|
+
*
|
|
4
|
+
* Declared in the library and imported by the service so there is one definition rather than two that
|
|
5
|
+
* drift. The service depends on the library; nothing goes the other way.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface RemoteFile {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
/** Null when the file is deleted; the row stays as a tombstone. */
|
|
11
|
+
readonly hash: string | null;
|
|
12
|
+
readonly deleted: boolean;
|
|
13
|
+
readonly updatedAt: number;
|
|
14
|
+
readonly updatedBy: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ListFilesResponse {
|
|
18
|
+
/** Highest sequence number in this page; the caller sends it back as `since`. */
|
|
19
|
+
readonly cursor: number;
|
|
20
|
+
readonly files: ReadonlyArray<RemoteFile>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface PutFileRequest {
|
|
24
|
+
readonly path: string;
|
|
25
|
+
/** What the client believes the server holds. The write is refused if that is no longer true. */
|
|
26
|
+
readonly baseHash: string | null;
|
|
27
|
+
/** Null to delete. */
|
|
28
|
+
readonly hash: string | null;
|
|
29
|
+
/** Base64, absent for a delete. */
|
|
30
|
+
readonly content: string | null;
|
|
31
|
+
readonly machine: string;
|
|
32
|
+
}
|
package/multi-call-binary
DELETED