Generated file card
Compact card for a file the agent generated — path, status, and quick actions.
Included in the single kansho full pack. Components are not offered as separate installs.
All statuses
Static preview: file actions require host callbackssession.ts
src/auth/session.ts
secret.ts
src/auth/secret.ts
middleware.ts
src/auth/middleware.ts
schema.sql
db/migrations/0042_sessions.sql
routes.ts
src/api/routes.ts
Import cycle detected — circular dependency on session.ts
.env.local
.env.local
Skipped — file is in .gitignore
Error & recovery
Static preview: Regenerate requires a host callback and does not create a file hereroutes.ts
src/api/routes.ts
Import cycle detected — circular dependency on session.ts
routes.ts
src/api/routes.ts
Import cycle detected — circular dependency on session.ts
With action buttons
Static preview: Open and Diff require host callbackssession.ts
src/auth/session.ts
schema.sql
db/migrations/0042_sessions.sql
Component documentation
Generated File Card
components/sandbox/generated-file-card.tsxPurpose
Summarises a generated file's path, size, line delta, lifecycle, message, and applicable actions.
Appropriate use
Use after generation when operators need a compact file outcome and host-owned recovery or inspection.
Example
components/sandbox/generated-file-card.tsx has a representative live example in the "All statuses" section on /components/generated-file-card.
States
Statuses are generating, ready, modified, failed, and skipped; retry is limited to failed files, while open and diff are optional.
API and props
GeneratedFileCard accepts name, path, size, delta, status, message, onOpen, onDiff, onRetry, and className.
Dependencies
Direct imports are React, Lucide icons, StatusPill, shared ToolStatus typing, and cn.
Accessibility
Filename, path, status, delta, size, and failure message are visible text; rendered actions have accessible names.
Limitations
It does not create, open, diff, or regenerate files, and the static specimens do not report pending or failed host actions.
Source
Source: components/sandbox/generated-file-card.tsx.
Full pack
components/sandbox/generated-file-card.tsx is documented at /components/generated-file-card and installs only through the single Kansho full pack; no individual component install is offered.