@kendoo.agentdesk/agentdesk 0.19.7 → 0.19.8
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/CHANGELOG.md +5 -0
- package/cli/init.mjs +28 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,11 @@ Internal refactors, infrastructure changes, and architectural notes are not list
|
|
|
13
13
|
### Added
|
|
14
14
|
- `[UI]` Private-session sharing flow. When someone visits a session URL they don't own, they now see a friendly "Shh… this one's private" page with a one-click "Request access" button instead of a blank error. The session owner sees pending requests in a new header inbox and can grant viewer access for just that session or the whole project. Viewer-granted sessions show up in the teammate's sidebar tagged as a viewer.
|
|
15
15
|
|
|
16
|
+
## [0.19.8] — 2026-04-19
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- `[CLI]` `agentdesk init` no longer silently dumps you into the new-project wizard when there's no `.agentdesk.json` and the git remote doesn't auto-match an existing project. It now asks upfront: "Connect this repo to an existing project on my account (bootstrap)" / "Set up this as a new project (full wizard)" / "Cancel". Picking "Connect" opens the project picker from your account — the same flow `agentdesk bootstrap` runs — so a second-machine user can always attach to an existing project without accidentally creating a duplicate. Auto-match still short-circuits to token refresh when it finds a confident single match.
|
|
20
|
+
|
|
16
21
|
## [0.19.7] — 2026-04-19
|
|
17
22
|
|
|
18
23
|
### Changed
|
package/cli/init.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { loadConfig, pushConfig } from "./config.mjs";
|
|
|
15
15
|
import { getStoredApiKey } from "./login.mjs";
|
|
16
16
|
import { registerLocalProject } from "./projects.mjs";
|
|
17
17
|
import { checkTrackerPermissions, resolveCredentialsFromEnv } from "./tracker-check.mjs";
|
|
18
|
-
import { autoMatchProject, gapScan, writeProjectConfig } from "./bootstrap.mjs";
|
|
18
|
+
import { autoMatchProject, discoverProject, gapScan, writeProjectConfig } from "./bootstrap.mjs";
|
|
19
19
|
import { select as promptSelect } from "./prompts.mjs";
|
|
20
20
|
|
|
21
21
|
const SERVER = process.env.AGENTDESK_SERVER || "https://agentdesk.live";
|
|
@@ -325,6 +325,33 @@ export async function runInit(cwd, opts = {}) {
|
|
|
325
325
|
await gapScan({ cwd, apiKey, projectKey: match.projectKey });
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
|
+
|
|
329
|
+
// No auto-match. Offer an explicit choice between connecting this
|
|
330
|
+
// clone to an existing server-side project (bootstrap) and creating
|
|
331
|
+
// a new one (full wizard). Prevents users from accidentally creating
|
|
332
|
+
// a duplicate project when they just wanted to attach a second machine.
|
|
333
|
+
console.log("");
|
|
334
|
+
console.log(" AgentDesk — new directory");
|
|
335
|
+
console.log(" ━━━━━━━━━━━━━━━━━━━━━━━━━");
|
|
336
|
+
console.log("");
|
|
337
|
+
const topChoice = await promptSelect({
|
|
338
|
+
message: "What would you like to do?",
|
|
339
|
+
choices: [
|
|
340
|
+
{ name: "Connect this repo to an existing project on my account (bootstrap)", value: "connect" },
|
|
341
|
+
{ name: "Set up this as a new project (full wizard)", value: "new" },
|
|
342
|
+
{ name: "Cancel", value: "cancel" },
|
|
343
|
+
],
|
|
344
|
+
});
|
|
345
|
+
console.log("");
|
|
346
|
+
if (topChoice === "cancel") return;
|
|
347
|
+
if (topChoice === "connect") {
|
|
348
|
+
const projectKey = await discoverProject(cwd, apiKey);
|
|
349
|
+
if (!projectKey) return;
|
|
350
|
+
console.log("");
|
|
351
|
+
await gapScan({ cwd, apiKey, projectKey });
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
// "new" falls through to the wizard below.
|
|
328
355
|
}
|
|
329
356
|
}
|
|
330
357
|
|