Kanshō/Generated file card

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 callbacks

session.ts

src/auth/session.ts

+48 −123.1 KB
Ready

secret.ts

src/auth/secret.ts

+80.4 KB
Ready

middleware.ts

src/auth/middleware.ts

+0 −01.8 KB
Modified

schema.sql

db/migrations/0042_sessions.sql

+342.2 KB
Generating

routes.ts

src/api/routes.ts

Import cycle detected — circular dependency on session.ts

Failed

.env.local

.env.local

Skipped — file is in .gitignore

Skipped

Error & recovery

Static preview: Regenerate requires a host callback and does not create a file here

routes.ts

src/api/routes.ts

Import cycle detected — circular dependency on session.ts

Failed

routes.ts

src/api/routes.ts

Import cycle detected — circular dependency on session.ts

Failed

With action buttons

Static preview: Open and Diff require host callbacks

session.ts

src/auth/session.ts

+48 −123.1 KB
Ready

schema.sql

db/migrations/0042_sessions.sql

+342.2 KB
Ready

Component documentation

Generated File Card

components/sandbox/generated-file-card.tsx

Purpose

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.