test: add unit tests and fixtures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
35
tests/fixtures/claude_conversation.json
vendored
Normal file
35
tests/fixtures/claude_conversation.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"uuid": "claude-conv-001",
|
||||
"name": "StartOS Service Packaging",
|
||||
"created_at": "2024-06-10T14:32:00.000Z",
|
||||
"updated_at": "2024-06-10T15:00:00.000Z",
|
||||
"project": {
|
||||
"uuid": "proj-001",
|
||||
"name": "StarTOS Packaging"
|
||||
},
|
||||
"chat_messages": [
|
||||
{
|
||||
"uuid": "msg-001",
|
||||
"sender": "human",
|
||||
"created_at": "2024-06-10T14:32:00.000Z",
|
||||
"content": [
|
||||
{"type": "text", "text": "How do I create a manifest.ts for a StartOS service?"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"uuid": "msg-002",
|
||||
"sender": "assistant",
|
||||
"created_at": "2024-06-10T14:32:10.000Z",
|
||||
"content": [
|
||||
{"type": "text", "text": "To create a manifest.ts for a StartOS service, you need to define the package metadata:\n\n```typescript\nimport { sdk } from './sdk'\n\nexport const manifest = sdk.Manifest.of({\n id: 'my-service',\n title: 'My Service',\n version: '1.0.0',\n})\n```"},
|
||||
{"type": "tool_use", "id": "tool-001", "name": "search", "input": {"query": "startOS docs"}}
|
||||
]
|
||||
},
|
||||
{
|
||||
"uuid": "msg-003",
|
||||
"sender": "human",
|
||||
"created_at": "2024-06-10T14:45:00.000Z",
|
||||
"content": "Thank you, that helped!"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user