cloudtifact 0.1.0 → 0.1.1
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/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11455,10 +11455,12 @@ function findThread(threads, commentId) {
|
|
|
11455
11455
|
}
|
|
11456
11456
|
//#endregion
|
|
11457
11457
|
//#region src/hooks.ts
|
|
11458
|
+
const SCRIPT_INSTALL_BIN = "\"$HOME/.cloudtifact/bin/cloudtifact\"";
|
|
11458
11459
|
/** The command every harness runs after a file edit. Reads the hook payload on stdin, always exits 0. */
|
|
11459
|
-
const HOOK_COMMAND =
|
|
11460
|
+
const HOOK_COMMAND = `if [ -x ${SCRIPT_INSTALL_BIN} ]; then ${SCRIPT_INSTALL_BIN} hook; elif command -v cloudtifact >/dev/null 2>&1; then cloudtifact hook; fi`;
|
|
11460
11461
|
const OUR_COMMANDS = /* @__PURE__ */ new Set([
|
|
11461
11462
|
HOOK_COMMAND,
|
|
11463
|
+
`${SCRIPT_INSTALL_BIN} hook`,
|
|
11462
11464
|
"npx -y cloudtifact hook",
|
|
11463
11465
|
"cloudtifact hook"
|
|
11464
11466
|
]);
|
|
@@ -12074,7 +12076,7 @@ function workspaceTextLines(workspaces, currentSlug) {
|
|
|
12074
12076
|
}
|
|
12075
12077
|
//#endregion
|
|
12076
12078
|
//#region src/program.ts
|
|
12077
|
-
const VERSION = "0.1.
|
|
12079
|
+
const VERSION = "0.1.1";
|
|
12078
12080
|
const program = new Command().name("cloudtifact").description("Publish pages and docs to Cloudtifact as links people comment on, with every version kept and the comments handed back to your agent.").version(VERSION);
|
|
12079
12081
|
program.command("login").description("Sign in through your browser (GitHub, Google or email) and save a token to the global config").option("--no-browser", "don't open a browser, just print the URL (automatic over SSH)").action(run(async (opts) => {
|
|
12080
12082
|
const config = await readGlobalConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudtifact",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Publish pages and docs to Cloudtifact as links people comment on, with every version kept and the comments handed back to your agent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Cloudtifact authors",
|