@townco/cli 0.1.70 → 0.1.72

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.
@@ -282,7 +282,7 @@ export async function runCommand(options) {
282
282
  env: {
283
283
  ...process.env,
284
284
  ...configEnvVars,
285
- VITE_AGENT_URL: `http://localhost:${availablePort}`,
285
+ VITE_AGENT_URL: `http://${Bun.env.EXT_HOST || "localhost"}:${availablePort}`,
286
286
  VITE_DEBUGGER_URL: "http://localhost:4000",
287
287
  },
288
288
  });
package/dist/index.js CHANGED
@@ -7,8 +7,7 @@ import { integer, string } from "@optique/core/valueparser";
7
7
  import { run } from "@optique/run";
8
8
  import { initForClaudeCode } from "@townco/agent/scaffold";
9
9
  import { isInsideTownProject } from "@townco/agent/storage";
10
- import { router } from "@townco/api";
11
- import { findRoot } from "@townco/core";
10
+ import { API_ROUTES, findRoot } from "@townco/core";
12
11
  import { updateSchema as updateEnvSchema } from "@townco/env/update-schema";
13
12
  import { createSecret, deleteSecret, genenv, listSecrets, updateSecret, } from "@townco/secret";
14
13
  import { createTRPCClient, httpLink, httpSubscriptionLink, splitLink, } from "@trpc/client";
@@ -112,7 +111,7 @@ const main = async (parser, meta) => await match(run(parser, meta))
112
111
  EventSource,
113
112
  }),
114
113
  false: splitLink({
115
- condition: (op) => op.path === router.uploadArchive.name,
114
+ condition: (op) => op.path === API_ROUTES.UPLOAD_ARCHIVE,
116
115
  true: httpLink({
117
116
  url,
118
117
  transformer: { serialize: (o) => o, deserialize: (o) => o },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@townco/cli",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "town": "./dist/index.js"
@@ -15,7 +15,7 @@
15
15
  "build": "tsc"
16
16
  },
17
17
  "devDependencies": {
18
- "@townco/tsconfig": "0.1.62",
18
+ "@townco/tsconfig": "0.1.64",
19
19
  "@types/archiver": "^7.0.0",
20
20
  "@types/bun": "^1.3.1",
21
21
  "@types/ignore-walk": "^4.0.3",
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "@optique/core": "^0.6.2",
27
27
  "@optique/run": "^0.6.2",
28
- "@townco/agent": "0.1.70",
29
- "@townco/core": "0.0.43",
30
- "@townco/debugger": "0.1.20",
31
- "@townco/env": "0.1.15",
32
- "@townco/secret": "0.1.65",
33
- "@townco/ui": "0.1.65",
28
+ "@townco/agent": "0.1.72",
29
+ "@townco/core": "0.0.45",
30
+ "@townco/debugger": "0.1.22",
31
+ "@townco/env": "0.1.17",
32
+ "@townco/secret": "0.1.67",
33
+ "@townco/ui": "0.1.67",
34
34
  "@trpc/client": "^11.7.2",
35
35
  "@types/inquirer": "^9.0.9",
36
36
  "@types/ws": "^8.5.13",