@mcpher/gas-fakes 1.2.23 → 1.2.25

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 (37) hide show
  1. package/README.RU.md +1 -0
  2. package/README.md +1 -0
  3. package/drive_tools.js +20 -0
  4. package/gas-fakes.js +6 -765
  5. package/package.json +2 -1
  6. package/src/cli/app.js +156 -0
  7. package/src/cli/executor.js +160 -0
  8. package/src/cli/lib-manager.js +256 -0
  9. package/src/cli/mcp.js +273 -0
  10. package/src/cli/setup.js +329 -0
  11. package/src/cli/utils.js +126 -0
  12. package/src/services/advforms/fakeadvforms.js +3 -4
  13. package/src/services/advgmail/fakeadvgmaildrafts.js +28 -6
  14. package/src/services/advgmail/fakeadvgmaillabels.js +1 -1
  15. package/src/services/advgmail/fakeadvgmailmessages.js +49 -0
  16. package/src/services/advgmail/fakeadvgmailsendas.js +42 -0
  17. package/src/services/advgmail/fakeadvgmailsettings.js +18 -0
  18. package/src/services/advgmail/fakeadvgmailthreads.js +85 -0
  19. package/src/services/advgmail/fakeadvgmailusers.js +15 -0
  20. package/src/services/common/fakeadvresource.js +16 -1
  21. package/src/services/formapp/fakeform.js +85 -16
  22. package/src/services/formapp/fakeformitem.js +1 -1
  23. package/src/services/formapp/fakeformresponse.js +2 -2
  24. package/src/services/formapp/fakeitemresponse.js +1 -1
  25. package/src/services/gmailapp/fakegmailapp.js +427 -8
  26. package/src/services/gmailapp/fakegmailattachment.js +83 -0
  27. package/src/services/gmailapp/fakegmaildraft.js +12 -0
  28. package/src/services/gmailapp/fakegmailmessage.js +37 -0
  29. package/src/services/gmailapp/fakegmailthread.js +207 -0
  30. package/src/services/gmailapp/fakemimemessage.js +85 -0
  31. package/src/services/scriptapp/behavior.js +172 -24
  32. package/src/support/auth.js +93 -82
  33. package/src/support/helpers.js +4 -1
  34. package/src/support/sxfetch.js +22 -1
  35. package/src/support/sxgmail.js +4 -3
  36. package/testlib.sh +1 -0
  37. package/ex-logo.png +0 -0
package/README.RU.md CHANGED
@@ -359,6 +359,7 @@ const getParentsIterator = ({
359
359
  - [Supercharge Your Google Apps Script Caching with GasFlexCache](https://ramblings.mcpher.com/supercharge-your-google-apps-script-caching-with-gasflexcache/)
360
360
  - [Fake-Sandbox for Google Apps Script: Granular controls.](https://ramblings.mcpher.com/fake-sandbox-for-google-apps-script-granular-controls/)
361
361
  - [A Fake-Sandbox for Google Apps Script: Securely Executing Code Generated by Gemini CLI](https://ramblings.mcpher.com/gas-fakes-sandbox/)
362
+ - [Power of Google Apps Script: Building MCP Server Tools for Gemini CLI and Google Antigravity in Google Workspace Automation](https://medium.com/google-cloud/power-of-google-apps-script-building-mcp-server-tools-for-gemini-cli-and-google-antigravity-in-71e754e4b740)
362
363
  - [A New Era for Google Apps Script: Unlocking the Future of Google Workspace Automation with Natural Language](https://medium.com/google-cloud/a-new-era-for-google-apps-script-unlocking-the-future-of-google-workspace-automation-with-natural-a9cecf87b4c6)
363
364
  - [Next-Generation Google Apps Script Development: Leveraging Antigravity and Gemini 3.0](https://medium.com/google-cloud/next-generation-google-apps-script-development-leveraging-antigravity-and-gemini-3-0-c4d5affbc1a8)
364
365
  - [Modern Google Apps Script Workflow Building on the Cloud](https://medium.com/google-cloud/modern-google-apps-script-workflow-building-on-the-cloud-2255dbd32ac3)
package/README.md CHANGED
@@ -178,6 +178,7 @@ As I mentioned earlier, to take this further, I'm going to need a lot of help to
178
178
  - [Supercharge Your Google Apps Script Caching with GasFlexCache](https://ramblings.mcpher.com/supercharge-your-google-apps-script-caching-with-gasflexcache/)
179
179
  - [Fake-Sandbox for Google Apps Script: Granular controls.](https://ramblings.mcpher.com/fake-sandbox-for-google-apps-script-granular-controls/)
180
180
  - [A Fake-Sandbox for Google Apps Script: Securely Executing Code Generated by Gemini CLI](https://ramblings.mcpher.com/gas-fakes-sandbox/)
181
+ - [Power of Google Apps Script: Building MCP Server Tools for Gemini CLI and Google Antigravity in Google Workspace Automation](https://medium.com/google-cloud/power-of-google-apps-script-building-mcp-server-tools-for-gemini-cli-and-google-antigravity-in-71e754e4b740)
181
182
  - [A New Era for Google Apps Script: Unlocking the Future of Google Workspace Automation with Natural Language](https://medium.com/google-cloud/a-new-era-for-google-apps-script-unlocking-the-future-of-google-workspace-automation-with-natural-a9cecf87b4c6)
182
183
  - [Next-Generation Google Apps Script Development: Leveraging Antigravity and Gemini 3.0](https://medium.com/google-cloud/next-generation-google-apps-script-development-leveraging-antigravity-and-gemini-3-0-c4d5affbc1a8)
183
184
  - [Modern Google Apps Script Workflow Building on the Cloud](https://medium.com/google-cloud/modern-google-apps-script-workflow-building-on-the-cloud-2255dbd32ac3)
package/drive_tools.js ADDED
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+
3
+ const tools = [{ name: "search_files_by_name", schema: {
4
+ description: "Search for files on Google Drive by filename.",
5
+ inputSchema: {
6
+ filename: z.string().describe("The name of the file to search for.")
7
+ }
8
+ }, func: (object = {}) => { const { filename } = object;
9
+ const files = DriveApp.getFilesByName(filename);
10
+ const results = [];
11
+ while (files.hasNext()) {
12
+ const file = files.next();
13
+ results.push({
14
+ name: file.getName(),
15
+ id: file.getId(),
16
+ url: file.getUrl(),
17
+ mimeType: file.getMimeType()
18
+ });
19
+ }
20
+ return results; } }];