@jive-sh/skill-sync 0.4.18 → 0.5.0-latest-darwin-arm64

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.
Files changed (55) hide show
  1. package/multi-call-binary +4 -0
  2. package/package.json +11 -39
  3. package/README.md +0 -127
  4. package/bin/package.json +0 -1
  5. package/bin/skill-sync +0 -576
  6. package/bin/skill-sync-daemon +0 -576
  7. package/dist/daemons/skill-sync-daemon.js +0 -491
  8. package/dist/daemons/skill-sync-daemon.js.map +0 -1
  9. package/dist/entrypoints/skill-sync.js +0 -153
  10. package/dist/entrypoints/skill-sync.js.map +0 -1
  11. package/dist/index.js +0 -10
  12. package/dist/index.js.map +0 -1
  13. package/dist/internal/agents/agent-tool.js +0 -83
  14. package/dist/internal/agents/agent-tool.js.map +0 -1
  15. package/dist/internal/agents/claude.js +0 -249
  16. package/dist/internal/agents/claude.js.map +0 -1
  17. package/dist/internal/agents/codex.js +0 -150
  18. package/dist/internal/agents/codex.js.map +0 -1
  19. package/dist/internal/agents/grok.js +0 -111
  20. package/dist/internal/agents/grok.js.map +0 -1
  21. package/dist/internal/agents/index.js +0 -31
  22. package/dist/internal/agents/index.js.map +0 -1
  23. package/dist/internal/config.js +0 -131
  24. package/dist/internal/config.js.map +0 -1
  25. package/dist/internal/control.js +0 -101
  26. package/dist/internal/control.js.map +0 -1
  27. package/dist/internal/folders.js +0 -47
  28. package/dist/internal/folders.js.map +0 -1
  29. package/dist/internal/path.js +0 -36
  30. package/dist/internal/path.js.map +0 -1
  31. package/dist/internal/server.js +0 -32
  32. package/dist/internal/server.js.map +0 -1
  33. package/dist/internal/skill-check.js +0 -83
  34. package/dist/internal/skill-check.js.map +0 -1
  35. package/dist/internal/sync.js +0 -183
  36. package/dist/internal/sync.js.map +0 -1
  37. package/dist/internal/wire.js +0 -24
  38. package/dist/internal/wire.js.map +0 -1
  39. package/install.cjs +0 -576
  40. package/src/daemons/skill-sync-daemon.ts +0 -483
  41. package/src/entrypoints/skill-sync.ts +0 -156
  42. package/src/index.ts +0 -15
  43. package/src/internal/agents/agent-tool.ts +0 -109
  44. package/src/internal/agents/claude.ts +0 -259
  45. package/src/internal/agents/codex.ts +0 -163
  46. package/src/internal/agents/grok.ts +0 -112
  47. package/src/internal/agents/index.ts +0 -34
  48. package/src/internal/config.ts +0 -172
  49. package/src/internal/control.ts +0 -140
  50. package/src/internal/folders.ts +0 -50
  51. package/src/internal/path.ts +0 -32
  52. package/src/internal/server.ts +0 -34
  53. package/src/internal/skill-check.ts +0 -97
  54. package/src/internal/sync.ts +0 -217
  55. package/src/internal/wire.ts +0 -252
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/multi-call-binary
3
+ size: 91339490 bytes
4
+ sha256: f7ca7150f04ebc6f5aff50b5cfb0bd6c916578e2a9557b8062f37904e09d40ea
package/package.json CHANGED
@@ -1,48 +1,20 @@
1
1
  {
2
2
  "name": "@jive-sh/skill-sync",
3
- "version": "0.4.18",
4
- "license": "MIT",
3
+ "version": "0.5.0-latest-darwin-arm64",
5
4
  "type": "module",
5
+ "license": "MIT",
6
+ "os": [
7
+ "darwin"
8
+ ],
9
+ "cpu": [
10
+ "arm64"
11
+ ],
12
+ "files": [
13
+ "multi-call-binary"
14
+ ],
6
15
  "description": "Keeps one skills directory identical across every machine you work on.",
7
16
  "repository": {
8
17
  "type": "git",
9
18
  "url": "git+https://github.com/jive-sh/skill-sync.git"
10
- },
11
- "main": "./dist/index.js",
12
- "module": "./dist/index.js",
13
- "types": "./src/index.ts",
14
- "exports": {
15
- ".": {
16
- "types": "./src/index.ts",
17
- "import": "./dist/index.js"
18
- }
19
- },
20
- "files": [
21
- "README.md",
22
- "dist",
23
- "src",
24
- "bin",
25
- "install.cjs"
26
- ],
27
- "scripts": {
28
- "postinstall": "node ./install.cjs"
29
- },
30
- "bin": {
31
- "skill-sync": "./bin/skill-sync",
32
- "skill-sync-daemon": "./bin/skill-sync-daemon"
33
- },
34
- "optionalDependencies": {
35
- "@jive-sh/skill-sync-darwin-arm64": "npm:@jive-sh/skill-sync@0.4.18-latest-darwin-arm64",
36
- "@jive-sh/skill-sync-darwin-x64": "npm:@jive-sh/skill-sync@0.4.18-latest-darwin-x64",
37
- "@jive-sh/skill-sync-linux-arm64": "npm:@jive-sh/skill-sync@0.4.18-latest-linux-arm64",
38
- "@jive-sh/skill-sync-linux-x64": "npm:@jive-sh/skill-sync@0.4.18-latest-linux-x64",
39
- "@jive-sh/skill-sync-windows-x64": "npm:@jive-sh/skill-sync@0.4.18-latest-windows-x64"
40
- },
41
- "dependencies": {
42
- "commander": "^13.1.0"
43
- },
44
- "peerDependencies": {
45
- "effect": "^4.0.0",
46
- "typescript": "^5.9.3"
47
19
  }
48
20
  }
