@driftless-sh/cli 0.1.28 → 0.1.29

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 CHANGED
@@ -214539,7 +214539,7 @@ async function installSkillCommand() {
214539
214539
  // src/commands/init.ts
214540
214540
  function getVersion() {
214541
214541
  try {
214542
- return "0.1.27";
214542
+ return "0.1.29";
214543
214543
  } catch {
214544
214544
  return "0.0.0";
214545
214545
  }
@@ -214984,27 +214984,7 @@ async function initCommand(args) {
214984
214984
  }
214985
214985
  step("creating context", `${watchersCreated} watchers \u2713`);
214986
214986
  const existingDocs = detectExistingDocs(cwd);
214987
- let docsAnchored = 0;
214988
- for (const doc of existingDocs) {
214989
- try {
214990
- const fullPath = (0, import_node_path4.resolve)(cwd, doc.path);
214991
- const fileContent = (0, import_node_fs4.readFileSync)(fullPath, "utf-8");
214992
- await api.post(`/workspaces/${workspaceSlug}/watchers`, {
214993
- name: doc.name,
214994
- what: doc.what,
214995
- how: "Anchored documentation",
214996
- pattern: doc.pattern,
214997
- decisions: fileContent.slice(0, 2e3),
214998
- file_content: fileContent,
214999
- ownership: "@team",
215000
- where_repos: [repo.id],
215001
- created_by: "driftless-init"
215002
- });
215003
- docsAnchored++;
215004
- } catch {
215005
- }
215006
- }
215007
- step("anchoring docs", `${docsAnchored} docs \u2713`);
214987
+ step("detecting docs", `${existingDocs.length} found (not auto-synced)`);
215008
214988
  let skillLine = "skipped";
215009
214989
  try {
215010
214990
  const skillResult = await runInstallSkill(cwd);
@@ -215018,7 +214998,7 @@ async function initCommand(args) {
215018
214998
  console.log("\u2713 repo context bootstrapped");
215019
214999
  console.log(` \u251C\u2500 watchers ${watchersCreated}`);
215020
215000
  console.log(` \u251C\u2500 rules ${rulesCreated}`);
215021
- console.log(` \u251C\u2500 docs ${docsAnchored}`);
215001
+ console.log(` \u251C\u2500 docs found ${existingDocs.length} (ask your agent to sync them)`);
215022
215002
  console.log(` \u251C\u2500 components ${components.length}`);
215023
215003
  console.log(` \u2514\u2500 relations ${relationCount}`);
215024
215004
  console.log("");
@@ -216398,7 +216378,7 @@ function pad2(s, n) {
216398
216378
  }
216399
216379
 
216400
216380
  // src/index.ts
216401
- var VERSION = "0.1.27";
216381
+ var VERSION = "0.1.29";
216402
216382
  var HELP_TEXT = `Driftless CLI v${VERSION} \u2014 Living repo context for humans and coding agents
216403
216383
 
216404
216384
  Install: npm install -g @driftless-sh/cli