wizards 0.7.4 → 0.7.5
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/bin/wizards.mjs +95 -26
- package/{apps/web/dist/install.sh → install.sh} +23 -5
- package/package.json +2 -58
- package/apps/runtime/dist/agents/architect.js +0 -444
- package/apps/runtime/dist/agents/studio-assistant.js +0 -883
- package/apps/runtime/dist/agents/subscription.js +0 -207
- package/apps/runtime/dist/agents/thought.js +0 -21
- package/apps/runtime/dist/agents/website.js +0 -480
- package/apps/runtime/dist/app.js +0 -359
- package/apps/runtime/dist/apple/wizards-apple +0 -0
- package/apps/runtime/dist/assistant/browser.js +0 -26
- package/apps/runtime/dist/assistant/docs.js +0 -158
- package/apps/runtime/dist/assistant/knows.js +0 -353
- package/apps/runtime/dist/assistant/primer.js +0 -26
- package/apps/runtime/dist/assistant/runs.js +0 -24
- package/apps/runtime/dist/auth/account.js +0 -175
- package/apps/runtime/dist/auth/device.js +0 -112
- package/apps/runtime/dist/auth/index.js +0 -358
- package/apps/runtime/dist/auth/keys.js +0 -55
- package/apps/runtime/dist/auth/local-ticket.js +0 -26
- package/apps/runtime/dist/authoring/example.js +0 -74
- package/apps/runtime/dist/authoring/guide.js +0 -433
- package/apps/runtime/dist/authoring/ops.js +0 -117
- package/apps/runtime/dist/browser/fast/action-space.js +0 -160
- package/apps/runtime/dist/browser/fast/classifier.js +0 -91
- package/apps/runtime/dist/browser/fast/decide.js +0 -171
- package/apps/runtime/dist/browser/fast/driver.js +0 -141
- package/apps/runtime/dist/browser/fast/instructions.js +0 -33
- package/apps/runtime/dist/browser/fast/run.js +0 -249
- package/apps/runtime/dist/browser/fast/span-picker.js +0 -153
- package/apps/runtime/dist/browser/fast/text-helper.js +0 -178
- package/apps/runtime/dist/browser/snapshot.js +0 -335
- package/apps/runtime/dist/cli/account.js +0 -385
- package/apps/runtime/dist/cli/autostart.js +0 -182
- package/apps/runtime/dist/cli/autoupdate.js +0 -221
- package/apps/runtime/dist/cli/clients.js +0 -44
- package/apps/runtime/dist/cli/connect.js +0 -540
- package/apps/runtime/dist/cli/environment.js +0 -93
- package/apps/runtime/dist/cli/exec.js +0 -45
- package/apps/runtime/dist/cli/features.js +0 -50
- package/apps/runtime/dist/cli/home.js +0 -88
- package/apps/runtime/dist/cli/install-env.js +0 -33
- package/apps/runtime/dist/cli/machine.js +0 -107
- package/apps/runtime/dist/cli/main.js +0 -222
- package/apps/runtime/dist/cli/mcp.js +0 -136
- package/apps/runtime/dist/cli/menu.js +0 -202
- package/apps/runtime/dist/cli/processes.js +0 -72
- package/apps/runtime/dist/cli/report.js +0 -66
- package/apps/runtime/dist/cli/setup.js +0 -335
- package/apps/runtime/dist/cli/start.js +0 -276
- package/apps/runtime/dist/cli/status.js +0 -203
- package/apps/runtime/dist/cli/ui.js +0 -59
- package/apps/runtime/dist/cli/uninstall-main.js +0 -20
- package/apps/runtime/dist/cli/uninstall.js +0 -231
- package/apps/runtime/dist/cli/update.js +0 -86
- package/apps/runtime/dist/cli/validate.js +0 -75
- package/apps/runtime/dist/cli/versions.js +0 -106
- package/apps/runtime/dist/connectors/builtin.js +0 -86
- package/apps/runtime/dist/connectors/external.js +0 -409
- package/apps/runtime/dist/connectors/gmail.js +0 -107
- package/apps/runtime/dist/connectors/imap.js +0 -261
- package/apps/runtime/dist/connectors/index.js +0 -325
- package/apps/runtime/dist/connectors/mail.js +0 -72
- package/apps/runtime/dist/connectors/outlook.js +0 -90
- package/apps/runtime/dist/connectors/plugin-connections.js +0 -343
- package/apps/runtime/dist/connectors/via-account.js +0 -65
- package/apps/runtime/dist/credits/credits.js +0 -100
- package/apps/runtime/dist/credits/estimate.js +0 -152
- package/apps/runtime/dist/db/adopt.js +0 -149
- package/apps/runtime/dist/db/client.js +0 -173
- package/apps/runtime/dist/db/control-schema.js +0 -133
- package/apps/runtime/dist/db/migrations/control/0000_last_absorbing_man.sql +0 -47
- package/apps/runtime/dist/db/migrations/control/0001_gorgeous_nicolaos.sql +0 -41
- package/apps/runtime/dist/db/migrations/control/0002_secret_penance.sql +0 -1
- package/apps/runtime/dist/db/migrations/control/0003_nasty_mordo.sql +0 -3
- package/apps/runtime/dist/db/migrations/control/0004_breezy_eddie_brock.sql +0 -6
- package/apps/runtime/dist/db/migrations/control/0005_chilly_oracle.sql +0 -1
- package/apps/runtime/dist/db/migrations/control/0006_sleepy_mojo.sql +0 -1
- package/apps/runtime/dist/db/migrations/control/0007_common_the_hand.sql +0 -15
- package/apps/runtime/dist/db/migrations/control/0008_runner.sql +0 -8
- package/apps/runtime/dist/db/migrations/control/0009_plugin_claim.sql +0 -9
- package/apps/runtime/dist/db/migrations/control/0010_tan_snowbird.sql +0 -6
- package/apps/runtime/dist/db/migrations/control/meta/0000_snapshot.json +0 -311
- package/apps/runtime/dist/db/migrations/control/meta/0001_snapshot.json +0 -599
- package/apps/runtime/dist/db/migrations/control/meta/0002_snapshot.json +0 -607
- package/apps/runtime/dist/db/migrations/control/meta/0003_snapshot.json +0 -311
- package/apps/runtime/dist/db/migrations/control/meta/0004_snapshot.json +0 -350
- package/apps/runtime/dist/db/migrations/control/meta/0005_snapshot.json +0 -358
- package/apps/runtime/dist/db/migrations/control/meta/0006_snapshot.json +0 -365
- package/apps/runtime/dist/db/migrations/control/meta/0007_snapshot.json +0 -460
- package/apps/runtime/dist/db/migrations/control/meta/0008_snapshot.json +0 -505
- package/apps/runtime/dist/db/migrations/control/meta/0009_snapshot.json +0 -561
- package/apps/runtime/dist/db/migrations/control/meta/0010_snapshot.json +0 -600
- package/apps/runtime/dist/db/migrations/control/meta/_journal.json +0 -83
- package/apps/runtime/dist/db/migrations/tenant/0000_eminent_freak.sql +0 -188
- package/apps/runtime/dist/db/migrations/tenant/0001_salty_master_chief.sql +0 -1
- package/apps/runtime/dist/db/migrations/tenant/0002_cloudy_firebird.sql +0 -1
- package/apps/runtime/dist/db/migrations/tenant/0003_brown_warbound.sql +0 -52
- package/apps/runtime/dist/db/migrations/tenant/0004_romantic_nocturne.sql +0 -6
- package/apps/runtime/dist/db/migrations/tenant/0005_reflective_forgotten_one.sql +0 -2
- package/apps/runtime/dist/db/migrations/tenant/0006_hard_war_machine.sql +0 -30
- package/apps/runtime/dist/db/migrations/tenant/0007_space_data.sql +0 -43
- package/apps/runtime/dist/db/migrations/tenant/0008_run_event_note.sql +0 -1
- package/apps/runtime/dist/db/migrations/tenant/0009_knowledge.sql +0 -104
- package/apps/runtime/dist/db/migrations/tenant/0010_plugin_connection.sql +0 -15
- package/apps/runtime/dist/db/migrations/tenant/0011_runners.sql +0 -2
- package/apps/runtime/dist/db/migrations/tenant/0012_assistant_chat.sql +0 -40
- package/apps/runtime/dist/db/migrations/tenant/0013_run_origin.sql +0 -1
- package/apps/runtime/dist/db/migrations/tenant/0014_run_answer.sql +0 -2
- package/apps/runtime/dist/db/migrations/tenant/0015_device_calls.sql +0 -13
- package/apps/runtime/dist/db/migrations/tenant/0016_even_trish_tilby.sql +0 -12
- package/apps/runtime/dist/db/migrations/tenant/meta/0000_snapshot.json +0 -1323
- package/apps/runtime/dist/db/migrations/tenant/meta/0001_snapshot.json +0 -1330
- package/apps/runtime/dist/db/migrations/tenant/meta/0002_snapshot.json +0 -1337
- package/apps/runtime/dist/db/migrations/tenant/meta/0003_snapshot.json +0 -1605
- package/apps/runtime/dist/db/migrations/tenant/meta/0004_snapshot.json +0 -1645
- package/apps/runtime/dist/db/migrations/tenant/meta/0005_snapshot.json +0 -1659
- package/apps/runtime/dist/db/migrations/tenant/meta/0006_snapshot.json +0 -1696
- package/apps/runtime/dist/db/migrations/tenant/meta/0007_snapshot.json +0 -2012
- package/apps/runtime/dist/db/migrations/tenant/meta/0008_snapshot.json +0 -2019
- package/apps/runtime/dist/db/migrations/tenant/meta/0009_snapshot.json +0 -2837
- package/apps/runtime/dist/db/migrations/tenant/meta/0010_snapshot.json +0 -2942
- package/apps/runtime/dist/db/migrations/tenant/meta/0011_snapshot.json +0 -2956
- package/apps/runtime/dist/db/migrations/tenant/meta/0012_snapshot.json +0 -3132
- package/apps/runtime/dist/db/migrations/tenant/meta/0013_snapshot.json +0 -3139
- package/apps/runtime/dist/db/migrations/tenant/meta/0014_snapshot.json +0 -3154
- package/apps/runtime/dist/db/migrations/tenant/meta/0015_snapshot.json +0 -3243
- package/apps/runtime/dist/db/migrations/tenant/meta/0016_snapshot.json +0 -3326
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +0 -125
- package/apps/runtime/dist/db/schema.js +0 -602
- package/apps/runtime/dist/debug.js +0 -196
- package/apps/runtime/dist/docs/dev/index.md +0 -41
- package/apps/runtime/dist/docs/dev/meta.json +0 -7
- package/apps/runtime/dist/docs/dev/plugins/connections.md +0 -74
- package/apps/runtime/dist/docs/dev/plugins/events.md +0 -89
- package/apps/runtime/dist/docs/dev/plugins/examples.md +0 -101
- package/apps/runtime/dist/docs/dev/plugins/index.md +0 -78
- package/apps/runtime/dist/docs/dev/plugins/layout.md +0 -90
- package/apps/runtime/dist/docs/dev/plugins/meta.json +0 -28
- package/apps/runtime/dist/docs/dev/plugins/quick-start.md +0 -94
- package/apps/runtime/dist/docs/dev/plugins/reference.md +0 -348
- package/apps/runtime/dist/docs/dev/plugins/reloading.md +0 -76
- package/apps/runtime/dist/docs/dev/plugins/routes.md +0 -185
- package/apps/runtime/dist/docs/dev/plugins/runners.md +0 -230
- package/apps/runtime/dist/docs/dev/plugins/server.md +0 -281
- package/apps/runtime/dist/docs/dev/plugins/shipping.md +0 -79
- package/apps/runtime/dist/docs/dev/plugins/space.md +0 -297
- package/apps/runtime/dist/docs/dev/plugins/starters.md +0 -70
- package/apps/runtime/dist/docs/dev/plugins/studio.md +0 -363
- package/apps/runtime/dist/docs/dev/plugins/styling.md +0 -129
- package/apps/runtime/dist/docs/dev/plugins/tables.md +0 -104
- package/apps/runtime/dist/docs/dev/plugins/tools.md +0 -139
- package/apps/runtime/dist/docs/dev/wizard-format.md +0 -121
- package/apps/runtime/dist/docs/meta.json +0 -3
- package/apps/runtime/dist/docs/user/ai-apps.md +0 -112
- package/apps/runtime/dist/docs/user/assistant.md +0 -77
- package/apps/runtime/dist/docs/user/build-a-wizard.md +0 -116
- package/apps/runtime/dist/docs/user/command-line.md +0 -83
- package/apps/runtime/dist/docs/user/connectors.md +0 -90
- package/apps/runtime/dist/docs/user/create-account.md +0 -52
- package/apps/runtime/dist/docs/user/data.md +0 -66
- package/apps/runtime/dist/docs/user/first-start.md +0 -60
- package/apps/runtime/dist/docs/user/index.md +0 -49
- package/apps/runtime/dist/docs/user/install.md +0 -121
- package/apps/runtime/dist/docs/user/local-only.md +0 -42
- package/apps/runtime/dist/docs/user/meta.json +0 -32
- package/apps/runtime/dist/docs/user/models.md +0 -156
- package/apps/runtime/dist/docs/user/plugins.md +0 -71
- package/apps/runtime/dist/docs/user/run.md +0 -98
- package/apps/runtime/dist/docs/user/server.md +0 -52
- package/apps/runtime/dist/docs/user/space.md +0 -126
- package/apps/runtime/dist/docs/user/steps.md +0 -220
- package/apps/runtime/dist/docs/user/test-and-share.md +0 -224
- package/apps/runtime/dist/docs/user/troubleshooting.md +0 -67
- package/apps/runtime/dist/docs/user/wordpress.md +0 -121
- package/apps/runtime/dist/documents/parse.js +0 -246
- package/apps/runtime/dist/engenty/connections-external/build-connector.js +0 -193
- package/apps/runtime/dist/engenty/connections-external/errors.js +0 -11
- package/apps/runtime/dist/engenty/connections-external/import-service.js +0 -270
- package/apps/runtime/dist/engenty/connections-external/importer/classify.js +0 -34
- package/apps/runtime/dist/engenty/connections-external/importer/map-auth.js +0 -185
- package/apps/runtime/dist/engenty/connections-external/importer/normalize-mcp.js +0 -63
- package/apps/runtime/dist/engenty/connections-external/importer/normalize-openapi.js +0 -130
- package/apps/runtime/dist/engenty/connections-external/invoke/http-invoker.js +0 -143
- package/apps/runtime/dist/engenty/connections-external/invoke/mcp-client.js +0 -143
- package/apps/runtime/dist/engenty/connections-external/net/guarded-fetch.js +0 -119
- package/apps/runtime/dist/engenty/connections-external/oauth-dcr.js +0 -88
- package/apps/runtime/dist/engenty/connections-external/registry-client.js +0 -336
- package/apps/runtime/dist/engenty/connections-external/registry-source.js +0 -82
- package/apps/runtime/dist/engenty/connections-external/types.js +0 -7
- package/apps/runtime/dist/engenty/connections-github/connector.js +0 -209
- package/apps/runtime/dist/engenty/connections-google/connectors/calendar.js +0 -381
- package/apps/runtime/dist/engenty/connections-google/connectors/contacts.js +0 -94
- package/apps/runtime/dist/engenty/connections-google/connectors/drive.js +0 -290
- package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +0 -567
- package/apps/runtime/dist/engenty/connections-google/definitions.js +0 -11
- package/apps/runtime/dist/engenty/connections-google/shared.js +0 -73
- package/apps/runtime/dist/engenty/connections-hubspot/connector.js +0 -140
- package/apps/runtime/dist/engenty/connections-microsoft/action.js +0 -17
- package/apps/runtime/dist/engenty/connections-microsoft/graph.js +0 -114
- package/apps/runtime/dist/engenty/connections-microsoft/onedrive.js +0 -286
- package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +0 -492
- package/apps/runtime/dist/engenty/connections-s3/s3.js +0 -328
- package/apps/runtime/dist/engenty/connections-sdk/files-capability.js +0 -86
- package/apps/runtime/dist/engenty/connections-sdk/oauth2.js +0 -150
- package/apps/runtime/dist/engenty/connections-sdk/registry.js +0 -89
- package/apps/runtime/dist/engenty/connections-sdk/storage-capability.js +0 -84
- package/apps/runtime/dist/engenty/connections-sdk/types.js +0 -30
- package/apps/runtime/dist/engenty/connections-slack/connector.js +0 -360
- package/apps/runtime/dist/engenty/csv-import/csv-matrix.js +0 -178
- package/apps/runtime/dist/engenty/csv-import/import-sources.js +0 -87
- package/apps/runtime/dist/engenty/csv-import/parse-csv.js +0 -129
- package/apps/runtime/dist/engenty/csv-import/serialize-csv.js +0 -20
- package/apps/runtime/dist/engenty/csv-import/types.js +0 -1
- package/apps/runtime/dist/engenty/csv-import/xlsx-workbook.js +0 -159
- package/apps/runtime/dist/engenty/doc-converter/interface.js +0 -9
- package/apps/runtime/dist/engenty/doc-converter/page-break.js +0 -92
- package/apps/runtime/dist/engenty/doc-converter/providers/local/index.js +0 -72
- package/apps/runtime/dist/engenty/document-scanner/schemas/classifier.js +0 -30
- package/apps/runtime/dist/engenty/document-scanner/schemas/index.js +0 -4
- package/apps/runtime/dist/engenty/document-scanner/schemas/invoice.js +0 -73
- package/apps/runtime/dist/engenty/document-scanner/schemas/receipt.js +0 -63
- package/apps/runtime/dist/engenty/document-scanner/schemas/shared.js +0 -40
- package/apps/runtime/dist/engenty/search-index/chunks.js +0 -164
- package/apps/runtime/dist/engenty/search-index/contracts.js +0 -9
- package/apps/runtime/dist/engenty/shims/connections-sdk.js +0 -39
- package/apps/runtime/dist/engenty/shims/plugin-sdk.js +0 -1
- package/apps/runtime/dist/engenty/shims/web-ingest.js +0 -19
- package/apps/runtime/dist/engenty/web-ingest/ssrf.js +0 -277
- package/apps/runtime/dist/engine/asks.js +0 -82
- package/apps/runtime/dist/engine/decide.js +0 -82
- package/apps/runtime/dist/engine/device.js +0 -194
- package/apps/runtime/dist/engine/events.js +0 -128
- package/apps/runtime/dist/engine/input.js +0 -208
- package/apps/runtime/dist/engine/owner.js +0 -32
- package/apps/runtime/dist/engine/prepare.js +0 -90
- package/apps/runtime/dist/engine/push.js +0 -58
- package/apps/runtime/dist/engine/requirements.js +0 -355
- package/apps/runtime/dist/engine/resources.js +0 -198
- package/apps/runtime/dist/engine/runner.js +0 -970
- package/apps/runtime/dist/engine/steps.js +0 -1000
- package/apps/runtime/dist/engine/surface.js +0 -91
- package/apps/runtime/dist/engine/template.js +0 -240
- package/apps/runtime/dist/engine/types.js +0 -4
- package/apps/runtime/dist/env.js +0 -295
- package/apps/runtime/dist/features.js +0 -123
- package/apps/runtime/dist/files/blobs.js +0 -22
- package/apps/runtime/dist/files/objects.js +0 -86
- package/apps/runtime/dist/files/storage.js +0 -120
- package/apps/runtime/dist/files/web-images.js +0 -101
- package/apps/runtime/dist/film/project.js +0 -257
- package/apps/runtime/dist/film/skills.js +0 -91
- package/apps/runtime/dist/film/sounds.js +0 -122
- package/apps/runtime/dist/film/step.js +0 -289
- package/apps/runtime/dist/film/tools.js +0 -99
- package/apps/runtime/dist/geocode.js +0 -58
- package/apps/runtime/dist/harness/antigravity.js +0 -129
- package/apps/runtime/dist/harness/apple.js +0 -270
- package/apps/runtime/dist/harness/claude.js +0 -147
- package/apps/runtime/dist/harness/codex.js +0 -229
- package/apps/runtime/dist/harness/cursor.js +0 -93
- package/apps/runtime/dist/harness/env.js +0 -124
- package/apps/runtime/dist/harness/index.js +0 -95
- package/apps/runtime/dist/harness/model.js +0 -279
- package/apps/runtime/dist/harness/prompt.js +0 -121
- package/apps/runtime/dist/harness/terminal.js +0 -194
- package/apps/runtime/dist/harness/types.js +0 -7
- package/apps/runtime/dist/index.js +0 -113
- package/apps/runtime/dist/limits.js +0 -81
- package/apps/runtime/dist/link-preview.js +0 -60
- package/apps/runtime/dist/log.js +0 -106
- package/apps/runtime/dist/manage.js +0 -249
- package/apps/runtime/dist/mcp/auth.js +0 -161
- package/apps/runtime/dist/mcp/bridge.js +0 -59
- package/apps/runtime/dist/mcp/flow-app.js +0 -97
- package/apps/runtime/dist/mcp/handler.js +0 -54
- package/apps/runtime/dist/mcp/scopes.js +0 -14
- package/apps/runtime/dist/mcp/seen.js +0 -65
- package/apps/runtime/dist/mcp/tools.js +0 -572
- package/apps/runtime/dist/media/conversation.js +0 -167
- package/apps/runtime/dist/media/ffmpeg.js +0 -121
- package/apps/runtime/dist/media/generate.js +0 -120
- package/apps/runtime/dist/media/marking.js +0 -121
- package/apps/runtime/dist/media/transcribe.js +0 -198
- package/apps/runtime/dist/model-errors.js +0 -42
- package/apps/runtime/dist/models.js +0 -1164
- package/apps/runtime/dist/plugin.js +0 -61
- package/apps/runtime/dist/plugins/channels.js +0 -78
- package/apps/runtime/dist/plugins/claims.js +0 -56
- package/apps/runtime/dist/plugins/discovery.js +0 -155
- package/apps/runtime/dist/plugins/events.js +0 -63
- package/apps/runtime/dist/plugins/jobs.js +0 -64
- package/apps/runtime/dist/plugins/loader.js +0 -508
- package/apps/runtime/dist/plugins/migrations.js +0 -69
- package/apps/runtime/dist/plugins/pro-keys.js +0 -34
- package/apps/runtime/dist/plugins/pro-state.js +0 -83
- package/apps/runtime/dist/plugins/pro.js +0 -310
- package/apps/runtime/dist/plugins/public.js +0 -44
- package/apps/runtime/dist/plugins/registry.js +0 -122
- package/apps/runtime/dist/plugins/runs.js +0 -210
- package/apps/runtime/dist/render/browser-path.js +0 -54
- package/apps/runtime/dist/render/chromium.js +0 -98
- package/apps/runtime/dist/render/convert.js +0 -158
- package/apps/runtime/dist/render/downloads.js +0 -299
- package/apps/runtime/dist/render/guard.js +0 -25
- package/apps/runtime/dist/render/shaped.js +0 -137
- package/apps/runtime/dist/routes/api.js +0 -440
- package/apps/runtime/dist/routes/debug.js +0 -42
- package/apps/runtime/dist/routes/delivery.js +0 -90
- package/apps/runtime/dist/routes/internal.js +0 -81
- package/apps/runtime/dist/routes/lang.js +0 -25
- package/apps/runtime/dist/routes/marketplace.js +0 -43
- package/apps/runtime/dist/routes/plugin-public.js +0 -113
- package/apps/runtime/dist/routes/plugins.js +0 -212
- package/apps/runtime/dist/routes/runs.js +0 -1422
- package/apps/runtime/dist/routes/studio.js +0 -1629
- package/apps/runtime/dist/routes/wizard-stream.js +0 -30
- package/apps/runtime/dist/running.js +0 -39
- package/apps/runtime/dist/sandbox/docker.js +0 -75
- package/apps/runtime/dist/sandbox/index.js +0 -23
- package/apps/runtime/dist/sandbox/types.js +0 -1
- package/apps/runtime/dist/secrets/crypto.js +0 -28
- package/apps/runtime/dist/secrets/signing.js +0 -52
- package/apps/runtime/dist/secrets/vault.js +0 -59
- package/apps/runtime/dist/services/access.js +0 -88
- package/apps/runtime/dist/services/api.js +0 -248
- package/apps/runtime/dist/services/architect.js +0 -95
- package/apps/runtime/dist/services/assistant-chats.js +0 -311
- package/apps/runtime/dist/services/brand.js +0 -85
- package/apps/runtime/dist/services/cloud.js +0 -456
- package/apps/runtime/dist/services/draft-events.js +0 -27
- package/apps/runtime/dist/services/engenty-shapes.js +0 -71
- package/apps/runtime/dist/services/errors.js +0 -29
- package/apps/runtime/dist/services/files.js +0 -178
- package/apps/runtime/dist/services/knowledge-model.js +0 -559
- package/apps/runtime/dist/services/knowledge.js +0 -721
- package/apps/runtime/dist/services/links.js +0 -16
- package/apps/runtime/dist/services/marketplace.js +0 -492
- package/apps/runtime/dist/services/onboarding.js +0 -152
- package/apps/runtime/dist/services/package-file.js +0 -82
- package/apps/runtime/dist/services/package.js +0 -170
- package/apps/runtime/dist/services/profile.js +0 -51
- package/apps/runtime/dist/services/project-files.js +0 -439
- package/apps/runtime/dist/services/project-index.js +0 -707
- package/apps/runtime/dist/services/projects.js +0 -387
- package/apps/runtime/dist/services/relevance.js +0 -58
- package/apps/runtime/dist/services/runners.js +0 -178
- package/apps/runtime/dist/services/runs.js +0 -524
- package/apps/runtime/dist/services/shares.js +0 -130
- package/apps/runtime/dist/services/site.js +0 -270
- package/apps/runtime/dist/services/space-categories.js +0 -861
- package/apps/runtime/dist/services/space-data.js +0 -792
- package/apps/runtime/dist/services/space-origin.js +0 -207
- package/apps/runtime/dist/services/spaces.js +0 -656
- package/apps/runtime/dist/services/translations.js +0 -306
- package/apps/runtime/dist/services/widgets.js +0 -34
- package/apps/runtime/dist/services/wizard-icon.js +0 -157
- package/apps/runtime/dist/services/wizards.js +0 -420
- package/apps/runtime/dist/settings.js +0 -16
- package/apps/runtime/dist/store/errors.js +0 -4
- package/apps/runtime/dist/store/index.js +0 -299
- package/apps/runtime/dist/store/shared-lists.js +0 -123
- package/apps/runtime/dist/tenants/control.js +0 -238
- package/apps/runtime/dist/tenants/tenant.js +0 -26
- package/apps/runtime/dist/texts.js +0 -207
- package/apps/runtime/dist/tools/browser.js +0 -703
- package/apps/runtime/dist/tools/connector.js +0 -204
- package/apps/runtime/dist/tools/index.js +0 -291
- package/apps/runtime/dist/tools/mail.js +0 -104
- package/apps/runtime/dist/tools/net-guard.js +0 -170
- package/apps/runtime/dist/tools/pages.js +0 -81
- package/apps/runtime/dist/tools/plugin.js +0 -180
- package/apps/runtime/dist/tools/project.js +0 -154
- package/apps/runtime/dist/tools/shared.js +0 -69
- package/apps/runtime/dist/tools/store.js +0 -238
- package/apps/runtime/dist/update.js +0 -113
- package/apps/runtime/dist/widgets/bundle.js +0 -99
- package/apps/runtime/dist/widgets/render.js +0 -329
- package/apps/runtime/dist/widgets/runtime.js +0 -108
- package/apps/runtime/dist/widgets/script.js +0 -30
- package/apps/runtime/dist/widgets/step.js +0 -223
- package/apps/web/dist/ai-labels/ai-black.svg +0 -20
- package/apps/web/dist/ai-labels/ai-generated-black.svg +0 -31
- package/apps/web/dist/ai-labels/ai-generated-white.svg +0 -32
- package/apps/web/dist/ai-labels/ai-modified-black.svg +0 -30
- package/apps/web/dist/ai-labels/ai-modified-white.svg +0 -31
- package/apps/web/dist/ai-labels/ai-white.svg +0 -21
- package/apps/web/dist/assets/AboutDialog-BI6487_s.js +0 -1
- package/apps/web/dist/assets/ChangelogDialog-B63QWuUV.js +0 -1
- package/apps/web/dist/assets/ChatView-BjQVHGjn.js +0 -10
- package/apps/web/dist/assets/EditorPage-DrprS19h.js +0 -3
- package/apps/web/dist/assets/FlowPreview-CusP7ci9.js +0 -1
- package/apps/web/dist/assets/Harness-BrP-ENHg.css +0 -1
- package/apps/web/dist/assets/Harness-CCMqhtuk.js +0 -16
- package/apps/web/dist/assets/NewWizardChannels-DpcWsST7.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-BXePNBa9.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-BtZ6sHJi.js +0 -1
- package/apps/web/dist/assets/ProjectPage-DHOL8FXt.js +0 -1
- package/apps/web/dist/assets/PublicRunner-BLRVe7G0.js +0 -1
- package/apps/web/dist/assets/ReadOnly-BV8o_HtK.js +0 -1
- package/apps/web/dist/assets/RunDrawer-D-T8pYfB.js +0 -4
- package/apps/web/dist/assets/RunnerView-BinlRsGF.js +0 -1
- package/apps/web/dist/assets/SettingsPage-B6M-jFJw.js +0 -1
- package/apps/web/dist/assets/SetupPage-DI6c--4V.js +0 -1
- package/apps/web/dist/assets/SharePage-C4cESaes.js +0 -1
- package/apps/web/dist/assets/changelog-Dj_yd2vG.js +0 -1
- package/apps/web/dist/assets/engenty-eXZ-EAwd.js +0 -1
- package/apps/web/dist/assets/esm-DXeMu8Lb.js +0 -7
- package/apps/web/dist/assets/fluffy-engenty-ClRou7yu.js +0 -456
- package/apps/web/dist/assets/index-AfUa8xKD.css +0 -1
- package/apps/web/dist/assets/index-yiE9Lun0.js +0 -14
- package/apps/web/dist/assets/jsx-runtime-BNakU3Ej.js +0 -1
- package/apps/web/dist/assets/lock-R_CfU0Xo.js +0 -1
- package/apps/web/dist/assets/oss-credits-cZ9NUaLZ.js +0 -1
- package/apps/web/dist/assets/pdfmake-Cx9scTbD.js +0 -228
- package/apps/web/dist/assets/phone-CgrIS4_-.js +0 -1
- package/apps/web/dist/assets/preload-helper-CNEI7N0N.js +0 -1
- package/apps/web/dist/assets/qr-scanner-worker.min-CJaXo3yu.js +0 -98
- package/apps/web/dist/assets/qr-scanner.min-C_UI0gH-.js +0 -1
- package/apps/web/dist/assets/rolldown-runtime-hePW80VL.js +0 -1
- package/apps/web/dist/assets/settings-menu-2IMOOlLl.js +0 -1
- package/apps/web/dist/assets/ui-dzGvc3xk.js +0 -137
- package/apps/web/dist/assets/upload-BSuTilFF.js +0 -1
- package/apps/web/dist/assets/vfs_fonts-DllDSYt1.js +0 -1
- package/apps/web/dist/embed.js +0 -266
- package/apps/web/dist/favicon.svg +0 -1
- package/apps/web/dist/icons/apple-touch-icon.png +0 -0
- package/apps/web/dist/icons/icon-192.png +0 -0
- package/apps/web/dist/icons/icon-512.png +0 -0
- package/apps/web/dist/icons/icon-maskable-512.png +0 -0
- package/apps/web/dist/index.html +0 -48
- package/apps/web/dist/manifest.webmanifest +0 -21
- package/apps/web/dist/mcp/flow.html +0 -980
- package/apps/web/dist/sw.js +0 -15
- package/modules/README.md +0 -15
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +0 -1150
- package/node_modules/@engenty/wizards/dist/plugin/index.js +0 -4
- package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +0 -322
- package/node_modules/@engenty/wizards/dist/plugin/studio.js +0 -4
- package/node_modules/@engenty/wizards/dist/plugin/thread.d.ts +0 -174
- package/node_modules/@engenty/wizards/dist/plugin/thread.js +0 -821
- package/node_modules/@engenty/wizards/package.json +0 -11
- package/node_modules/@engenty-wizards/shared/dist/assistant.d.ts +0 -174
- package/node_modules/@engenty-wizards/shared/dist/assistant.js +0 -65
- package/node_modules/@engenty-wizards/shared/dist/changes.d.ts +0 -22
- package/node_modules/@engenty-wizards/shared/dist/changes.js +0 -61
- package/node_modules/@engenty-wizards/shared/dist/connectors.d.ts +0 -77
- package/node_modules/@engenty-wizards/shared/dist/connectors.js +0 -2
- package/node_modules/@engenty-wizards/shared/dist/decision.d.ts +0 -76
- package/node_modules/@engenty-wizards/shared/dist/decision.js +0 -147
- package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +0 -2922
- package/node_modules/@engenty-wizards/shared/dist/definition.js +0 -1920
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.d.ts +0 -5
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.js +0 -132
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.d.ts +0 -11
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.js +0 -209
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.d.ts +0 -532
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.js +0 -217
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.d.ts +0 -3
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.js +0 -3
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.d.ts +0 -14
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.js +0 -166
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.d.ts +0 -33
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.js +0 -99
- package/node_modules/@engenty-wizards/shared/dist/feature-flags.d.ts +0 -78
- package/node_modules/@engenty-wizards/shared/dist/feature-flags.js +0 -70
- package/node_modules/@engenty-wizards/shared/dist/features.d.ts +0 -41
- package/node_modules/@engenty-wizards/shared/dist/features.js +0 -89
- package/node_modules/@engenty-wizards/shared/dist/fit.d.ts +0 -71
- package/node_modules/@engenty-wizards/shared/dist/fit.js +0 -382
- package/node_modules/@engenty-wizards/shared/dist/json-schema.d.ts +0 -14
- package/node_modules/@engenty-wizards/shared/dist/json-schema.js +0 -66
- package/node_modules/@engenty-wizards/shared/dist/knowledge.d.ts +0 -199
- package/node_modules/@engenty-wizards/shared/dist/knowledge.js +0 -68
- package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.d.ts +0 -35
- package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.js +0 -107
- package/node_modules/@engenty-wizards/shared/dist/marketplace-search.d.ts +0 -20
- package/node_modules/@engenty-wizards/shared/dist/marketplace-search.js +0 -136
- package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +0 -227
- package/node_modules/@engenty-wizards/shared/dist/marketplace.js +0 -354
- package/node_modules/@engenty-wizards/shared/dist/merge.d.ts +0 -7
- package/node_modules/@engenty-wizards/shared/dist/merge.js +0 -40
- package/node_modules/@engenty-wizards/shared/dist/numbers.d.ts +0 -24
- package/node_modules/@engenty-wizards/shared/dist/numbers.js +0 -54
- package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +0 -224
- package/node_modules/@engenty-wizards/shared/dist/projects.js +0 -319
- package/node_modules/@engenty-wizards/shared/dist/providers.d.ts +0 -101
- package/node_modules/@engenty-wizards/shared/dist/providers.js +0 -390
- package/node_modules/@engenty-wizards/shared/dist/run.d.ts +0 -680
- package/node_modules/@engenty-wizards/shared/dist/run.js +0 -620
- package/node_modules/@engenty-wizards/shared/dist/runner-texts.d.ts +0 -546
- package/node_modules/@engenty-wizards/shared/dist/runner-texts.js +0 -523
- package/node_modules/@engenty-wizards/shared/dist/runners.d.ts +0 -93
- package/node_modules/@engenty-wizards/shared/dist/runners.js +0 -146
- package/node_modules/@engenty-wizards/shared/dist/shape.d.ts +0 -102
- package/node_modules/@engenty-wizards/shared/dist/shape.js +0 -318
- package/node_modules/@engenty-wizards/shared/dist/space-data.d.ts +0 -89
- package/node_modules/@engenty-wizards/shared/dist/space-data.js +0 -47
- package/node_modules/@engenty-wizards/shared/dist/store.d.ts +0 -117
- package/node_modules/@engenty-wizards/shared/dist/store.js +0 -81
- package/node_modules/@engenty-wizards/shared/dist/surface.d.ts +0 -115
- package/node_modules/@engenty-wizards/shared/dist/surface.js +0 -442
- package/node_modules/@engenty-wizards/shared/dist/texts.d.ts +0 -45
- package/node_modules/@engenty-wizards/shared/dist/texts.js +0 -54
- package/node_modules/@engenty-wizards/shared/dist/translation.d.ts +0 -23
- package/node_modules/@engenty-wizards/shared/dist/translation.js +0 -154
- package/node_modules/@engenty-wizards/shared/dist/wizard-package.d.ts +0 -48
- package/node_modules/@engenty-wizards/shared/dist/wizard-package.js +0 -49
- package/node_modules/@engenty-wizards/shared/dist/workspace.d.ts +0 -16
- package/node_modules/@engenty-wizards/shared/dist/workspace.js +0 -51
- package/node_modules/@engenty-wizards/shared/package.json +0 -10
- package/plugin/.claude-plugin/plugin.json +0 -9
- package/plugin/.mcp.json +0 -8
- package/plugin/commands/wizard.md +0 -8
- package/plugin/skills/build-wizard/SKILL.md +0 -27
- package/plugin/skills/use-wizard/SKILL.md +0 -18
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { defineConnector, } from "../../shims/connections-sdk.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { connectorAction, GOOGLE_OAUTH2, googleFetch, googleJson, } from "../shared.js";
|
|
4
|
-
const CALENDAR_API = "https://www.googleapis.com/calendar/v3";
|
|
5
|
-
const SCOPE_READONLY = "https://www.googleapis.com/auth/calendar.readonly";
|
|
6
|
-
const SCOPE_EVENTS = "https://www.googleapis.com/auth/calendar.events";
|
|
7
|
-
const ALL_DAY_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
8
|
-
function eventTime(t) {
|
|
9
|
-
return t?.dateTime ?? t?.date ?? null;
|
|
10
|
-
}
|
|
11
|
-
function toEventSummary(e) {
|
|
12
|
-
return {
|
|
13
|
-
all_day: Boolean(e.start?.date),
|
|
14
|
-
end: eventTime(e.end),
|
|
15
|
-
etag: e.etag ?? null,
|
|
16
|
-
event_id: e.id,
|
|
17
|
-
html_link: e.htmlLink ?? null,
|
|
18
|
-
location: e.location ?? null,
|
|
19
|
-
private_properties: e.extendedProperties?.private ?? null,
|
|
20
|
-
start: eventTime(e.start),
|
|
21
|
-
status: e.status ?? null,
|
|
22
|
-
summary: e.summary ?? null,
|
|
23
|
-
// RFC3339 last-modified stamp; drives the pull-back conflict rule.
|
|
24
|
-
updated: e.updated ?? null,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/** Bounds the incremental-sync page walk so a huge changelog can't hang. */
|
|
28
|
-
const MAX_SYNC_PAGES = 20;
|
|
29
|
-
const privatePropertiesField = z
|
|
30
|
-
.record(z.string(), z.string())
|
|
31
|
-
.optional()
|
|
32
|
-
.describe("Private key/value metadata stored on the event (extendedProperties.private), not visible to attendees. Used to tag events created by an integration.");
|
|
33
|
-
/**
|
|
34
|
-
* "2026-07-04" → { date } (all-day); a timestamp → { dateTime }. When
|
|
35
|
-
* `timeZone` is given, a zone-less local timestamp is resolved by Google in
|
|
36
|
-
* that IANA zone (DST-safe) instead of requiring an explicit offset.
|
|
37
|
-
*/
|
|
38
|
-
function toEventDateTime(value, timeZone) {
|
|
39
|
-
if (ALL_DAY_DATE.test(value)) {
|
|
40
|
-
return { date: value };
|
|
41
|
-
}
|
|
42
|
-
return timeZone ? { dateTime: value, timeZone } : { dateTime: value };
|
|
43
|
-
}
|
|
44
|
-
const timeZoneField = z
|
|
45
|
-
.string()
|
|
46
|
-
.optional()
|
|
47
|
-
.describe('IANA time zone (e.g. "Europe/Vienna") for timed start/end given without an offset. Optional when start/end already carry an offset.');
|
|
48
|
-
const calendarIdField = z
|
|
49
|
-
.string()
|
|
50
|
-
.optional()
|
|
51
|
-
.describe('Calendar id (default "primary", the user\'s main calendar).');
|
|
52
|
-
const startField = z
|
|
53
|
-
.string()
|
|
54
|
-
.describe('Event start: ISO 8601 timestamp with offset (e.g. "2026-07-04T10:00:00+02:00") or a plain date "YYYY-MM-DD" for an all-day event.');
|
|
55
|
-
const endField = z
|
|
56
|
-
.string()
|
|
57
|
-
.describe('Event end: ISO 8601 timestamp, or a plain date "YYYY-MM-DD" (exclusive) for an all-day event.');
|
|
58
|
-
const attendeesField = z
|
|
59
|
-
.array(z.string().describe("Attendee email address."))
|
|
60
|
-
.optional()
|
|
61
|
-
.describe("Optional list of attendee email addresses.");
|
|
62
|
-
const sendUpdatesField = z
|
|
63
|
-
.enum(["all", "externalOnly", "none"])
|
|
64
|
-
.optional()
|
|
65
|
-
.describe('Whom Google e-mails about the change: "all" attendees, "externalOnly" (outside the organisation) or "none" (default).');
|
|
66
|
-
/** `?sendUpdates=` for a write, when the caller asked Google to tell the attendees. */
|
|
67
|
-
const updatesQuery = (value) => value ? `?sendUpdates=${encodeURIComponent(value)}` : "";
|
|
68
|
-
export const calendarConnector = defineConnector({
|
|
69
|
-
actions: [
|
|
70
|
-
connectorAction({
|
|
71
|
-
description: "List the calendars the connected account can see, with id, name, primary flag and access role.",
|
|
72
|
-
group: "read",
|
|
73
|
-
handler: async (_input, ctx) => {
|
|
74
|
-
const data = await googleJson(ctx, `${CALENDAR_API}/users/me/calendarList?maxResults=100`);
|
|
75
|
-
return {
|
|
76
|
-
calendars: (data.items ?? []).map((c) => ({
|
|
77
|
-
access_role: c.accessRole ?? null,
|
|
78
|
-
description: c.description ?? null,
|
|
79
|
-
id: c.id,
|
|
80
|
-
primary: Boolean(c.primary),
|
|
81
|
-
summary: c.summary ?? null,
|
|
82
|
-
time_zone: c.timeZone ?? null,
|
|
83
|
-
})),
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
id: "list_calendars",
|
|
87
|
-
inputSchema: z.object({}),
|
|
88
|
-
providerScopes: [SCOPE_READONLY],
|
|
89
|
-
summary: "List Google calendars",
|
|
90
|
-
}),
|
|
91
|
-
connectorAction({
|
|
92
|
-
description: "List events from a calendar in a time window, ordered by start time (recurring events expanded to single instances). For incremental two-way sync, pass a prior `sync_token` to fetch only changes since then, or set `return_sync_token` to receive a `next_sync_token` for the next incremental pull.",
|
|
93
|
-
group: "read",
|
|
94
|
-
handler: async (input, ctx) => {
|
|
95
|
-
const calendarId = input.calendar_id ?? "primary";
|
|
96
|
-
const eventsUrl = `${CALENDAR_API}/calendars/${encodeURIComponent(calendarId)}/events`;
|
|
97
|
-
// Sync mode: a token was supplied, or the caller wants one back. Both
|
|
98
|
-
// require draining every page so the terminal nextSyncToken is captured
|
|
99
|
-
// (Google only returns it on the last page of a completed sync).
|
|
100
|
-
const syncMode = input.sync_token !== undefined || input.return_sync_token === true;
|
|
101
|
-
if (!syncMode) {
|
|
102
|
-
const url = new URL(eventsUrl);
|
|
103
|
-
url.searchParams.set("singleEvents", "true");
|
|
104
|
-
url.searchParams.set("orderBy", "startTime");
|
|
105
|
-
url.searchParams.set("maxResults", String(input.max_results ?? 10));
|
|
106
|
-
if (input.time_min) {
|
|
107
|
-
url.searchParams.set("timeMin", input.time_min);
|
|
108
|
-
}
|
|
109
|
-
if (input.time_max) {
|
|
110
|
-
url.searchParams.set("timeMax", input.time_max);
|
|
111
|
-
}
|
|
112
|
-
const data = await googleJson(ctx, url.toString());
|
|
113
|
-
return {
|
|
114
|
-
calendar_id: calendarId,
|
|
115
|
-
next_sync_token: null,
|
|
116
|
-
sync_token_expired: false,
|
|
117
|
-
events: (data.items ?? []).map((e) => ({
|
|
118
|
-
...toEventSummary(e),
|
|
119
|
-
attendee_count: e.attendees?.length ?? 0,
|
|
120
|
-
})),
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
const items = [];
|
|
124
|
-
let pageToken;
|
|
125
|
-
let nextSyncToken = null;
|
|
126
|
-
for (let page = 0; page < MAX_SYNC_PAGES; page += 1) {
|
|
127
|
-
const url = new URL(eventsUrl);
|
|
128
|
-
// singleEvents must stay constant across a sync series; syncToken is
|
|
129
|
-
// incompatible with orderBy/timeMin/timeMax (they only seed the
|
|
130
|
-
// initial full sync when no token is present).
|
|
131
|
-
url.searchParams.set("singleEvents", "true");
|
|
132
|
-
url.searchParams.set("maxResults", String(input.max_results ?? 250));
|
|
133
|
-
if (input.sync_token) {
|
|
134
|
-
url.searchParams.set("syncToken", input.sync_token);
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
url.searchParams.set("orderBy", "startTime");
|
|
138
|
-
if (input.time_min) {
|
|
139
|
-
url.searchParams.set("timeMin", input.time_min);
|
|
140
|
-
}
|
|
141
|
-
if (input.time_max) {
|
|
142
|
-
url.searchParams.set("timeMax", input.time_max);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
if (pageToken) {
|
|
146
|
-
url.searchParams.set("pageToken", pageToken);
|
|
147
|
-
}
|
|
148
|
-
const res = await ctx.fetchImpl(url.toString(), {
|
|
149
|
-
headers: { Authorization: `Bearer ${ctx.accessToken}` },
|
|
150
|
-
});
|
|
151
|
-
// 410 GONE ⇒ the sync token expired; the caller must re-list in full.
|
|
152
|
-
if (res.status === 410) {
|
|
153
|
-
return {
|
|
154
|
-
calendar_id: calendarId,
|
|
155
|
-
next_sync_token: null,
|
|
156
|
-
sync_token_expired: true,
|
|
157
|
-
events: [],
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
if (!res.ok) {
|
|
161
|
-
const body = (await res.text().catch(() => "")).slice(0, 200);
|
|
162
|
-
throw new Error(`google_api_error (${res.status}): ${body}`);
|
|
163
|
-
}
|
|
164
|
-
const data = (await res.json());
|
|
165
|
-
items.push(...(data.items ?? []));
|
|
166
|
-
if (data.nextSyncToken) {
|
|
167
|
-
nextSyncToken = data.nextSyncToken;
|
|
168
|
-
}
|
|
169
|
-
if (!data.nextPageToken) {
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
pageToken = data.nextPageToken;
|
|
173
|
-
}
|
|
174
|
-
return {
|
|
175
|
-
calendar_id: calendarId,
|
|
176
|
-
next_sync_token: nextSyncToken,
|
|
177
|
-
sync_token_expired: false,
|
|
178
|
-
events: items.map((e) => ({
|
|
179
|
-
...toEventSummary(e),
|
|
180
|
-
attendee_count: e.attendees?.length ?? 0,
|
|
181
|
-
})),
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
id: "list_events",
|
|
185
|
-
inputSchema: z.object({
|
|
186
|
-
calendar_id: calendarIdField,
|
|
187
|
-
max_results: z
|
|
188
|
-
.number()
|
|
189
|
-
.int()
|
|
190
|
-
.min(1)
|
|
191
|
-
.max(250)
|
|
192
|
-
.optional()
|
|
193
|
-
.describe("Maximum number of events to return (1-250, default 10)."),
|
|
194
|
-
return_sync_token: z
|
|
195
|
-
.boolean()
|
|
196
|
-
.optional()
|
|
197
|
-
.describe("Drain all pages and return a `next_sync_token` to seed the next incremental pull (used for two-way sync)."),
|
|
198
|
-
sync_token: z
|
|
199
|
-
.string()
|
|
200
|
-
.optional()
|
|
201
|
-
.describe("Incremental sync token from a prior `next_sync_token`. Returns only events changed since then (incompatible with time_min/time_max/order). If expired, the response sets `sync_token_expired`."),
|
|
202
|
-
time_max: z
|
|
203
|
-
.string()
|
|
204
|
-
.optional()
|
|
205
|
-
.describe('Only events starting before this ISO 8601 timestamp (e.g. "2026-07-11T00:00:00Z").'),
|
|
206
|
-
time_min: z
|
|
207
|
-
.string()
|
|
208
|
-
.optional()
|
|
209
|
-
.describe('Only events ending after this ISO 8601 timestamp (e.g. "2026-07-04T00:00:00Z").'),
|
|
210
|
-
}),
|
|
211
|
-
providerScopes: [SCOPE_READONLY],
|
|
212
|
-
summary: "List calendar events",
|
|
213
|
-
}),
|
|
214
|
-
connectorAction({
|
|
215
|
-
description: "Fetch one calendar event by id with full details: description, organizer, attendees and their response status.",
|
|
216
|
-
group: "read",
|
|
217
|
-
handler: async (input, ctx) => {
|
|
218
|
-
const calendarId = input.calendar_id ?? "primary";
|
|
219
|
-
const e = await googleJson(ctx, `${CALENDAR_API}/calendars/${encodeURIComponent(calendarId)}/events/${encodeURIComponent(input.event_id)}`);
|
|
220
|
-
return {
|
|
221
|
-
...toEventSummary(e),
|
|
222
|
-
attendees: (e.attendees ?? []).map((a) => ({
|
|
223
|
-
display_name: a.displayName ?? null,
|
|
224
|
-
email: a.email ?? null,
|
|
225
|
-
optional: Boolean(a.optional),
|
|
226
|
-
response_status: a.responseStatus ?? null,
|
|
227
|
-
})),
|
|
228
|
-
calendar_id: calendarId,
|
|
229
|
-
description: e.description ?? null,
|
|
230
|
-
organizer: e.organizer?.email ?? null,
|
|
231
|
-
};
|
|
232
|
-
},
|
|
233
|
-
id: "get_event",
|
|
234
|
-
inputSchema: z.object({
|
|
235
|
-
calendar_id: calendarIdField,
|
|
236
|
-
event_id: z.string().describe("Calendar event id."),
|
|
237
|
-
}),
|
|
238
|
-
providerScopes: [SCOPE_READONLY],
|
|
239
|
-
summary: "Get a calendar event",
|
|
240
|
-
}),
|
|
241
|
-
connectorAction({
|
|
242
|
-
description: "Create a calendar event (timed or all-day), optionally inviting attendees by email.",
|
|
243
|
-
group: "write",
|
|
244
|
-
handler: async (input, ctx) => {
|
|
245
|
-
const calendarId = input.calendar_id ?? "primary";
|
|
246
|
-
const created = await googleJson(ctx, `${CALENDAR_API}/calendars/${encodeURIComponent(calendarId)}/events${updatesQuery(input.send_updates)}`, {
|
|
247
|
-
body: JSON.stringify({
|
|
248
|
-
end: toEventDateTime(input.end, input.time_zone),
|
|
249
|
-
start: toEventDateTime(input.start, input.time_zone),
|
|
250
|
-
summary: input.summary,
|
|
251
|
-
...(input.description ? { description: input.description } : {}),
|
|
252
|
-
...(input.location ? { location: input.location } : {}),
|
|
253
|
-
...(input.attendees?.length
|
|
254
|
-
? { attendees: input.attendees.map((email) => ({ email })) }
|
|
255
|
-
: {}),
|
|
256
|
-
...(input.private_properties
|
|
257
|
-
? { extendedProperties: { private: input.private_properties } }
|
|
258
|
-
: {}),
|
|
259
|
-
}),
|
|
260
|
-
headers: { "Content-Type": "application/json" },
|
|
261
|
-
method: "POST",
|
|
262
|
-
});
|
|
263
|
-
return { ...toEventSummary(created), calendar_id: calendarId };
|
|
264
|
-
},
|
|
265
|
-
id: "create_event",
|
|
266
|
-
inputSchema: z.object({
|
|
267
|
-
attendees: attendeesField,
|
|
268
|
-
calendar_id: calendarIdField,
|
|
269
|
-
description: z
|
|
270
|
-
.string()
|
|
271
|
-
.optional()
|
|
272
|
-
.describe("Optional event description/notes."),
|
|
273
|
-
end: endField,
|
|
274
|
-
location: z
|
|
275
|
-
.string()
|
|
276
|
-
.optional()
|
|
277
|
-
.describe("Where the event takes place: an address, a phone number or a meeting link."),
|
|
278
|
-
private_properties: privatePropertiesField,
|
|
279
|
-
send_updates: sendUpdatesField,
|
|
280
|
-
start: startField,
|
|
281
|
-
summary: z.string().describe("Event title."),
|
|
282
|
-
time_zone: timeZoneField,
|
|
283
|
-
}),
|
|
284
|
-
providerScopes: [SCOPE_EVENTS],
|
|
285
|
-
summary: "Create a calendar event",
|
|
286
|
-
}),
|
|
287
|
-
connectorAction({
|
|
288
|
-
description: "Update fields of an existing calendar event (patch semantics: only the provided fields change).",
|
|
289
|
-
group: "write",
|
|
290
|
-
handler: async (input, ctx) => {
|
|
291
|
-
const calendarId = input.calendar_id ?? "primary";
|
|
292
|
-
const patch = {};
|
|
293
|
-
if (input.summary !== undefined) {
|
|
294
|
-
patch.summary = input.summary;
|
|
295
|
-
}
|
|
296
|
-
if (input.description !== undefined) {
|
|
297
|
-
patch.description = input.description;
|
|
298
|
-
}
|
|
299
|
-
if (input.location !== undefined) {
|
|
300
|
-
patch.location = input.location;
|
|
301
|
-
}
|
|
302
|
-
if (input.start !== undefined) {
|
|
303
|
-
patch.start = toEventDateTime(input.start, input.time_zone);
|
|
304
|
-
}
|
|
305
|
-
if (input.end !== undefined) {
|
|
306
|
-
patch.end = toEventDateTime(input.end, input.time_zone);
|
|
307
|
-
}
|
|
308
|
-
if (input.attendees !== undefined) {
|
|
309
|
-
patch.attendees = input.attendees.map((email) => ({ email }));
|
|
310
|
-
}
|
|
311
|
-
if (input.private_properties !== undefined) {
|
|
312
|
-
patch.extendedProperties = { private: input.private_properties };
|
|
313
|
-
}
|
|
314
|
-
const updated = await googleJson(ctx, `${CALENDAR_API}/calendars/${encodeURIComponent(calendarId)}/events/${encodeURIComponent(input.event_id)}${updatesQuery(input.send_updates)}`, {
|
|
315
|
-
body: JSON.stringify(patch),
|
|
316
|
-
headers: { "Content-Type": "application/json" },
|
|
317
|
-
method: "PATCH",
|
|
318
|
-
});
|
|
319
|
-
return { ...toEventSummary(updated), calendar_id: calendarId };
|
|
320
|
-
},
|
|
321
|
-
id: "update_event",
|
|
322
|
-
inputSchema: z
|
|
323
|
-
.object({
|
|
324
|
-
attendees: attendeesField,
|
|
325
|
-
calendar_id: calendarIdField,
|
|
326
|
-
description: z
|
|
327
|
-
.string()
|
|
328
|
-
.optional()
|
|
329
|
-
.describe("New event description (replaces the existing one)."),
|
|
330
|
-
end: endField.optional(),
|
|
331
|
-
event_id: z.string().describe("Calendar event id to update."),
|
|
332
|
-
location: z
|
|
333
|
-
.string()
|
|
334
|
-
.optional()
|
|
335
|
-
.describe("New location (replaces the existing one)."),
|
|
336
|
-
private_properties: privatePropertiesField,
|
|
337
|
-
send_updates: sendUpdatesField,
|
|
338
|
-
start: startField.optional(),
|
|
339
|
-
summary: z.string().optional().describe("New event title."),
|
|
340
|
-
time_zone: timeZoneField,
|
|
341
|
-
})
|
|
342
|
-
.refine((v) => v.attendees !== undefined ||
|
|
343
|
-
v.description !== undefined ||
|
|
344
|
-
v.end !== undefined ||
|
|
345
|
-
v.location !== undefined ||
|
|
346
|
-
v.private_properties !== undefined ||
|
|
347
|
-
v.start !== undefined ||
|
|
348
|
-
v.summary !== undefined, { message: "Provide at least one field to update." }),
|
|
349
|
-
providerScopes: [SCOPE_EVENTS],
|
|
350
|
-
summary: "Update a calendar event",
|
|
351
|
-
}),
|
|
352
|
-
connectorAction({
|
|
353
|
-
description: "Delete a calendar event permanently (attendees are notified of the cancellation).",
|
|
354
|
-
group: "destructive",
|
|
355
|
-
handler: async (input, ctx) => {
|
|
356
|
-
const calendarId = input.calendar_id ?? "primary";
|
|
357
|
-
await googleFetch(ctx, `${CALENDAR_API}/calendars/${encodeURIComponent(calendarId)}/events/${encodeURIComponent(input.event_id)}${updatesQuery(input.send_updates)}`, { method: "DELETE" });
|
|
358
|
-
return {
|
|
359
|
-
calendar_id: calendarId,
|
|
360
|
-
deleted: true,
|
|
361
|
-
event_id: input.event_id,
|
|
362
|
-
};
|
|
363
|
-
},
|
|
364
|
-
id: "delete_event",
|
|
365
|
-
inputSchema: z.object({
|
|
366
|
-
calendar_id: calendarIdField,
|
|
367
|
-
event_id: z.string().describe("Calendar event id to delete."),
|
|
368
|
-
send_updates: sendUpdatesField,
|
|
369
|
-
}),
|
|
370
|
-
providerScopes: [SCOPE_EVENTS],
|
|
371
|
-
summary: "Delete a calendar event",
|
|
372
|
-
}),
|
|
373
|
-
],
|
|
374
|
-
auth: { kind: "oauth2", oauth2: GOOGLE_OAUTH2 },
|
|
375
|
-
description: "Read and manage events in a connected Google Calendar account.",
|
|
376
|
-
icon: "logo:google-calendar",
|
|
377
|
-
id: "google-calendar",
|
|
378
|
-
moduleId: "connections-google",
|
|
379
|
-
name: "Google Calendar",
|
|
380
|
-
toolPrefix: "gcal",
|
|
381
|
-
});
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { defineConnector, } from "../../shims/connections-sdk.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { connectorAction, GOOGLE_OAUTH2, googleJson } from "../shared.js";
|
|
4
|
-
const PEOPLE_API = "https://people.googleapis.com/v1";
|
|
5
|
-
const SCOPE_READONLY = "https://www.googleapis.com/auth/contacts.readonly";
|
|
6
|
-
function mapPerson(person) {
|
|
7
|
-
const name = person.names?.[0];
|
|
8
|
-
const org = person.organizations?.[0];
|
|
9
|
-
return {
|
|
10
|
-
display_name: name?.displayName ?? null,
|
|
11
|
-
email: person.emailAddresses?.[0]?.value ?? null,
|
|
12
|
-
family_name: name?.familyName ?? null,
|
|
13
|
-
given_name: name?.givenName ?? null,
|
|
14
|
-
organization: org?.name ?? null,
|
|
15
|
-
phone: person.phoneNumbers?.[0]?.value ?? null,
|
|
16
|
-
resource_name: person.resourceName ?? null,
|
|
17
|
-
title: org?.title ?? null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export const contactsConnector = defineConnector({
|
|
21
|
-
actions: [
|
|
22
|
-
connectorAction({
|
|
23
|
-
description: "List contacts from Google Contacts (People API). Returns compact rows suitable for import: display name, given/family name, email, phone, organization, title.",
|
|
24
|
-
group: "read",
|
|
25
|
-
handler: async (input, ctx) => {
|
|
26
|
-
const url = new URL(`${PEOPLE_API}/people/me/connections`);
|
|
27
|
-
url.searchParams.set("personFields", "names,emailAddresses,phoneNumbers,organizations");
|
|
28
|
-
url.searchParams.set("pageSize", String(input.page_size ?? 100));
|
|
29
|
-
if (input.page_token) {
|
|
30
|
-
url.searchParams.set("pageToken", input.page_token);
|
|
31
|
-
}
|
|
32
|
-
const data = await googleJson(ctx, url.toString());
|
|
33
|
-
return {
|
|
34
|
-
contacts: (data.connections ?? []).map(mapPerson),
|
|
35
|
-
next_page_token: data.nextPageToken ?? null,
|
|
36
|
-
total_people: data.totalPeople ?? null,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
id: "list_contacts",
|
|
40
|
-
inputSchema: z.object({
|
|
41
|
-
page_size: z
|
|
42
|
-
.number()
|
|
43
|
-
.int()
|
|
44
|
-
.min(1)
|
|
45
|
-
.max(1000)
|
|
46
|
-
.optional()
|
|
47
|
-
.describe("Page size (1–1000). Defaults to 100."),
|
|
48
|
-
page_token: z
|
|
49
|
-
.string()
|
|
50
|
-
.optional()
|
|
51
|
-
.describe("Pagination token from a previous list_contacts call."),
|
|
52
|
-
}),
|
|
53
|
-
providerScopes: [SCOPE_READONLY],
|
|
54
|
-
summary: "List Google Contacts",
|
|
55
|
-
}),
|
|
56
|
-
connectorAction({
|
|
57
|
-
description: "Search Google Contacts by a query string (name, email, phone). Returns the same compact contact rows as list_contacts.",
|
|
58
|
-
group: "read",
|
|
59
|
-
handler: async (input, ctx) => {
|
|
60
|
-
const url = new URL(`${PEOPLE_API}/people:searchContacts`);
|
|
61
|
-
url.searchParams.set("query", input.query);
|
|
62
|
-
url.searchParams.set("readMask", "names,emailAddresses,phoneNumbers,organizations");
|
|
63
|
-
url.searchParams.set("pageSize", String(input.page_size ?? 30));
|
|
64
|
-
const data = await googleJson(ctx, url.toString());
|
|
65
|
-
return {
|
|
66
|
-
contacts: (data.results ?? [])
|
|
67
|
-
.map((r) => r.person)
|
|
68
|
-
.filter((p) => Boolean(p))
|
|
69
|
-
.map(mapPerson),
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
id: "search_contacts",
|
|
73
|
-
inputSchema: z.object({
|
|
74
|
-
page_size: z
|
|
75
|
-
.number()
|
|
76
|
-
.int()
|
|
77
|
-
.min(1)
|
|
78
|
-
.max(30)
|
|
79
|
-
.optional()
|
|
80
|
-
.describe("Max results (1–30). Defaults to 30."),
|
|
81
|
-
query: z.string().min(1).describe("Search query."),
|
|
82
|
-
}),
|
|
83
|
-
providerScopes: [SCOPE_READONLY],
|
|
84
|
-
summary: "Search Google Contacts",
|
|
85
|
-
}),
|
|
86
|
-
],
|
|
87
|
-
auth: { kind: "oauth2", oauth2: GOOGLE_OAUTH2 },
|
|
88
|
-
description: "Import and search people from Google Contacts via the People API.",
|
|
89
|
-
icon: "logo:gmail",
|
|
90
|
-
id: "google-contacts",
|
|
91
|
-
moduleId: "connections-google",
|
|
92
|
-
name: "Google Contacts",
|
|
93
|
-
toolPrefix: "gcontacts",
|
|
94
|
-
});
|