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
+79
View File
@@ -0,0 +1,79 @@
import type { ToolConfig } from '@/tools/types'
import type { WebflowCreateItemParams, WebflowCreateItemResponse } from '@/tools/webflow/types'
export const webflowCreateItemTool: ToolConfig<WebflowCreateItemParams, WebflowCreateItemResponse> =
{
id: 'webflow_create_item',
name: 'Webflow Create Item',
description: 'Create a new item in a Webflow CMS collection',
version: '1.0.0',
oauth: {
required: true,
provider: 'webflow',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'OAuth access token',
},
siteId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the Webflow site (e.g., "580e63e98c9a982ac9b8b741")',
},
collectionId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the collection (e.g., "580e63fc8c9a982ac9b8b745")',
},
fieldData: {
type: 'json',
required: true,
visibility: 'user-or-llm',
description:
'Field data for the new item as a JSON object. Keys should match collection field names.',
},
},
request: {
url: (params) => `https://api.webflow.com/v2/collections/${params.collectionId}/items`,
method: 'POST',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
'Content-Type': 'application/json',
}),
body: (params) => ({
fieldData: params.fieldData,
}),
},
transformResponse: async (response) => {
const data = await response.json()
return {
success: true,
output: {
item: data,
metadata: {
itemId: data.id || 'unknown',
},
},
}
},
outputs: {
item: {
type: 'json',
description: 'The created item object',
},
metadata: {
type: 'json',
description: 'Metadata about the created item',
},
},
}
+76
View File
@@ -0,0 +1,76 @@
import type { ToolConfig } from '@/tools/types'
import type { WebflowDeleteItemParams, WebflowDeleteItemResponse } from '@/tools/webflow/types'
export const webflowDeleteItemTool: ToolConfig<WebflowDeleteItemParams, WebflowDeleteItemResponse> =
{
id: 'webflow_delete_item',
name: 'Webflow Delete Item',
description: 'Delete an item from a Webflow CMS collection',
version: '1.0.0',
oauth: {
required: true,
provider: 'webflow',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'OAuth access token',
},
siteId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the Webflow site (e.g., "580e63e98c9a982ac9b8b741")',
},
collectionId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the collection (e.g., "580e63fc8c9a982ac9b8b745")',
},
itemId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the item to delete (e.g., "580e64008c9a982ac9b8b754")',
},
},
request: {
url: (params) =>
`https://api.webflow.com/v2/collections/${params.collectionId}/items/${params.itemId}`,
method: 'DELETE',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response) => {
const isSuccess = response.status === 204 || response.ok
return {
success: isSuccess,
output: {
success: isSuccess,
metadata: {
deleted: isSuccess,
},
},
}
},
outputs: {
success: {
type: 'boolean',
description: 'Whether the deletion was successful',
},
metadata: {
type: 'json',
description: 'Metadata about the deletion',
},
},
}
+74
View File
@@ -0,0 +1,74 @@
import type { ToolConfig } from '@/tools/types'
import type { WebflowGetItemParams, WebflowGetItemResponse } from '@/tools/webflow/types'
export const webflowGetItemTool: ToolConfig<WebflowGetItemParams, WebflowGetItemResponse> = {
id: 'webflow_get_item',
name: 'Webflow Get Item',
description: 'Get a single item from a Webflow CMS collection',
version: '1.0.0',
oauth: {
required: true,
provider: 'webflow',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'OAuth access token',
},
siteId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the Webflow site (e.g., "580e63e98c9a982ac9b8b741")',
},
collectionId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the collection (e.g., "580e63fc8c9a982ac9b8b745")',
},
itemId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the item to retrieve (e.g., "580e64008c9a982ac9b8b754")',
},
},
request: {
url: (params) =>
`https://api.webflow.com/v2/collections/${params.collectionId}/items/${params.itemId}`,
method: 'GET',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response) => {
const data = await response.json()
return {
success: true,
output: {
item: data,
metadata: {
itemId: data.id || 'unknown',
},
},
}
},
outputs: {
item: {
type: 'json',
description: 'The retrieved item object',
},
metadata: {
type: 'json',
description: 'Metadata about the retrieved item',
},
},
}
+13
View File
@@ -0,0 +1,13 @@
import { webflowCreateItemTool } from '@/tools/webflow/create_item'
import { webflowDeleteItemTool } from '@/tools/webflow/delete_item'
import { webflowGetItemTool } from '@/tools/webflow/get_item'
import { webflowListItemsTool } from '@/tools/webflow/list_items'
import { webflowUpdateItemTool } from '@/tools/webflow/update_item'
export {
webflowCreateItemTool,
webflowDeleteItemTool,
webflowGetItemTool,
webflowListItemsTool,
webflowUpdateItemTool,
}
+103
View File
@@ -0,0 +1,103 @@
import type { ToolConfig } from '@/tools/types'
import type { WebflowListItemsParams, WebflowListItemsResponse } from '@/tools/webflow/types'
import {
WEBFLOW_ITEM_OUTPUT_PROPERTIES,
WEBFLOW_LIST_METADATA_OUTPUT_PROPERTIES,
} from '@/tools/webflow/types'
export const webflowListItemsTool: ToolConfig<WebflowListItemsParams, WebflowListItemsResponse> = {
id: 'webflow_list_items',
name: 'Webflow List Items',
description: 'List all items from a Webflow CMS collection',
version: '1.0.0',
oauth: {
required: true,
provider: 'webflow',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'OAuth access token',
},
siteId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the Webflow site (e.g., "580e63e98c9a982ac9b8b741")',
},
collectionId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the collection (e.g., "580e63fc8c9a982ac9b8b745")',
},
offset: {
type: 'number',
required: false,
visibility: 'user-or-llm',
description: 'Offset for pagination (e.g., 0, 100, 200)',
},
limit: {
type: 'number',
required: false,
visibility: 'user-or-llm',
description: 'Maximum number of items to return (e.g., 10, 50, 100; default: 100)',
},
},
request: {
url: (params) => {
const baseUrl = `https://api.webflow.com/v2/collections/${params.collectionId}/items`
const queryParams = new URLSearchParams()
if (params.offset) {
queryParams.append('offset', Number(params.offset).toString())
}
if (params.limit) {
queryParams.append('limit', Number(params.limit).toString())
}
const query = queryParams.toString()
return query ? `${baseUrl}?${query}` : baseUrl
},
method: 'GET',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response) => {
const data = await response.json()
return {
success: true,
output: {
items: data.items || [],
metadata: {
itemCount: (data.items || []).length,
offset: data.offset,
limit: data.limit,
},
},
}
},
outputs: {
items: {
type: 'array',
description: 'Array of collection items',
items: {
type: 'object',
properties: WEBFLOW_ITEM_OUTPUT_PROPERTIES,
},
},
metadata: {
type: 'object',
description: 'Metadata about the query',
properties: WEBFLOW_LIST_METADATA_OUTPUT_PROPERTIES,
},
},
}
+141
View File
@@ -0,0 +1,141 @@
import type { OutputProperty } from '@/tools/types'
/**
* Output property definitions for Webflow CMS API responses.
* @see https://developers.webflow.com/data/reference/cms/collection-items
*/
/**
* Output definition for CMS item field data.
* Note: Webflow items have dynamic fields based on collection schema.
* @see https://developers.webflow.com/data/reference/cms/collection-items/get-item
*/
export const WEBFLOW_ITEM_OUTPUT_PROPERTIES = {
id: { type: 'string', description: 'Unique item ID' },
cmsLocaleId: { type: 'string', description: 'CMS locale ID', optional: true },
lastPublished: { type: 'string', description: 'Last published date (ISO 8601)', optional: true },
lastUpdated: { type: 'string', description: 'Last updated date (ISO 8601)', optional: true },
createdOn: { type: 'string', description: 'Creation date (ISO 8601)', optional: true },
isArchived: { type: 'boolean', description: 'Whether the item is archived', optional: true },
isDraft: { type: 'boolean', description: 'Whether the item is a draft', optional: true },
fieldData: {
type: 'object',
description: 'Collection-specific field data (varies by collection schema)',
optional: true,
},
} as const satisfies Record<string, OutputProperty>
/**
* Complete item output definition
*/
export const WEBFLOW_ITEM_OUTPUT: OutputProperty = {
type: 'object',
description: 'Webflow CMS collection item',
properties: WEBFLOW_ITEM_OUTPUT_PROPERTIES,
}
/**
* Output definition for list metadata.
*/
export const WEBFLOW_LIST_METADATA_OUTPUT_PROPERTIES = {
itemCount: { type: 'number', description: 'Number of items returned' },
offset: { type: 'number', description: 'Pagination offset', optional: true },
limit: { type: 'number', description: 'Maximum items per page', optional: true },
} as const satisfies Record<string, OutputProperty>
interface WebflowBaseParams {
accessToken: string
siteId: string
collectionId: string
}
export interface WebflowListItemsParams extends WebflowBaseParams {
offset?: number
limit?: number
}
interface WebflowListItemsOutput {
items: any[]
metadata: {
itemCount: number
offset?: number
limit?: number
}
}
export interface WebflowListItemsResponse {
success: boolean
output: WebflowListItemsOutput
}
export interface WebflowGetItemParams extends WebflowBaseParams {
itemId: string
}
interface WebflowGetItemOutput {
item: any
metadata: {
itemId: string
}
}
export interface WebflowGetItemResponse {
success: boolean
output: WebflowGetItemOutput
}
export interface WebflowCreateItemParams extends WebflowBaseParams {
fieldData: Record<string, any>
}
interface WebflowCreateItemOutput {
item: any
metadata: {
itemId: string
}
}
export interface WebflowCreateItemResponse {
success: boolean
output: WebflowCreateItemOutput
}
export interface WebflowUpdateItemParams extends WebflowBaseParams {
itemId: string
fieldData: Record<string, any>
}
interface WebflowUpdateItemOutput {
item: any
metadata: {
itemId: string
}
}
export interface WebflowUpdateItemResponse {
success: boolean
output: WebflowUpdateItemOutput
}
export interface WebflowDeleteItemParams extends WebflowBaseParams {
itemId: string
}
interface WebflowDeleteItemOutput {
success: boolean
metadata: {
deleted: boolean
}
}
export interface WebflowDeleteItemResponse {
success: boolean
output: WebflowDeleteItemOutput
}
export type WebflowResponse =
| WebflowListItemsResponse
| WebflowGetItemResponse
| WebflowCreateItemResponse
| WebflowUpdateItemResponse
| WebflowDeleteItemResponse
+86
View File
@@ -0,0 +1,86 @@
import type { ToolConfig } from '@/tools/types'
import type { WebflowUpdateItemParams, WebflowUpdateItemResponse } from '@/tools/webflow/types'
export const webflowUpdateItemTool: ToolConfig<WebflowUpdateItemParams, WebflowUpdateItemResponse> =
{
id: 'webflow_update_item',
name: 'Webflow Update Item',
description: 'Update an existing item in a Webflow CMS collection',
version: '1.0.0',
oauth: {
required: true,
provider: 'webflow',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'OAuth access token',
},
siteId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the Webflow site (e.g., "580e63e98c9a982ac9b8b741")',
},
collectionId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the collection (e.g., "580e63fc8c9a982ac9b8b745")',
},
itemId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'ID of the item to update (e.g., "580e64008c9a982ac9b8b754")',
},
fieldData: {
type: 'json',
required: true,
visibility: 'user-or-llm',
description:
'Field data to update as a JSON object. Only include fields you want to change.',
},
},
request: {
url: (params) =>
`https://api.webflow.com/v2/collections/${params.collectionId}/items/${params.itemId}`,
method: 'PATCH',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
'Content-Type': 'application/json',
}),
body: (params) => ({
fieldData: params.fieldData,
}),
},
transformResponse: async (response) => {
const data = await response.json()
return {
success: true,
output: {
item: data,
metadata: {
itemId: data.id || 'unknown',
},
},
}
},
outputs: {
item: {
type: 'json',
description: 'The updated item object',
},
metadata: {
type: 'json',
description: 'Metadata about the updated item',
},
},
}