@loghead/core 0.1.17 → 0.1.18

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/cli_main.js CHANGED
@@ -16,10 +16,6 @@ const db = new db_1.DbService();
16
16
  const auth = new auth_1.AuthService();
17
17
  async function main() {
18
18
  const argv = await (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
19
- .command("init", "Initialize/Migrate database", {}, async () => {
20
- console.log("Initializing database...");
21
- await (0, migrate_1.migrate)();
22
- })
23
19
  .command(["start", "$0"], "Start API Server", {}, async () => {
24
20
  console.log("Ensuring database is initialized...");
25
21
  await (0, migrate_1.migrate)(false); // Run migrations silently
@@ -29,11 +25,6 @@ async function main() {
29
25
  // Start TUI (this will clear screen and take over)
30
26
  await (0, main_1.startTui)(db, token);
31
27
  process.exit(0);
32
- })
33
- .command("ui", "Start Terminal UI", {}, async () => {
34
- const token = await auth.getOrCreateMcpToken();
35
- await (0, main_1.startTui)(db, token);
36
- process.exit(0);
37
28
  })
38
29
  .command("projects <cmd> [name]", "Manage projects", (yargs) => {
39
30
  yargs
@@ -70,10 +61,8 @@ async function main() {
70
61
  console.log(`Stream created: ${s.id}`);
71
62
  console.log(`Token: ${s.token}`);
72
63
  })
73
- .command("token", "Get token for stream", {
74
- stream: { type: "string", demandOption: true }
75
- }, async (argv) => {
76
- const token = await auth.createStreamToken(argv.stream);
64
+ .command("token <streamId>", "Get token for stream", {}, async (argv) => {
65
+ const token = await auth.createStreamToken(argv.streamId);
77
66
  console.log(`Token: ${token}`);
78
67
  })
79
68
  .command("delete <id>", "Delete stream", {}, (argv) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loghead/core",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Core API and Database for Loghead",
5
5
  "repository": {
6
6
  "type": "git",
package/src/cli_main.ts CHANGED
@@ -14,10 +14,6 @@ const auth = new AuthService();
14
14
 
15
15
  async function main() {
16
16
  const argv = await yargs(hideBin(process.argv))
17
- .command("init", "Initialize/Migrate database", {}, async () => {
18
- console.log("Initializing database...");
19
- await migrate();
20
- })
21
17
  .command(["start", "$0"], "Start API Server", {}, async () => {
22
18
  console.log("Ensuring database is initialized...");
23
19
  await migrate(false); // Run migrations silently
@@ -31,11 +27,6 @@ async function main() {
31
27
  await startTui(db, token);
32
28
  process.exit(0);
33
29
  })
34
- .command("ui", "Start Terminal UI", {}, async () => {
35
- const token = await auth.getOrCreateMcpToken();
36
- await startTui(db, token);
37
- process.exit(0);
38
- })
39
30
  .command("projects <cmd> [name]", "Manage projects", (yargs) => {
40
31
  yargs
41
32
  .command("list", "List projects", {}, () => {
@@ -71,10 +62,8 @@ async function main() {
71
62
  console.log(`Stream created: ${s.id}`);
72
63
  console.log(`Token: ${s.token}`);
73
64
  })
74
- .command("token", "Get token for stream", {
75
- stream: { type: "string", demandOption: true }
76
- }, async (argv) => {
77
- const token = await auth.createStreamToken(argv.stream as string);
65
+ .command("token <streamId>", "Get token for stream", {}, async (argv) => {
66
+ const token = await auth.createStreamToken(argv.streamId as string);
78
67
  console.log(`Token: ${token}`);
79
68
  })
80
69
  .command("delete <id>", "Delete stream", {}, (argv) => {