@driftless-sh/cli 0.1.23 → 0.1.24
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 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -215501,6 +215501,7 @@ async function contextCommand(args) {
|
|
|
215501
215501
|
}
|
|
215502
215502
|
const updates = { last_updated: /* @__PURE__ */ new Date() };
|
|
215503
215503
|
if (fileContent) updates.file_content = fileContent;
|
|
215504
|
+
if (docFlag) updates.anchored_doc_path = docFlag;
|
|
215504
215505
|
if (noteFlag) updates.decisions = noteFlag;
|
|
215505
215506
|
if (filesFlag) updates.where_files = filesFlag.split(",").map((f) => f.trim()).filter(Boolean);
|
|
215506
215507
|
if (patternFlag) updates.pattern = patternFlag;
|
|
@@ -216048,7 +216049,8 @@ var CONFIG_DIR = (0, import_node_path7.resolve)((0, import_node_os2.homedir)(),
|
|
|
216048
216049
|
var CONFIG_PATH2 = (0, import_node_path7.resolve)(CONFIG_DIR, "config.json");
|
|
216049
216050
|
function openBrowser(url) {
|
|
216050
216051
|
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
216051
|
-
(0, import_node_child_process2.
|
|
216052
|
+
const child = (0, import_node_child_process2.spawn)(cmd, [url], { stdio: "ignore", detached: true });
|
|
216053
|
+
child.unref();
|
|
216052
216054
|
}
|
|
216053
216055
|
async function loginCommand(args) {
|
|
216054
216056
|
const keyIndex = args.indexOf("--key");
|
|
@@ -216254,7 +216256,7 @@ function pad2(s, n) {
|
|
|
216254
216256
|
}
|
|
216255
216257
|
|
|
216256
216258
|
// src/index.ts
|
|
216257
|
-
var VERSION = "0.1.
|
|
216259
|
+
var VERSION = "0.1.24";
|
|
216258
216260
|
var HELP_TEXT = `Driftless CLI v${VERSION} \u2014 Living repo context for humans and coding agents
|
|
216259
216261
|
|
|
216260
216262
|
Install: npm install -g @driftless-sh/cli
|