cawdev-cli 1.0.0-beta → 1.0.2-beta
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/lib/cawdev.mjs +1 -1
- package/mcp/server.mjs +1 -1
- package/package.json +5 -2
- package/runner/attach.mjs +1 -1
- package/runner/cawdev.mjs +1 -1
- package/runner/runner.mjs +5 -5
package/lib/cawdev.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export async function readConfig(startDirectory = process.cwd()) {
|
|
|
23
23
|
|
|
24
24
|
const fromFile = await readDotEnv(startDirectory);
|
|
25
25
|
const config = {
|
|
26
|
-
url: (fromEnv.url ?? fromFile.CAWDEV_URL ?? '
|
|
26
|
+
url: (fromEnv.url ?? fromFile.CAWDEV_URL ?? 'https://app.cawdev.com').replace(/\/+$/, ''),
|
|
27
27
|
token: fromEnv.token ?? fromFile.CAWDEV_TOKEN,
|
|
28
28
|
project: fromEnv.project ?? fromFile.CAWDEV_PROJECT,
|
|
29
29
|
// Where each value came from, so a surprising result can be traced.
|
package/mcp/server.mjs
CHANGED
|
@@ -47,7 +47,7 @@ async function readConfig() {
|
|
|
47
47
|
const project = process.env.CAWDEV_PROJECT ?? fromFile.values.CAWDEV_PROJECT;
|
|
48
48
|
|
|
49
49
|
return {
|
|
50
|
-
url: (url ?? '
|
|
50
|
+
url: (url ?? 'https://app.cawdev.com').replace(/\/+$/, ''),
|
|
51
51
|
token,
|
|
52
52
|
project,
|
|
53
53
|
// Where each value came from. roadmap_where reports this, because "which
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cawdev-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-beta",
|
|
4
4
|
"description": "cawdev's terminal client and runner daemon — zero dependencies, on purpose",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,5 +16,8 @@
|
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20"
|
|
18
18
|
},
|
|
19
|
-
"license": "UNLICENSED"
|
|
19
|
+
"license": "UNLICENSED",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"cawdev-cli": "^1.0.0-beta"
|
|
22
|
+
}
|
|
20
23
|
}
|
package/runner/attach.mjs
CHANGED
|
@@ -576,7 +576,7 @@ export function valueOf(argv, flag) {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
export function urlFrom(argv) {
|
|
579
|
-
return (valueOf(argv, '--url') ?? process.env.CAWDEV_URL ?? '
|
|
579
|
+
return (valueOf(argv, '--url') ?? process.env.CAWDEV_URL ?? 'https://app.cawdev.com')
|
|
580
580
|
.replace(/\/+$/, '');
|
|
581
581
|
}
|
|
582
582
|
|
package/runner/cawdev.mjs
CHANGED
|
@@ -257,7 +257,7 @@ export async function socketToAttach(argv, ink = painter()) {
|
|
|
257
257
|
* hold more than one value, which is what makes moving the default a
|
|
258
258
|
* three-line change rather than a two-line bug.
|
|
259
259
|
*/
|
|
260
|
-
const DEFAULT_URL = '
|
|
260
|
+
const DEFAULT_URL = 'https://app.cawdev.com';
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* Two URLs, because they answer two different questions.
|
package/runner/runner.mjs
CHANGED
|
@@ -56,12 +56,12 @@ const DEFAULTS = {
|
|
|
56
56
|
* the URL, so a default naming one door while a person signs in at the other
|
|
57
57
|
* files a live credential under a name the daemon never looks up.
|
|
58
58
|
*
|
|
59
|
-
* The
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* are for.
|
|
59
|
+
* The default now names cawdev's own hosted instance, `app.cawdev.com`,
|
|
60
|
+
* rather than a local address — a machine with no config talks to that
|
|
61
|
+
* instance until told otherwise. A self-hosted deployment says so in its
|
|
62
|
+
* config, which is one line and the thing configs are for.
|
|
63
63
|
*/
|
|
64
|
-
url: '
|
|
64
|
+
url: 'https://app.cawdev.com',
|
|
65
65
|
name: 'this-machine',
|
|
66
66
|
/**
|
|
67
67
|
* The agent this machine spawns.
|