sessionpipe-receiver 0.6.1 → 0.9.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/README.md +1 -1
- package/dist/cli.d.ts +6 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +21 -4
- package/dist/cli.js.map +3 -3
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
The sessionpipe reference receiver: one process, JSONL files, a page you can answer from a phone.
|
|
4
4
|
|
|
5
|
-
Part of [sessionpipe](https://github.com/
|
|
5
|
+
Part of [sessionpipe](https://github.com/spacesheep-dev/sessionpipe) · docs at [sessionpipe.org](https://sessionpipe.org). Apache-2.0.
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAMA,2FAA2F;AAC3F,wBAAgB,IAAI,CAAC,EAAE,GAAE;IAAE,MAAM,EAAE;QAAE,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;CAAY,GAAG,IAAI,CAIlF"}
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// sessionpipe-receiver 0.
|
|
2
|
+
// sessionpipe-receiver 0.9.0 · Apache-2.0 · https://sessionpipe.org
|
|
3
|
+
|
|
4
|
+
// src/cli.ts
|
|
5
|
+
import { realpathSync } from "node:fs";
|
|
6
|
+
import { pathToFileURL } from "node:url";
|
|
3
7
|
|
|
4
8
|
// src/index.ts
|
|
5
9
|
var PROTOCOL_VERSION = 1;
|
|
6
10
|
|
|
7
11
|
// src/cli.ts
|
|
8
|
-
process
|
|
9
|
-
|
|
12
|
+
function main(io = process) {
|
|
13
|
+
io.stdout.write(
|
|
14
|
+
`sessionpipe protocol ${PROTOCOL_VERSION}: this command lands in a later milestone (see ROADMAP.md)
|
|
10
15
|
`
|
|
11
|
-
);
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function isMain() {
|
|
19
|
+
try {
|
|
20
|
+
return !!process.argv[1] && import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href;
|
|
21
|
+
} catch {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (isMain()) main();
|
|
26
|
+
export {
|
|
27
|
+
main
|
|
28
|
+
};
|
|
12
29
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/
|
|
4
|
-
"sourcesContent": ["// SPDX-License-Identifier: Apache-2.0\n/**
|
|
5
|
-
"mappings": ";;;;
|
|
3
|
+
"sources": ["../src/cli.ts", "../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["#!/usr/bin/env node\n// SPDX-License-Identifier: Apache-2.0\nimport { realpathSync } from \"node:fs\";\nimport { pathToFileURL } from \"node:url\";\nimport { PROTOCOL_VERSION } from \"./index.js\";\n\n/** The command, for now: which protocol this is and that the receiver is still to come. */\nexport function main(io: { stdout: { write(s: string): unknown } } = process): void {\n io.stdout.write(\n `sessionpipe protocol ${PROTOCOL_VERSION}: this command lands in a later milestone (see ROADMAP.md)\\n`,\n );\n}\n\n/** Is this file the script node was started with (through a bin symlink too)? Never on import. */\nfunction isMain(): boolean {\n try {\n return !!process.argv[1] && import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href;\n } catch {\n return false;\n }\n}\nif (isMain()) main();\n", "// SPDX-License-Identifier: Apache-2.0\n/** Package entry. Filled in by the milestone that builds this package (see ROADMAP.md). */\nexport const PROTOCOL_VERSION = 1 as const;\n"],
|
|
5
|
+
"mappings": ";;;;AAEA,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;;;ACDvB,IAAM,mBAAmB;;;ADKzB,SAAS,KAAK,KAAgD,SAAe;AAClF,KAAG,OAAO;AAAA,IACR,wBAAwB,gBAAgB;AAAA;AAAA,EAC1C;AACF;AAGA,SAAS,SAAkB;AACzB,MAAI;AACF,WAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,KAAK,YAAY,QAAQ,cAAc,aAAa,QAAQ,KAAK,CAAC,CAAC,CAAC,EAAE;AAAA,EAC/F,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AACA,IAAI,OAAO,EAAG,MAAK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sessionpipe-receiver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The sessionpipe reference receiver: one process, JSONL files, a page you can answer from a phone. (published unscoped until the @sessionpipe npm org exists; the code is the same)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
13
|
+
"url": "git+https://github.com/spacesheep-dev/sessionpipe.git",
|
|
14
14
|
"directory": "packages/receiver"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://sessionpipe.org",
|
|
17
|
-
"bugs": "https://github.com/
|
|
17
|
+
"bugs": "https://github.com/spacesheep-dev/sessionpipe/issues",
|
|
18
18
|
"keywords": [
|
|
19
19
|
"sessionpipe",
|
|
20
20
|
"coding-agents",
|