paseo-aydo 0.4.0 → 0.4.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/index.client.tsx +1 -1
- package/package.json +1 -1
- package/server/workspaces.ts +2 -1
- package/shared/locales/en.json +1 -0
- package/shared/locales/zh-CN.json +1 -0
- package/shared/version.ts +1 -1
package/index.client.tsx
CHANGED
|
@@ -24,7 +24,7 @@ export default function contribute(client: PluginClientContext) {
|
|
|
24
24
|
else client.addSurface("bots", BotsSurface);
|
|
25
25
|
// The row is ours on every host (Paseo 0.13 and later have addSidebarHeaderItem): one status dot for all assistants. The host shows
|
|
26
26
|
// one row per plugin and keeps the host in its own picker on the screen, so neither names a host.
|
|
27
|
-
client.addSidebarHeaderItem({ id: "bots", title: "
|
|
27
|
+
client.addSidebarHeaderItem({ id: "bots", title: messages.message("host.sidebarTitle"), Component: BotsNav });
|
|
28
28
|
client.addSettingsScreen({ id: "bots", title: "Aydo", icon: "Bot", Component: BotsSettings });
|
|
29
29
|
client.addCommandCenterItem({
|
|
30
30
|
id: "open-bots",
|
package/package.json
CHANGED
package/server/workspaces.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { lstat, mkdir } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
2
3
|
import { isBotsProjectRoot } from "../shared/chat";
|
|
3
4
|
import { allPages } from "../shared/pages";
|
|
4
5
|
import { grantScope, workspaceInputProblem, folderNameFor, type CreateWorkspaceInput } from "../shared/workspaces";
|
|
@@ -109,7 +110,7 @@ export async function createWorkspace(paseo: PaseoApi, project: ProjectRef, inpu
|
|
|
109
110
|
const handle = await paseo.workspaces.create({ title: input.title, source: { kind: "worktree", projectId: project.id, ...(input.base ? { baseBranch: input.base } : {}), branchName } });
|
|
110
111
|
return `${created(input.title, handle.id, handle.directory ?? "unknown")} Paseo adds a number to the branch name when it was taken; run git branch in the folder to see the real one.`;
|
|
111
112
|
}
|
|
112
|
-
const path =
|
|
113
|
+
const path = join(project.root, folderNameFor(input.title));
|
|
113
114
|
const entries = await workspaceEntries(paseo);
|
|
114
115
|
const have = entries.find((entry) => !isArchiving(entry) && entry.projectId === project.id && samePath(directoryOf(entry), path));
|
|
115
116
|
if (have) return `Workspace "${input.title}" already exists: id ${have.id}, folder ${directoryOf(have)}.`;
|
package/shared/locales/en.json
CHANGED
package/shared/version.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The plugin's version, shown on the splash. Kept in step with package.json by a test. */
|
|
2
|
-
export const PLUGIN_VERSION = "0.4.
|
|
2
|
+
export const PLUGIN_VERSION = "0.4.1";
|
|
3
3
|
|
|
4
4
|
/** The plugin's id (paseo-plugin.json); timeline items it appends carry it as their pluginId. */
|
|
5
5
|
export const PLUGIN_ID = "aydo";
|