@artil-ai/server 0.2.1 → 0.2.2
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 +15 -10
- package/bin/main.js +20 -5
- package/bin/main.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,23 +31,28 @@ The first run sets everything up. Files need an S3-compatible bucket, and
|
|
|
31
31
|
reaching the server from outside needs Tailscale. Both can wait for
|
|
32
32
|
`artil-server setup`.
|
|
33
33
|
|
|
34
|
-
**2. Sign
|
|
34
|
+
**2. Sign in the accounts the setup made**
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
artil auth login --base-url http://localhost:4747
|
|
37
|
+
artil auth login --base-url http://localhost:4747 --account claude
|
|
38
|
+
artil auth login --base-url http://localhost:4747 --account codex
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
`--base-url` needs artil 0.42.0 or later; `artil update` gets it. The CLI
|
|
42
|
+
remembers the server from here on, and works as `claude`, the first account,
|
|
43
|
+
unless you [choose another](https://docs.artil.ai/accounts).
|
|
41
44
|
|
|
42
|
-
**3.
|
|
45
|
+
**3. Connect a client to each account**
|
|
46
|
+
|
|
47
|
+
Start Claude Code and Codex
|
|
48
|
+
[as Artil Connect describes](https://docs.artil.ai/connect), each as its own
|
|
49
|
+
account. A message reaches an account only while its client listens.
|
|
50
|
+
|
|
51
|
+
**4. Message another agent**
|
|
43
52
|
|
|
44
53
|
```bash
|
|
45
54
|
artil url send codex "Review the release branch"
|
|
46
55
|
```
|
|
47
56
|
|
|
48
|
-
That is `claude` writing to `codex
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## TODO
|
|
52
|
-
|
|
53
|
-
- [ ] Message URL as a regular channel, not a transport built into the server
|
|
57
|
+
That is `claude` writing to `codex`. Everything else works as with Artil
|
|
58
|
+
Cloud.
|
package/bin/main.js
CHANGED
|
@@ -22326,7 +22326,7 @@ var channel = {
|
|
|
22326
22326
|
create: ({ webhookUrl, secret, fetch: fetch2 }) => new TelegramChannel(createBotApi({ webhook: webhookUrl ? { url: webhookUrl, secret } : undefined, fetch: fetch2 }))
|
|
22327
22327
|
};
|
|
22328
22328
|
// package.json
|
|
22329
|
-
var version2 = "0.2.
|
|
22329
|
+
var version2 = "0.2.2";
|
|
22330
22330
|
|
|
22331
22331
|
// src/app/cli.ts
|
|
22332
22332
|
import { parseArgs } from "util";
|
|
@@ -52561,16 +52561,31 @@ async function runCli(environment) {
|
|
|
52561
52561
|
const [command = "", subcommand = "", ...args] = positionals;
|
|
52562
52562
|
const { migrationsFolder, tailscale, artil, out, interactive, builtInChannels } = environment;
|
|
52563
52563
|
const builtInKinds = builtInChannels.map(({ kind }) => kind);
|
|
52564
|
+
async function hasAgents(config3) {
|
|
52565
|
+
const context2 = await openCommandContext({
|
|
52566
|
+
paths,
|
|
52567
|
+
config: config3,
|
|
52568
|
+
builtInChannels,
|
|
52569
|
+
migrationsFolder,
|
|
52570
|
+
tailscale,
|
|
52571
|
+
out
|
|
52572
|
+
});
|
|
52573
|
+
try {
|
|
52574
|
+
return context2.agents.list().length > 0;
|
|
52575
|
+
} finally {
|
|
52576
|
+
context2.close();
|
|
52577
|
+
}
|
|
52578
|
+
}
|
|
52564
52579
|
if (command === "" || command === "start") {
|
|
52565
|
-
const config3 = savedConfig
|
|
52580
|
+
const config3 = interactive && (!savedConfig || !await hasAgents(savedConfig)) ? await runSetup({
|
|
52566
52581
|
paths,
|
|
52567
|
-
config:
|
|
52582
|
+
config: savedConfig,
|
|
52568
52583
|
builtInChannels,
|
|
52569
52584
|
artil,
|
|
52570
52585
|
migrationsFolder,
|
|
52571
52586
|
tailscale,
|
|
52572
52587
|
out
|
|
52573
|
-
}) : newConfig({ channels: builtInKinds })
|
|
52588
|
+
}) : savedConfig ?? newConfig({ channels: builtInKinds });
|
|
52574
52589
|
if (!savedConfig && !interactive)
|
|
52575
52590
|
await writeConfig(paths, config3);
|
|
52576
52591
|
return serve({ paths, config: await applyFlags(config3), environment });
|
|
@@ -52713,5 +52728,5 @@ try {
|
|
|
52713
52728
|
process.exitCode = 1;
|
|
52714
52729
|
}
|
|
52715
52730
|
|
|
52716
|
-
//# debugId=
|
|
52731
|
+
//# debugId=79538CBFE86D9F9064756E2164756E21
|
|
52717
52732
|
//# sourceMappingURL=main.js.map
|