@sedge-hq/sedge 0.0.0-stage → 0.0.1
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 +34 -2
- package/bin/sedge.js +24 -0
- package/docs/logo.png +0 -0
- package/docs/logo.svg +1 -0
- package/package.json +27 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TheBinaryGuy
|
|
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,35 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="docs/logo.svg" width="72" alt="sedge logo"></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<h1 align="center">sedge</h1>
|
|
4
|
+
|
|
5
|
+
<p align="center">An always-on agent that lives on your machine, built on <a href="https://github.com/earendil-works/pi">pi</a>.</p>
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm i -g @sedge-hq/sedge
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
sedge # the TUI
|
|
13
|
+
sedge -p "…" # one reply, then exit
|
|
14
|
+
sedge start --service # keep the daemon running across logins
|
|
15
|
+
sedge stop
|
|
16
|
+
sedge update
|
|
17
|
+
sedge pi … # pi's own commands (install, mcp, config, …)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`sedge` is pi's TUI, with a daemon behind it that keeps working after you close the terminal:
|
|
21
|
+
it holds an inbox, fires timers, and updates itself. pi comes bundled; credentials and extensions
|
|
22
|
+
are pi's (`~/.pi/agent`).
|
|
23
|
+
|
|
24
|
+
## Develop
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
bun install
|
|
28
|
+
bun run sedge # from source, against ./.sedge-dev
|
|
29
|
+
bun run check # lint, format, typecheck
|
|
30
|
+
bun run test
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Releases go out through changesets: `bun run changeset`, merge the release PR.
|
|
34
|
+
|
|
35
|
+
MIT
|
package/bin/sedge.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The `sedge` npm package is this launcher plus one optional dependency per platform holding the
|
|
3
|
+
// compiled binary (see scripts/build.ts). npm installs only the one matching this machine.
|
|
4
|
+
const { spawnSync } = require('node:child_process');
|
|
5
|
+
const { dirname, join } = require('node:path');
|
|
6
|
+
|
|
7
|
+
const os = process.platform === 'win32' ? 'windows' : process.platform;
|
|
8
|
+
const pkg = `@sedge-hq/sedge-${os}-${process.arch}`;
|
|
9
|
+
const exe = process.platform === 'win32' ? 'sedge.exe' : 'sedge';
|
|
10
|
+
|
|
11
|
+
let binary;
|
|
12
|
+
try {
|
|
13
|
+
binary = join(dirname(require.resolve(`${pkg}/package.json`)), 'bin', exe);
|
|
14
|
+
} catch {
|
|
15
|
+
console.error(`sedge: no prebuilt binary for ${os}-${process.arch} (${pkg} is not installed).`);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
20
|
+
if (result.error) {
|
|
21
|
+
console.error(`sedge: ${result.error.message}`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
process.exit(result.status ?? (result.signal ? 1 : 0));
|
package/docs/logo.png
ADDED
|
Binary file
|
package/docs/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 180" width="144" height="180" shape-rendering="crispEdges"><title>sedge</title><g fill="#3fb950"><rect x="0" y="0" width="16" height="36"/><rect x="48" y="0" width="16" height="36"/><rect x="128" y="0" width="16" height="36"/><rect x="0" y="36" width="16" height="36"/><rect x="0" y="72" width="16" height="36"/><rect x="16" y="72" width="16" height="36"/><rect x="64" y="36" width="16" height="36"/><rect x="64" y="72" width="16" height="36"/><rect x="96" y="72" width="16" height="36"/><rect x="128" y="36" width="16" height="36"/><rect x="112" y="72" width="16" height="36"/><rect x="16" y="108" width="16" height="36"/><rect x="32" y="108" width="16" height="36"/><rect x="32" y="144" width="16" height="36"/><rect x="48" y="108" width="16" height="36"/><rect x="64" y="108" width="16" height="36"/><rect x="48" y="144" width="16" height="36"/><rect x="64" y="144" width="16" height="36"/><rect x="80" y="108" width="16" height="36"/><rect x="96" y="108" width="16" height="36"/><rect x="80" y="144" width="16" height="36"/></g></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@sedge-hq/sedge",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "An always-on agent that lives on your machine, built on pi.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/sedge-hq/sedge.git",
|
|
9
|
+
"directory": "apps/cli"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"sedge": "bin/sedge.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"docs"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"optionalDependencies": {
|
|
22
|
+
"@sedge-hq/sedge-darwin-arm64": "0.0.1",
|
|
23
|
+
"@sedge-hq/sedge-darwin-x64": "0.0.1",
|
|
24
|
+
"@sedge-hq/sedge-linux-x64": "0.0.1",
|
|
25
|
+
"@sedge-hq/sedge-linux-arm64": "0.0.1",
|
|
26
|
+
"@sedge-hq/sedge-windows-x64": "0.0.1"
|
|
27
|
+
}
|
|
28
|
+
}
|