@usestrider/cli 0.0.0-stage → 0.1.0
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 +21 -0
- package/README.md +12 -2
- package/package.json +38 -3
- package/strider.js +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jonathan Powers
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @usestrider/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `strider` command: drive a browser from a shell or an agent.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add -g @usestrider/cli
|
|
7
|
+
strider browsers
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The [command's guide](https://usestrider.dev/docs/agents/cli) has the rest. For the library it comes from, see
|
|
11
|
+
[`@usestrider/browser`](https://www.npmjs.com/package/@usestrider/browser).
|
|
12
|
+
|
|
13
|
+
MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usestrider/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://usestrider.dev",
|
|
7
|
+
"description": "The strider command, to install globally: drive a browser from a shell or an agent",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/usestrider/strider.git",
|
|
11
|
+
"directory": "packages/cli"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/usestrider/strider/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"effect",
|
|
18
|
+
"typescript",
|
|
19
|
+
"browser",
|
|
20
|
+
"cli"
|
|
21
|
+
],
|
|
22
|
+
"bin": {
|
|
23
|
+
"strider": "./strider.js"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"strider.js",
|
|
30
|
+
"README.md"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@effect/platform-node": "^4.0.6",
|
|
38
|
+
"@usestrider/browser": "^0.1.0",
|
|
39
|
+
"effect": "^4.0.6"
|
|
40
|
+
}
|
|
6
41
|
}
|
package/strider.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
':' //; if command -v node >/dev/null 2>&1; then exec node "$0" "$@"; else exec bun "$0" "$@"; fi
|
|
3
|
+
// The line above is a shell command to sh and a string and a comment to JavaScript: the command runs on Node where
|
|
4
|
+
// there is one, and on Bun otherwise, whose Node compatibility runs @effect/platform-node.
|
|
5
|
+
//
|
|
6
|
+
// The `strider` command of @usestrider/browser, for a global install. The library keeps @effect/platform-node an
|
|
7
|
+
// optional peer, which a global install never links to it, so this package depends on both: it runs the bin the
|
|
8
|
+
// library declares, whatever its published layout, and the library then finds the peer.
|
|
9
|
+
const { readFileSync } = await import("node:fs")
|
|
10
|
+
|
|
11
|
+
const manifest = import.meta.resolve("@usestrider/browser/package.json")
|
|
12
|
+
const { bin } = JSON.parse(readFileSync(new URL(manifest), "utf8"))
|
|
13
|
+
await import(new URL(bin.strider, manifest).href)
|