davia 0.1.1 → 0.1.2
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/index.js +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "module";
|
|
2
3
|
import { Command } from "commander";
|
|
3
4
|
import { select, input } from "@inquirer/prompts";
|
|
4
5
|
import chalk from "chalk";
|
|
@@ -8,11 +9,13 @@ import { exitWithError } from "./utils.js";
|
|
|
8
9
|
import { startWebServerWithBrowser, setupGracefulShutdown } from "./web.js";
|
|
9
10
|
import { runAgent } from "@davia/agent";
|
|
10
11
|
import { ensureLoggedIn, getAccessToken, readConfig, writeConfig, link, push, } from "./sync.js";
|
|
12
|
+
const require = createRequire(import.meta.url);
|
|
13
|
+
const { version } = require("../package.json");
|
|
11
14
|
const program = new Command();
|
|
12
15
|
program
|
|
13
16
|
.name("davia")
|
|
14
17
|
.description("Interactive internal documentation that writes itself")
|
|
15
|
-
.version(
|
|
18
|
+
.version(version)
|
|
16
19
|
.action(async () => {
|
|
17
20
|
// Show help by default when no command is provided
|
|
18
21
|
program.help();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "davia",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Interactive, editable docs designed for coding agents",
|
|
6
6
|
"homepage": "https://davia.ai",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"open": "^10.2.0",
|
|
45
45
|
"ora": "^9.0.0",
|
|
46
46
|
"slug": "^11.0.1",
|
|
47
|
-
"@davia/
|
|
48
|
-
"@davia/
|
|
47
|
+
"@davia/agent": "0.1.0",
|
|
48
|
+
"@davia/web": "0.1.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/archiver": "^7.0.0",
|