dorkos 0.18.0 → 0.20.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 CHANGED
@@ -86,53 +86,53 @@ dorkos cleanup # Remove all DorkOS data
86
86
 
87
87
  ### Flags
88
88
 
89
- | Flag | Description |
90
- |---|---|
91
- | `-p, --port <port>` | Port to listen on (default: 4242) |
92
- | `-d, --dir <path>` | Working directory |
93
- | `-b, --boundary <path>` | Directory boundary (default: home directory) |
94
- | `-t, --tunnel` | Enable ngrok tunnel for remote access |
89
+ | Flag | Description |
90
+ | ------------------------- | -------------------------------------------------------------- |
91
+ | `-p, --port <port>` | Port to listen on (default: 4242) |
92
+ | `-d, --dir <path>` | Working directory |
93
+ | `-b, --boundary <path>` | Directory boundary (default: home directory) |
94
+ | `-t, --tunnel` | Enable ngrok tunnel for remote access |
95
95
  | `-l, --log-level <level>` | Log level (`fatal`, `error`, `warn`, `info`, `debug`, `trace`) |
96
96
 
97
97
  ### Config Subcommands
98
98
 
99
- | Command | Description |
100
- |---|---|
101
- | `dorkos config` | Show all effective settings |
102
- | `dorkos config get <key>` | Get a single value |
103
- | `dorkos config set <key> <value>` | Set a single value |
104
- | `dorkos config list` | Full JSON output |
105
- | `dorkos config reset [key]` | Reset to defaults |
106
- | `dorkos config edit` | Open in `$EDITOR` |
107
- | `dorkos config path` | Print config file location |
108
- | `dorkos config validate` | Check validity |
99
+ | Command | Description |
100
+ | --------------------------------- | --------------------------- |
101
+ | `dorkos config` | Show all effective settings |
102
+ | `dorkos config get <key>` | Get a single value |
103
+ | `dorkos config set <key> <value>` | Set a single value |
104
+ | `dorkos config list` | Full JSON output |
105
+ | `dorkos config reset [key]` | Reset to defaults |
106
+ | `dorkos config edit` | Open in `$EDITOR` |
107
+ | `dorkos config path` | Print config file location |
108
+ | `dorkos config validate` | Check validity |
109
109
 
110
110
  ## Environment Variables
111
111
 
112
112
  ### Required
113
113
 
114
- | Variable | Description |
115
- |---|---|
114
+ | Variable | Description |
115
+ | ------------------- | ---------------------- |
116
116
  | `ANTHROPIC_API_KEY` | Your Anthropic API key |
117
117
 
118
118
  ### Optional
119
119
 
120
- | Variable | Default | Description |
121
- |---|---|---|
122
- | `DORKOS_PORT` | `4242` | Server port |
123
- | `DORKOS_HOST` | `localhost` | Server host (use `0.0.0.0` for Docker) |
120
+ | Variable | Default | Description |
121
+ | -------------------- | ----------------- | -------------------------------------- |
122
+ | `DORKOS_PORT` | `4242` | Server port |
123
+ | `DORKOS_HOST` | `localhost` | Server host (use `0.0.0.0` for Docker) |
124
124
  | `DORKOS_DEFAULT_CWD` | Current directory | Default working directory for sessions |
125
- | `DORKOS_BOUNDARY` | Home directory | Directory boundary root |
126
- | `LOG_LEVEL` | `info` | Log verbosity |
125
+ | `DORKOS_BOUNDARY` | Home directory | Directory boundary root |
126
+ | `LOG_LEVEL` | `info` | Log verbosity |
127
127
 
128
128
  ### Remote Access
129
129
 
130
- | Variable | Description |
131
- |---|---|
132
- | `TUNNEL_ENABLED` | Set to `true` to enable ngrok tunnel |
133
- | `NGROK_AUTHTOKEN` | Your ngrok authentication token |
134
- | `TUNNEL_DOMAIN` | Custom tunnel domain (optional) |
135
- | `TUNNEL_AUTH` | Basic auth in `user:pass` format (optional) |
130
+ | Variable | Description |
131
+ | ----------------- | ------------------------------------------- |
132
+ | `TUNNEL_ENABLED` | Set to `true` to enable ngrok tunnel |
133
+ | `NGROK_AUTHTOKEN` | Your ngrok authentication token |
134
+ | `TUNNEL_DOMAIN` | Custom tunnel domain (optional) |
135
+ | `TUNNEL_AUTH` | Basic auth in `user:pass` format (optional) |
136
136
 
137
137
  ## Docker
138
138
 
