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 package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "canonry",
"private": true,
"version": "4.91.0",
"version": "4.91.1",
"type": "module",
"packageManager": "pnpm@10.28.2",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/canonry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ainyc/canonry",
"version": "4.91.0",
"version": "4.91.1",
"type": "module",
"description": "Agent-first open-source AEO operating platform - track how answer engines cite your domain",
"license": "FSL-1.1-ALv2",
Expand Down
8 changes: 6 additions & 2 deletions packages/integration-google-business-profile/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ export const GBP_LOCATIONS_DEFAULT_READ_MASK = [
'title',
'storefrontAddress',
'websiteUri',
'categories.primaryCategory.displayName',
// Request `categories` WHOLE, not a nested sub-path. The Business Information
// locations.list readMask rejects a nested path into the REPEATED
// `additionalCategories` array ("Invalid field mask provided", HTTP 400 —
// verified against the live API), so we ask for the full `categories` object
// (it carries primaryCategory + additionalCategories displayNames + serviceTypes).
'categories',
// Owner-authored profile content — the entity-anchor and qualifier signals AI
// answer engines weight most. All ride the same Business Information v1
// Location resource canonry already reads (no new auth / API enablement).
'categories.additionalCategories.displayName',
'profile.description',
'serviceArea',
'regularHours',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ describe('listLocations', () => {
const fields = (url.searchParams.get('readMask') ?? '').split(',')
// The owner-authored profile content AEO answer engines weight (categories,
// description, service area, hours, phone, open state) must be requested.
expect(fields).toContain('categories.additionalCategories.displayName')
// `categories` is requested WHOLE: the locations.list readMask rejects a
// nested path into the repeated `additionalCategories` array (400), so the
// nested form must never be used.
expect(fields).toContain('categories')
expect(fields).not.toContain('categories.additionalCategories.displayName')
expect(fields).toContain('profile.description')
expect(fields).toContain('serviceArea')
expect(fields).toContain('regularHours')
Expand Down
Loading