Skip to content

Feat/cusotm rules improvements#25

Merged
apzuk3 merged 5 commits intomainfrom
feat/cusotm-rules-improvements
Mar 27, 2026
Merged

Feat/cusotm rules improvements#25
apzuk3 merged 5 commits intomainfrom
feat/cusotm-rules-improvements

Conversation

@apzuk3
Copy link
Copy Markdown
Contributor

@apzuk3 apzuk3 commented Mar 26, 2026

No description provided.

apzuk3 added 5 commits March 24, 2026 07:33
Expose nested context.usage.metadata and context.usage.insights so rule logic reads naturally and metrics are clearly scoped. Expand the in-editor type docs and starter examples to make the API easier to discover and use.
…ction arguments

- Deprecate parameterized `classify(usage)` and `enforcement(usage)`
- Make user-facing rule functions argument-free
- Inject `usage` explicitly into `runtime.usage` inside V8 sandbox
- Expose `runtime` in TypeScript declarations with `usage` typing
- Add JSDoc hover documentation for metrics in Monaco editor
- Switch ambiguous fields to explicit `focusScore`, `productiveMinutes`, and `distractingMinutes`
- Replace plain `<pre>` docs snippets with read-only Monaco `<CodeBlock>` for rich highlighting and hover support
- Update internal backend tests and starter template to match new API
@apzuk3 apzuk3 temporarily deployed to Production release March 26, 2026 20:01 — with GitHub Actions Inactive
@apzuk3 apzuk3 merged commit d5bfdca into main Mar 27, 2026
1 check passed
@apzuk3 apzuk3 deleted the feat/cusotm-rules-improvements branch March 27, 2026 08:43
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