chore: import upstream snapshot with attribution
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:20:55 +08:00
commit d25d482dc2
13754 changed files with 4996608 additions and 0 deletions
+114
View File
@@ -0,0 +1,114 @@
import type { ToolConfig } from '@/tools/types'
import type { WealthboxReadParams, WealthboxReadResponse } from '@/tools/wealthbox/types'
export const wealthboxReadNoteTool: ToolConfig<WealthboxReadParams, WealthboxReadResponse> = {
id: 'wealthbox_read_note',
name: 'Read Wealthbox Note',
description: 'Read content from a Wealthbox note',
version: '1.0.0',
params: {
accessToken: {
type: 'string',
required: true,
description: 'The access token for the Wealthbox API',
visibility: 'hidden',
},
noteId: {
type: 'string',
required: false,
description: 'The ID of the note to read (e.g., "11111")',
visibility: 'user-or-llm',
},
},
request: {
url: (params) => {
const noteId = params.noteId?.trim()
let url = 'https://api.crmworkspace.com/v1/notes'
if (noteId) {
url = `https://api.crmworkspace.com/v1/notes/${noteId}`
}
return url
},
method: 'GET',
headers: (params) => {
// Validate access token
if (!params.accessToken) {
throw new Error('Access token is required')
}
return {
Authorization: `Bearer ${params.accessToken}`,
}
},
},
transformResponse: async (response: Response) => {
const data = await response.json()
// Format note information into readable content
const note = data
let content = `Note Content: ${note.content || 'No content available'}`
if (note.created_at) {
content += `\nCreated: ${new Date(note.created_at).toLocaleString()}`
}
if (note.updated_at) {
content += `\nUpdated: ${new Date(note.updated_at).toLocaleString()}`
}
if (note.visible_to) {
content += `\nVisible to: ${note.visible_to}`
}
if (note.linked_to && note.linked_to.length > 0) {
content += '\nLinked to:'
note.linked_to.forEach((link: any) => {
content += `\n - ${link.name} (${link.type})`
})
}
if (note.tags && note.tags.length > 0) {
content += '\nTags:'
note.tags.forEach((tag: any) => {
content += `\n - ${tag.name}`
})
}
return {
success: true,
output: {
content,
note,
metadata: {
itemId: note.id?.toString() ?? null,
noteId: note.id?.toString() ?? null,
itemType: 'note' as const,
},
},
}
},
outputs: {
success: { type: 'boolean', description: 'Operation success status' },
output: {
type: 'object',
description: 'Note data and metadata',
properties: {
content: { type: 'string', description: 'Formatted note information' },
note: { type: 'object', description: 'Raw note data from Wealthbox' },
metadata: {
type: 'object',
description: 'Operation metadata',
properties: {
itemId: { type: 'string', description: 'ID of the note', optional: true },
noteId: { type: 'string', description: 'ID of the note', optional: true },
itemType: { type: 'string', description: 'Type of item (note)' },
},
},
},
},
},
}