## Usernames
- Add username field to User model (unique, URL-friendly)
- Add slug field to Collection model (unique per user)
- Update sign-up flow to require username with availability checking
- Create username check API endpoint
## Pretty URLs
- Add route group (profile) with pretty URL pages:
- /{username} - User profile
- /{username}/agents/{uid} - Agent detail
- /{username}/agents/{uid}/chat - Chat redirect
- /{username}/collections/{slug} - Collection detail
- Add client-side redirects from old /agents/[id] and /collections/[id] URLs
## Cloning
- Add clone API endpoints for agents and collections
- Create CloneButton component
- Add AGENT_CLONED and COLLECTION_CLONED activity types
## Documentation
- Add /docs/sharing page explaining all shareable URLs
- Document cloning functionality and visibility settings
Co-Authored-By: Claude <noreply@anthropic.com>
59 lines
1.3 KiB
JSON
59 lines
1.3 KiB
JSON
{
|
|
"name": "@tpmjs/types",
|
|
"version": "0.2.0",
|
|
"description": "Shared TypeScript types and Zod schemas for TPMJS",
|
|
"author": "TPMJS",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tpmjs/tpmjs.git",
|
|
"directory": "packages/types"
|
|
},
|
|
"homepage": "https://tpmjs.com",
|
|
"keywords": ["tpmjs", "typescript", "types", "zod", "schemas"],
|
|
"type": "module",
|
|
"exports": {
|
|
"./tool": {
|
|
"types": "./dist/tool.d.ts",
|
|
"default": "./dist/tool.js"
|
|
},
|
|
"./registry": {
|
|
"types": "./dist/registry.d.ts",
|
|
"default": "./dist/registry.js"
|
|
},
|
|
"./tpmjs": {
|
|
"types": "./dist/tpmjs.d.ts",
|
|
"default": "./dist/tpmjs.js"
|
|
},
|
|
"./collection": {
|
|
"types": "./dist/collection.d.ts",
|
|
"default": "./dist/collection.js"
|
|
},
|
|
"./agent": {
|
|
"types": "./dist/agent.d.ts",
|
|
"default": "./dist/agent.js"
|
|
},
|
|
"./user": {
|
|
"types": "./dist/user.d.ts",
|
|
"default": "./dist/user.js"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsup --watch",
|
|
"type-check": "tsc --noEmit",
|
|
"clean": "rm -rf dist .turbo"
|
|
},
|
|
"dependencies": {
|
|
"zod": "^4.1.13"
|
|
},
|
|
"devDependencies": {
|
|
"@tpmjs/tsconfig": "workspace:*",
|
|
"tsup": "^8.3.5",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|