Skip to content

feat: add api-breaking-change-detector kit - #309

Open
porus19 wants to merge 5 commits into
Lamatic:mainfrom
porus19:feat/api-breaking-change-detector
Open

feat: add api-breaking-change-detector kit#309
porus19 wants to merge 5 commits into
Lamatic:mainfrom
porus19:feat/api-breaking-change-detector

Conversation

@porus19

@porus19 porus19 commented Jul 31, 2026

Copy link
Copy Markdown

PR Checklist

1. Select Contribution Type

  • Kit (kits/<category>/<kit-name>/)
  • Bundle (bundles/<bundle-name>/)
  • Template (templates/<template-name>/)

2. General Requirements

  • PR is for one project only (no unrelated changes)
  • No secrets, API keys, or real credentials are committed
  • Folder name uses kebab-case and matches the flow ID
  • All changes are documented in README.md (purpose, setup, usage)

3. File Structure (Check what applies)

  • config.json present with valid metadata (name, description, tags, steps, author, env keys)
  • All flows in flows/<flow-name>/ (where applicable) include:
    • config.json (Lamatic flow export)
    • inputs.json
    • meta.json
    • README.md
  • .env.example with placeholder values only (kits only)
  • No hand‑edited flow config.json node graphs (changes via Lamatic Studio export)

4. Validation

  • npm install && npm run dev works locally (kits: UI runs; bundles/templates: flows are valid)
  • PR title is clear (e.g., [kit] Add <name> for <use case>)
  • GitHub Actions workflows pass (all checks are green)
  • All CodeRabbit or other PR review comments are addressed and resolved
  • No unrelated files or projects are modified
  • Added the api-breaking-change-detector AgentKit under kits/api-breaking-change-detector/.
  • Added kit metadata in lamatic.config.ts.
  • Added the default constitution in constitutions/default.md.
  • Added the agentic-generate-content flow with:
    • Text generation.
    • JSON generation and parsing.
    • Image generation.
    • Invalid-mode handling.
    • Branch routing and result finalisation.
    • API response output through answer.
  • Added model configurations for text, JSON, and image generation.
  • Added system and user prompts for text, JSON, and image generation.
  • Added the Next.js application in apps/, including:
    • Content-generation page.
    • Server-side orchestration action.
    • Lamatic client configuration.
    • Environment placeholders.
    • Next.js, TypeScript, Tailwind, PostCSS, and package configuration.
    • Shared hooks, utilities, theme support, and layout.
    • Reusable Radix, shadcn/ui, form, chart, navigation, feedback, and layout components.
  • Added README documentation for kit setup, environment variables, local development, deployment, repository structure, and contribution guidance.
  • Added .gitignore rules for generated files, dependencies, build output, and local environment files.
  • Replaced Studio-incompatible @scripts references with relative paths.
  • Removed the duplicate content-generation directory and the extra root-level package-lock.json.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Your mission, should you choose to accept it: this PR adds a Lamatic content-generation kit, a Next.js app that calls the flow, a large reusable UI component set, environment and runtime configuration, and documentation for setup, execution, and troubleshooting.

Changes

Agent kit generation scaffold

