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 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: "Aydo", Component: BotsNav });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paseo-aydo",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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 = `${project.root.replace(/[\\/]+$/, "")}/${folderNameFor(input.title)}`;
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)}.`;
@@ -8,6 +8,7 @@
8
8
  "settingsUnreadable": "Settings can't be read."
9
9
  },
10
10
  "host": {
11
+ "sidebarTitle": "Aydo",
11
12
  "openBots": "Open Assistants",
12
13
  "newBot": "New assistant",
13
14
  "learn": "Save what the assistant just did as a skill",
@@ -8,6 +8,7 @@
8
8
  "settingsUnreadable": "无法读取设置。"
9
9
  },
10
10
  "host": {
11
+ "sidebarTitle": "Aydo 个人助理",
11
12
  "openBots": "打开助理",
12
13
  "newBot": "新建助理",
13
14
  "learn": "把助理刚做的事存成技能",
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.0";
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";