Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/bubble-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubblelab/bubble-core",
"version": "0.1.323",
"version": "0.1.324",
"type": "module",
"license": "Apache-2.0",
"main": "./dist/index.js",
Expand Down
22 changes: 20 additions & 2 deletions packages/bubble-core/src/bubbles/service-bubble/notion/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ const NotionParamsSchema = z.discriminatedUnion('operation', [
children: z
.array(z.unknown())
.optional()
.describe('Array of block objects for page content'),
.describe(
'Array of Notion block objects for page content. Same format as `append_block_children.children`. ' +
'For tables, the table block must include `children: [table_row, ...]` inline; ' +
"`table_width` must equal every row's cell count."
),
icon: FileObjectSchema.or(
z.object({
type: z.literal('emoji'),
Expand Down Expand Up @@ -675,7 +679,21 @@ const NotionParamsSchema = z.discriminatedUnion('operation', [
.array(z.unknown())
.min(1)
.max(100)
.describe('Array of block objects to append (max 100)'),
.describe(
'Array of Notion block objects to append (max 100). ' +
'Each block is `{ object: "block", type: "<type>", "<type>": { ... } }`. ' +
'Common examples:\n' +
'- Paragraph: { object: "block", type: "paragraph", paragraph: { rich_text: [{ type: "text", text: { content: "hello" } }] } }\n' +
'- Heading: { object: "block", type: "heading_2", heading_2: { rich_text: [{ type: "text", text: { content: "Title" } }] } }\n' +
"- Table (rows MUST be supplied inline as children; table_width must equal every row's cell count): " +
'{ object: "block", type: "table", table: { table_width: 2, has_column_header: true, has_row_header: false, ' +
'children: [ ' +
'{ object: "block", type: "table_row", table_row: { cells: [ [{ type: "text", text: { content: "Name" } }], [{ type: "text", text: { content: "Status" } }] ] } }, ' +
'{ object: "block", type: "table_row", table_row: { cells: [ [{ type: "text", text: { content: "Task A" } }], [{ type: "text", text: { content: "Done" } }] ] } } ' +
'] } }. ' +
'You cannot append rows to an empty table later — always include all rows in the initial create call. ' +
'For an empty cell, use `cells: [..., [], ...]` (an empty array) — Notion rejects rich_text items with empty content strings.'
),
after: z.string().optional().describe('ID of block to append after'),
credentials: z
.record(z.nativeEnum(CredentialType), z.string())
Expand Down
2 changes: 1 addition & 1 deletion packages/bubble-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubblelab/bubble-runtime",
"version": "0.1.323",
"version": "0.1.324",
"type": "module",
"license": "Apache-2.0",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/bubble-scope-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubblelab/ts-scope-manager",
"version": "0.1.323",
"version": "0.1.324",
"private": false,
"license": "MIT",
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/bubble-shared-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubblelab/shared-schemas",
"version": "0.1.323",
"version": "0.1.324",
"type": "module",
"license": "Apache-2.0",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-bubblelab-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-bubblelab-app",
"version": "0.1.323",
"version": "0.1.324",
"type": "module",
"license": "Apache-2.0",
"description": "Create BubbleLab AI agent applications with one command",
Expand Down
6 changes: 3 additions & 3 deletions packages/create-bubblelab-app/templates/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@bubblelab/bubble-core": "^0.1.323",
"@bubblelab/bubble-runtime": "^0.1.323",
"@bubblelab/shared-schemas": "^0.1.323",
"@bubblelab/bubble-core": "^0.1.324",
"@bubblelab/bubble-runtime": "^0.1.324",
"@bubblelab/shared-schemas": "^0.1.324",
"dotenv": "^16.4.5"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@bubblelab/bubble-core": "^0.1.323",
"@bubblelab/bubble-runtime": "^0.1.323",
"@bubblelab/bubble-core": "^0.1.324",
"@bubblelab/bubble-runtime": "^0.1.324",
"dotenv": "^16.4.5"
},
"devDependencies": {
Expand Down
Loading