diff --git a/src/commands/artifacts/artifacts.tsx b/src/commands/artifacts/artifacts.tsx new file mode 100644 index 000000000..a103ca726 --- /dev/null +++ b/src/commands/artifacts/artifacts.tsx @@ -0,0 +1,11 @@ +import * as React from 'react'; +import type { LocalJSXCommandOnDone } from 'src/types/command.js'; +import type { ToolUseContext } from 'src/Tool.js'; +import { ArtifactsMenu } from './ArtifactsMenu.js'; +import { extractArtifacts } from './scanner.js'; + +export async function call(onDone: LocalJSXCommandOnDone, context: ToolUseContext): Promise { + const messages = context.messages ?? []; + const artifacts = extractArtifacts(messages); + return ; +} diff --git a/src/commands/artifacts/index.ts b/src/commands/artifacts/index.ts new file mode 100644 index 000000000..15065058c --- /dev/null +++ b/src/commands/artifacts/index.ts @@ -0,0 +1,13 @@ +import type { Command } from '../../commands.js' + +const artifacts = { + type: 'local-jsx', + name: 'artifacts', + description: + 'List HTML artifacts uploaded to cloud-artifacts in this session', + isEnabled: () => true, + userFacingName: () => 'Artifacts', + load: () => import('./artifacts.js'), +} satisfies Command + +export default artifacts