Layer / File(s) Summary
Flow definition and kit docs
kits/api-breaking-change-detector/README.md, kits/api-breaking-change-detector/agent.md, kits/api-breaking-change-detector/flows/*, kits/api-breaking-change-detector/model-configs/*, kits/api-breaking-change-detector/prompts/*, kits/api-breaking-change-detector/constitutions/default.md, kits/api-breaking-change-detector/lamatic.config.ts, kits/api-breaking-change-detector/.gitignore
Adds the Lamatic kit definition for agentic-generate-content, its prompt and model references, constitution, kit metadata, and root documentation for setup and operation.
App runtime and Lamatic wiring
kits/api-breaking-change-detector/apps/.env.example, kits/api-breaking-change-detector/apps/orchestrate.js, kits/api-breaking-change-detector/apps/actions/orchestrate.ts, kits/api-breaking-change-detector/apps/lib/*, kits/api-breaking-change-detector/apps/package.json, kits/api-breaking-change-detector/apps/*.mjs, kits/api-breaking-change-detector/apps/tsconfig.json, kits/api-breaking-change-detector/apps/README.md, kits/api-breaking-change-detector/apps/.gitignore, kits/api-breaking-change-detector/apps/components.json
Adds app configuration, environment placeholders, Lamatic client initialization, workflow config, and the server action that maps mode and instructions to a workflow execution request.
Form and feedback primitives
kits/api-breaking-change-detector/apps/components/ui/{button,input,textarea,select,radio-group,checkbox,label,separator,field,form,input-group,input-otp,alert,badge,card,progress,skeleton,spinner,switch,toggle,toggle-group,toast,toaster,sonner,use-mobile,use-toast}.tsx, kits/api-breaking-change-detector/apps/hooks/*
Adds shared form controls, layout helpers, toast state and renderers, loading indicators, and local hooks used by the app UI layer.
App shell and generation page
kits/api-breaking-change-detector/apps/app/*, kits/api-breaking-change-detector/apps/components/header.tsx, kits/api-breaking-change-detector/apps/components/theme-provider.tsx
Adds global theme and layout setup, the header, and the client page that validates instructions, submits generation requests, and renders text, JSON, or image results with copy and reset actions.
Navigation, overlay, and display primitives
kits/api-breaking-change-detector/apps/components/ui/{accordion,alert-dialog,aspect-ratio,avatar,breadcrumb,button-group,calendar,carousel,chart,collapsible,command,context-menu,dialog,drawer,dropdown-menu,empty,hover-card,item,kbd,menubar,navigation-menu,pagination,popover,resizable,scroll-area,sheet,sidebar,table,tabs,tooltip}.tsx
Adds reusable navigation, overlay, menu, sidebar, chart, carousel, container, and display primitives to the app component library.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.45% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description reproduces the checklist but leaves every required item unchecked and provides no project-specific validation or completion details. Complete the checklist and add project-specific details for contribution type, structure, documentation, validation, reviews, and repository hygiene.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the addition of the api-breaking-change-detector kit.
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch feat/api-breaking-change-detector
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

:robot_face: AgentKit Structural Validation

New Contributions Detected

  • Kit: kits/api-breaking-change-detector

Check Results

Check Status
No edits to existing kits ✅ Pass
Required root files present ✅ Pass
Flow .ts files present ✅ Pass
lamatic.config.ts valid ✅ Pass
No changes outside kits/ ✅ Pass

⚠️ Warnings

  • lamatic.config.ts in kits/api-breaking-change-detector — links.github should point to kits/api-breaking-change-detector

🎉 All checks passed! This contribution follows the AgentKit structure.

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai review

@akshatvirmani

Copy link
Copy Markdown
Contributor

/validate

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Studio Runtime Validation (Phase 2)

Studio validation passed. The kit loaded successfully in Lamatic Studio.

This PR is ready for final review and merge.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

2 similar comments
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai review

@akshatvirmani akshatvirmani added the tier-3 Pass label Aug 10, 2026
@akshatvirmani

Copy link
Copy Markdown
Contributor

@porus19 there is a file outside the kit folder. Please resolve that

@porus19

porus19 commented Aug 10, 2026

Copy link
Copy Markdown
Author

@porus19 there is a file outside the kit folder. Please resolve that

@akshatvirmani Fixed! Removed the extra package-lock.json from the root directory. Thanks for catching that!

@akshatvirmani

Copy link
Copy Markdown
Contributor

/validate

@github-actions

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@akshatvirmani

Copy link
Copy Markdown
Contributor

@porus19 looks good now. One thing it feels like the files are duplicated? Like I can see two flows folder etc

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai review

@porus19

porus19 commented Aug 12, 2026

Copy link
Copy Markdown
Author

@porus19 looks good now. One thing it feels like the files are duplicated? Like I can see two flows folder etc

@akshatvirmani Fixed! Removed the duplicated content-generation subfolder and consolidated the entire kit structure directly under kits/api-breaking-change-detector/. Thanks for catching that!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 26

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
kits/api-breaking-change-detector/apps/components/ui/use-toast.ts (1)

1-192: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Duplicated hook modules under apps/components/ui/ and apps/hooks/. The shadcn/ui scaffold emitted each hook into two directories, and both copies were committed. use-toast is the dangerous one: each copy owns a private memoryState, listeners, and toastTimeouts, so the two stores never synchronise and Toaster observes only the @/hooks/use-toast copy.

  • kits/api-breaking-change-detector/apps/components/ui/use-toast.ts#L1-L192: delete this file and keep kits/api-breaking-change-detector/apps/hooks/use-toast.ts as the single toast store.
  • kits/api-breaking-change-detector/apps/components/ui/use-mobile.tsx#L1-L19: delete this file and keep kits/api-breaking-change-detector/apps/hooks/use-mobile.ts; repoint any consumer such as kits/api-breaking-change-detector/apps/components/ui/sidebar.tsx to @/hooks/use-mobile.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/components/ui/use-toast.ts` around
lines 1 - 192, Remove the duplicate use-toast module at
kits/api-breaking-change-detector/apps/components/ui/use-toast.ts and retain
kits/api-breaking-change-detector/apps/hooks/use-toast.ts as the sole toast
store. Also remove
kits/api-breaking-change-detector/apps/components/ui/use-mobile.tsx, keep the
hooks/use-mobile.ts implementation, and update consumers such as sidebar.tsx to
import use-mobile from `@/hooks/use-mobile`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/api-breaking-change-detector/apps/.gitignore`:
- Around line 19-21: Update the environment-file rules in the gitignore so all
.env-prefixed local files, including .env.local, are ignored, while explicitly
re-including .env.example for version-controlled configuration guidance.

In `@kits/api-breaking-change-detector/apps/actions/orchestrate.ts`:
- Line 17: Remove request instructions and generated content from the console
logging in the orchestration flow around the lines 17 and 52 log statements.
Retain only non-sensitive metadata such as inputType, request ID, and output
status, without logging request or response bodies.
- Around line 55-58: Update the answer validation near the answer extraction to
reject only an absent value, not valid falsy JSON results such as false, 0, or
an empty string. Preserve the existing “No answer found in response” error for
missing answers while allowing all present values, including null if it is
explicitly returned.
- Around line 8-10: The kit currently generates generic content instead of
detecting API breaking changes. In
kits/api-breaking-change-detector/apps/actions/orchestrate.ts lines 8-10, update
generateContent to accept and validate baseline and candidate API specifications
or an equivalent explicit comparison input; revise
kits/api-breaking-change-detector/prompts/agentic-generate-content_generate-image_user.md
lines 1-1 and generate-image-system.md lines 1-1 to remove the image path or
define detector behavior; update the JSON and text user prompts at lines 1-1 to
provide comparison artifacts and request findings; define the breaking-change
schema and rules in json-system.md lines 1-1 and compatibility rules and
required report sections in text-system.md lines 1-1.

In `@kits/api-breaking-change-detector/apps/app/globals.css`:
- Around line 21-22: Update the --destructive-foreground theme variable in the
global CSS declarations to use a contrasting light color instead of duplicating
--destructive, while leaving the destructive background variable unchanged.

In `@kits/api-breaking-change-detector/apps/app/layout.tsx`:
- Around line 38-42: Update the root layout around the existing html/body
structure to mount the existing ThemeProvider around the application content,
including children and Analytics, so the dark-mode contract can activate.
Preserve the current body classes and document structure while using the
provider already available in the project.

In `@kits/api-breaking-change-detector/apps/app/page.tsx`:
- Around line 129-141: Add id="inputType" to the SelectTrigger associated with
the Input Type label, ensuring the label’s htmlFor target matches the select
control.
- Around line 15-23: Replace the generic GenerationPage flow, including
InputType, mode/instructions state, and generic result handling, with
detector-specific inputs and breaking-change report results wired through
actions/orchestrate.ts and the flow contract. In
kits/api-breaking-change-detector/apps/components/header.tsx, rename the
Generator branding to the API breaking-change detector branding. In
kits/api-breaking-change-detector/apps/app/layout.tsx, replace the v0 metadata
with detector-specific metadata.

In `@kits/api-breaking-change-detector/apps/components/ui/aspect-ratio.tsx`:
- Around line 3-9: Import React explicitly in the aspect-ratio.tsx AspectRatio
component before the Radix aspect-ratio import, since its React.ComponentProps
type reference must resolve within the ES module. Also add the same React
namespace import in button-group.tsx before the Radix Slot import to support the
React.ComponentProps references there; no other changes are needed.

In `@kits/api-breaking-change-detector/apps/components/ui/carousel.tsx`:
- Around line 96-105: Update the cleanup returned by the React.useEffect around
api, onSelect, and the Embla listeners to remove both the select and reInit
listeners from the same api instance, preventing retained handlers after unmount
or effect re-runs.

In `@kits/api-breaking-change-detector/apps/components/ui/chart.tsx`:
- Around line 235-239: Update the render condition around item.value in the
tooltip so zero is rendered; only suppress the value when item.value is null or
undefined, while preserving the existing toLocaleString formatting.
- Around line 81-102: Validate and reject unsafe values before interpolation in
the ChartContainer style-generation flow, including the exported component’s id,
config keys, and selected colors used by THEMES and colorConfig. Ensure values
containing HTML/style-breaking sequences such as </style> cannot reach
dangerouslySetInnerHTML, while preserving valid CSS variable generation.

In `@kits/api-breaking-change-detector/apps/components/ui/command.tsx`:
- Around line 32-59: Move DialogHeader from the Dialog children into
DialogContent, placing it before Command, so DialogTitle and DialogDescription
remain within the portaled content while preserving the existing title,
description, and styling.

In `@kits/api-breaking-change-detector/apps/components/ui/empty.tsx`:
- Around line 71-81: Update the EmptyDescription component to render a paragraph
element instead of a div, while preserving its data-slot, className composition,
prop spreading, and React.ComponentProps<'p'> contract.

In `@kits/api-breaking-change-detector/apps/components/ui/input-group.tsx`:
- Around line 59-76: Update InputGroupAddon to destructure the caller-provided
onClick, compose it with the existing addon focus behavior, and spread the
remaining props without overwriting the composed handler. Preserve the button
exclusion, then focus the first grouped input or textarea.

In `@kits/api-breaking-change-detector/apps/components/ui/kbd.tsx`:
- Around line 18-24: Update the KbdGroup component to render its grouping
container as a div instead of a kbd element, while preserving the existing
data-slot, className handling, props spreading, and Kbd child behavior.

In `@kits/api-breaking-change-detector/apps/components/ui/menubar.tsx`:
- Around line 81-84: Update the class list in MenubarContent to include
data-[state=closed]:animate-out alongside the existing closed-state fade and
zoom modifiers, matching the behavior of MenubarSubContent.

In `@kits/api-breaking-change-detector/apps/components/ui/sidebar.tsx`:
- Around line 609-635: Update the sidebar menu skeleton width generation around
the memoized width so Math.random() is not evaluated during server and client
render with different results. Generate the random width after mount via an
effect with a deterministic initial value, or accept the width from the caller,
and ensure the --skeleton-width style remains consistent during hydration.
- Around line 482-484: Update the sidebar button `outline` class to use the
`--sidebar-border` and `--sidebar-accent` tokens directly in both box-shadow
declarations, removing the `hsl(...)` wrappers while preserving the existing
styles.

In `@kits/api-breaking-change-detector/apps/components/ui/use-mobile.tsx`:
- Around line 1-19: Remove the duplicate useIsMobile hook file and update every
consumer importing it to use the canonical `@/hooks/use-mobile` module instead;
no replacement copy is needed.

In `@kits/api-breaking-change-detector/apps/lib/lamatic-client.ts`:
- Around line 4-19: Update the startup guards before lamaticClient creation to
reject placeholder values from .env.example and validate every configured value,
including AGENTIC_GENERATE_CONTENT and the config.api endpoint, projectId, and
apiKey values. Remove the ?? "" and ?? null fallbacks in the Lamatic constructor
and pass the validated configuration values directly.

In `@kits/api-breaking-change-detector/apps/next.config.mjs`:
- Around line 3-5: Remove the ignoreBuildErrors setting from the Next.js
typescript configuration so next build enforces TypeScript validation and fails
when production code contains type errors.

In `@kits/api-breaking-change-detector/apps/orchestrate.js`:
- Line 7: Update the workflowId configuration for AGENTIC_GENERATE_CONTENT in
orchestrate.js to use the kit-specific workflow identifier linked to
kits/api-breaking-change-detector, rather than the parent content-generation
configuration. Ensure deployment and documentation resolve to the
api-breaking-change-detector kit.
- Around line 4-8: Replace the Generation flow with the API breaking-change
detector across the kit: in
kits/api-breaking-change-detector/apps/orchestrate.js lines 4-8, implement the
detector workflow and contract instead of AGENTIC_GENERATE_CONTENT; update
kits/api-breaking-change-detector/apps/.env.example line 1 with detector inputs
and environment variables; revise
kits/api-breaking-change-detector/apps/README.md lines 1-12 to document the
detector; update kits/api-breaking-change-detector/apps/package.json line 2 with
detector branding and metadata; and consistently update the parent README.md,
lamatic.config.ts, package-lock.json, deployment links, app inputs, and
branding.

In `@kits/api-breaking-change-detector/apps/package.json`:
- Around line 53-61: Update the runtime dependency entries for lamatic and
react-markdown in the package manifest to tested, fixed versions instead of
latest, and ensure the corresponding lockfile or reproducible install metadata
records those exact resolutions.

In `@kits/api-breaking-change-detector/lamatic.config.ts`:
- Around line 2-19: Replace the copied content-generation scaffold with an API
breaking-change detector across all affected sites: in
kits/api-breaking-change-detector/lamatic.config.ts lines 2-19, update metadata,
detector-specific step IDs, and demo/docs/GitHub/deploy links, using
kits/api-breaking-change-detector/apps as the Vercel root; in
kits/api-breaking-change-detector/README.md lines 1-12, document detector setup
and correct deployment; in kits/api-breaking-change-detector/agent.md lines
1-185, document API inputs, comparison logic, breaking-change criteria, and
output; and in
kits/api-breaking-change-detector/flows/agentic-generate-content.ts lines 1-130,
replace the generation graph and contract with the detector flow and export it
from Lamatic Studio.

---

Outside diff comments:
In `@kits/api-breaking-change-detector/apps/components/ui/use-toast.ts`:
- Around line 1-192: Remove the duplicate use-toast module at
kits/api-breaking-change-detector/apps/components/ui/use-toast.ts and retain
kits/api-breaking-change-detector/apps/hooks/use-toast.ts as the sole toast
store. Also remove
kits/api-breaking-change-detector/apps/components/ui/use-mobile.tsx, keep the
hooks/use-mobile.ts implementation, and update consumers such as sidebar.tsx to
import use-mobile from `@/hooks/use-mobile`.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d1524462-d4f4-4a03-b50f-34ba76c1705a

📥 Commits

Reviewing files that changed from the base of the PR and between c12bd02 and f4a6a7e.

⛔ Files ignored due to path filters (1)
  • kits/api-breaking-change-detector/apps/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (92)
  • kits/api-breaking-change-detector/.env.example
  • kits/api-breaking-change-detector/.gitignore
  • kits/api-breaking-change-detector/README.md
  • kits/api-breaking-change-detector/agent.md
  • kits/api-breaking-change-detector/apps/.env.example
  • kits/api-breaking-change-detector/apps/.gitignore
  • kits/api-breaking-change-detector/apps/README.md
  • kits/api-breaking-change-detector/apps/actions/orchestrate.ts
  • kits/api-breaking-change-detector/apps/app/globals.css
  • kits/api-breaking-change-detector/apps/app/layout.tsx
  • kits/api-breaking-change-detector/apps/app/page.tsx
  • kits/api-breaking-change-detector/apps/components.json
  • kits/api-breaking-change-detector/apps/components/header.tsx
  • kits/api-breaking-change-detector/apps/components/theme-provider.tsx
  • kits/api-breaking-change-detector/apps/components/ui/accordion.tsx
  • kits/api-breaking-change-detector/apps/components/ui/alert-dialog.tsx
  • kits/api-breaking-change-detector/apps/components/ui/alert.tsx
  • kits/api-breaking-change-detector/apps/components/ui/aspect-ratio.tsx
  • kits/api-breaking-change-detector/apps/components/ui/avatar.tsx
  • kits/api-breaking-change-detector/apps/components/ui/badge.tsx
  • kits/api-breaking-change-detector/apps/components/ui/breadcrumb.tsx
  • kits/api-breaking-change-detector/apps/components/ui/button-group.tsx
  • kits/api-breaking-change-detector/apps/components/ui/button.tsx
  • kits/api-breaking-change-detector/apps/components/ui/calendar.tsx
  • kits/api-breaking-change-detector/apps/components/ui/card.tsx
  • kits/api-breaking-change-detector/apps/components/ui/carousel.tsx
  • kits/api-breaking-change-detector/apps/components/ui/chart.tsx
  • kits/api-breaking-change-detector/apps/components/ui/checkbox.tsx
  • kits/api-breaking-change-detector/apps/components/ui/collapsible.tsx
  • kits/api-breaking-change-detector/apps/components/ui/command.tsx
  • kits/api-breaking-change-detector/apps/components/ui/context-menu.tsx
  • kits/api-breaking-change-detector/apps/components/ui/dialog.tsx
  • kits/api-breaking-change-detector/apps/components/ui/drawer.tsx
  • kits/api-breaking-change-detector/apps/components/ui/dropdown-menu.tsx
  • kits/api-breaking-change-detector/apps/components/ui/empty.tsx
  • kits/api-breaking-change-detector/apps/components/ui/field.tsx
  • kits/api-breaking-change-detector/apps/components/ui/form.tsx
  • kits/api-breaking-change-detector/apps/components/ui/hover-card.tsx
  • kits/api-breaking-change-detector/apps/components/ui/input-group.tsx
  • kits/api-breaking-change-detector/apps/components/ui/input-otp.tsx
  • kits/api-breaking-change-detector/apps/components/ui/input.tsx
  • kits/api-breaking-change-detector/apps/components/ui/item.tsx
  • kits/api-breaking-change-detector/apps/components/ui/kbd.tsx
  • kits/api-breaking-change-detector/apps/components/ui/label.tsx
  • kits/api-breaking-change-detector/apps/components/ui/menubar.tsx
  • kits/api-breaking-change-detector/apps/components/ui/navigation-menu.tsx
  • kits/api-breaking-change-detector/apps/components/ui/pagination.tsx
  • kits/api-breaking-change-detector/apps/components/ui/popover.tsx
  • kits/api-breaking-change-detector/apps/components/ui/progress.tsx
  • kits/api-breaking-change-detector/apps/components/ui/radio-group.tsx
  • kits/api-breaking-change-detector/apps/components/ui/resizable.tsx
  • kits/api-breaking-change-detector/apps/components/ui/scroll-area.tsx
  • kits/api-breaking-change-detector/apps/components/ui/select.tsx
  • kits/api-breaking-change-detector/apps/components/ui/separator.tsx
  • kits/api-breaking-change-detector/apps/components/ui/sheet.tsx
  • kits/api-breaking-change-detector/apps/components/ui/sidebar.tsx
  • kits/api-breaking-change-detector/apps/components/ui/skeleton.tsx
  • kits/api-breaking-change-detector/apps/components/ui/slider.tsx
  • kits/api-breaking-change-detector/apps/components/ui/sonner.tsx
  • kits/api-breaking-change-detector/apps/components/ui/spinner.tsx
  • kits/api-breaking-change-detector/apps/components/ui/switch.tsx
  • kits/api-breaking-change-detector/apps/components/ui/table.tsx
  • kits/api-breaking-change-detector/apps/components/ui/tabs.tsx
  • kits/api-breaking-change-detector/apps/components/ui/textarea.tsx
  • kits/api-breaking-change-detector/apps/components/ui/toast.tsx
  • kits/api-breaking-change-detector/apps/components/ui/toaster.tsx
  • kits/api-breaking-change-detector/apps/components/ui/toggle-group.tsx
  • kits/api-breaking-change-detector/apps/components/ui/toggle.tsx
  • kits/api-breaking-change-detector/apps/components/ui/tooltip.tsx
  • kits/api-breaking-change-detector/apps/components/ui/use-mobile.tsx
  • kits/api-breaking-change-detector/apps/components/ui/use-toast.ts
  • kits/api-breaking-change-detector/apps/hooks/use-mobile.ts
  • kits/api-breaking-change-detector/apps/hooks/use-toast.ts
  • kits/api-breaking-change-detector/apps/lib/lamatic-client.ts
  • kits/api-breaking-change-detector/apps/lib/utils.ts
  • kits/api-breaking-change-detector/apps/next.config.mjs
  • kits/api-breaking-change-detector/apps/orchestrate.js
  • kits/api-breaking-change-detector/apps/package.json
  • kits/api-breaking-change-detector/apps/postcss.config.mjs
  • kits/api-breaking-change-detector/apps/tsconfig.json
  • kits/api-breaking-change-detector/constitutions/default.md
  • kits/api-breaking-change-detector/flows/agentic-generate-content.ts
  • kits/api-breaking-change-detector/lamatic.config.ts
  • kits/api-breaking-change-detector/model-configs/agentic-generate-content_generate-image.ts
  • kits/api-breaking-change-detector/model-configs/agentic-generate-content_json.ts
  • kits/api-breaking-change-detector/model-configs/agentic-generate-content_text.ts
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_generate-image_user.md
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_json_user.md
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_text_user.md
  • kits/api-breaking-change-detector/prompts/generate-image-system.md
  • kits/api-breaking-change-detector/prompts/json-system.md
  • kits/api-breaking-change-detector/prompts/text-system.md

Comment on lines +19 to +21
# env files
.env

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Mission-critical: ignore all local environment files.

The app README instructs users to create .env.local, but this pattern ignores only .env. A normal git add can stage .env.local and expose LAMATIC_API_KEY. Ignore .env* and re-include only .env.example.

Proposed ignore rule
 # env files
-.env
+.env*
+!.env.example
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# env files
.env
# env files
.env*
!.env.example
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/.gitignore` around lines 19 - 21,
Update the environment-file rules in the gitignore so all .env-prefixed local
files, including .env.local, are ignored, while explicitly re-including
.env.example for version-controlled configuration guidance.

Comment on lines +8 to +10
export async function generateContent(
inputType: InputType,
instructions: string,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Mission: implement API breaking-change detection instead of generic content generation.

The kit objective is API breaking-change detection. The current contract accepts only a rendering mode and free-form instructions, then generates text, JSON, or images. It cannot receive two API versions or produce a defined breaking-change report.

  • kits/api-breaking-change-detector/apps/actions/orchestrate.ts#L8-L10: accept and validate the baseline and candidate API specifications, or an equivalent explicit comparison input.
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_generate-image_user.md#L1-L1: replace the generic image request with an API-analysis input prompt, or remove the image path.
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_json_user.md#L1-L1: provide the API comparison artifacts and request structured breaking-change findings.
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_text_user.md#L1-L1: provide the API comparison artifacts and request a breaking-change report.
  • kits/api-breaking-change-detector/prompts/generate-image-system.md#L1-L1: remove or redefine image generation as documented detector behavior.
  • kits/api-breaking-change-detector/prompts/json-system.md#L1-L1: define the breaking-change JSON schema and detection rules.
  • kits/api-breaking-change-detector/prompts/text-system.md#L1-L1: define API compatibility rules and required report sections.
📍 Affects 7 files
  • kits/api-breaking-change-detector/apps/actions/orchestrate.ts#L8-L10 (this comment)
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_generate-image_user.md#L1-L1
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_json_user.md#L1-L1
  • kits/api-breaking-change-detector/prompts/agentic-generate-content_text_user.md#L1-L1
  • kits/api-breaking-change-detector/prompts/generate-image-system.md#L1-L1
  • kits/api-breaking-change-detector/prompts/json-system.md#L1-L1
  • kits/api-breaking-change-detector/prompts/text-system.md#L1-L1
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/actions/orchestrate.ts` around lines 8
- 10, The kit currently generates generic content instead of detecting API
breaking changes. In
kits/api-breaking-change-detector/apps/actions/orchestrate.ts lines 8-10, update
generateContent to accept and validate baseline and candidate API specifications
or an equivalent explicit comparison input; revise
kits/api-breaking-change-detector/prompts/agentic-generate-content_generate-image_user.md
lines 1-1 and generate-image-system.md lines 1-1 to remove the image path or
define detector behavior; update the JSON and text user prompts at lines 1-1 to
provide comparison artifacts and request findings; define the breaking-change
schema and rules in json-system.md lines 1-1 and compatibility rules and
required report sections in text-system.md lines 1-1.

error?: string
}> {
try {
console.log("[v0] Generating content with:", { inputType, instructions })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Mission: remove request and response body logging.

Lines 17 and 52 write user instructions and generated content to server logs. These values can contain API specifications, credentials, or other sensitive data. Log only non-sensitive metadata, such as inputType, a request ID, and output status.

Proposed fix
-    console.log("[v0] Generating content with:", { inputType, instructions })
+    console.info("[generateContent] started", { inputType })
...
-    console.log("[v0] Raw response:", resData)
+    console.info("[generateContent] completed", { inputType })

Also applies to: 52-52

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/actions/orchestrate.ts` at line 17,
Remove request instructions and generated content from the console logging in
the orchestration flow around the lines 17 and 52 log statements. Retain only
non-sensitive metadata such as inputType, request ID, and output status, without
logging request or response bodies.

Comment on lines +55 to +58
const answer = resData?.result?.answer

if (!answer) {
throw new Error("No answer found in response")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Mission: accept valid falsy JSON results.

if (!answer) rejects valid JSON values such as false, 0, "", and null. Check only for an absent answer value.

Proposed fix
-    if (!answer) {
+    if (typeof answer === "undefined") {
       throw new Error("No answer found in response")
     }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const answer = resData?.result?.answer
if (!answer) {
throw new Error("No answer found in response")
const answer = resData?.result?.answer
if (typeof answer === "undefined") {
throw new Error("No answer found in response")
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/actions/orchestrate.ts` around lines
55 - 58, Update the answer validation near the answer extraction to reject only
an absent value, not valid falsy JSON results such as false, 0, or an empty
string. Preserve the existing “No answer found in response” error for missing
answers while allowing all present values, including null if it is explicitly
returned.

Comment on lines +21 to +22
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.577 0.245 27.325);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Your mission, if you choose to accept it: restore destructive-text contrast.

Line 22 equals the destructive background color from Line 21. Content styled with bg-destructive text-destructive-foreground becomes invisible. Set --destructive-foreground to a contrasting light color.

Proposed fix
-  --destructive-foreground: oklch(0.577 0.245 27.325);
+  --destructive-foreground: oklch(0.985 0 0);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.577 0.245 27.325);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.985 0 0);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/app/globals.css` around lines 21 - 22,
Update the --destructive-foreground theme variable in the global CSS
declarations to use a contrasting light color instead of duplicating
--destructive, while leaving the destructive background variable unchanged.

Comment on lines +3 to +5
typescript: {
ignoreBuildErrors: true,
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

cd kits/api-breaking-change-detector/apps
npx tsc --noEmit -p tsconfig.json

Repository: Lamatic/AgentKit

Length of output: 50372


🏁 Script executed:

#!/bin/bash
set -euo pipefail

app='kits/api-breaking-change-detector/apps'
printf '%s\n' '--- next.config.mjs ---'
cat -n "$app/next.config.mjs"
printf '%s\n' '--- tsconfig.json ---'
cat -n "$app/tsconfig.json"
printf '%s\n' '--- package.json ---'
cat -n "$app/package.json"
printf '%s\n' '--- nearby repository guidance ---'
find kits/api-breaking-change-detector -maxdepth 2 -type f \( -name 'AGENTS.md' -o -name 'CLAUDE.md' -o -name 'README.md' \) -print
printf '%s\n' '--- related configuration occurrences ---'
rg -n --glob 'next.config.*' --glob 'package.json' --glob 'tsconfig.json' 'ignoreBuildErrors|strict|tsc --noEmit|next build' kits/api-breaking-change-detector kits 2>/dev/null | head -200

Repository: Lamatic/AgentKit

Length of output: 16419


🌐 Web query:

Official Next.js 16 documentation next.config.js typescript ignoreBuildErrors next build TypeScript errors

💡 Result:

To allow production builds to complete in Next.js 16 despite the presence of TypeScript errors, you can configure the typescript option in your next.config.js (or next.config.ts) file [1][2]. By setting ignoreBuildErrors to true, you instruct Next.js to bypass the built-in type-checking step during the next build process [1][2]. Note that this completely skips type checking; it does not simply suppress errors [1]. Configuration example for next.config.js: module.exports = { typescript: { //!! WARN!! // Dangerously allow production builds to successfully complete even if // your project has type errors. //!! WARN!! ignoreBuildErrors: true, }, } Configuration example for next.config.ts: import type { NextConfig } from 'next' const nextConfig: NextConfig = { typescript: { //!! WARN!! // Dangerously allow production builds to successfully complete even if // your project has type errors. //!! WARN!! ignoreBuildErrors: true, }, } export default nextConfig Because this disables an important safety check, it is strongly recommended that you run type checks as part of your CI/CD pipeline or deploy process using an alternative method, such as running tsc --noEmit, to ensure your application remains type-safe [2].

Citations:


Remove ignoreBuildErrors to enforce the TypeScript gate.

next build can succeed despite TypeScript errors when ignoreBuildErrors: true. Remove this option so the strict TypeScript configuration blocks invalid production builds.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/next.config.mjs` around lines 3 - 5,
Remove the ignoreBuildErrors setting from the Next.js typescript configuration
so next build enforces TypeScript validation and fails when production code
contains type errors.

Comment on lines +4 to +8
generation: {
name: "Generation",
type: "graphQL",
workflowId: process.env.AGENTIC_GENERATE_CONTENT,
description: "Generate the output based on the user input type and instructions",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- tracked files ---'
git ls-files 'kits/api-breaking-change-detector/*' | sort
printf '%s\n' '--- target files ---'
for f in \
  kits/api-breaking-change-detector/apps/orchestrate.js \
  kits/api-breaking-change-detector/apps/.env.example \
  kits/api-breaking-change-detector/apps/README.md \
  kits/api-breaking-change-detector/apps/package.json; do
  echo "### $f"
  cat -n "$f"
done
printf '%s\n' '--- related identity and flow references ---'
rg -n -S \
  'api-breaking-change-detector|agent-kit-generation|AGENTIC_GENERATE_CONTENT|breaking.?change|generation' \
  kits/api-breaking-change-detector kits --glob '!**/node_modules/**' --glob '!**/.next/**' \
  | head -300

Repository: Lamatic/AgentKit

Length of output: 50374


🏁 Script executed:

#!/bin/bash
set -eu
for f in \
  kits/api-breaking-change-detector/apps/actions/orchestrate.ts \
  kits/api-breaking-change-detector/apps/lib/lamatic-client.ts \
  kits/api-breaking-change-detector/apps/app/page.tsx \
  kits/api-breaking-change-detector/lamatic.config.ts \
  kits/api-breaking-change-detector/README.md \
  kits/api-breaking-change-detector/flows/agentic-generate-content.ts; do
  echo "### $f"
  wc -l "$f"
  case "$f" in
    *.tsx) sed -n '1,240p' "$f" ;;
    *flows/*) sed -n '1,75p' "$f" ;;
    *) cat -n "$f" ;;
  esac
done
printf '%s\n' '--- exact detector artifacts anywhere in the repository ---'
rg -n -i --glob '!**/node_modules/**' --glob '!**/.next/**' \
  'api[-_ ]breaking[-_ ]change|breaking[-_ ]change detector|breaking change detector' kits \
  | head -200
printf '%s\n' '--- config imports and workflow invocations in this app ---'
rg -n -S 'orchestrate|executeWorkflow|generation|workflowId|AGENTIC_GENERATE_CONTENT' \
  kits/api-breaking-change-detector/apps --glob '!**/components/ui/**'

Repository: Lamatic/AgentKit

Length of output: 29012


Replace the generation kit with the API breaking-change detector

kits/api-breaking-change-detector currently implements only Agent Kit Generation. Replace its flow, app inputs, AGENTIC_GENERATE_CONTENT contract, branding, package metadata, and deployment links with the detector implementation. Update the parent README.md, lamatic.config.ts, and package-lock.json consistently.

📍 Affects 4 files
  • kits/api-breaking-change-detector/apps/orchestrate.js#L4-L8 (this comment)
  • kits/api-breaking-change-detector/apps/.env.example#L1-L1
  • kits/api-breaking-change-detector/apps/README.md#L1-L12
  • kits/api-breaking-change-detector/apps/package.json#L2-L2
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/orchestrate.js` around lines 4 - 8,
Replace the Generation flow with the API breaking-change detector across the
kit: in kits/api-breaking-change-detector/apps/orchestrate.js lines 4-8,
implement the detector workflow and contract instead of
AGENTIC_GENERATE_CONTENT; update
kits/api-breaking-change-detector/apps/.env.example line 1 with detector inputs
and environment variables; revise
kits/api-breaking-change-detector/apps/README.md lines 1-12 to document the
detector; update kits/api-breaking-change-detector/apps/package.json line 2 with
detector branding and metadata; and consistently update the parent README.md,
lamatic.config.ts, package-lock.json, deployment links, app inputs, and
branding.

generation: {
name: "Generation",
type: "graphQL",
workflowId: process.env.AGENTIC_GENERATE_CONTENT,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n 'AGENTIC_GENERATE_CONTENT|workflowId|flowId' \
  kits/api-breaking-change-detector/lamatic.config.ts \
  kits/api-breaking-change-detector/apps/orchestrate.js \
  kits/api-breaking-change-detector/apps/.env.example

Repository: Lamatic/AgentKit

Length of output: 904


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- parent configuration ---'
cat -n kits/api-breaking-change-detector/lamatic.config.ts

printf '%s\n' '--- app configuration ---'
cat -n kits/api-breaking-change-detector/apps/orchestrate.js

printf '%s\n' '--- neighboring deploy configuration patterns ---'
rg -n -C 2 'root-directory=|workflowId: process\.env|envKey' \
  kits/api-breaking-change-detector kits/content-generation kits/api-change-review \
  -g 'lamatic.config.ts' -g 'orchestrate.js'

Repository: Lamatic/AgentKit

Length of output: 5353


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- api-breaking-change-detector files ---'
git ls-files kits/api-breaking-change-detector | sed -n '1,120p'

printf '%s\n' '--- content-generation files ---'
git ls-files kits/content-generation | sed -n '1,80p'

printf '%s\n' '--- deploy and repository-link references ---'
rg -n 'api-breaking-change-detector|content-generation|root-directory=|github.*tree' \
  kits/api-breaking-change-detector kits/content-generation \
  -g 'lamatic.config.ts' -g '*.md' -g '*.json' -g '*.js' -g '*.ts'

Repository: Lamatic/AgentKit

Length of output: 14276


Correct the kit links. AGENTIC_GENERATE_CONTENT matches the parent configuration. However, the parent configuration links to kits/content-generation instead of kits/api-breaking-change-detector, which deploys and documents the wrong kit.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/orchestrate.js` at line 7, Update the
workflowId configuration for AGENTIC_GENERATE_CONTENT in orchestrate.js to use
the kit-specific workflow identifier linked to
kits/api-breaking-change-detector, rather than the parent content-generation
configuration. Ensure deployment and documentation resolve to the
api-breaking-change-detector kit.

Source: Learnings

Comment on lines +53 to +61
"lamatic": "latest",
"lucide-react": "^0.454.0",
"next": "16.0.0",
"next-themes": "^0.4.6",
"react": "19.2.0",
"react-day-picker": "9.8.0",
"react-dom": "19.2.0",
"react-hook-form": "^7.60.0",
"react-markdown": "latest",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Pin runtime dependencies before release.

lamatic and react-markdown resolve latest. A fresh install can change runtime behavior without a source change. Pin tested versions and enforce a lockfile or another reproducible install.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/apps/package.json` around lines 53 - 61,
Update the runtime dependency entries for lamatic and react-markdown in the
package manifest to tested, fixed versions instead of latest, and ensure the
corresponding lockfile or reproducible install metadata records those exact
resolutions.

Comment on lines +2 to +19
name: "Generative AI",
description: "It uses intelligent workflows to generate text, images, and JSON content through a modern Next.js interface with markdown rendering support.",
version: "1.0.0",
type: "kit" as const,
author: {"name":"Lamatic AI","email":"info@lamatic.ai"},
tags: ["agentic","generative"],
steps: [
{
"id": "agentic-generate-content",
"type": "mandatory",
"envKey": "AGENTIC_GENERATE_CONTENT"
}
],
links: {
"demo": "https://agent-kit-generation.vercel.app/",
"github": "https://github.com/Lamatic/AgentKit/tree/main/kits/content-generation",
"deploy": "https://vercel.com/new/clone?repository-url=https://github.com/Lamatic/AgentKit&root-directory=kits%2Fcontent-generation%2Fapps&env=AGENTIC_GENERATE_CONTENT,LAMATIC_API_URL,LAMATIC_PROJECT_ID,LAMATIC_API_KEY&envDescription=Your%20Lamatic%20Generation%20keys%20are%20required.&envLink=https://lamatic.ai/templates/agentkits/agentic/agent-kit-generation",
"docs": "https://lamatic.ai/templates/agentkits/agentic/agent-kit-generation"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Replace the copied content-generation scaffold with the API breaking-change detector.

Mission directive: The PR objective is an API breaking-change detector. This kit instead implements and documents generic text, JSON, and image generation. Its deployment links also target unrelated directories. Users will deploy and run the wrong product.

  • kits/api-breaking-change-detector/lamatic.config.ts#L2-L19: set detector-specific metadata, step IDs, demo, docs, GitHub, and deploy links. Set the Vercel root to kits/api-breaking-change-detector/apps.
  • kits/api-breaking-change-detector/README.md#L1-L12: replace generation setup and the stale deployment URL with detector-specific setup and the correct app root.
  • kits/api-breaking-change-detector/agent.md#L1-L185: document API change input, comparison logic, breaking-change criteria, and detector output.
  • kits/api-breaking-change-detector/flows/agentic-generate-content.ts#L1-L130: replace the generic generation graph and flow contract with the detector flow, then export it from Lamatic Studio.
📍 Affects 4 files
  • kits/api-breaking-change-detector/lamatic.config.ts#L2-L19 (this comment)
  • kits/api-breaking-change-detector/README.md#L1-L12
  • kits/api-breaking-change-detector/agent.md#L1-L185
  • kits/api-breaking-change-detector/flows/agentic-generate-content.ts#L1-L130
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/api-breaking-change-detector/lamatic.config.ts` around lines 2 - 19,
Replace the copied content-generation scaffold with an API breaking-change
detector across all affected sites: in
kits/api-breaking-change-detector/lamatic.config.ts lines 2-19, update metadata,
detector-specific step IDs, and demo/docs/GitHub/deploy links, using
kits/api-breaking-change-detector/apps as the Vercel root; in
kits/api-breaking-change-detector/README.md lines 1-12, document detector setup
and correct deployment; in kits/api-breaking-change-detector/agent.md lines
1-185, document API inputs, comparison logic, breaking-change criteria, and
output; and in
kits/api-breaking-change-detector/flows/agentic-generate-content.ts lines 1-130,
replace the generation graph and contract with the detector flow and export it
from Lamatic Studio.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @porus19! 👋

Before this PR can be reviewed by maintainers, please resolve all comments and requested changes from the CodeRabbit automated review.

Steps to follow:

  1. Read through all CodeRabbit comments carefully
  2. Address each issue raised (or reply explaining why you disagree)
  3. Push your fixes as new commits
  4. Once all issues are resolved, comment here so we can re-review

This helps keep the review process efficient for everyone. Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants