md4ai 0.16.1 → 0.16.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.
@@ -122,7 +122,7 @@ var CURRENT_VERSION;
122
122
  var init_check_update = __esm({
123
123
  "dist/check-update.js"() {
124
124
  "use strict";
125
- CURRENT_VERSION = true ? "0.16.1" : "0.0.0-dev";
125
+ CURRENT_VERSION = true ? "0.16.2" : "0.0.0-dev";
126
126
  }
127
127
  });
128
128
 
@@ -1961,7 +1961,8 @@ async function scanDoppler(projectRoot, folderId) {
1961
1961
  }
1962
1962
  if (!projectSlug) {
1963
1963
  if (!folderId || !process.stdin.isTTY) {
1964
- console.log(chalk10.dim(' Doppler: token configured but no project linked. Run "md4ai doppler set-project <slug>" to link one.'));
1964
+ const suggestedSlug = basename(projectRoot).toLowerCase().replace(/[^a-z0-9-]/g, "-");
1965
+ console.log(chalk10.dim(` Doppler: token configured but no project linked. Run: md4ai doppler set-project ${suggestedSlug}`));
1965
1966
  return null;
1966
1967
  }
1967
1968
  const projects = await fetchDopplerProjects(tokenResult.token);
@@ -2845,7 +2846,7 @@ async function syncCommand(options) {
2845
2846
  console.log(chalk15.yellow(` ${proposedAll.length} file(s) proposed for deletion \u2014 run \`md4ai scan\` to review.`));
2846
2847
  }
2847
2848
  try {
2848
- const result = await scanProject(device.path);
2849
+ const result = await scanProject(device.path, device.folder_id);
2849
2850
  const { data: allDeviceRow } = await supabase.from("devices").select("id").eq("user_id", userId).eq("device_name", device.device_name).single();
2850
2851
  const allDeviceId = allDeviceRow?.id;
2851
2852
  try {
@@ -2911,7 +2912,7 @@ async function syncCommand(options) {
2911
2912
  if (proposedSingle?.length) {
2912
2913
  console.log(chalk15.yellow(` ${proposedSingle.length} file(s) proposed for deletion \u2014 run \`md4ai scan\` to review.`));
2913
2914
  }
2914
- const result = await scanProject(device.path);
2915
+ const result = await scanProject(device.path, device.folder_id);
2915
2916
  const { data: singleDeviceRow } = await supabase.from("devices").select("id").eq("user_id", userId).eq("device_name", device.device_name).single();
2916
2917
  const singleDeviceId = singleDeviceRow?.id;
2917
2918
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {