ompchamber 3.0.0 → 3.1.0
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 +24 -5
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +333 -333
- package/dist/client/static/js/{index-prbmx3yj.js → index-8t70jhyj.js} +643 -617
- package/dist/client/static/js/index-n4wkqj7t.css +1 -0
- package/package.json +1 -1
- package/src/client/components/common/code-editor/handler.test.ts +274 -0
- package/src/client/components/common/code-editor/handler.ts +175 -0
- package/src/client/components/common/code-editor/index.tsx +185 -220
- package/src/client/components/common/code-surface/index.tsx +109 -12
- package/src/client/components/common/lazy-panels.tsx +5 -1
- package/src/client/components/common/viewport.ts +5 -3
- package/src/client/components/layout/RightActivityBar.tsx +2 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +21 -4
- package/src/client/components/layout/desktop-layout/index.tsx +24 -4
- package/src/client/components/mobile/RightSidebar.tsx +11 -4
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +1 -10
- package/src/client/components/workspace/browser-panel/Screencast.tsx +4 -5
- package/src/client/components/workspace/browser-panel/index.tsx +6 -6
- package/src/client/components/workspace/browser-toolbar/index.tsx +22 -12
- package/src/client/components/workspace/chat-timeline/ToolCallCard.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/editor/CommandPalette.test.ts +242 -0
- package/src/client/components/workspace/editor/CommandPalette.tsx +138 -0
- package/src/client/components/workspace/editor/FindWidget.test.ts +261 -0
- package/src/client/components/workspace/editor/FindWidget.tsx +219 -0
- package/src/client/components/workspace/editor/Toolbar.tsx +19 -1
- package/src/client/components/workspace/editor/index.tsx +153 -53
- package/src/client/components/workspace/file-explorer/Modals.tsx +79 -2
- package/src/client/components/workspace/file-explorer/TreeItem.tsx +43 -113
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +76 -0
- package/src/client/components/workspace/todo-panel/Row.tsx +69 -0
- package/src/client/components/workspace/todo-panel/index.tsx +161 -0
- package/src/client/hooks/editor/find-harness.test-util.ts +170 -0
- package/src/client/hooks/editor/scroll-container.test.ts +102 -0
- package/src/client/hooks/editor/scroll-container.ts +26 -0
- package/src/client/hooks/editor/use-code-window.ts +2 -20
- package/src/client/hooks/editor/use-editor-find-write.test.ts +170 -0
- package/src/client/hooks/editor/use-editor-find.test.ts +118 -0
- package/src/client/hooks/editor/use-editor-find.ts +321 -0
- package/src/client/hooks/editor/use-editor-history.test.ts +216 -0
- package/src/client/hooks/editor/use-editor-history.ts +134 -0
- package/src/client/hooks/editor/use-occurrences.test.ts +236 -0
- package/src/client/hooks/editor/use-occurrences.ts +98 -0
- package/src/client/hooks/workspace/file-tree-actions.test.ts +348 -0
- package/src/client/hooks/workspace/file-tree-actions.ts +250 -0
- package/src/client/hooks/workspace/session-todos.ts +102 -0
- package/src/client/tailwind.css +30 -0
- package/src/server/lib/omp/session/todos.ts +100 -0
- package/src/server/routes/fs/action-create.test.ts +90 -0
- package/src/server/routes/fs/action.ts +23 -0
- package/src/server/routes/omp/index.ts +2 -0
- package/src/server/routes/omp/session-todos.ts +80 -0
- package/src/shared/lib/chat/{todo-parser.ts → todo/parser.ts} +17 -0
- package/src/shared/lib/chat/todo/progress.ts +97 -0
- package/src/shared/lib/chat/todo/snapshot.test.ts +156 -0
- package/src/shared/lib/chat/todo/snapshot.ts +215 -0
- package/src/shared/lib/code/editor/commands.test.ts +155 -0
- package/src/shared/lib/code/editor/commands.ts +260 -0
- package/src/shared/lib/code/editor/edits.test.ts +100 -0
- package/src/shared/lib/code/editor/edits.ts +122 -0
- package/src/shared/lib/code/editor/find-status.test.ts +50 -0
- package/src/shared/lib/code/editor/find-status.ts +36 -0
- package/src/shared/lib/code/editor/find.test.ts +203 -0
- package/src/shared/lib/code/editor/find.ts +224 -0
- package/src/{client/components/common/code-editor → shared/lib/code/editor}/history.test.ts +1 -1
- package/src/shared/lib/code/editor/keymap.test.ts +109 -0
- package/src/shared/lib/code/editor/keymap.ts +151 -0
- package/src/shared/lib/code/editor/layers.test.ts +77 -0
- package/src/shared/lib/code/editor/layers.ts +67 -0
- package/src/shared/lib/code/editor/line-edits.test.ts +131 -0
- package/src/shared/lib/code/editor/line-edits.ts +159 -0
- package/src/shared/lib/code/editor/lines.test.ts +81 -0
- package/src/shared/lib/code/editor/lines.ts +83 -0
- package/src/shared/lib/code/editor/marks.test.ts +86 -0
- package/src/shared/lib/code/editor/marks.ts +106 -0
- package/src/shared/lib/code/editor/occurrences.test.ts +117 -0
- package/src/shared/lib/code/editor/occurrences.ts +111 -0
- package/src/shared/lib/code/editor/palette.test.ts +91 -0
- package/src/shared/lib/code/editor/palette.ts +92 -0
- package/src/shared/lib/code/editor/reset-css.test.ts +35 -0
- package/src/shared/lib/code/editor/reset-css.ts +32 -0
- package/src/shared/lib/code/editor/text-commands.test.ts +178 -0
- package/src/shared/lib/code/editor/text-commands.ts +154 -0
- package/src/shared/lib/code/syntax-highlight.test.ts +75 -0
- package/src/shared/lib/code/syntax-highlight.ts +29 -17
- package/src/shared/lib/code/windowed-highlight.ts +52 -1
- package/src/shared/lib/ui/key-binding.test.ts +115 -0
- package/src/shared/lib/ui/key-binding.ts +143 -0
- package/src/shared/lib/util/platform.test.ts +87 -0
- package/src/shared/lib/util/platform.ts +30 -0
- package/src/shared/lib/workspace/keymap.test.ts +82 -0
- package/src/shared/lib/workspace/keymap.ts +30 -0
- package/src/shared/lib/workspace/refresh-cadence.ts +9 -0
- package/src/shared/lib/workspace/right-panels.ts +8 -0
- package/src/shared/lib/workspace/session-state/store.ts +0 -1
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/todo.ts +108 -0
- package/dist/client/static/js/index-ranztes9.css +0 -1
- /package/src/{client/components/common/code-editor → shared/lib/code/editor}/history.ts +0 -0
package/README.md
CHANGED
|
@@ -280,18 +280,37 @@ A push to `main` cuts the release — there is no manual version bump
|
|
|
280
280
|
|
|
281
281
|
1. `semantic-release` reads the Conventional Commits since the last tag, decides the next
|
|
282
282
|
version, writes it into `package.json` and a `## [x.y.z]` section of `CHANGELOG.md`, commits
|
|
283
|
-
both, then creates the tag and the GitHub Release.
|
|
284
|
-
and `revert` can move a version (`bumpStrict` in [`release.config.mjs`](release.config.mjs));
|
|
285
|
-
`chore`, `style`, `test`, `build` and `ci` are hidden and bump nothing on their own.
|
|
283
|
+
both, then creates the tag and the GitHub Release.
|
|
286
284
|
2. The same run dispatches [`publish.yml`](.github/workflows/publish.yml), which checks out the tag,
|
|
287
285
|
verifies it against `package.json`, typechecks, runs `bun test`, builds `dist/client`, packs a
|
|
288
|
-
dry run, and runs `bun publish
|
|
286
|
+
dry run, and runs `bun publish`.
|
|
287
|
+
|
|
288
|
+
What a commit does to the version is one table, in
|
|
289
|
+
[`release/release-rules.js`](release/release-rules.js), and `release/bump.test.js` asserts it:
|
|
290
|
+
|
|
291
|
+
| Commit | Version |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| `feat` | minor |
|
|
294
|
+
| `fix`, `perf`, `revert` | patch |
|
|
295
|
+
| `feat!` / `fix!` / `perf!` / `refactor!`, or a `BREAKING CHANGE:` footer | major |
|
|
296
|
+
| `docs`, `refactor`, `chore`, `style`, `test`, `build`, `ci` | no release |
|
|
297
|
+
|
|
298
|
+
Two of those rows exist because the toolchain's own defaults are wrong here: a `!` on a type that
|
|
299
|
+
cannot carry a breaking change (`chore!`, `docs!`, an unknown `foo!`) used to cut a major version
|
|
300
|
+
through the analyzer's built-in `{ breaking: true }` fallback, and the parser's note regex is
|
|
301
|
+
case-insensitive, so any body line starting with `breaking change` — colon optional — counted as a
|
|
302
|
+
breaking note. The second one is not hypothetical: a `docs` commit whose body wrapped onto
|
|
303
|
+
`breaking-change (!) footer` cut **v1.0.0** where the `feat`s in the range asked for v0.9.0, and the
|
|
304
|
+
changelog printed that prose as its breaking note. Both are fixed in `release/release-rules.js`, and
|
|
305
|
+
both are locked by `release/bump.test.js`.
|
|
306
|
+
|
|
307
|
+
A `BREAKING CHANGE:` footer is therefore read only in uppercase, and only where the type allows it.
|
|
289
308
|
|
|
290
309
|
Two things to set up once and one to never do:
|
|
291
310
|
|
|
292
311
|
- GitHub environment **`npm`** with a secret `NPM_TOKEN`: a granular npm token with read/write on
|
|
293
312
|
`ompchamber`, 2FA bypass enabled and the `publish and stage` action (a stage-only token is
|
|
294
|
-
rejected — Bun has no `npm stage publish`).
|
|
313
|
+
rejected — Bun has no `npm stage publish`).
|
|
295
314
|
- A failed publish is retried with `gh workflow run publish.yml -f tag=vX.Y.Z`, which leaves the
|
|
296
315
|
release itself untouched.
|
|
297
316
|
- **Never** write a skip marker (`[skip ci]`, `[ci skip]`, `[no ci]`) into a message pushed to
|
package/dist/client/index.html
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
|
|
34
34
|
/>
|
|
35
35
|
<!--app-head-->
|
|
36
|
-
<link rel="stylesheet" crossorigin href="./static/js/index-
|
|
36
|
+
<link rel="stylesheet" crossorigin href="./static/js/index-n4wkqj7t.css"><script type="module" crossorigin src="./static/js/index-8t70jhyj.js"></script></head>
|
|
37
37
|
<body>
|
|
38
38
|
<div id="app"></div>
|
|
39
39
|
<!--app-bootstrap-->
|