markstream-vue 0.0.10-beta.0 → 0.0.10-beta.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/.agents/skills/markstream-angular/SKILL.md +34 -0
- package/.agents/skills/markstream-angular/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-custom-components/agents/openai.yaml +3 -3
- package/.agents/skills/markstream-install/agents/openai.yaml +3 -3
- package/.agents/skills/markstream-migration/agents/openai.yaml +2 -2
- package/.agents/skills/markstream-nuxt/SKILL.md +31 -0
- package/.agents/skills/markstream-nuxt/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-react/SKILL.md +33 -0
- package/.agents/skills/markstream-react/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-vue/SKILL.md +32 -0
- package/.agents/skills/markstream-vue/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-vue2/SKILL.md +32 -0
- package/.agents/skills/markstream-vue2/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-vue2-cli/SKILL.md +31 -0
- package/.agents/skills/markstream-vue2-cli/agents/openai.yaml +4 -0
- package/.agents/skills/markstream-vue2-vite/SKILL.md +31 -0
- package/.agents/skills/markstream-vue2-vite/agents/openai.yaml +4 -0
- package/dist/exports.js +1 -0
- package/dist/index.css +1 -2
- package/dist/index.js +1 -1
- package/dist/index.px.css +1 -2
- package/dist/index.tailwind.css +1 -2
- package/dist/index2.js +1 -0
- package/dist/index3.js +1 -0
- package/dist/index4.js +1 -0
- package/dist/index5.js +1 -0
- package/dist/index6.js +1 -0
- package/dist/index7.js +1 -0
- package/dist/languageIconExtended.js +1 -1
- package/dist/tailwind.ts +0 -0
- package/dist/workers/katexRenderer.worker.js +1 -59
- package/dist/workers/mermaidParser.worker.js +1 -62
- package/package.json +4 -4
- package/dist/CodeBlockNode.js +0 -1
- package/dist/D2BlockNode.js +0 -1
- package/dist/InfographicBlockNode.js +0 -1
- package/dist/MathBlockNode.js +0 -1
- package/dist/MathInlineNode.js +0 -1
- package/dist/MermaidBlockNode.js +0 -1
- package/dist/_plugin-vue_export-helper.js +0 -1
- package/dist/d2.js +0 -1
- package/dist/katexWorkerClient.js +0 -1
- package/dist/mermaidWorkerClient.js +0 -1
- package/dist/objectSpread2.js +0 -1
- package/dist/safeRaf.js +0 -1
- package/dist/useSafeI18n.js +0 -1
- package/dist/utils.js +0 -1
- package/dist/viewportPriority.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-angular
|
|
3
|
+
description: Integrate markstream-angular into an Angular app. Use when Codex needs standalone component imports, signal-based examples, CSS wiring, custom HTML tags or customComponents setup, or optional peer integration in an Angular repository.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Angular
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is Angular and the task is to adopt the Angular package cleanly.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is Angular.
|
|
13
|
+
2. Install `markstream-angular` plus only the requested optional peers.
|
|
14
|
+
3. Import `markstream-angular/index.css` from the app shell.
|
|
15
|
+
- Add `katex/dist/katex.min.css` when math is enabled.
|
|
16
|
+
4. Prefer standalone Angular integration.
|
|
17
|
+
- Use `MarkstreamAngularComponent` in `imports` and keep examples signal-friendly.
|
|
18
|
+
5. Start with `[content]`.
|
|
19
|
+
- Use `[final]`, `[codeBlockStream]`, and other streaming inputs only when the UI actually streams.
|
|
20
|
+
6. Use `[customHtmlTags]` and `[customComponents]` for trusted tag workflows.
|
|
21
|
+
7. Validate with the smallest useful Angular dev or build command.
|
|
22
|
+
|
|
23
|
+
## Default Decisions
|
|
24
|
+
|
|
25
|
+
- Standalone Angular first, NgModule-era patterns only when the repo still depends on them.
|
|
26
|
+
- Treat streaming flags as opt-in.
|
|
27
|
+
- Keep optional peers minimal and explicit.
|
|
28
|
+
|
|
29
|
+
## Useful Doc Targets
|
|
30
|
+
|
|
31
|
+
- `docs/guide/angular-quick-start.md`
|
|
32
|
+
- `docs/guide/angular-installation.md`
|
|
33
|
+
- `docs/guide/playground.md`
|
|
34
|
+
- `docs/guide/troubleshooting.md`
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: Markstream Angular
|
|
3
|
+
short_description: Install and wire markstream-angular in Angular apps
|
|
4
|
+
default_prompt: 'Use $markstream-angular to integrate markstream-angular into this Angular repository with the right CSS, optional peers, and standalone setup.'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: Markstream Custom Components
|
|
3
|
+
short_description: Override Markstream nodes and add trusted custom tags
|
|
4
|
+
default_prompt: Use $markstream-custom-components to add scoped Markstream overrides or trusted custom tags in this repository.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: Markstream Install
|
|
3
|
+
short_description: Install markstream with the right peers and CSS order
|
|
4
|
+
default_prompt: Use $markstream-install to add the correct Markstream package to this repository with the smallest peer-dependency set.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
2
|
+
display_name: Markstream Migration
|
|
3
|
+
short_description: Audit and migrate existing Markdown rendering to Markstream
|
|
4
4
|
default_prompt: "Use $markstream-migration to audit this repository's current Markdown renderer and migrate it to the appropriate Markstream package."
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-nuxt
|
|
3
|
+
description: Integrate markstream-vue into a Nuxt 3 or Nuxt 4 app. Use when Codex needs client-only boundaries, SSR-safe setup, browser-only peer gating, worker-aware initialization, or a safe `MarkdownRender` integration inside pages, components, or Nuxt plugins.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Nuxt
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is Nuxt and SSR boundaries matter.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is Nuxt 3 or 4.
|
|
13
|
+
2. Install `markstream-vue` plus only the optional peers required by the requested features.
|
|
14
|
+
3. Keep browser-only peers behind client-only boundaries.
|
|
15
|
+
- Prefer `<client-only>` wrappers, `.client` plugins, or guarded setup paths.
|
|
16
|
+
4. Import `markstream-vue/index.css` from a client-safe app shell or plugin.
|
|
17
|
+
5. Start with `content`, and move to `nodes` plus `final` only when the UI is streaming.
|
|
18
|
+
6. Validate with the smallest relevant Nuxt dev, build, or typecheck command.
|
|
19
|
+
|
|
20
|
+
## Default Decisions
|
|
21
|
+
|
|
22
|
+
- SSR safety comes before feature completeness.
|
|
23
|
+
- Avoid import-time access to browser globals from server code paths.
|
|
24
|
+
- Treat Monaco, Mermaid workers, and similar heavy peers as client-only unless the repo already has a proven SSR pattern.
|
|
25
|
+
|
|
26
|
+
## Useful Doc Targets
|
|
27
|
+
|
|
28
|
+
- `docs/nuxt-ssr.md`
|
|
29
|
+
- `docs/guide/installation.md`
|
|
30
|
+
- `docs/guide/usage.md`
|
|
31
|
+
- `docs/guide/troubleshooting.md`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-react
|
|
3
|
+
description: Integrate markstream-react into a React 18+ or Next app. Use when Codex needs to add the React renderer, import CSS correctly, choose between `content` and `nodes`, keep Next client boundaries safe, convert renderer overrides, or prepare a repo for `react-markdown` migration.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream React
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is React or Next and the task is to wire Markstream safely.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is React, Next, or another React-based host.
|
|
13
|
+
2. Install `markstream-react` plus only the requested optional peers.
|
|
14
|
+
3. Import `markstream-react/index.css` from the app shell or client entry.
|
|
15
|
+
4. Start with `content`.
|
|
16
|
+
- Move to `nodes` plus `final` only when the UI receives streaming or high-frequency updates.
|
|
17
|
+
5. Respect SSR boundaries in Next.
|
|
18
|
+
- Prefer `use client`, dynamic imports with `ssr: false`, or other client-only boundaries when browser-only peers are involved.
|
|
19
|
+
6. Use scoped Markstream overrides before custom parser work.
|
|
20
|
+
7. Validate with the smallest useful dev, build, or typecheck command.
|
|
21
|
+
|
|
22
|
+
## Default Decisions
|
|
23
|
+
|
|
24
|
+
- Renderer wiring first, migration cleanup second.
|
|
25
|
+
- If the repo already uses `react-markdown`, pair this skill with `markstream-migration`.
|
|
26
|
+
- Prefer the smallest client-only boundary that solves the SSR issue.
|
|
27
|
+
|
|
28
|
+
## Useful Doc Targets
|
|
29
|
+
|
|
30
|
+
- `docs/guide/react-quick-start.md`
|
|
31
|
+
- `docs/guide/react-installation.md`
|
|
32
|
+
- `docs/guide/react-markdown-migration.md`
|
|
33
|
+
- `docs/guide/component-overrides.md`
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: Markstream React
|
|
3
|
+
short_description: Install and wire markstream-react in React or Next
|
|
4
|
+
default_prompt: Use $markstream-react to integrate markstream-react into this React or Next repository with safe client boundaries and the right optional peers.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-vue
|
|
3
|
+
description: Integrate markstream-vue into a Vue 3 app. Use when Codex needs to add the Vue 3 renderer, import CSS in the right order, choose between `content` and `nodes`, enable optional peers like Mermaid, KaTeX, D2, Monaco, or Shiki, or wire scoped custom components in a non-Nuxt Vue repository.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Vue 3
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is plain Vue 3, typically Vite-based, and not Nuxt.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is Vue 3 and not Nuxt.
|
|
13
|
+
2. Install `markstream-vue` plus only the optional peers required by the requested features.
|
|
14
|
+
3. Import `markstream-vue/index.css` after resets.
|
|
15
|
+
- In Tailwind or UnoCSS projects, keep Markstream styles inside `@layer components`.
|
|
16
|
+
4. Start with `<MarkdownRender :content="markdown" />`.
|
|
17
|
+
- Switch to `nodes` plus `final` only for streaming, SSE, or high-frequency updates.
|
|
18
|
+
5. Use `custom-id` plus scoped `setCustomComponents(...)` for overrides.
|
|
19
|
+
6. Validate with the smallest useful dev, build, or typecheck command.
|
|
20
|
+
|
|
21
|
+
## Default Decisions
|
|
22
|
+
|
|
23
|
+
- Vue 3 apps default to `content`.
|
|
24
|
+
- Prefer local component registration unless the repo already uses a shared plugin entry.
|
|
25
|
+
- If the host is actually Nuxt, leave SSR-specific setup to `markstream-nuxt`.
|
|
26
|
+
|
|
27
|
+
## Useful Doc Targets
|
|
28
|
+
|
|
29
|
+
- `docs/guide/quick-start.md`
|
|
30
|
+
- `docs/guide/installation.md`
|
|
31
|
+
- `docs/guide/usage.md`
|
|
32
|
+
- `docs/guide/component-overrides.md`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-vue2
|
|
3
|
+
description: Integrate markstream-vue2 into a Vue 2.6 or 2.7 app. Use when Codex needs Vue 2-compatible setup, `@vue/composition-api` decisions, CSS wiring, optional peer setup, or scoped Markstream overrides in a Vue 2 repository that is not specifically Vue CLI / Webpack 4 constrained.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Vue 2
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is Vue 2 and not specifically a Vue CLI / Webpack 4 edge case.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is Vue 2.6 or 2.7.
|
|
13
|
+
2. Install `markstream-vue2`.
|
|
14
|
+
- Add `@vue/composition-api` only when the repo is Vue 2.6 and uses Composition API patterns.
|
|
15
|
+
3. Import `markstream-vue2/index.css` after resets.
|
|
16
|
+
4. Start with `<MarkdownRender :content="markdown" />`.
|
|
17
|
+
5. Use scoped custom component mappings when the task needs overrides or trusted tags.
|
|
18
|
+
6. Validate with the smallest useful dev or build command.
|
|
19
|
+
|
|
20
|
+
## Default Decisions
|
|
21
|
+
|
|
22
|
+
- Vue 2.7 can use built-in Composition API support.
|
|
23
|
+
- Vue 2.6 needs `@vue/composition-api` only when the codebase actually relies on Composition API.
|
|
24
|
+
- If the repo is Vue CLI / Webpack 4, prefer `markstream-vue2-cli`.
|
|
25
|
+
- If the repo is Vue 2 plus Vite worker imports, prefer `markstream-vue2-vite`.
|
|
26
|
+
|
|
27
|
+
## Useful Doc Targets
|
|
28
|
+
|
|
29
|
+
- `docs/guide/vue2-quick-start.md`
|
|
30
|
+
- `docs/guide/vue2-installation.md`
|
|
31
|
+
- `docs/guide/vue2-components.md`
|
|
32
|
+
- `docs/guide/troubleshooting.md`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-vue2-cli
|
|
3
|
+
description: Integrate markstream-vue2 into a Vue 2 Vue CLI or Webpack 4 app. Use when Codex needs Webpack 4-friendly setup, CDN worker fallbacks for Mermaid or KaTeX, `dist/index.css` imports, Vue 2 composition-api shims, or safer code block defaults that avoid fragile Monaco worker setups.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Vue 2 CLI
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is Vue 2 on Vue CLI or another Webpack 4-style stack.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo uses Vue 2 plus Vue CLI or Webpack 4-era tooling.
|
|
13
|
+
2. Install `markstream-vue2` and only the peers required for the requested features.
|
|
14
|
+
3. Import `markstream-vue2/dist/index.css` in the app shell.
|
|
15
|
+
4. Avoid Vite-style `?worker` imports.
|
|
16
|
+
- Use `createKaTeXWorkerFromCDN(...)` and `createMermaidWorkerFromCDN(...)` when workers are needed.
|
|
17
|
+
5. Prefer stable code block defaults over brittle Monaco wiring.
|
|
18
|
+
- `MarkdownCodeBlockNode` plus `stream-markdown` is safer than Monaco in Webpack 4-era repos.
|
|
19
|
+
6. Validate with the smallest useful local dev or build command.
|
|
20
|
+
|
|
21
|
+
## Default Decisions
|
|
22
|
+
|
|
23
|
+
- Treat Monaco and worker-heavy setups as opt-in and fragile on Webpack 4.
|
|
24
|
+
- Prefer CDN workers over bundler workers for Mermaid and KaTeX.
|
|
25
|
+
- Keep the Vue 2 composition-api shim explicit when the repo is on Vue 2.6.
|
|
26
|
+
|
|
27
|
+
## Useful Doc Targets
|
|
28
|
+
|
|
29
|
+
- `docs/guide/vue2-quick-start.md`
|
|
30
|
+
- `docs/guide/vue2-installation.md`
|
|
31
|
+
- `docs/guide/troubleshooting.md`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markstream-vue2-vite
|
|
3
|
+
description: Integrate markstream-vue2 into a Vue 2 plus Vite app. Use when Codex needs Vite-friendly worker imports, `?worker` or `?worker&inline` setup for Mermaid or KaTeX, modern CSS ordering, or Vue 2 compatibility in a Vite-based repository.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Markstream Vue 2 Vite
|
|
7
|
+
|
|
8
|
+
Use this skill when the host app is Vue 2 and the bundler is Vite.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the repo is Vue 2 with Vite-based tooling.
|
|
13
|
+
2. Install `markstream-vue2` plus only the requested optional peers.
|
|
14
|
+
3. Import `markstream-vue2/index.css` after resets.
|
|
15
|
+
4. Use Vite worker imports when the repo needs bundled workers.
|
|
16
|
+
- `markstream-vue2/workers/... ?worker` or `?worker&inline` patterns are allowed here.
|
|
17
|
+
5. Keep Composition API decisions explicit for Vue 2.6 repos.
|
|
18
|
+
6. Validate with the smallest useful Vite dev or build command.
|
|
19
|
+
|
|
20
|
+
## Default Decisions
|
|
21
|
+
|
|
22
|
+
- Prefer bundled workers over CDN workers in Vite-based Vue 2 repos.
|
|
23
|
+
- Keep UnoCSS or Tailwind resets before Markstream CSS.
|
|
24
|
+
- Use the generic `markstream-vue2` skill only when the bundler-specific choice does not matter.
|
|
25
|
+
|
|
26
|
+
## Useful Doc Targets
|
|
27
|
+
|
|
28
|
+
- `docs/guide/vue2-quick-start.md`
|
|
29
|
+
- `docs/guide/vue2-installation.md`
|
|
30
|
+
- `docs/guide/tailwind.md`
|
|
31
|
+
- `docs/guide/troubleshooting.md`
|