Skip to content

Add contextual language intelligence to the Playground - #21

Merged
konojunya merged 2 commits into
mainfrom
agent/playground-language-intelligence
Sep 5, 2026
Merged

Add contextual language intelligence to the Playground#21
konojunya merged 2 commits into
mainfrom
agent/playground-language-intelligence

Conversation

@konojunya

Copy link
Copy Markdown
Member

Summary

  • Pin the published @stack-sh/engine 0.7.0 package and use its WASM completion and hover APIs, including imported provider catalogs.
  • Add keyboard-accessible suggestions, semantic context, inline diagnostic ranges, and debounced diagnostics/preview from versioned source snapshots.
  • Preserve native textarea editing and IME composition; discard stale document/caret results and convert UTF-16 selections to engine positions.
  • Refresh engine-version documentation and generated example metadata.

Validation

  • npm ci --ignore-scripts; npm audit signatures (639 signatures, 232 attestations)
  • npm run format; npm run lint; npm test (29 UI/unit tests and 9 documentation tests)
  • npm run build (52 documentation pages, 11 executable snippets, 9 example thumbnails)
  • npm run cloudflare:check
  • Chrome smoke: contextual keyword and icon suggestions, semantic context, diagnostics and SVG preview

Notes

  • Source processing stays in the browser; no LSP server or source upload is introduced.
  • Vite reports a non-blocking 503 kB main chunk warning (162 kB gzip).
  • Production deployment follows merge; this PR is awaiting review.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 5, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
stack-web ccf5fa4 Commit Preview URL

Branch Preview URL
Sep 05 2026, 03:56 PM

@konojunya

Copy link
Copy Markdown
Member Author

Reviewed the IME behavior against GoogleChrome modern-web-guidance v0.0.186 (ime-safe-enter-submit). Added the recommended Enter-only keyCode 229 fallback for Safari event ordering, retained native isComposing and composition lifecycle guards, and added an associated source label. Regression coverage verifies that native composing Enter and post-composition Safari Enter do not accept a suggestion, while a subsequent ordinary Enter does. Synthetic event tests passed; this is not a claim of real Safari IME testing.

Validation rerun at ccf5fa4: format, lint, 29 UI/unit tests, 9 documentation tests, full build. Cloudflare preview build succeeded.

@konojunya
konojunya merged commit 23e04d2 into main Sep 5, 2026
2 checks passed
@konojunya
konojunya deleted the agent/playground-language-intelligence branch September 5, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant