@shipers-dev/dayline 0.92.2 → 0.93.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 +8 -8
- package/dist/index.js +35 -17
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @shipers-dev/dayline
|
|
2
2
|
|
|
3
|
-
CLI daemon (`
|
|
3
|
+
CLI daemon (`dayline`) that pairs a device with a Multi workspace and runs assigned issues via ACP / acpx adapters.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -13,11 +13,11 @@ npm i -g @shipers-dev/dayline
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
dayline setup # pair the device against prod
|
|
17
|
+
dayline start # foreground daemon
|
|
18
|
+
dayline start -d # detached
|
|
19
|
+
dayline status
|
|
20
|
+
dayline logs
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Pointing at a local API worker
|
|
@@ -25,8 +25,8 @@ multi-agent logs
|
|
|
25
25
|
For local development against a wrangler-dev API worker, set `MULTI_API` to its base URL:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
MULTI_API=http://localhost:8787
|
|
29
|
-
MULTI_API=http://localhost:8787
|
|
28
|
+
MULTI_API=http://localhost:8787 dayline setup
|
|
29
|
+
MULTI_API=http://localhost:8787 dayline start
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The resolved API base URL is printed at start. `MULTI_API_URL` is still accepted as a fallback alias. CLI flag `--api <url>` overrides both.
|
package/dist/index.js
CHANGED
|
@@ -43891,11 +43891,10 @@ import { parseArgs } from "util";
|
|
|
43891
43891
|
// package.json
|
|
43892
43892
|
var package_default = {
|
|
43893
43893
|
name: "@shipers-dev/dayline",
|
|
43894
|
-
version: "0.
|
|
43894
|
+
version: "0.93.0",
|
|
43895
43895
|
type: "module",
|
|
43896
43896
|
bin: {
|
|
43897
|
-
dayline: "./dist/index.js"
|
|
43898
|
-
"multi-agent": "./dist/index.js"
|
|
43897
|
+
dayline: "./dist/index.js"
|
|
43899
43898
|
},
|
|
43900
43899
|
files: [
|
|
43901
43900
|
"dist"
|
|
@@ -44613,6 +44612,28 @@ class Materializer2 extends exports_Effect.Service()("cli/Materializer", {
|
|
|
44613
44612
|
|
|
44614
44613
|
// src/commands/setup.ts
|
|
44615
44614
|
init_errors();
|
|
44615
|
+
|
|
44616
|
+
// src/_impl/web-url.ts
|
|
44617
|
+
function webUrlFor(apiUrl) {
|
|
44618
|
+
const override = process.env.MULTI_WEB || process.env.MULTI_WEB_URL;
|
|
44619
|
+
if (override)
|
|
44620
|
+
return override.replace(/\/+$/, "");
|
|
44621
|
+
let u;
|
|
44622
|
+
try {
|
|
44623
|
+
u = new URL(apiUrl);
|
|
44624
|
+
} catch {
|
|
44625
|
+
return "https://dayline.ai";
|
|
44626
|
+
}
|
|
44627
|
+
if (u.hostname === "localhost" || u.hostname === "127.0.0.1" || u.hostname.endsWith(".local")) {
|
|
44628
|
+
return u.origin;
|
|
44629
|
+
}
|
|
44630
|
+
if (u.hostname.startsWith("api.")) {
|
|
44631
|
+
return `${u.protocol}//${u.hostname.slice(4)}`;
|
|
44632
|
+
}
|
|
44633
|
+
return "https://dayline.ai";
|
|
44634
|
+
}
|
|
44635
|
+
|
|
44636
|
+
// src/commands/setup.ts
|
|
44616
44637
|
var setupCmd = exports_Effect.fn("setupCmd")(function* (name, apiUrl) {
|
|
44617
44638
|
const config2 = yield* Config4;
|
|
44618
44639
|
const api2 = yield* Api2;
|
|
@@ -44643,7 +44664,7 @@ var setupCmd = exports_Effect.fn("setupCmd")(function* (name, apiUrl) {
|
|
|
44643
44664
|
console.log(`
|
|
44644
44665
|
\uD83D\uDC49 Open this URL to approve:
|
|
44645
44666
|
|
|
44646
|
-
${apiUrl}/pair/${code}
|
|
44667
|
+
${webUrlFor(apiUrl)}/pair/${code}
|
|
44647
44668
|
`);
|
|
44648
44669
|
console.log(` Or enter code manually: ${code}`);
|
|
44649
44670
|
console.log(`
|
|
@@ -45288,11 +45309,10 @@ init_lib();
|
|
|
45288
45309
|
// package.json
|
|
45289
45310
|
var package_default2 = {
|
|
45290
45311
|
name: "@shipers-dev/dayline",
|
|
45291
|
-
version: "0.
|
|
45312
|
+
version: "0.93.0",
|
|
45292
45313
|
type: "module",
|
|
45293
45314
|
bin: {
|
|
45294
|
-
dayline: "./dist/index.js"
|
|
45295
|
-
"multi-agent": "./dist/index.js"
|
|
45315
|
+
dayline: "./dist/index.js"
|
|
45296
45316
|
},
|
|
45297
45317
|
files: [
|
|
45298
45318
|
"dist"
|
|
@@ -46717,7 +46737,7 @@ async function awaitPairing(apiUrl, deviceName, opts = {}) {
|
|
|
46717
46737
|
}
|
|
46718
46738
|
const start3 = await startRes.json();
|
|
46719
46739
|
const code = start3.code;
|
|
46720
|
-
const pairUrl = `${apiUrl}/pair/${code}`;
|
|
46740
|
+
const pairUrl = `${webUrlFor(apiUrl)}/pair/${code}`;
|
|
46721
46741
|
writePairingInfo({
|
|
46722
46742
|
status: "pairing",
|
|
46723
46743
|
pair_code: code,
|
|
@@ -46854,16 +46874,14 @@ var readPid = () => {
|
|
|
46854
46874
|
}
|
|
46855
46875
|
};
|
|
46856
46876
|
var resolveBinary = exports_Effect.fn("service.resolveBinary")(function* () {
|
|
46857
|
-
|
|
46858
|
-
|
|
46859
|
-
|
|
46860
|
-
|
|
46861
|
-
|
|
46862
|
-
|
|
46863
|
-
return path;
|
|
46864
|
-
}
|
|
46877
|
+
const proc = Bun.spawn(["which", "dayline"], { stdout: "pipe", stderr: "pipe" });
|
|
46878
|
+
yield* exports_Effect.promise(() => proc.exited);
|
|
46879
|
+
const out = yield* exports_Effect.promise(() => new Response(proc.stdout).text());
|
|
46880
|
+
const path = out.trim();
|
|
46881
|
+
if (path && existsSync18(path))
|
|
46882
|
+
return path;
|
|
46865
46883
|
return yield* exports_Effect.fail(new DaemonError({
|
|
46866
|
-
message: "Could not find `dayline` on PATH. Install with: bun install -g dayline"
|
|
46884
|
+
message: "Could not find `dayline` on PATH. Install with: bun install -g @shipers-dev/dayline"
|
|
46867
46885
|
}));
|
|
46868
46886
|
});
|
|
46869
46887
|
var run6 = exports_Effect.fn("service.run")(function* (cmd, args2) {
|
package/package.json
CHANGED