@eeshaai/code 1.0.1 → 1.0.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.
- package/README.md +15 -13
- package/dist/server.js +289 -306
- package/dist/web/page.css +1 -1
- package/dist/web/page.js +122 -123
- package/package.json +64 -64
package/README.md
CHANGED
|
@@ -54,8 +54,8 @@ The page is a chat with an agent, one session at a time. The chat is the page; e
|
|
|
54
54
|
3. **Header**, from the left: the name Eesha Code (a link to the start page), Search, More (Keyboard shortcuts) and Settings.
|
|
55
55
|
4. **The session's row**, under the header: workspace › session name. A click on the workspace lists the other workspaces, each with its 3 newest sessions and New session, then Add a workspace and All sessions. Next to the name: a Working or Waiting for you label, and ⌄ (New session, up to 6 recent sessions in this folder, All sessions). Then the buttons **Session**, **Git**, **AI changes**, **File explorer**, **Spec explorer** (with SDD on), **Export** and **Logs**. Git and AI changes are off when the session has no folder.
|
|
56
56
|
5. **Footer:** the folder and its git branch, the port, and the Eesha Code version. Click the version to update Eesha Code (see 3.9).
|
|
57
|
-
6. **Addresses.** `/` is the start page, `/?chat=<id>` is a session,
|
|
58
|
-
7. **A reload shows only the session's chat, full screen:** no panel beside the strip, no right panel, no editor, no tabs. Only the widths you dragged the edges to, and whether the Git panel shows its files as a tree, are kept in this browser.
|
|
57
|
+
6. **Addresses.** `/` is the start page, `/?chat=<id>` is a session, `/?chat=<id>&spec=<name>` is a session with a spec open as a tab beside it (3.3; `&specFolder=` follows when the spec is not in the main folder), `/workspace?workspace=<key>` is a workspace's page (it can carry `&spec=` too), `/settings/<section>` is a Settings section. An older spec link, `/sdd?workspace=<key>&spec=<name>`, still works: it goes on to the spec's newest phase chat, or to the workspace's page when the spec has no chat yet. Opening a list, a panel, a menu or a window does not change the address. Moving to another session loads the page again.
|
|
58
|
+
7. **A reload shows only the session's chat, full screen:** no panel beside the strip, no right panel, no editor, no tabs. Only the widths you dragged the edges to, and whether the Git panel shows its files as a tree, are kept in this browser. A spec tab is the one exception: the address carries it, so a reload opens it again.
|
|
59
59
|
8. **One tab per session.** A session shows in one browser tab at a time. Open it in a second tab and it moves there; the first tab says so and offers "Show it here instead". A session whose tab closed is kept on the server for 10 minutes, so a reload finds it, and a running turn keeps going. After that the runtime's session is let go, and opening it later reopens the conversation.
|
|
60
60
|
|
|
61
61
|
**The start page** (`/`) shows the sessions waiting for your answer, a box to start a session (with workspace, runtime, model and permission level pickers - "No workspace" is the last choice; Ctrl+Enter starts it), Resume last session, Search sessions, Add workspace, the 7 most recent sessions, and recent folders. Start session makes the session, opens it, and puts what you typed in its message box, not sent.
|
|
@@ -76,13 +76,13 @@ The page is a chat with an agent, one session at a time. The chat is the page; e
|
|
|
76
76
|
3. **AI changes** - every turn that changed files, with This turn / Since the turn, Expand all and Collapse all. Undo works on one file of a finished turn; the running turn has no Undo.
|
|
77
77
|
4. **File explorer** (Ctrl+Shift+E) - see below.
|
|
78
78
|
|
|
79
|
-
**The editor** opens between the chat and the right panel when a file, a diff or Logs opens. The chat then shrinks to its own width. If the editor would get less than 640 px, the panel beside the strip closes by itself. × at the right of the tabs hides the editor and keeps its tabs; "Editor · N tabs" in the session's row brings it back. Logs (Ctrl+Shift+U) is a tab: every line of the session, including notices and errors the chat leaves out, with its filters inside the tab.
|
|
79
|
+
**The editor** opens between the chat and the right panel when a file, a diff or Logs opens. The chat then shrinks to its own width. If the editor would get less than 640 px, the panel beside the strip closes by itself. × at the right of the tabs hides the editor and keeps its tabs; "Editor · N tabs" in the session's row brings it back. The button before × maximizes the editor: the chat (on a workspace page, the page), the panel beside the strip and the right panel all hide, and the editor takes the whole row. Press it again, or **Show the chat** (**Show the page**) in the row, to bring them back as they were. Pressing a panel's own button (the strip icon, Ctrl+B, Git, File explorer, Spec explorer and the others) also ends the maximize and shows that panel. Hiding the editor or closing its last tab ends it too, and a reload never keeps it. Logs (Ctrl+Shift+U) is a tab: every line of the session, including notices and errors the chat leaves out, with its filters inside the tab.
|
|
80
80
|
|
|
81
81
|
**Export** saves the session as `<session name>.md`, through the browser's own download. The text is the same as the file a Handover writes: what each side said, and each tool call with the first 30 lines of its output. It starts with "# Handover:" for that reason.
|
|
82
82
|
|
|
83
83
|
### 3.2 The session list
|
|
84
84
|
|
|
85
|
-
The AI icon on the strip opens the session list. It starts with the word SESSIONS and two icons at the right end: **Add workspace** and **New session**. Under it are the pinned sessions, then "Recent" - the 5 sessions you wrote in last (not pinned or archived ones), which stay in their workspaces too - then every session grouped by its workspace (A to Z, "No workspace" last), newest first inside each. A session is in the workspace whose main folder is the session's first folder. A folder that sessions work in but that is not a workspace yet still gets its own group, named by the folder. "No workspace" holds the sessions with no folder at all. A row shows the session's name only; hover over it to see its folders. "Recent" opens and closes like a workspace and starts open. Each row is a link: a click loads that session's page, and a middle click or Ctrl+click opens it in a new tab. A turn running in the session you leave keeps going.
|
|
85
|
+
The AI icon on the strip opens the session list. It starts with the word SESSIONS and two icons at the right end: **Add workspace** and **New session**. Under it are the pinned sessions, then "Recent" - the 5 sessions you wrote in last (not pinned or archived ones), which stay in their workspaces too; a spec's phase chat shows here only once you typed in it - then every session grouped by its workspace (A to Z, "No workspace" last), newest first inside each. A session is in the workspace whose main folder is the session's first folder. A folder that sessions work in but that is not a workspace yet still gets its own group, named by the folder. "No workspace" holds the sessions with no folder at all. A row shows the session's name only; hover over it to see its folders. A spec's phase chats (3.3) fold under one row named after the spec, inside its workspace, newest first; the arrow on that row opens and closes them. Implementation's wave chats fold once more, under an **Implementation** row inside the spec's row. The spec's row and the Implementation row link to their newest chat, with the spec as a tab beside it. "Recent" opens and closes like a workspace and starts open. Each row is a link: a click loads that session's page, and a middle click or Ctrl+click opens it in a new tab. A turn running in the session you leave keeps going.
|
|
86
86
|
|
|
87
87
|
**Kiro's own sessions** show in the list too: sessions you started outside Eesha Code (the Kiro terminal, another editor) appear under their workspace with a "Kiro" tag, but only for workspaces and folders already in the list. Kiro sessions that SDD's phases used are never listed here. Click one and Eesha Code reads its messages back from Kiro and makes it a normal Eesha Code session; your next message carries on Kiro's conversation. Renaming or deleting an Eesha Code session that runs on Kiro v3 does the same in Kiro.
|
|
88
88
|
|
|
@@ -136,29 +136,31 @@ A new session has no folder: the agent works in the session's own scratch folder
|
|
|
136
136
|
|
|
137
137
|
### 3.3 SDD
|
|
138
138
|
|
|
139
|
-
SDD (spec-driven development) always runs in a workspace. Turn it on with `"Feature-SDD": true` under `features` in settings.json. Then open the **Spec explorer** with its button in a session's row, or pick **Specs** on a workspace's "⋯" menu in the session list (that opens
|
|
139
|
+
SDD (spec-driven development) always runs in a workspace. Turn it on with `"Feature-SDD": true` under `features` in settings.json. Then open the **Spec explorer** with its button in a session's row, or pick **Specs** on a workspace's "⋯" menu in the session list (that opens the workspace's page with the Spec explorer on the right).
|
|
140
140
|
|
|
141
141
|
1. **The Spec explorer** is a right panel, beside the File explorer. It lists every folder of the workspace (the main one is tagged "main"). Inside each folder the specs are grouped by kind - **Eesha**, **Kiro** and **Spec Kit** - each with the folder they are kept in (`.eesha/specs`, `.kiro/specs`, `specs`). A spec row shows its name, the phase waiting, a red dot when the agent waits for your answer and a blue dot while a phase works. A spec made in another workspace on the same folder says "other work item".
|
|
142
142
|
1. **Phases and sessions.** The arrow on a spec shows its phases: a tick for done, a blue mark for the one to run now. The arrow on a phase shows its sessions, newest first ("#2 · Nov 18 09:12"; an earlier one says Read Only). Implementation's sessions are its wave chats. Idea says "no chat".
|
|
143
|
-
2. **Clicks.** A click on a spec opens its
|
|
143
|
+
2. **Clicks.** A click on a spec opens its newest phase chat, with the spec as a tab beside it. A click on a phase opens that phase's newest chat; a click on a session opens that chat. A spec with no chat yet opens as a tab on the workspace's page. Ctrl+click opens the same place in a new browser tab. The start page's and the workspace page's spec links go to the same places.
|
|
144
144
|
3. **New spec.** The + in the heading makes a spec in the main folder; the + on a folder row makes one in that folder.
|
|
145
145
|
4. **Sort.** The button beside + switches between A to Z and most recently changed first. Each workspace keeps its own choice.
|
|
146
146
|
5. **"⋯" menu.** **Copy a style…** (the same window as the link in New spec, below). **Clear spec history…** throws away the old copies of spec documents that the "What changed" view compares against, for every spec in the main folder. It asks first. **Specs guide** opens this section of the README in a new browser tab.
|
|
147
147
|
2. **No specs in a folder:** its row says so, with New spec.
|
|
148
148
|
3. **New spec** first asks **How it runs**: an Eesha style, **Kiro** or **Spec Kit**.
|
|
149
|
-
1. **Eesha style:** the kind ("[Custom] Feature" or "[Custom] Bug fix"), where it starts from (a line you type, an ADO work item, a GitHub issue, or files you already have, as full paths), and its name, which becomes the spec's folder name. **Create** writes `idea.md` with no AI and opens the spec. No phase starts by itself: press Next yourself.
|
|
149
|
+
1. **Eesha style:** the kind ("[Custom] Feature" or "[Custom] Bug fix"), where it starts from (a line you type, an ADO work item, a GitHub issue, or files you already have, as full paths), and its name, which becomes the spec's folder name. **Create** writes `idea.md` with no AI and opens the spec as a tab on the workspace's page. No phase starts by itself: press Next yourself.
|
|
150
150
|
1. For an ADO work item or a GitHub issue, type its number or link, or press **Pick…** to find it through your connectors, level by level, the same levels as `>` in the compose box (ADO starts at its work items, GitHub at its repos). The picked item's link goes into the box. `idea.md` records only which item it is; the first phase reads it through the connector tools.
|
|
151
151
|
2. **Copy a built-in style** (a link in the window) opens **Copy a style**: pick the built-in style, where the copy goes (this workspace first, so it goes into git with the specs; or your profile, `~/.eesha/styles`, for this machine only), and its name. The window lists the files it copies. To offer the copy in New spec, add its name to `sdd.styles` in settings.json.
|
|
152
152
|
2. **Kiro:** a description and a name. **Create** makes `.kiro/specs/<name>`, opens the spec and starts Requirements in Kiro's Spec mode with your description. Each later phase starts a new Kiro chat with "Continue working on the ... spec" and writes only its own document. Kiro must be in `ai.providers`.
|
|
153
153
|
3. **Spec Kit:** a description only. **Open the chat** opens a new session with `/speckit.specify <your description>` in the box; press Send there. Spec Kit names the folder and makes the git branch. After that the spec is listed under Spec Kit, and its later steps (`/speckit.plan`, `/speckit.tasks`, `/speckit.implement`) run from Next. Before a step, the spec's branch must be the one checked out. The folder needs Spec Kit set up first (`specify init --here`).
|
|
154
154
|
4. **Kiro and Spec Kit have no Idea step.** Only Eesha styles write `idea.md`.
|
|
155
|
-
4. **The spec
|
|
156
|
-
1. **
|
|
157
|
-
2. **
|
|
155
|
+
4. **The spec tab and its phase chats.** A spec opens as a tab beside a session, like a file. The tab has the phase rail, the runtime and model every phase runs on, "Next: <phase>" beside the title, and the tabs Doc (or Tasks), Logs, Prompt, and Wave graph for a plan. Several spec tabs can be open; only the one in front follows the spec live, and one behind it is drawn again when you pick it.
|
|
156
|
+
1. **A phase chat is a normal session.** Each phase runs in a chat of its own: the first draft in a clean session, every revise in the same chat. Implementation runs each wave in a chat of its own. A phase chat has Git, File explorer, Logs and Export like any session. A line at its top names the spec and the phase, with **Open spec**.
|
|
157
|
+
2. **Next** starts the phase in a new chat and moves the page to it, with the spec tab beside it. For Implementation the page moves to the first wave's chat; the later waves run in their own chats. Nothing else changes the phase for you.
|
|
158
|
+
3. **Typing in a phase chat** runs the turn on the spec's runtime and model. Its box shows them but cannot change the model, mode or effort; change them in the spec tab. The runtime word still opens Handover, as in any chat. While another phase or wave of the spec works, a message is not sent, and a notice says why. When the plan stopped at a wave chat - you pressed Stop, or its agent stopped with a box unticked - that chat shows **Resume**. Resume sends "continue" into the chat and carries the plan on from there; any message you type there does the same.
|
|
159
|
+
4. **Open questions.** When a document has questions under `## Open Questions` with no `A:` line, the next phase is blocked and the Doc tab lists them, each with a box. Type the answer and press Enter or Save answer: it is written under the question as an `**A:**` line, and the block lifts.
|
|
158
160
|
5. **Plan commands.** A plan task that is a command, and a plan row's command button, run in this machine's default shell in the spec's folder. A notice says when it starts and how it ended, with the last lines it printed when it failed. A task's exit code ticks its box or not.
|
|
159
|
-
6. **Addresses.**
|
|
160
|
-
7. **Permissions.** A phase's
|
|
161
|
-
8. **
|
|
161
|
+
6. **Addresses.** An open spec tab is in the address (`&spec=<name>`), so a reload opens it again. Old `/sdd?` links go on to the spec's newest phase chat (3.1, point 6).
|
|
162
|
+
7. **Permissions.** A phase chat's box has the same permission level picker as any chat; it is hidden while the agent waits for your answer to a question. The level is kept per runtime, so a level picked in a phase chat is the level every chat on that runtime uses, and the other way round. A permission card from a phase's agent shows in its chat and waits for your answer. "This session" answers belong to that chat.
|
|
163
|
+
8. **Listed with your sessions.** Phase chats are in the session list, folded under their spec (3.2), and in the Spec explorer under their phase. Only SDD starts a phase; a message typed in a phase chat never moves the spec to another phase.
|
|
162
164
|
9. **The fake runtime** (for trying SDD without spending anything): turn on `"fakeRuntime": true` under `features` and pick **fake** as the runtime. It calls no model. It writes sample drafts, asks one question on each first draft, writes a small plan in Tasks, and ticks the tasks it is given in Implementation.
|
|
163
165
|
10. **Plugins.** SDD loads plugins from each workspace folder's `.eesha/plugins`, then from `~/.eesha/plugins`. So `sdd.uses` in settings.json can name a plugin of your repository. If that plugin ships its own page (`ui` in its manifest, for the spec panel or both), the page is a tab after Prompt. The page can ask the plugin for things, keep its own data, and start a phase. Plugins run in their sandbox unless the profile's settings.json says `"debug": true`. A changed plugin is read again when Eesha Code restarts.
|
|
164
166
|
11. **Limits:**
|