@townco/cli 0.1.87 → 0.1.98
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/dist/commands/batch-wrapper.js +1 -1
- package/dist/commands/create-wrapper.js +1 -1
- package/dist/commands/deploy.js +2 -2
- package/dist/commands/login.js +2 -2
- package/dist/commands/run-wrapper.js +1 -1
- package/dist/commands/secret.js +1 -1
- package/dist/index.js +9 -9
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { argument, command, constant, message, multiple, object, option, optional, string, } from "@optique/core";
|
|
2
2
|
import { integer } from "@optique/core/valueparser";
|
|
3
|
-
import { createCommand } from "
|
|
3
|
+
import { createCommand } from "../lib/command";
|
|
4
4
|
import { batchCommand } from "./batch";
|
|
5
5
|
export default createCommand({
|
|
6
6
|
def: command("batch", object({
|
|
@@ -3,7 +3,7 @@ import { command, constant, flag, message, multiple, object, option, optional, s
|
|
|
3
3
|
import { initForClaudeCode } from "@townco/agent/scaffold";
|
|
4
4
|
import { isInsideTownProject } from "@townco/agent/storage";
|
|
5
5
|
import inquirer from "inquirer";
|
|
6
|
-
import { createCommand } from "
|
|
6
|
+
import { createCommand } from "../lib/command";
|
|
7
7
|
import { createCommand as createAgentCommand } from "./create";
|
|
8
8
|
import { createProjectCommand } from "./create-project";
|
|
9
9
|
export default createCommand({
|
package/dist/commands/deploy.js
CHANGED
|
@@ -7,8 +7,8 @@ import { createClient } from "@townco/apiclient";
|
|
|
7
7
|
import { findRoot } from "@townco/core/path";
|
|
8
8
|
import archiver from "archiver";
|
|
9
9
|
import walk from "ignore-walk";
|
|
10
|
-
import { getValidCredentials } from "
|
|
11
|
-
import { createCommand } from "
|
|
10
|
+
import { getValidCredentials } from "../lib/auth-fetch";
|
|
11
|
+
import { createCommand } from "../lib/command";
|
|
12
12
|
const MAX_ARCHIVE_SIZE = 4.5 * 1024 * 1024; // 4.5MB
|
|
13
13
|
export default createCommand({
|
|
14
14
|
def: command("deploy", object({
|
package/dist/commands/login.js
CHANGED
|
@@ -93,9 +93,9 @@ export async function loginCommand() {
|
|
|
93
93
|
user: data.user,
|
|
94
94
|
shed_url: shedUrl,
|
|
95
95
|
};
|
|
96
|
-
const
|
|
96
|
+
const { path } = saveAuthCredentials(credentials);
|
|
97
97
|
console.log(`\nLogged in as ${data.user.email}`);
|
|
98
|
-
console.log(`Credentials saved to ${
|
|
98
|
+
console.log(`Credentials saved to ${path}`);
|
|
99
99
|
}
|
|
100
100
|
catch (error) {
|
|
101
101
|
if (error instanceof TypeError && error.message.includes("fetch")) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { argument, command, constant, flag, message, object, option, optional, string, } from "@optique/core";
|
|
2
2
|
import { integer } from "@optique/core/valueparser";
|
|
3
|
-
import { createCommand } from "
|
|
3
|
+
import { createCommand } from "../lib/command";
|
|
4
4
|
import { runCommand } from "./run.js";
|
|
5
5
|
export default createCommand({
|
|
6
6
|
def: command("run", object({
|
package/dist/commands/secret.js
CHANGED
|
@@ -3,7 +3,7 @@ import { updateSchema as updateEnvSchema } from "@townco/env/update-schema";
|
|
|
3
3
|
import { createSecret, deleteSecret, genenv, listSecrets, updateSecret, } from "@townco/secret";
|
|
4
4
|
import inquirer from "inquirer";
|
|
5
5
|
import { match } from "ts-pattern";
|
|
6
|
-
import { createCommand } from "
|
|
6
|
+
import { createCommand } from "../lib/command";
|
|
7
7
|
/**
|
|
8
8
|
* Securely prompt for a secret value without echoing to the terminal
|
|
9
9
|
*/
|
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ import { command, constant, or } from "@optique/core";
|
|
|
3
3
|
import { message } from "@optique/core/message";
|
|
4
4
|
import { run } from "@optique/run";
|
|
5
5
|
import { match } from "ts-pattern";
|
|
6
|
-
import batchCmd from "
|
|
7
|
-
import { configureCommand } from "
|
|
8
|
-
import createCmd from "
|
|
9
|
-
import deployCmd from "
|
|
10
|
-
import { loginCommand } from "
|
|
11
|
-
import runCmd from "
|
|
12
|
-
import secretCmd from "
|
|
13
|
-
import { upgradeCommand } from "
|
|
14
|
-
import { whoamiCommand } from "
|
|
6
|
+
import batchCmd from "./commands/batch-wrapper";
|
|
7
|
+
import { configureCommand } from "./commands/configure";
|
|
8
|
+
import createCmd from "./commands/create-wrapper";
|
|
9
|
+
import deployCmd from "./commands/deploy";
|
|
10
|
+
import { loginCommand } from "./commands/login";
|
|
11
|
+
import runCmd from "./commands/run-wrapper";
|
|
12
|
+
import secretCmd from "./commands/secret";
|
|
13
|
+
import { upgradeCommand } from "./commands/upgrade";
|
|
14
|
+
import { whoamiCommand } from "./commands/whoami";
|
|
15
15
|
const parser = or(batchCmd.def, command("configure", constant("configure"), {
|
|
16
16
|
brief: message `Configure environment variables.`,
|
|
17
17
|
}), command("login", constant("login"), { brief: message `Log in to Town Shed.` }), command("upgrade", constant("upgrade"), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@townco/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.98",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"town": "./dist/index.js"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsgo"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@townco/tsconfig": "0.1.
|
|
18
|
+
"@townco/tsconfig": "0.1.90",
|
|
19
19
|
"@types/archiver": "^7.0.0",
|
|
20
20
|
"@types/bun": "^1.3.1",
|
|
21
21
|
"@types/ignore-walk": "^4.0.3",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@optique/core": "^0.6.2",
|
|
26
26
|
"@optique/run": "^0.6.2",
|
|
27
|
-
"@townco/agent": "0.1.
|
|
28
|
-
"@townco/apiclient": "
|
|
29
|
-
"@townco/core": "0.0.
|
|
30
|
-
"@townco/debugger": "0.1.
|
|
31
|
-
"@townco/env": "0.1.
|
|
32
|
-
"@townco/secret": "0.1.
|
|
33
|
-
"@townco/ui": "0.1.
|
|
27
|
+
"@townco/agent": "0.1.98",
|
|
28
|
+
"@townco/apiclient": "0.0.12",
|
|
29
|
+
"@townco/core": "0.0.71",
|
|
30
|
+
"@townco/debugger": "0.1.48",
|
|
31
|
+
"@townco/env": "0.1.43",
|
|
32
|
+
"@townco/secret": "0.1.93",
|
|
33
|
+
"@townco/ui": "0.1.93",
|
|
34
34
|
"@trpc/client": "^11.7.2",
|
|
35
35
|
"archiver": "^7.0.1",
|
|
36
36
|
"eventsource": "^4.1.0",
|