replicas-engine 0.1.421 → 0.1.422

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/src/index.js +67 -10
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -508,7 +508,7 @@ var WORKSPACE_SIZES = ["small", "large"];
508
508
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
509
509
 
510
510
  // ../shared/src/e2b.ts
511
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-10-v2";
511
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-10-v3";
512
512
 
513
513
  // ../shared/src/runtime-env.ts
514
514
  function parsePosixEnvFile(content) {
@@ -1169,18 +1169,19 @@ var GITLAB_ABILITY = {
1169
1169
  };
1170
1170
 
1171
1171
  // ../shared/src/default-skills/replicas-agent/abilities/google.ts
1172
- var SECTION5 = `### Google Workspace (Docs, Sheets, Forms, Drive)
1173
- Create and edit Google Docs, Sheets, and Forms via the Replicas gateway. Files are owned by Replicas \u2014 the integration cannot access pre-existing Google content created outside of it.
1172
+ var SECTION5 = `### Google Workspace and Search Console
1173
+ Create and edit Google Docs, Sheets, and Forms, and read Google Search Console data via the Replicas gateway. Drive access is limited to files created by Replicas.
1174
1174
 
1175
1175
  **Reference:** \`references/GOOGLE.md\`
1176
1176
 
1177
1177
  Use this when:
1178
1178
  - You need to create or edit a Google Doc, Sheet, or Form
1179
1179
  - You need to share, rename, move, or delete a Replicas-created Google file
1180
- - You need to read responses from a Replicas-created Google Form`;
1181
- var REFERENCE5 = `# Google Workspace (Docs, Sheets, Forms, Drive)
1180
+ - You need to read responses from a Replicas-created Google Form
1181
+ - You need to list Search Console properties, query search performance, read sitemaps, or inspect an indexed URL`;
1182
+ var REFERENCE5 = `# Google Workspace and Search Console
1182
1183
 
1183
- This guide covers how to create and edit Google Docs, Sheets, and Forms \u2014 plus do basic Drive file operations \u2014 from inside a Replicas workspace, using the monolith as a gateway to Google's APIs.
1184
+ This guide covers how to create and edit Google Docs, Sheets, and Forms, perform basic Drive file operations, and read Google Search Console data from inside a Replicas workspace using the monolith as a gateway to Google's APIs.
1184
1185
 
1185
1186
  ## Prerequisites
1186
1187
 
@@ -1429,6 +1430,62 @@ curl -s "$MONOLITH_URL/v1/gdrive/files?pageSize=50" "\${GDRIVE_AUTH[@]}"
1429
1430
 
1430
1431
  Pass \`?q=...\` to filter using [Drive API search syntax](https://developers.google.com/workspace/drive/api/guides/search-files). Only files the app created or was granted access to will appear.
1431
1432
 
1433
+ ## Google Search Console (read-only)
1434
+
1435
+ Search Console access uses the \`webmasters.readonly\` scope. The connected Google account must have access to the requested property. If the account was connected before this scope was added, reconnect it in **Settings \u2192 Integrations \u2192 Google** first.
1436
+
1437
+ Property identifiers must be URL-encoded as query parameters. URL-prefix properties include the trailing slash (for example, \`https://example.com/\`); Domain properties use \`sc-domain:example.com\`.
1438
+
1439
+ ### List accessible properties
1440
+
1441
+ \`\`\`bash
1442
+ curl -s "$MONOLITH_URL/v1/gdrive/search-console/sites" "\${GDRIVE_AUTH[@]}"
1443
+ \`\`\`
1444
+
1445
+ ### Get a property
1446
+
1447
+ \`\`\`bash
1448
+ SITE_URL=$(printf %s 'sc-domain:example.com' | jq -sRr @uri)
1449
+ curl -s "$MONOLITH_URL/v1/gdrive/search-console/site?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}"
1450
+ \`\`\`
1451
+
1452
+ ### Query search performance
1453
+
1454
+ \`\`\`bash
1455
+ curl -s -X POST "$MONOLITH_URL/v1/gdrive/search-console/search-analytics/query?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}" \\
1456
+ -H "Content-Type: application/json" \\
1457
+ -d '{
1458
+ "startDate": "2026-06-01",
1459
+ "endDate": "2026-06-30",
1460
+ "dimensions": ["query", "page"],
1461
+ "rowLimit": 1000
1462
+ }'
1463
+ \`\`\`
1464
+
1465
+ Results contain clicks, impressions, CTR, and average position. Use \`startRow\` with \`rowLimit\` to paginate; Google returns at most 25,000 rows per request.
1466
+
1467
+ ### List sitemaps
1468
+
1469
+ \`\`\`bash
1470
+ curl -s "$MONOLITH_URL/v1/gdrive/search-console/sitemaps?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}"
1471
+ \`\`\`
1472
+
1473
+ Pass a URL-encoded \`sitemapIndex\` query parameter to list sitemaps referenced by a sitemap index. To fetch one sitemap, call \`/v1/gdrive/search-console/sitemap\` with URL-encoded \`siteUrl\` and \`feedpath\` query parameters.
1474
+
1475
+ ### Inspect an indexed URL
1476
+
1477
+ \`\`\`bash
1478
+ curl -s -X POST "$MONOLITH_URL/v1/gdrive/search-console/url-inspection" "\${GDRIVE_AUTH[@]}" \\
1479
+ -H "Content-Type: application/json" \\
1480
+ -d '{
1481
+ "inspectionUrl": "https://example.com/page",
1482
+ "siteUrl": "sc-domain:example.com",
1483
+ "languageCode": "en-US"
1484
+ }'
1485
+ \`\`\`
1486
+
1487
+ URL Inspection reports the version currently in Google's index; it does not run a live URL test.
1488
+
1432
1489
  ## Tips
1433
1490
 
1434
1491
  - **Always return the \`webViewLink\`** to the user when you create or edit a file so they can open it. Get it from \`/v1/gdrive/files/$FILE_ID?fields=webViewLink\` or from \`documents.documentId\` \u2192 \`https://docs.google.com/document/d/$ID/edit\`.
@@ -1436,9 +1493,9 @@ Pass \`?q=...\` to filter using [Drive API search syntax](https://developers.goo
1436
1493
  - **Watch error responses.** A 412 from the gateway means the org has no Google credentials connected \u2014 tell the user to connect Google in the dashboard. Other 4xx responses come straight from Google and usually explain the issue clearly.
1437
1494
  `;
1438
1495
  var GOOGLE_ABILITY = {
1439
- label: "Google Workspace",
1440
- description: "Create / edit Docs, Sheets, Forms, and Drive files via the Replicas gateway.",
1441
- bullet: "- Interacting with Google Workspace (creating and editing Docs, Sheets, and Forms, sharing files, reading form responses, etc.)",
1496
+ label: "Google",
1497
+ description: "Use Google Workspace and read Search Console data via the Replicas gateway.",
1498
+ bullet: "- Interacting with Google Workspace or Search Console (Docs, Sheets, Forms, Drive files, search performance, sitemaps, and URL inspection)",
1442
1499
  section: SECTION5,
1443
1500
  referenceFile: { name: "GOOGLE.md", content: REFERENCE5 }
1444
1501
  };
@@ -8291,7 +8348,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
8291
8348
  var MIN_CODEX_CLI_VERSION = "0.144.0";
8292
8349
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
8293
8350
  var codexCliVersionEnsured = null;
8294
- var ENGINE_PACKAGE_VERSION = "0.1.421";
8351
+ var ENGINE_PACKAGE_VERSION = "0.1.422";
8295
8352
  var INITIALIZE_METHOD = "initialize";
8296
8353
  var INITIALIZED_NOTIFICATION = "initialized";
8297
8354
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.421",
3
+ "version": "0.1.422",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",