replicas-cli 0.2.351 → 0.2.352
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.
- package/dist/index.mjs +66 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8418,18 +8418,19 @@ var GITLAB_ABILITY = {
|
|
|
8418
8418
|
};
|
|
8419
8419
|
|
|
8420
8420
|
// ../shared/src/default-skills/replicas-agent/abilities/google.ts
|
|
8421
|
-
var SECTION5 = `### Google Workspace
|
|
8422
|
-
Create and edit Google Docs, Sheets, and Forms
|
|
8421
|
+
var SECTION5 = `### Google Workspace and Search Console
|
|
8422
|
+
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.
|
|
8423
8423
|
|
|
8424
8424
|
**Reference:** \`references/GOOGLE.md\`
|
|
8425
8425
|
|
|
8426
8426
|
Use this when:
|
|
8427
8427
|
- You need to create or edit a Google Doc, Sheet, or Form
|
|
8428
8428
|
- You need to share, rename, move, or delete a Replicas-created Google file
|
|
8429
|
-
- You need to read responses from a Replicas-created Google Form
|
|
8430
|
-
|
|
8429
|
+
- You need to read responses from a Replicas-created Google Form
|
|
8430
|
+
- You need to list Search Console properties, query search performance, read sitemaps, or inspect an indexed URL`;
|
|
8431
|
+
var REFERENCE5 = `# Google Workspace and Search Console
|
|
8431
8432
|
|
|
8432
|
-
This guide covers how to create and edit Google Docs, Sheets, and Forms
|
|
8433
|
+
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.
|
|
8433
8434
|
|
|
8434
8435
|
## Prerequisites
|
|
8435
8436
|
|
|
@@ -8678,6 +8679,62 @@ curl -s "$MONOLITH_URL/v1/gdrive/files?pageSize=50" "\${GDRIVE_AUTH[@]}"
|
|
|
8678
8679
|
|
|
8679
8680
|
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.
|
|
8680
8681
|
|
|
8682
|
+
## Google Search Console (read-only)
|
|
8683
|
+
|
|
8684
|
+
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.
|
|
8685
|
+
|
|
8686
|
+
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\`.
|
|
8687
|
+
|
|
8688
|
+
### List accessible properties
|
|
8689
|
+
|
|
8690
|
+
\`\`\`bash
|
|
8691
|
+
curl -s "$MONOLITH_URL/v1/gdrive/search-console/sites" "\${GDRIVE_AUTH[@]}"
|
|
8692
|
+
\`\`\`
|
|
8693
|
+
|
|
8694
|
+
### Get a property
|
|
8695
|
+
|
|
8696
|
+
\`\`\`bash
|
|
8697
|
+
SITE_URL=$(printf %s 'sc-domain:example.com' | jq -sRr @uri)
|
|
8698
|
+
curl -s "$MONOLITH_URL/v1/gdrive/search-console/site?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}"
|
|
8699
|
+
\`\`\`
|
|
8700
|
+
|
|
8701
|
+
### Query search performance
|
|
8702
|
+
|
|
8703
|
+
\`\`\`bash
|
|
8704
|
+
curl -s -X POST "$MONOLITH_URL/v1/gdrive/search-console/search-analytics/query?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}" \\
|
|
8705
|
+
-H "Content-Type: application/json" \\
|
|
8706
|
+
-d '{
|
|
8707
|
+
"startDate": "2026-06-01",
|
|
8708
|
+
"endDate": "2026-06-30",
|
|
8709
|
+
"dimensions": ["query", "page"],
|
|
8710
|
+
"rowLimit": 1000
|
|
8711
|
+
}'
|
|
8712
|
+
\`\`\`
|
|
8713
|
+
|
|
8714
|
+
Results contain clicks, impressions, CTR, and average position. Use \`startRow\` with \`rowLimit\` to paginate; Google returns at most 25,000 rows per request.
|
|
8715
|
+
|
|
8716
|
+
### List sitemaps
|
|
8717
|
+
|
|
8718
|
+
\`\`\`bash
|
|
8719
|
+
curl -s "$MONOLITH_URL/v1/gdrive/search-console/sitemaps?siteUrl=$SITE_URL" "\${GDRIVE_AUTH[@]}"
|
|
8720
|
+
\`\`\`
|
|
8721
|
+
|
|
8722
|
+
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.
|
|
8723
|
+
|
|
8724
|
+
### Inspect an indexed URL
|
|
8725
|
+
|
|
8726
|
+
\`\`\`bash
|
|
8727
|
+
curl -s -X POST "$MONOLITH_URL/v1/gdrive/search-console/url-inspection" "\${GDRIVE_AUTH[@]}" \\
|
|
8728
|
+
-H "Content-Type: application/json" \\
|
|
8729
|
+
-d '{
|
|
8730
|
+
"inspectionUrl": "https://example.com/page",
|
|
8731
|
+
"siteUrl": "sc-domain:example.com",
|
|
8732
|
+
"languageCode": "en-US"
|
|
8733
|
+
}'
|
|
8734
|
+
\`\`\`
|
|
8735
|
+
|
|
8736
|
+
URL Inspection reports the version currently in Google's index; it does not run a live URL test.
|
|
8737
|
+
|
|
8681
8738
|
## Tips
|
|
8682
8739
|
|
|
8683
8740
|
- **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\`.
|
|
@@ -8685,9 +8742,9 @@ Pass \`?q=...\` to filter using [Drive API search syntax](https://developers.goo
|
|
|
8685
8742
|
- **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.
|
|
8686
8743
|
`;
|
|
8687
8744
|
var GOOGLE_ABILITY = {
|
|
8688
|
-
label: "Google
|
|
8689
|
-
description: "
|
|
8690
|
-
bullet: "- Interacting with Google Workspace
|
|
8745
|
+
label: "Google",
|
|
8746
|
+
description: "Use Google Workspace and read Search Console data via the Replicas gateway.",
|
|
8747
|
+
bullet: "- Interacting with Google Workspace or Search Console (Docs, Sheets, Forms, Drive files, search performance, sitemaps, and URL inspection)",
|
|
8691
8748
|
section: SECTION5,
|
|
8692
8749
|
referenceFile: { name: "GOOGLE.md", content: REFERENCE5 }
|
|
8693
8750
|
};
|
|
@@ -9601,7 +9658,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
9601
9658
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
9602
9659
|
|
|
9603
9660
|
// ../shared/src/cli-version.ts
|
|
9604
|
-
var CLI_VERSION = "0.2.
|
|
9661
|
+
var CLI_VERSION = "0.2.352";
|
|
9605
9662
|
|
|
9606
9663
|
// ../shared/src/version.ts
|
|
9607
9664
|
function compareVersions(v1, v2) {
|