wizards 0.7.3 → 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/README.md +4 -4
- 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 -539
- 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 -106
- 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 -55
- 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/apple.js +0 -269
- 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/gemini.js +0 -126
- package/apps/runtime/dist/harness/index.js +0 -95
- package/apps/runtime/dist/harness/model.js +0 -271
- 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 -1106
- 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 -501
- 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 -1600
- 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 -203
- 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--aZOfowz.js +0 -1
- package/apps/web/dist/assets/ChangelogDialog-CcMXT8l9.js +0 -1
- package/apps/web/dist/assets/ChatView-BqK5nH84.js +0 -10
- package/apps/web/dist/assets/EditorPage-BRZmuMsK.js +0 -3
- package/apps/web/dist/assets/FlowPreview-CpA_aX8t.js +0 -1
- package/apps/web/dist/assets/Harness-BrP-ENHg.css +0 -1
- package/apps/web/dist/assets/Harness-C8demwfW.js +0 -16
- package/apps/web/dist/assets/NewWizardChannels-vph1mN1m.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-u1BIy4q9.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-BR3FmORm.js +0 -1
- package/apps/web/dist/assets/ProjectPage-BWN0iO0X.js +0 -1
- package/apps/web/dist/assets/PublicRunner-CohatW8Y.js +0 -1
- package/apps/web/dist/assets/ReadOnly-rQGZBuzb.js +0 -1
- package/apps/web/dist/assets/RunDrawer-Cs8XqQUo.js +0 -4
- package/apps/web/dist/assets/RunnerView-B85O0i1h.js +0 -1
- package/apps/web/dist/assets/SettingsPage-CM6HfO-O.js +0 -1
- package/apps/web/dist/assets/SetupPage-BpAobBc4.js +0 -1
- package/apps/web/dist/assets/SharePage-CbmAN4M4.js +0 -1
- package/apps/web/dist/assets/changelog-BBR59khF.js +0 -1
- package/apps/web/dist/assets/engenty-eXZ-EAwd.js +0 -1
- package/apps/web/dist/assets/esm-CY-A_13f.js +0 -7
- package/apps/web/dist/assets/fluffy-engenty-ClRou7yu.js +0 -456
- package/apps/web/dist/assets/index-C7HL_Fjz.js +0 -14
- package/apps/web/dist/assets/index-Co9Yr23e.css +0 -1
- package/apps/web/dist/assets/jsx-runtime-BNakU3Ej.js +0 -1
- package/apps/web/dist/assets/lock--JFmtLDU.js +0 -1
- package/apps/web/dist/assets/oss-credits-BJrR7BR1.js +0 -1
- package/apps/web/dist/assets/pdfmake-Cx9scTbD.js +0 -228
- package/apps/web/dist/assets/phone-DMtADQ4-.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-Dac4JUiM.js +0 -1
- package/apps/web/dist/assets/ui-CTXSFCzc.js +0 -137
- package/apps/web/dist/assets/upload-Bcpc3mDn.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/plugin-sdk/dist/index.d.ts +0 -1150
- package/node_modules/@engenty-wizards/plugin-sdk/dist/index.js +0 -4
- package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +0 -322
- package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.js +0 -4
- package/node_modules/@engenty-wizards/plugin-sdk/dist/thread.d.ts +0 -174
- package/node_modules/@engenty-wizards/plugin-sdk/dist/thread.js +0 -821
- package/node_modules/@engenty-wizards/plugin-sdk/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 -679
- package/node_modules/@engenty-wizards/shared/dist/run.js +0 -618
- 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,492 +0,0 @@
|
|
|
1
|
-
import { defineConnector } from "../shims/connections-sdk.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { action } from "./action.js";
|
|
4
|
-
import { bodyToText, graphJson, MICROSOFT_OAUTH2 } from "./graph.js";
|
|
5
|
-
const MAX_LIST_TOP = 25;
|
|
6
|
-
function mapRecipient(r) {
|
|
7
|
-
return {
|
|
8
|
-
address: r?.emailAddress?.address ?? null,
|
|
9
|
-
name: r?.emailAddress?.name ?? null,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function mapMessageSummary(m) {
|
|
13
|
-
return {
|
|
14
|
-
bodyPreview: m.bodyPreview ?? null,
|
|
15
|
-
from: mapRecipient(m.from),
|
|
16
|
-
id: m.id,
|
|
17
|
-
receivedDateTime: m.receivedDateTime ?? null,
|
|
18
|
-
subject: m.subject ?? null,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function mapEventSummary(e) {
|
|
22
|
-
return {
|
|
23
|
-
end: e.end ?? null,
|
|
24
|
-
id: e.id,
|
|
25
|
-
isAllDay: e.isAllDay ?? false,
|
|
26
|
-
location: e.location?.displayName ?? null,
|
|
27
|
-
organizer: mapRecipient(e.organizer),
|
|
28
|
-
show_as: e.showAs ?? null,
|
|
29
|
-
start: e.start ?? null,
|
|
30
|
-
subject: e.subject ?? null,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function mapEventDetail(e) {
|
|
34
|
-
return {
|
|
35
|
-
...mapEventSummary(e),
|
|
36
|
-
attendees: (e.attendees ?? []).map((a) => ({
|
|
37
|
-
...mapRecipient(a),
|
|
38
|
-
response: a.status?.response ?? null,
|
|
39
|
-
})),
|
|
40
|
-
body_text: bodyToText(e.body),
|
|
41
|
-
webLink: e.webLink ?? null,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function toRecipients(addresses) {
|
|
45
|
-
return (addresses ?? []).map((address) => ({ emailAddress: { address } }));
|
|
46
|
-
}
|
|
47
|
-
function toAttendees(addresses) {
|
|
48
|
-
return addresses.map((address) => ({
|
|
49
|
-
emailAddress: { address },
|
|
50
|
-
type: "required",
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
function clampTop(top, fallback) {
|
|
54
|
-
return Math.min(Math.max(top ?? fallback, 1), MAX_LIST_TOP);
|
|
55
|
-
}
|
|
56
|
-
/** Escape a value for use inside single quotes in an OData $filter. */
|
|
57
|
-
function odataQuote(value) {
|
|
58
|
-
return value.replace(/'/g, "''");
|
|
59
|
-
}
|
|
60
|
-
const topField = z
|
|
61
|
-
.number()
|
|
62
|
-
.int()
|
|
63
|
-
.min(1)
|
|
64
|
-
.max(MAX_LIST_TOP)
|
|
65
|
-
.optional()
|
|
66
|
-
.describe("Max results to return (1–25, default 10).");
|
|
67
|
-
const calendarIdField = z
|
|
68
|
-
.string()
|
|
69
|
-
.optional()
|
|
70
|
-
.describe("Calendar id to target (from list_calendars). Defaults to the user's primary calendar.");
|
|
71
|
-
/** Event collection path for a calendar (primary when no id given). */
|
|
72
|
-
function eventsPath(calendarId) {
|
|
73
|
-
return calendarId
|
|
74
|
-
? `/me/calendars/${encodeURIComponent(calendarId)}/events`
|
|
75
|
-
: "/me/events";
|
|
76
|
-
}
|
|
77
|
-
/** calendarView path (recurrence-expanded window) for a calendar. */
|
|
78
|
-
function calendarViewPath(calendarId) {
|
|
79
|
-
return calendarId
|
|
80
|
-
? `/me/calendars/${encodeURIComponent(calendarId)}/calendarView`
|
|
81
|
-
: "/me/calendarView";
|
|
82
|
-
}
|
|
83
|
-
const messageDraftFields = {
|
|
84
|
-
body_text: z.string().describe("Plain-text message body."),
|
|
85
|
-
cc: z.array(z.string()).optional().describe("CC recipient email addresses."),
|
|
86
|
-
subject: z.string().describe("Message subject."),
|
|
87
|
-
to: z.array(z.string()).min(1).describe("Recipient email addresses."),
|
|
88
|
-
};
|
|
89
|
-
function draftMessagePayload(input) {
|
|
90
|
-
return {
|
|
91
|
-
body: { content: input.body_text, contentType: "Text" },
|
|
92
|
-
...(input.cc?.length ? { ccRecipients: toRecipients(input.cc) } : {}),
|
|
93
|
-
subject: input.subject,
|
|
94
|
-
toRecipients: toRecipients(input.to),
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
const EVENT_SELECT = "id,subject,start,end,location,organizer,isAllDay,showAs";
|
|
98
|
-
async function fetchEventDetail(ctx, eventId) {
|
|
99
|
-
const e = await graphJson(ctx, `/me/events/${encodeURIComponent(eventId)}?$select=${EVENT_SELECT},attendees,body,webLink`);
|
|
100
|
-
return mapEventDetail(e);
|
|
101
|
-
}
|
|
102
|
-
export const microsoftOutlookConnector = defineConnector({
|
|
103
|
-
actions: [
|
|
104
|
-
// ── read ────────────────────────────────────────────────────────────
|
|
105
|
-
action({
|
|
106
|
-
description: "Search Outlook messages by free-text query or by sender/subject filter; returns compact summaries.",
|
|
107
|
-
group: "read",
|
|
108
|
-
id: "search_messages",
|
|
109
|
-
inputSchema: z.object({
|
|
110
|
-
from: z
|
|
111
|
-
.string()
|
|
112
|
-
.optional()
|
|
113
|
-
.describe("Filter: exact sender email address (ignored when query is set)."),
|
|
114
|
-
query: z
|
|
115
|
-
.string()
|
|
116
|
-
.optional()
|
|
117
|
-
.describe("Free-text search across the mailbox (Microsoft Graph $search)."),
|
|
118
|
-
subject_contains: z
|
|
119
|
-
.string()
|
|
120
|
-
.optional()
|
|
121
|
-
.describe("Filter: subject contains this text (ignored when query is set)."),
|
|
122
|
-
top: topField,
|
|
123
|
-
}),
|
|
124
|
-
providerScopes: ["Mail.Read"],
|
|
125
|
-
run: async (input, ctx) => {
|
|
126
|
-
const params = new URLSearchParams();
|
|
127
|
-
params.set("$select", "id,subject,from,receivedDateTime,bodyPreview");
|
|
128
|
-
params.set("$top", String(clampTop(input.top, 10)));
|
|
129
|
-
if (input.query) {
|
|
130
|
-
params.set("$search", `"${input.query.replace(/"/g, '\\"')}"`);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
const filters = [];
|
|
134
|
-
if (input.from) {
|
|
135
|
-
filters.push(`from/emailAddress/address eq '${odataQuote(input.from)}'`);
|
|
136
|
-
}
|
|
137
|
-
if (input.subject_contains) {
|
|
138
|
-
filters.push(`contains(subject,'${odataQuote(input.subject_contains)}')`);
|
|
139
|
-
}
|
|
140
|
-
if (filters.length) {
|
|
141
|
-
params.set("$filter", filters.join(" and "));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
const data = await graphJson(ctx, `/me/messages?${params.toString()}`);
|
|
145
|
-
return { messages: (data.value ?? []).map(mapMessageSummary) };
|
|
146
|
-
},
|
|
147
|
-
summary: "Search Outlook messages",
|
|
148
|
-
}),
|
|
149
|
-
action({
|
|
150
|
-
description: "Get a single Outlook message including its body as plain text (HTML bodies are converted).",
|
|
151
|
-
group: "read",
|
|
152
|
-
id: "get_message",
|
|
153
|
-
inputSchema: z.object({
|
|
154
|
-
message_id: z.string().describe("Graph message id."),
|
|
155
|
-
}),
|
|
156
|
-
providerScopes: ["Mail.Read"],
|
|
157
|
-
run: async (input, ctx) => {
|
|
158
|
-
const m = await graphJson(ctx, `/me/messages/${encodeURIComponent(input.message_id)}?$select=id,subject,from,toRecipients,ccRecipients,receivedDateTime,isRead,body,parentFolderId,webLink`);
|
|
159
|
-
return {
|
|
160
|
-
body_text: bodyToText(m.body),
|
|
161
|
-
cc: (m.ccRecipients ?? []).map(mapRecipient),
|
|
162
|
-
from: mapRecipient(m.from),
|
|
163
|
-
id: m.id,
|
|
164
|
-
isRead: m.isRead ?? null,
|
|
165
|
-
parentFolderId: m.parentFolderId ?? null,
|
|
166
|
-
receivedDateTime: m.receivedDateTime ?? null,
|
|
167
|
-
subject: m.subject ?? null,
|
|
168
|
-
to: (m.toRecipients ?? []).map(mapRecipient),
|
|
169
|
-
webLink: m.webLink ?? null,
|
|
170
|
-
};
|
|
171
|
-
},
|
|
172
|
-
summary: "Get an Outlook message with its text body",
|
|
173
|
-
}),
|
|
174
|
-
action({
|
|
175
|
-
description: "List mail folders in the mailbox (id, name, item counts) for use with move_message.",
|
|
176
|
-
group: "read",
|
|
177
|
-
id: "list_mail_folders",
|
|
178
|
-
inputSchema: z.object({
|
|
179
|
-
top: z
|
|
180
|
-
.number()
|
|
181
|
-
.int()
|
|
182
|
-
.min(1)
|
|
183
|
-
.max(MAX_LIST_TOP)
|
|
184
|
-
.optional()
|
|
185
|
-
.describe("Max folders to return (1–25, default 25)."),
|
|
186
|
-
}),
|
|
187
|
-
providerScopes: ["Mail.Read"],
|
|
188
|
-
run: async (input, ctx) => {
|
|
189
|
-
const data = await graphJson(ctx, `/me/mailFolders?$top=${clampTop(input.top, MAX_LIST_TOP)}&$select=id,displayName,totalItemCount,unreadItemCount`);
|
|
190
|
-
return {
|
|
191
|
-
folders: (data.value ?? []).map((f) => ({
|
|
192
|
-
displayName: f.displayName ?? null,
|
|
193
|
-
id: f.id,
|
|
194
|
-
totalItemCount: f.totalItemCount ?? null,
|
|
195
|
-
unreadItemCount: f.unreadItemCount ?? null,
|
|
196
|
-
})),
|
|
197
|
-
};
|
|
198
|
-
},
|
|
199
|
-
summary: "List Outlook mail folders",
|
|
200
|
-
}),
|
|
201
|
-
action({
|
|
202
|
-
description: "List the calendars the mailbox can see (id, name, primary flag) for use with the calendar_id parameter on the event actions.",
|
|
203
|
-
group: "read",
|
|
204
|
-
id: "list_calendars",
|
|
205
|
-
inputSchema: z.object({}),
|
|
206
|
-
providerScopes: ["Calendars.Read"],
|
|
207
|
-
run: async (_input, ctx) => {
|
|
208
|
-
const data = await graphJson(ctx, "/me/calendars?$select=id,name,isDefaultCalendar");
|
|
209
|
-
return {
|
|
210
|
-
calendars: (data.value ?? []).map((c) => ({
|
|
211
|
-
id: c.id,
|
|
212
|
-
primary: Boolean(c.isDefaultCalendar),
|
|
213
|
-
summary: c.name ?? null,
|
|
214
|
-
// Graph exposes no per-calendar default zone on this projection.
|
|
215
|
-
time_zone: null,
|
|
216
|
-
})),
|
|
217
|
-
};
|
|
218
|
-
},
|
|
219
|
-
summary: "List Outlook calendars",
|
|
220
|
-
}),
|
|
221
|
-
action({
|
|
222
|
-
description: "List calendar events from a calendar (default: primary). With start and end, expands recurring events in that window (calendarView); otherwise lists event definitions.",
|
|
223
|
-
group: "read",
|
|
224
|
-
id: "list_events",
|
|
225
|
-
inputSchema: z.object({
|
|
226
|
-
calendar_id: calendarIdField,
|
|
227
|
-
end: z
|
|
228
|
-
.string()
|
|
229
|
-
.optional()
|
|
230
|
-
.describe("Window end (ISO 8601). Provide both start and end to query a window."),
|
|
231
|
-
start: z
|
|
232
|
-
.string()
|
|
233
|
-
.optional()
|
|
234
|
-
.describe("Window start (ISO 8601). Provide both start and end to query a window."),
|
|
235
|
-
top: topField,
|
|
236
|
-
all: z
|
|
237
|
-
.boolean()
|
|
238
|
-
.optional()
|
|
239
|
-
.describe("With start and end: every event of the window (up to 1000), not only the first `top`. For free/busy."),
|
|
240
|
-
}),
|
|
241
|
-
providerScopes: ["Calendars.Read"],
|
|
242
|
-
run: async (input, ctx) => {
|
|
243
|
-
const params = new URLSearchParams({
|
|
244
|
-
$orderby: "start/dateTime",
|
|
245
|
-
$select: EVENT_SELECT,
|
|
246
|
-
$top: String(clampTop(input.top, 10)),
|
|
247
|
-
});
|
|
248
|
-
let path = `${eventsPath(input.calendar_id)}?${params.toString()}`;
|
|
249
|
-
if (input.start && input.end) {
|
|
250
|
-
params.set("startDateTime", input.start);
|
|
251
|
-
params.set("endDateTime", input.end);
|
|
252
|
-
if (input.all) {
|
|
253
|
-
// Page through the window, 100 at a time.
|
|
254
|
-
const events = [];
|
|
255
|
-
params.set("$top", "100");
|
|
256
|
-
for (let skip = 0; skip < 1000; skip += 100) {
|
|
257
|
-
params.set("$skip", String(skip));
|
|
258
|
-
const page = await graphJson(ctx, `${calendarViewPath(input.calendar_id)}?${params.toString()}`);
|
|
259
|
-
events.push(...(page.value ?? []));
|
|
260
|
-
if ((page.value ?? []).length < 100) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return { events: events.map(mapEventSummary) };
|
|
265
|
-
}
|
|
266
|
-
path = `${calendarViewPath(input.calendar_id)}?${params.toString()}`;
|
|
267
|
-
}
|
|
268
|
-
const data = await graphJson(ctx, path);
|
|
269
|
-
return { events: (data.value ?? []).map(mapEventSummary) };
|
|
270
|
-
},
|
|
271
|
-
summary: "List calendar events",
|
|
272
|
-
}),
|
|
273
|
-
action({
|
|
274
|
-
description: "Get a single calendar event with attendees and its body as plain text.",
|
|
275
|
-
group: "read",
|
|
276
|
-
id: "get_event",
|
|
277
|
-
inputSchema: z.object({
|
|
278
|
-
event_id: z.string().describe("Graph event id."),
|
|
279
|
-
}),
|
|
280
|
-
providerScopes: ["Calendars.Read"],
|
|
281
|
-
run: (input, ctx) => fetchEventDetail(ctx, input.event_id),
|
|
282
|
-
summary: "Get a calendar event",
|
|
283
|
-
}),
|
|
284
|
-
// ── write ───────────────────────────────────────────────────────────
|
|
285
|
-
action({
|
|
286
|
-
description: "Create an email draft in the Drafts folder (not sent). Use send_message to actually send mail.",
|
|
287
|
-
group: "write",
|
|
288
|
-
id: "create_draft",
|
|
289
|
-
inputSchema: z.object(messageDraftFields),
|
|
290
|
-
providerScopes: ["Mail.ReadWrite"],
|
|
291
|
-
run: async (input, ctx) => {
|
|
292
|
-
const m = await graphJson(ctx, "/me/messages", {
|
|
293
|
-
body: draftMessagePayload(input),
|
|
294
|
-
method: "POST",
|
|
295
|
-
});
|
|
296
|
-
return {
|
|
297
|
-
id: m.id,
|
|
298
|
-
subject: m.subject ?? null,
|
|
299
|
-
webLink: m.webLink ?? null,
|
|
300
|
-
};
|
|
301
|
-
},
|
|
302
|
-
summary: "Create an Outlook mail draft",
|
|
303
|
-
}),
|
|
304
|
-
action({
|
|
305
|
-
description: "Move a message to another mail folder (use list_mail_folders for folder ids; well-known names like 'archive' also work).",
|
|
306
|
-
group: "write",
|
|
307
|
-
id: "move_message",
|
|
308
|
-
inputSchema: z.object({
|
|
309
|
-
destination_folder_id: z
|
|
310
|
-
.string()
|
|
311
|
-
.describe("Target folder id or well-known name (e.g. 'archive', 'deleteditems')."),
|
|
312
|
-
message_id: z.string().describe("Graph message id to move."),
|
|
313
|
-
}),
|
|
314
|
-
providerScopes: ["Mail.ReadWrite"],
|
|
315
|
-
run: async (input, ctx) => {
|
|
316
|
-
const m = await graphJson(ctx, `/me/messages/${encodeURIComponent(input.message_id)}/move`, {
|
|
317
|
-
body: { destinationId: input.destination_folder_id },
|
|
318
|
-
method: "POST",
|
|
319
|
-
});
|
|
320
|
-
return {
|
|
321
|
-
id: m.id,
|
|
322
|
-
parentFolderId: m.parentFolderId ?? null,
|
|
323
|
-
subject: m.subject ?? null,
|
|
324
|
-
};
|
|
325
|
-
},
|
|
326
|
-
summary: "Move an Outlook message to a folder",
|
|
327
|
-
}),
|
|
328
|
-
action({
|
|
329
|
-
description: "Create a calendar event in the user's chosen calendar (default: primary).",
|
|
330
|
-
group: "write",
|
|
331
|
-
id: "create_event",
|
|
332
|
-
inputSchema: z.object({
|
|
333
|
-
attendees: z
|
|
334
|
-
.array(z.string())
|
|
335
|
-
.optional()
|
|
336
|
-
.describe("Attendee email addresses (invited as required)."),
|
|
337
|
-
body_text: z
|
|
338
|
-
.string()
|
|
339
|
-
.optional()
|
|
340
|
-
.describe("Plain-text event description."),
|
|
341
|
-
calendar_id: calendarIdField,
|
|
342
|
-
location: z
|
|
343
|
-
.string()
|
|
344
|
-
.optional()
|
|
345
|
-
.describe("Where the event takes place: an address, a phone number or a meeting link."),
|
|
346
|
-
end: z
|
|
347
|
-
.string()
|
|
348
|
-
.describe("Event end, ISO 8601 date-time (e.g. 2026-07-04T15:00:00)."),
|
|
349
|
-
start: z
|
|
350
|
-
.string()
|
|
351
|
-
.describe("Event start, ISO 8601 date-time (e.g. 2026-07-04T14:00:00)."),
|
|
352
|
-
subject: z.string().describe("Event subject/title."),
|
|
353
|
-
time_zone: z
|
|
354
|
-
.string()
|
|
355
|
-
.default("UTC")
|
|
356
|
-
.describe('Time zone for start and end (default "UTC").'),
|
|
357
|
-
}),
|
|
358
|
-
providerScopes: ["Calendars.ReadWrite"],
|
|
359
|
-
run: async (input, ctx) => {
|
|
360
|
-
const e = await graphJson(ctx, eventsPath(input.calendar_id), {
|
|
361
|
-
body: {
|
|
362
|
-
...(input.attendees?.length
|
|
363
|
-
? { attendees: toAttendees(input.attendees) }
|
|
364
|
-
: {}),
|
|
365
|
-
...(input.body_text
|
|
366
|
-
? { body: { content: input.body_text, contentType: "Text" } }
|
|
367
|
-
: {}),
|
|
368
|
-
end: { dateTime: input.end, timeZone: input.time_zone },
|
|
369
|
-
...(input.location ? { location: { displayName: input.location } } : {}),
|
|
370
|
-
start: { dateTime: input.start, timeZone: input.time_zone },
|
|
371
|
-
subject: input.subject,
|
|
372
|
-
},
|
|
373
|
-
method: "POST",
|
|
374
|
-
});
|
|
375
|
-
return mapEventDetail(e);
|
|
376
|
-
},
|
|
377
|
-
summary: "Create a calendar event",
|
|
378
|
-
}),
|
|
379
|
-
action({
|
|
380
|
-
description: "Update fields of an existing calendar event (only the provided fields are changed).",
|
|
381
|
-
group: "write",
|
|
382
|
-
id: "update_event",
|
|
383
|
-
inputSchema: z.object({
|
|
384
|
-
attendees: z
|
|
385
|
-
.array(z.string())
|
|
386
|
-
.optional()
|
|
387
|
-
.describe("Replace the attendee list with these email addresses."),
|
|
388
|
-
body_text: z
|
|
389
|
-
.string()
|
|
390
|
-
.optional()
|
|
391
|
-
.describe("New plain-text event description."),
|
|
392
|
-
end: z.string().optional().describe("New end, ISO 8601 date-time."),
|
|
393
|
-
event_id: z.string().describe("Graph event id to update."),
|
|
394
|
-
location: z.string().optional().describe("New location (replaces the existing one)."),
|
|
395
|
-
start: z.string().optional().describe("New start, ISO 8601 date-time."),
|
|
396
|
-
subject: z.string().optional().describe("New event subject/title."),
|
|
397
|
-
time_zone: z
|
|
398
|
-
.string()
|
|
399
|
-
.default("UTC")
|
|
400
|
-
.describe('Time zone for start/end when provided (default "UTC").'),
|
|
401
|
-
}),
|
|
402
|
-
providerScopes: ["Calendars.ReadWrite"],
|
|
403
|
-
run: async (input, ctx) => {
|
|
404
|
-
const patch = {};
|
|
405
|
-
if (input.subject !== undefined) {
|
|
406
|
-
patch.subject = input.subject;
|
|
407
|
-
}
|
|
408
|
-
if (input.body_text !== undefined) {
|
|
409
|
-
patch.body = { content: input.body_text, contentType: "Text" };
|
|
410
|
-
}
|
|
411
|
-
if (input.start !== undefined) {
|
|
412
|
-
patch.start = { dateTime: input.start, timeZone: input.time_zone };
|
|
413
|
-
}
|
|
414
|
-
if (input.end !== undefined) {
|
|
415
|
-
patch.end = { dateTime: input.end, timeZone: input.time_zone };
|
|
416
|
-
}
|
|
417
|
-
if (input.attendees !== undefined) {
|
|
418
|
-
patch.attendees = toAttendees(input.attendees);
|
|
419
|
-
}
|
|
420
|
-
if (input.location !== undefined) {
|
|
421
|
-
patch.location = { displayName: input.location };
|
|
422
|
-
}
|
|
423
|
-
if (Object.keys(patch).length === 0) {
|
|
424
|
-
throw new Error("update_event: no fields to update");
|
|
425
|
-
}
|
|
426
|
-
const e = await graphJson(ctx, `/me/events/${encodeURIComponent(input.event_id)}`, { body: patch, method: "PATCH" });
|
|
427
|
-
return mapEventDetail(e);
|
|
428
|
-
},
|
|
429
|
-
summary: "Update a calendar event",
|
|
430
|
-
}),
|
|
431
|
-
// ── destructive ─────────────────────────────────────────────────────
|
|
432
|
-
action({
|
|
433
|
-
description: "Send an email immediately on behalf of the connected account.",
|
|
434
|
-
group: "destructive",
|
|
435
|
-
id: "send_message",
|
|
436
|
-
inputSchema: z.object({
|
|
437
|
-
...messageDraftFields,
|
|
438
|
-
save_to_sent_items: z
|
|
439
|
-
.boolean()
|
|
440
|
-
.default(true)
|
|
441
|
-
.describe("Save a copy to Sent Items (default true)."),
|
|
442
|
-
}),
|
|
443
|
-
providerScopes: ["Mail.Send"],
|
|
444
|
-
run: async (input, ctx) => {
|
|
445
|
-
await graphJson(ctx, "/me/sendMail", {
|
|
446
|
-
body: {
|
|
447
|
-
message: draftMessagePayload(input),
|
|
448
|
-
saveToSentItems: input.save_to_sent_items,
|
|
449
|
-
},
|
|
450
|
-
method: "POST",
|
|
451
|
-
});
|
|
452
|
-
return { sent: true, subject: input.subject, to: input.to };
|
|
453
|
-
},
|
|
454
|
-
summary: "Send an email",
|
|
455
|
-
}),
|
|
456
|
-
action({
|
|
457
|
-
description: "Delete a message (moves it to the Deleted Items folder; recoverable from there).",
|
|
458
|
-
group: "destructive",
|
|
459
|
-
id: "delete_message",
|
|
460
|
-
inputSchema: z.object({
|
|
461
|
-
message_id: z.string().describe("Graph message id to delete."),
|
|
462
|
-
}),
|
|
463
|
-
providerScopes: ["Mail.ReadWrite"],
|
|
464
|
-
run: async (input, ctx) => {
|
|
465
|
-
await graphJson(ctx, `/me/messages/${encodeURIComponent(input.message_id)}`, { method: "DELETE" });
|
|
466
|
-
return { deleted: true, message_id: input.message_id };
|
|
467
|
-
},
|
|
468
|
-
summary: "Delete an Outlook message",
|
|
469
|
-
}),
|
|
470
|
-
action({
|
|
471
|
-
description: "Delete a calendar event (cancels it for attendees if the user is the organizer).",
|
|
472
|
-
group: "destructive",
|
|
473
|
-
id: "delete_event",
|
|
474
|
-
inputSchema: z.object({
|
|
475
|
-
event_id: z.string().describe("Graph event id to delete."),
|
|
476
|
-
}),
|
|
477
|
-
providerScopes: ["Calendars.ReadWrite"],
|
|
478
|
-
run: async (input, ctx) => {
|
|
479
|
-
await graphJson(ctx, `/me/events/${encodeURIComponent(input.event_id)}`, { method: "DELETE" });
|
|
480
|
-
return { deleted: true, event_id: input.event_id };
|
|
481
|
-
},
|
|
482
|
-
summary: "Delete a calendar event",
|
|
483
|
-
}),
|
|
484
|
-
],
|
|
485
|
-
auth: { kind: "oauth2", oauth2: MICROSOFT_OAUTH2 },
|
|
486
|
-
description: "Outlook mail and calendar via Microsoft Graph: search and read messages, drafts, sending, folders, and calendar events.",
|
|
487
|
-
icon: "logo:microsoft-outlook",
|
|
488
|
-
id: "microsoft-outlook",
|
|
489
|
-
moduleId: "connections-microsoft",
|
|
490
|
-
name: "Microsoft Outlook",
|
|
491
|
-
toolPrefix: "outlook",
|
|
492
|
-
});
|