@spikonado/sprocket 0.3.4 → 0.3.5-dev.61eb87c9b8bc4a7eff34bba7a9d69a8a20549f2d
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 +7 -0
- package/README.md +10 -0
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/bin/sprocket.js +1 -1
- package/lib/launcher.js +36 -10
- package/lib/update-api.js +5 -0
- package/lib/update.js +1020 -0
- package/package.json +7 -6
- package/web/_app/immutable/assets/0.B8qIzvu4.css +2 -0
- package/web/_app/immutable/assets/2.CMU7pdv8.css +1 -0
- package/web/_app/immutable/chunks/{Cq37afw7.js → BCyOt2Hb.js} +2 -2
- package/web/_app/immutable/chunks/BXqRSpcY.js +70 -0
- package/web/_app/immutable/chunks/{BIoNiaeb.js → C5Cy1Yfw.js} +1 -1
- package/web/_app/immutable/chunks/Cg61rval.js +6 -0
- package/web/_app/immutable/chunks/CirtoWSJ.js +3 -0
- package/web/_app/immutable/chunks/D1CrumoO.js +1 -0
- package/web/_app/immutable/chunks/{PSXYTcvE.js → VSK6LhsJ.js} +1 -1
- package/web/_app/immutable/chunks/mWKhuXx1.js +1 -0
- package/web/_app/immutable/chunks/yU46dRll.js +1 -0
- package/web/_app/immutable/entry/app.CkX8m32V.js +2 -0
- package/web/_app/immutable/entry/start.BofzQnRi.js +1 -0
- package/web/_app/immutable/nodes/0.DNlVkUTR.js +1 -0
- package/web/_app/immutable/nodes/1.CIk5yj8B.js +1 -0
- package/web/_app/immutable/nodes/2.B1B_iAI9.js +129 -0
- package/web/_app/immutable/nodes/3.DqDeSukc.js +1 -0
- package/web/_app/immutable/nodes/4.CVzLdgFr.js +1 -0
- package/web/_app/version.json +1 -1
- package/web/callback.html +16 -16
- package/web/index.html +13 -13
- package/web/pair.html +16 -17
- package/web/_app/immutable/assets/0.Btn1dfCy.css +0 -2
- package/web/_app/immutable/chunks/BQbJFoq8.js +0 -1
- package/web/_app/immutable/chunks/BcbRJsmf.js +0 -1
- package/web/_app/immutable/chunks/C6UbJThZ.js +0 -64
- package/web/_app/immutable/chunks/CI5UllIC.js +0 -1
- package/web/_app/immutable/chunks/CZkwsiMM.js +0 -6
- package/web/_app/immutable/chunks/D-3DgMVM.js +0 -3
- package/web/_app/immutable/chunks/W58kGv2a.js +0 -7
- package/web/_app/immutable/entry/app.SPUDvldn.js +0 -2
- package/web/_app/immutable/entry/start.C35C-bUa.js +0 -1
- package/web/_app/immutable/nodes/0.BQy7t8ld.js +0 -1
- package/web/_app/immutable/nodes/1.BKmg0DHY.js +0 -1
- package/web/_app/immutable/nodes/2.CW66SnVr.js +0 -127
- package/web/_app/immutable/nodes/3.D5e7ydb1.js +0 -1
- package/web/_app/immutable/nodes/4.DAD6I3xt.js +0 -1
package/LICENSE
CHANGED
|
@@ -103,3 +103,10 @@ Unless required by applicable law or agreed to in writing, software distributed
|
|
|
103
103
|
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
104
|
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
105
|
specific language governing permissions and limitations under the License.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Third-party material
|
|
110
|
+
|
|
111
|
+
This license does not replace the licenses for third-party material included in Sprocket.
|
|
112
|
+
See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for those licenses and copyright notices.
|
package/README.md
CHANGED
|
@@ -63,6 +63,9 @@ Override with `SPROCKET_DATA_DIR`.
|
|
|
63
63
|
|
|
64
64
|
| Command | Behavior |
|
|
65
65
|
| --------------------------- | ------------------------------------------------------------------------------ |
|
|
66
|
+
| `sprocket update` | Update a global npm, bun, pnpm, or yarn install on the current channel. |
|
|
67
|
+
| `sprocket update --check` | Report whether an update is available without installing. |
|
|
68
|
+
| `sprocket upgrade` | Alias for `update`. |
|
|
66
69
|
| `sprocket serve` | Run the local server in the foreground without launching a client. |
|
|
67
70
|
| `sprocket serve --api-only` | Serve only `/api`; intended for development (see [Development](#development)). |
|
|
68
71
|
|
|
@@ -138,9 +141,16 @@ bun run build:release
|
|
|
138
141
|
Artifacts are written to `apps/desktop/dist/` as `sprocket-desktop-*` (`.AppImage` / `.dmg` / `.exe` depending on the host OS).
|
|
139
142
|
Published installers come from GitHub Releases; the `sprocket` CLI is published separately on npm.
|
|
140
143
|
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
Sprocket is licensed under the [Functional Source License, Version 1.1, ALv2 Future License](LICENSE.md). Third-party material remains under the licenses listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
147
|
+
|
|
141
148
|
## Troubleshooting
|
|
142
149
|
|
|
143
150
|
- If `17731` is already occupied, set `SPROCKET_PORT` before launching.
|
|
151
|
+
- If installed sign-in cannot save or restore its native session, check that
|
|
152
|
+
your operating system credential service is available. Linux development
|
|
153
|
+
environments need a working Secret Service provider.
|
|
144
154
|
- If `sprocket` opens the browser instead of the desktop app, install `sprocket-desktop` from [GitHub Releases](https://github.com/spikonado/sprocket/releases) onto `PATH`, or set `SPROCKET_DESKTOP_EXECUTABLE`.
|
|
145
155
|
- Unsigned macOS and Windows desktop builds may need a Gatekeeper / SmartScreen override the first time you open them.
|
|
146
156
|
- Contact [aarav@spikonado.com](mailto:aarav@spikonado.com) for help.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
## pstack's `unslop` skill
|
|
4
|
+
|
|
5
|
+
Portions of [`crates/sprocket-agent/src/system_prompt.md`](./crates/sprocket-agent/src/system_prompt.md) are derived from [pstack's `unslop` skill](https://github.com/cursor/plugins/blob/99559f2f52047978602ef365589275831e76af07/pstack/skills/unslop/SKILL.md) and have been modified for use in Sprocket.
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2026 Lauren Tan
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
package/bin/sprocket.js
CHANGED
package/lib/launcher.js
CHANGED
|
@@ -2,7 +2,8 @@ import { spawnSync } from 'node:child_process';
|
|
|
2
2
|
import { accessSync, chmodSync, constants, readFileSync } from 'node:fs';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
import { createHost, parseUpdateArgs, runUpdateCli, UPDATE_API_FILENAME } from './update.js';
|
|
6
7
|
|
|
7
8
|
const require = createRequire(import.meta.url);
|
|
8
9
|
|
|
@@ -74,20 +75,45 @@ export function run(binary, args, options = {}) {
|
|
|
74
75
|
return result.status ?? 1;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
export function
|
|
78
|
+
export function nativeChildEnvironment(env, staticDir, updateNode, updateScript) {
|
|
79
|
+
const next = {
|
|
80
|
+
...env,
|
|
81
|
+
SPROCKET_STATIC_DIR: env.SPROCKET_STATIC_DIR || staticDir,
|
|
82
|
+
SPROCKET_UPDATE_NODE: updateNode,
|
|
83
|
+
SPROCKET_UPDATE_SCRIPT: updateScript
|
|
84
|
+
};
|
|
85
|
+
delete next.SPROCKET_UPDATE_MANAGED;
|
|
86
|
+
return next;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export async function launch(args, options = {}) {
|
|
90
|
+
const env = { ...(options.env ?? process.env) };
|
|
91
|
+
delete env.SPROCKET_UPDATE_MANAGED;
|
|
92
|
+
const parsed = parseUpdateArgs(args);
|
|
93
|
+
if (parsed.kind !== 'none' && parsed.kind !== 'native') {
|
|
94
|
+
const code = await runUpdateCli(parsed, options.host ?? createHost({ env }));
|
|
95
|
+
process.exitCode = code;
|
|
96
|
+
return code;
|
|
97
|
+
}
|
|
98
|
+
|
|
78
99
|
try {
|
|
79
|
-
const
|
|
80
|
-
const staticDir = path.resolve(
|
|
81
|
-
const binary = resolveNativeBinary();
|
|
82
|
-
ensureExecutable(binary);
|
|
100
|
+
const libDir = options.libDir ?? import.meta.dirname;
|
|
101
|
+
const staticDir = path.resolve(libDir, '../web');
|
|
102
|
+
const binary = (options.resolveBinary ?? resolveNativeBinary)();
|
|
103
|
+
(options.ensureExecutable ?? ensureExecutable)(binary);
|
|
83
104
|
process.exitCode = run(binary, args, {
|
|
84
|
-
env:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
105
|
+
env: nativeChildEnvironment(
|
|
106
|
+
env,
|
|
107
|
+
staticDir,
|
|
108
|
+
options.execPath ?? process.execPath,
|
|
109
|
+
path.resolve(libDir, UPDATE_API_FILENAME)
|
|
110
|
+
),
|
|
111
|
+
spawn: options.spawn
|
|
88
112
|
});
|
|
113
|
+
return process.exitCode;
|
|
89
114
|
} catch (error) {
|
|
90
115
|
console.error(`sprocket: ${error.message}`);
|
|
91
116
|
process.exitCode = 1;
|
|
117
|
+
return 1;
|
|
92
118
|
}
|
|
93
119
|
}
|