package/README.md DELETED
@@ -1,127 +0,0 @@
1
- # @jive-sh/skill-sync
2
-
3
- Keeps the skills you choose identical across every Claude, Codex and Grok skills folder on every machine
4
- you work on.
5
-
6
- A daemon finds each agent home on the machine (Claude's `~/.claude` and every `~/.claude-<name>`, Grok's
7
- `~/.grok` and every `~/.grok-<name>` (each a `GROK_HOME`), and Codex's `~/.agents`, counted as soon as
8
- either `~/.agents` or `~/.codex` exists; anything named `*.lock` is
9
- another program's lock and is ignored, as a home and as a file or folder inside a skills folder) and syncs the `skills`
10
- folder in each through a Cloudflare Worker: file index in D1, contents in R2 addressed by hash. `skill-sync login` asks the daemon to sign in and opens
11
- `skill-sync.jive.sh` in your browser, where you verify with your jive.sh passkey (from any passkey
12
- manager, such as Google Password Manager). The service hands a per-machine token straight to the daemon,
13
- never through the CLI. The daemon keeps it in `~/.jive/skill-sync-token.json` and starts syncing, and it
14
- stays signed in through restarts, reboots and upgrades until you run `skill-sync logout` or revoke the
15
- token.
16
-
17
- ```
18
- skill-sync login sign this machine in with your passkey; the daemon starts syncing
19
- skill-sync logout revoke this machine's token and stop syncing
20
- skill-sync list list the skills that sync, as the server holds them (needs a sign-in)
21
- skill-sync add <skill> put a skill on the synced list, as ticking it on the dashboard does
22
- skill-sync upgrade upgrade with the package manager that installed it
23
- skill-sync version print the installed version
24
- ```
25
-
26
- Everything else — which folders sync, unticking skills, renaming computers — is on the
27
- dashboard.
28
-
29
- ## Adding a skill from an agent
30
-
31
- An agent that writes a new skill meant for every project runs `skill-sync add <skill>` in the same step,
32
- so nobody has to tick it. `<skill>` is the skill's folder name. Running it again changes nothing. It is
33
- refused, with the reason, unless:
34
-
35
- - the skill is in a folder skill-sync detects (above). A skill in a project's own `.claude/skills`,
36
- `.agents/skills` or `.grok/skills` is specific to that project and never syncs. That is the only sign of
37
- a project-specific skill skill-sync can read; one written into a home folder but about one project is
38
- not caught.
39
- - its `SKILL.md` starts with frontmatter whose `name` is the folder name and whose `description` is not
40
- empty.
41
- - the name is lowercase letters and digits in hyphen-joined words, at most 64 characters.
42
-
43
- The skill's files upload from the folders holding it that are ticked on the dashboard; if none is, the
44
- command says so.
45
-
46
- The daemon registers itself to start at login when the package is installed. It also keeps skill-sync up
47
- to date: every 5 minutes it asks the package manager that installed it (bun, pnpm, yarn or npm, with that
48
- manager's own registry settings) whether a newer version is published, installs it the same way, and
49
- restarts on it, still signed in. `skill-sync upgrade` does the same at once.
50
-
51
- ## The dashboard
52
-
53
- `https://skill-sync.jive.sh/` shows, live, the latest version published on npm, and:
54
-
55
- - **Synced skills**: the list, with the shared version of each skill and where it was last edited.
56
- - **Computers**: each machine (renameable), whether its daemon is running and which version it runs, its
57
- skills folders, and the skills in each with their files. A daemon older than the published version is
58
- marked "update pending"; it upgrades itself within 5 minutes.
59
- - **Accounts**, under each running computer: one line per Claude, Codex and Grok account on it, with how much
60
- of each limit is used, when it resets, and when that reading was taken; for Codex, the tokens its sessions
61
- used in the last 30 days; for a Claude account without plan limits (Amazon Bedrock, an API key) and for
62
- Grok, what its recent sessions cost. See [Account usage](#account-usage).
63
-
64
- Every file shows the first 8 characters of its SHA-256, amber when a folder's copy differs from the synced
65
- one. The page reloads itself when a new version of the service is deployed.
66
-
67
- The server holds one list of skills to sync. Every enabled folder on every machine pushes and pulls
68
- exactly the skills on that list, and never touches any other skill. A skill's checkbox adds it to the
69
- list or removes it, for every machine at once. A folder's checkbox turns syncing on or off for that
70
- folder; a folder seen for the first time starts off, so nothing is written into a folder until you tick it. Both are stored on the server, so they apply at once
71
- and survive a reinstall.
72
-
73
- A folder that lacks a listed skill gets a copy. Deleting a listed skill in any folder deletes it in every
74
- folder and takes it off the list; unticking it instead stops syncing and leaves every copy where it is.
75
-
76
- ## The latest edit wins
77
-
78
- Every file carries the time it was last edited: on a machine, its modification time; on the server, the
79
- edit time of the version it holds. Whenever two copies of a file differ, the one edited later replaces
80
- the other, on the server and in every folder. Nothing is merged and nothing is set aside. A deletion
81
- counts as an edit made when the daemon noticed it.
82
-
83
- Edit times come from each machine's clock, so a machine whose clock is far off can win or lose against
84
- edits it should not.
85
-
86
- ## Account usage
87
-
88
- Every minute the daemon reads how much of its limits each account on the machine has used, and sends the
89
- numbers to the dashboard when they change. An account is a folder in your home directory: `~/.claude` and each
90
- `~/.claude-<name>` for Claude (each a `CLAUDE_CONFIG_DIR`), `~/.codex` and each `~/.codex-<name>` for Codex
91
- (each a `CODEX_HOME`), `~/.grok` and each `~/.grok-<name>` for Grok (each a `GROK_HOME`).
92
-
93
- The numbers come only from files each tool writes for itself. No credential is read, nothing is fetched, and
94
- only the numbers leave the machine:
95
-
96
- - **Claude**: the plan usage Claude Code last fetched, which it keeps in the account's `.claude.json` (for
97
- `~/.claude`, in `~/.claude.json`) and refreshes about every five minutes while a session runs. The 5-hour and
98
- weekly limits, and usage credits spent when they are on.
99
- - **Codex**: the rate limits Codex recorded with its latest turn, in the account's session files under
100
- `sessions/`: its 5-hour and weekly limits. Also the tokens its sessions active in the last 30 days used,
101
- cached input included, from the running total Codex records in the same files.
102
- - **Grok**: what `grok usage <session-id>` reports, the command Grok's docs give for a session's token and
103
- cost totals, summed over sessions active in the last 30 days. Grok's plan allowance is only in its
104
- interactive `/usage`, so no limit is shown. A session's totals include history it inherited by resume or
105
- fork, so a fork counts that part twice.
106
- - **Claude without plan limits** (Amazon Bedrock, an API key): Claude Code's own estimate of each session's cost
107
- at list price, the total cost `/usage` shows for a session, which it saves in the session's file under
108
- `projects/` when the session ends, is cleared, resumed or forked. The line sums the sessions last active in the
109
- past 30 days (Claude Code deletes older session files by default) and is as of the newest one. A session still
110
- running is not counted until it ends, and your provider's bill can differ from list price. The line says
111
- Bedrock when the account's `settings.json` sets `CLAUDE_CODE_USE_BEDROCK` or `CLAUDE_CODE_USE_MANTLE` in its
112
- `env`, or its sessions used Bedrock model IDs (`us.anthropic.claude-…`, `anthropic.claude-…`, a Bedrock ARN).
113
- An account with plan limits shows its limits, not this estimate, unless its settings turn Bedrock on.
114
-
115
- So a reading is as fresh as the tool's last use of that account, and the dashboard shows its age on every
116
- line. A limit whose reset time has passed since the reading shows no number, since the new window's use is not
117
- known yet. Neither file is a documented format: when a tool changes its format, the line says "usage unknown"
118
- and why, rather than showing a wrong number. Daemons before 0.4.9 send no usage, and their machines show no
119
- accounts; daemons before 0.4.11 send no estimate for accounts without plan limits.
120
-
121
- ## Configuration
122
-
123
- `~/.jive/skill-sync.json` holds the endpoint and the machine name, written on first run.
124
- `~/.jive/skill-sync-token.json` holds this machine's token while it is signed in. It is an ordinary file,
125
- so anything that can read your home directory can copy the token; signing out, or the server rejecting the
126
- token, deletes it. The CLI reaches the daemon over `~/.jive/skill-sync.sock` (a named pipe on Windows),
127
- which only your user can open.
package/bin/package.json DELETED
@@ -1 +0,0 @@
1
- {"type":"commonjs"}