package/dist/bin/cli.js CHANGED
@@ -14358,10 +14358,7 @@ var SENSITIVE_CONFIG_KEYS, ONBOARDING_STEPS, OnboardingStepSchema, OnboardingSta
14358
14358
  var init_config_schema = __esm({
14359
14359
  "../shared/src/config-schema.ts"() {
14360
14360
  init_zod();
14361
- SENSITIVE_CONFIG_KEYS = [
14362
- "tunnel.authtoken",
14363
- "tunnel.auth"
14364
- ];
14361
+ SENSITIVE_CONFIG_KEYS = ["tunnel.authtoken", "tunnel.auth"];
14365
14362
  ONBOARDING_STEPS = ["discovery", "pulse", "adapters"];
14366
14363
  OnboardingStepSchema = external_exports.enum(ONBOARDING_STEPS);
14367
14364
  OnboardingStateSchema = external_exports.object({
@@ -14392,7 +14389,11 @@ var init_config_schema = __esm({
14392
14389
  theme: external_exports.enum(["light", "dark", "system"]).default("system"),
14393
14390
  dismissedUpgradeVersions: external_exports.array(external_exports.string()).default(() => []).describe("Version strings the user has dismissed upgrade notifications for")
14394
14391
  }).default(() => ({ theme: "system", dismissedUpgradeVersions: [] })),
14395
- logging: LoggingConfigSchema.default(() => ({ level: "info", maxLogSizeKb: 500, maxLogFiles: 14 })),
14392
+ logging: LoggingConfigSchema.default(() => ({
14393
+ level: "info",
14394
+ maxLogSizeKb: 500,
14395
+ maxLogFiles: 14
14396
+ })),
14396
14397
  relay: external_exports.object({
14397
14398
  enabled: external_exports.boolean().default(true),
14398
14399
  dataDir: external_exports.string().nullable().default(null)
@@ -15274,11 +15275,9 @@ async function runCleanup(options) {
15274
15275
  }
15275
15276
  const port2 = readPort(dorkHome);
15276
15277
  if (await isServerRunning(port2)) {
15277
- console.log(
15278
- `
15278
+ console.log(`
15279
15279
  DorkOS server is running on port ${port2}. Stop it before running cleanup.
15280
- `
15281
- );
15280
+ `);
15282
15281
  process.exitCode = 1;
15283
15282
  return;
15284
15283
  }
@@ -17350,9 +17349,7 @@ var init_config_manager = __esm({
17350
17349
  if (error48 instanceof external_exports.ZodError) {
17351
17350
  return {
17352
17351
  valid: false,
17353
- errors: error48.issues.map(
17354
- (i2) => `${i2.path.join(".")}: ${i2.message}`
17355
- )
17352
+ errors: error48.issues.map((i2) => `${i2.path.join(".")}: ${i2.message}`)
17356
17353
  };
17357
17354
  }
17358
17355
  throw error48;
@@ -18799,10 +18796,13 @@ async function checkForUpdate(currentVersion) {
18799
18796
  const data = await res.json();
18800
18797
  const cachePath = getCachePath();
18801
18798
  await mkdir(dirname(cachePath), { recursive: true });
18802
- await writeFile(cachePath, JSON.stringify({
18803
- latestVersion: data.version,
18804
- checkedAt: Date.now()
18805
- }));
18799
+ await writeFile(
18800
+ cachePath,
18801
+ JSON.stringify({
18802
+ latestVersion: data.version,
18803
+ checkedAt: Date.now()
18804
+ })
18805
+ );
18806
18806
  return isNewer(data.version, currentVersion) ? data.version : null;
18807
18807
  } catch {
18808
18808
  return null;
@@ -18918,12 +18918,12 @@ Examples:
18918
18918
  process.exit(0);
18919
18919
  }
18920
18920
  if (values.version) {
18921
- console.log("0.18.0");
18921
+ console.log("0.20.0");
18922
18922
  process.exit(0);
18923
18923
  }
18924
18924
  if (values["post-install-check"]) {
18925
18925
  checkClaude();
18926
- console.log(`dorkos ${"0.18.0"}`);
18926
+ console.log(`dorkos ${"0.20.0"}`);
18927
18927
  console.log("Installation verified.");
18928
18928
  process.exit(0);
18929
18929
  }
@@ -18988,6 +18988,9 @@ if (values.pulse !== void 0) {
18988
18988
  } else if (!process.env.DORKOS_PULSE_ENABLED && cfgMgr.getDot("scheduler.enabled")) {
18989
18989
  process.env.DORKOS_PULSE_ENABLED = "true";
18990
18990
  }
18991
+ if (!process.env.DORKOS_RELAY_ENABLED && cfgMgr.getDot("relay.enabled")) {
18992
+ process.env.DORKOS_RELAY_ENABLED = "true";
18993
+ }
18991
18994
  var cliDir = values.dir;
18992
18995
  if (cliDir) {
18993
18996
  process.env.DORKOS_DEFAULT_CWD = path4.resolve(cliDir);
@@ -19030,7 +19033,7 @@ await import("../server/index.js");
19030
19033
  var port = process.env.DORKOS_PORT || String(DEFAULT_PORT);
19031
19034
  var localUrl = `http://localhost:${port}`;
19032
19035
  console.log("");
19033
- console.log(` DorkOS v${"0.18.0"}`);
19036
+ console.log(` DorkOS v${"0.20.0"}`);
19034
19037
  console.log(` Local: ${link(localUrl, localUrl)}`);
19035
19038
  var nets = networkInterfaces();
19036
19039
  var networkUrl = null;
@@ -19101,9 +19104,9 @@ if (process.stdin.isTTY) {
19101
19104
  }
19102
19105
  });
19103
19106
  }
19104
- checkForUpdate("0.18.0").then((latestVersion) => {
19107
+ checkForUpdate("0.20.0").then((latestVersion) => {
19105
19108
  if (latestVersion) {
19106
- const msg = `Update available: ${"0.18.0"} \u2192 ${latestVersion}`;
19109
+ const msg = `Update available: ${"0.20.0"} \u2192 ${latestVersion}`;
19107
19110
  const cmd = "Run npm install -g dorkos@latest to update";
19108
19111
  const width = Math.max(msg.length, cmd.length) + 6;
19109
19112
  const pad = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;