@agent-native/core 0.94.3 → 0.95.1
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/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +16 -0
- package/corpus/core/docs/content/locales/ar-SA/template-design.mdx +13 -0
- package/corpus/core/docs/content/locales/de-DE/template-design.mdx +18 -0
- package/corpus/core/docs/content/locales/es-ES/template-design.mdx +16 -0
- package/corpus/core/docs/content/locales/fr-FR/template-design.mdx +17 -0
- package/corpus/core/docs/content/locales/hi-IN/template-design.mdx +16 -0
- package/corpus/core/docs/content/locales/ja-JP/template-design.mdx +17 -0
- package/corpus/core/docs/content/locales/ko-KR/template-design.mdx +15 -0
- package/corpus/core/docs/content/locales/pt-BR/template-design.mdx +16 -0
- package/corpus/core/docs/content/locales/zh-CN/template-design.mdx +11 -0
- package/corpus/core/docs/content/locales/zh-TW/template-design.mdx +12 -0
- package/corpus/core/docs/content/pr-visual-recap.mdx +20 -12
- package/corpus/core/docs/content/template-design.mdx +16 -0
- package/corpus/core/package.json +2 -2
- package/corpus/core/src/agent/engine/ai-sdk-engine.ts +3 -0
- package/corpus/core/src/agent/engine/registry.ts +6 -1
- package/corpus/core/src/agent/engine/types.ts +2 -0
- package/corpus/core/src/agent/production-agent.ts +20 -0
- package/corpus/core/src/agent/thread-data-builder.ts +41 -17
- package/corpus/core/src/cli/code-agent-executor.ts +61 -1
- package/corpus/core/src/cli/pr-visual-recap-workflow.ts +1 -1
- package/corpus/core/src/cli/recap.ts +262 -25
- package/corpus/core/src/client/AssistantChat.tsx +250 -25
- package/corpus/core/src/client/chat/tool-call-display.tsx +1 -1
- package/corpus/core/src/client/chat/use-reconnect-reader-owner.ts +28 -0
- package/corpus/core/src/client/guided-questions.tsx +9 -1
- package/corpus/core/src/client/integrations/IntegrationsPanel.tsx +6 -7
- package/corpus/core/src/client/settings/UsageSection.tsx +26 -5
- package/corpus/core/src/client/sse-event-processor.ts +90 -21
- package/corpus/core/src/connections/catalog.ts +2 -2
- package/corpus/core/src/deploy/build.ts +3 -0
- package/corpus/core/src/index.ts +2 -0
- package/corpus/core/src/integrations/catalog.ts +2 -2
- package/corpus/core/src/server/auth.ts +1 -1
- package/corpus/core/src/server/credential-provider.ts +7 -3
- package/corpus/core/src/shared/cache-control.ts +10 -4
- package/corpus/core/src/usage/store.ts +82 -20
- package/corpus/templates/analytics/app/lib/data-sources.ts +5 -4
- package/corpus/templates/analytics/changelog/2026-07-10-slack-token-setup-marked-legacy.md +6 -0
- package/corpus/templates/analytics/server/lib/credential-keys.ts +6 -2
- package/corpus/templates/brain/changelog/2026-07-10-slack-backfill-token-marked-legacy.md +6 -0
- package/corpus/templates/brain/server/register-secrets.ts +2 -2
- package/corpus/templates/clips/app/components/library/library-layout.tsx +7 -1
- package/corpus/templates/clips/app/components/library/page-header.tsx +19 -3
- package/corpus/templates/clips/app/routes/_app.library._index.tsx +16 -12
- package/corpus/templates/clips/changelog/2026-07-10-new-recording-appears-once-when-the-library-sidebar-is-open.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-10-slack-token-fallback-guidance.md +6 -0
- package/corpus/templates/clips/server/register-secrets.ts +1 -1
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +0 -66
- package/corpus/templates/content/app/routes/_app.local-files.tsx +7 -47
- package/corpus/templates/content/changelog/2026-07-10-local-folders-now-wait-for-an-explicit-pull-before-content-r.md +6 -0
- package/corpus/templates/content/package.json +1 -1
- package/corpus/templates/design/actions/generate-design.ts +128 -31
- package/corpus/templates/design/actions/present-design-variants.ts +37 -9
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +9 -3
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +32 -10
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +2 -2
- package/corpus/templates/design/app/components/design/TweaksPanel.tsx +9 -1
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +7 -5
- package/corpus/templates/design/app/components/design/multi-screen/types.ts +3 -0
- package/corpus/templates/design/app/global.css +10 -0
- package/corpus/templates/design/app/hooks/use-question-flow.ts +9 -2
- package/corpus/templates/design/app/i18n/zh-TW.ts +1 -0
- package/corpus/templates/design/app/i18n-data.ts +21 -11
- package/corpus/templates/design/changelog/2026-07-10-editor-panels-are-easier-to-distinguish-and-design-intake-qu.md +6 -0
- package/corpus/templates/design/changelog/2026-07-10-interact-mode-now-stays-on-the-full-canvas-matches-edit-visu.md +6 -0
- package/corpus/templates/design/changelog/2026-07-10-new-web-designs-open-at-desktop-size-and-adapt-across-mobile.md +6 -0
- package/corpus/templates/design/changelog/2026-07-10-tweaks-now-link-to-full-documentation.md +6 -0
- package/corpus/templates/design/server/plugins/agent-chat.ts +2 -0
- package/corpus/templates/mail/app/i18n/ar-SA.ts +3 -3
- package/corpus/templates/mail/app/i18n/de-DE.ts +3 -3
- package/corpus/templates/mail/app/i18n/en-US.ts +4 -3
- package/corpus/templates/mail/app/i18n/es-ES.ts +3 -3
- package/corpus/templates/mail/app/i18n/fr-FR.ts +3 -3
- package/corpus/templates/mail/app/i18n/hi-IN.ts +3 -3
- package/corpus/templates/mail/app/i18n/ja-JP.ts +3 -3
- package/corpus/templates/mail/app/i18n/ko-KR.ts +3 -3
- package/corpus/templates/mail/app/i18n/pt-BR.ts +3 -3
- package/corpus/templates/mail/app/i18n/zh-CN.ts +3 -3
- package/corpus/templates/mail/app/i18n/zh-TW.ts +3 -3
- package/corpus/templates/mail/changelog/2026-07-10-slack-intake-marked-legacy.md +6 -0
- package/corpus/templates/mail/server/lib/env-config.ts +5 -4
- package/corpus/templates/plan/actions/record-recap-usage-cost.ts +49 -0
- package/corpus/templates/plan/actions/record-recap-usage.ts +15 -22
- package/corpus/templates/plan/package.json +1 -1
- package/dist/agent/engine/ai-sdk-engine.d.ts.map +1 -1
- package/dist/agent/engine/ai-sdk-engine.js +3 -0
- package/dist/agent/engine/ai-sdk-engine.js.map +1 -1
- package/dist/agent/engine/registry.d.ts +1 -1
- package/dist/agent/engine/registry.d.ts.map +1 -1
- package/dist/agent/engine/registry.js +2 -0
- package/dist/agent/engine/registry.js.map +1 -1
- package/dist/agent/engine/types.d.ts +2 -0
- package/dist/agent/engine/types.d.ts.map +1 -1
- package/dist/agent/engine/types.js.map +1 -1
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +20 -0
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/thread-data-builder.d.ts.map +1 -1
- package/dist/agent/thread-data-builder.js +36 -18
- package/dist/agent/thread-data-builder.js.map +1 -1
- package/dist/cli/code-agent-executor.d.ts +2 -0
- package/dist/cli/code-agent-executor.d.ts.map +1 -1
- package/dist/cli/code-agent-executor.js +52 -3
- package/dist/cli/code-agent-executor.js.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.js +1 -1
- package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
- package/dist/cli/recap.d.ts +22 -2
- package/dist/cli/recap.d.ts.map +1 -1
- package/dist/cli/recap.js +199 -22
- package/dist/cli/recap.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +3 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +200 -28
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/chat/tool-call-display.js +1 -1
- package/dist/client/chat/tool-call-display.js.map +1 -1
- package/dist/client/chat/use-reconnect-reader-owner.d.ts +11 -0
- package/dist/client/chat/use-reconnect-reader-owner.d.ts.map +1 -0
- package/dist/client/chat/use-reconnect-reader-owner.js +21 -0
- package/dist/client/chat/use-reconnect-reader-owner.js.map +1 -0
- package/dist/client/guided-questions.d.ts.map +1 -1
- package/dist/client/guided-questions.js +5 -1
- package/dist/client/guided-questions.js.map +1 -1
- package/dist/client/integrations/IntegrationsPanel.d.ts.map +1 -1
- package/dist/client/integrations/IntegrationsPanel.js +5 -7
- package/dist/client/integrations/IntegrationsPanel.js.map +1 -1
- package/dist/client/settings/UsageSection.d.ts.map +1 -1
- package/dist/client/settings/UsageSection.js +12 -3
- package/dist/client/settings/UsageSection.js.map +1 -1
- package/dist/client/sse-event-processor.d.ts.map +1 -1
- package/dist/client/sse-event-processor.js +67 -20
- package/dist/client/sse-event-processor.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/connections/catalog.d.ts +2 -2
- package/dist/connections/catalog.js +2 -2
- package/dist/connections/catalog.js.map +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +3 -1
- package/dist/deploy/build.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/catalog.js +2 -2
- package/dist/integrations/catalog.js.map +1 -1
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +1 -1
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/auth.js +1 -1
- package/dist/server/auth.js.map +1 -1
- package/dist/server/credential-provider.d.ts +5 -3
- package/dist/server/credential-provider.d.ts.map +1 -1
- package/dist/server/credential-provider.js +7 -3
- package/dist/server/credential-provider.js.map +1 -1
- package/dist/shared/cache-control.d.ts +8 -6
- package/dist/shared/cache-control.d.ts.map +1 -1
- package/dist/shared/cache-control.js +8 -3
- package/dist/shared/cache-control.js.map +1 -1
- package/dist/usage/store.d.ts +21 -0
- package/dist/usage/store.d.ts.map +1 -1
- package/dist/usage/store.js +54 -19
- package/dist/usage/store.js.map +1 -1
- package/docs/content/locales/ar-SA/template-design.mdx +13 -0
- package/docs/content/locales/de-DE/template-design.mdx +18 -0
- package/docs/content/locales/es-ES/template-design.mdx +16 -0
- package/docs/content/locales/fr-FR/template-design.mdx +17 -0
- package/docs/content/locales/hi-IN/template-design.mdx +16 -0
- package/docs/content/locales/ja-JP/template-design.mdx +17 -0
- package/docs/content/locales/ko-KR/template-design.mdx +15 -0
- package/docs/content/locales/pt-BR/template-design.mdx +16 -0
- package/docs/content/locales/zh-CN/template-design.mdx +11 -0
- package/docs/content/locales/zh-TW/template-design.mdx +12 -0
- package/docs/content/pr-visual-recap.mdx +20 -12
- package/docs/content/template-design.mdx +16 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { createServer, createSSEHandler, defineNitroPlugin, autoMountAuth, getSe
|
|
|
13
13
|
export { agentChat, type AgentChatCallOptions, type AgentChatResponse, } from "./shared/index.js";
|
|
14
14
|
export { EMBED_MODE_QUERY_PARAM, EMBED_SESSION_COOKIE, EMBED_START_PATH, EMBED_TOKEN_QUERY_PARAM, } from "./shared/embed-auth.js";
|
|
15
15
|
export { AGENT_WEB_CRAWLER_CATEGORIES, AGENT_WEB_CRAWLER_USER_AGENTS, DEFAULT_AGENT_WEB_CRAWLER_POLICY, absoluteUrl, agentWebConfigFromPackageJson, buildAgentWebStaticFiles, buildBaseJsonLd, buildLlmsFullTxt, buildLlmsTxt, buildMarkdownResponseHeaders, buildPageJsonLd, buildRobotsTxt, buildSitemapXml, deriveAgentWebPublicRoutes, estimateMarkdownTokens, markdownFilePathForPage, markdownUrlForPage, normalizeAgentWebConfig, pathPatternMatches, resolveAgentWebCrawlerPolicy, type AgentWebConfig, type AgentWebCrawlerCategory, type AgentWebCrawlerDecision, type AgentWebCrawlerOverrides, type AgentWebCrawlerPolicy, type AgentWebInputConfig, type AgentWebPage, type AgentWebStaticFile, type BuildAgentWebStaticFilesOptions, type DeriveAgentWebPublicRoutesOptions, type MarkdownResponseHeadersOptions, } from "./agent-web/index.js";
|
|
16
|
-
export { recordUsage, getUsageSummary, getUserUsageCents, calculateCost, usageBillingForEngine, builderCreditsFromCostCents, BUILDER_AGENT_CREDIT_MARGIN_MULTIPLIER, BUILDER_AGENT_CREDITS_PER_USD, BUILDER_CREDIT_USAGE_BILLING, USD_USAGE_BILLING, type UsageRecord, type UsageSummary, type UsageBillingMode, type UsageBillingUnit, type UsageBucket, type DailyBucket, type UsageRecentEntry, } from "./usage/store.js";
|
|
16
|
+
export { recordUsage, getUsageSummary, getUserUsageCents, calculateCost, usageBillingForEngine, builderCreditsFromCostCents, BUILDER_AGENT_CREDIT_MARGIN_MULTIPLIER, BUILDER_AGENT_CREDITS_PER_USD, BUILDER_CREDIT_USAGE_BILLING, USD_USAGE_BILLING, type UsageRecord, type UsageCostSource, type UsageCostAggregate, type UsageSummary, type UsageBillingMode, type UsageBillingUnit, type UsageBucket, type DailyBucket, type UsageRecentEntry, } from "./usage/store.js";
|
|
17
17
|
export { deleteWorkspaceConnection, getWorkspaceConnectionAppAccess, getWorkspaceConnection, getWorkspaceConnectionGrant, listWorkspaceConnectionProviderCatalogForApp, listWorkspaceConnectionGrants, listWorkspaceConnections, resolveWorkspaceConnectionCredentialForApp, resolveWorkspaceConnectionCredentialsForApp, revokeWorkspaceConnectionGrant, serializeWorkspaceConnectionGrant, serializeWorkspaceConnection, summarizeWorkspaceConnectionProviderForApp, summarizeWorkspaceConnectionProviderReadiness, upsertWorkspaceConnectionGrant, upsertWorkspaceConnection, type ListWorkspaceConnectionProviderCatalogForAppOptions, type ListWorkspaceConnectionGrantsOptions, type ListWorkspaceConnectionsOptions, type ResolveWorkspaceConnectionCredentialForAppOptions, type ResolveWorkspaceConnectionCredentialsForAppOptions, type SerializedWorkspaceConnectionGrant, type SerializedWorkspaceConnection, type SummarizeWorkspaceConnectionProviderForAppOptions, type SummarizeWorkspaceConnectionProviderReadinessOptions, type UpsertWorkspaceConnectionGrantInput, type UpsertWorkspaceConnectionInput, type WorkspaceConnectionAppAccess, type WorkspaceConnectionAppAccessMode, type WorkspaceConnection, type WorkspaceConnectionCredentialBackend, type WorkspaceConnectionCredentialProvenance, type WorkspaceConnectionCredentialRef, type WorkspaceConnectionCredentialResolution, type WorkspaceConnectionCredentialResolutionCheck, type WorkspaceConnectionCredentialResolutionStatus, type WorkspaceConnectionCredentialsResolution, type WorkspaceConnectionExplicitGrantSummary, type WorkspaceConnectionForAppSummary, type WorkspaceConnectionGrant, type WorkspaceConnectionGrantAvailability, type WorkspaceConnectionGrantState, type WorkspaceConnectionProviderAppSummary, type WorkspaceConnectionProviderLike, type WorkspaceConnectionProviderCatalogForApp, type WorkspaceConnectionProviderCatalogForAppItem, type WorkspaceConnectionProviderReadiness, type WorkspaceConnectionProviderReadinessStatus, type WorkspaceConnectionPublicCredentialRef, type WorkspaceConnectionStatus, workspaceConnectionIsAvailableToApp, } from "./workspace-connections/index.js";
|
|
18
18
|
export { PROVIDER_READERS, ProviderReaderRuntimeError, WORKSPACE_CONNECTION_PROVIDERS, createProviderReaderRuntime, defineProviderReader, defineProviderReaderImplementation, defineWorkspaceConnectionProvider, getProviderReader, getWorkspaceConnectionProvider, isWorkspaceConnectionProviderId, listProviderReaders, listWorkspaceConnectionProviders, listWorkspaceConnectionProvidersForCapability, listWorkspaceConnectionProvidersForTemplate, providerReaderSupports, workspaceConnectionProviderSupports, type ListWorkspaceConnectionProvidersOptions, type ListProviderReadersOptions, type ProviderReaderCapability, type ProviderReaderCredentialRequirement, type ProviderReaderDefinition, type ProviderReaderImplementationStatus, type ProviderReaderOperation, type ProviderReaderOperationDescriptor, type ProviderReaderOperationParameter, type ProviderReaderRequest, type ProviderReaderRuntime, type ProviderReaderRuntimeConnection, type ProviderReaderRuntimeConnectionResolverOptions, type ProviderReaderRuntimeContext, type ProviderReaderRuntimeCredentialsResolverOptions, type ProviderReaderRuntimeErrorCode, type ProviderReaderRuntimeHandler, type ProviderReaderRuntimeImplementation, type ProviderReaderRuntimeItem, type ProviderReaderRuntimeOptions, type ProviderReaderRuntimeResponse, type WorkspaceConnectionCapability, type WorkspaceConnectionCredentialKey, type WorkspaceConnectionProvider, type WorkspaceConnectionProviderId, type WorkspaceConnectionTemplateUse, } from "./connections/index.js";
|
|
19
19
|
export { runScript, loadEnv, parseArgs, camelCaseArgs, isValidPath, isValidProjectPath, ensureDir, fail, } from "./scripts/index.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,4BAA4B,EAC5B,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,aAAa,EAEb,QAAQ,EACR,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,iCAAiC,EACjC,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,mCAAmC,EACnC,wCAAwC,EACxC,KAAK,kBAAkB,GACxB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EACf,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,oBAAoB,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,yCAAyC,EACzC,KAAK,gDAAgD,GACtD,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,+CAA+C;AAE/C,0BAA0B;AAC1B,OAAO,EACL,4BAA4B,EAU5B,aAAa;AACb,6DAA6D;AAC7D,QAAQ,GAIT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EAOtB,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,GAQ9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,iCAAiC,GAElC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,GAKX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,mCAAmC,EACnC,wCAAwC,GAEzC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,GAe1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,qB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8BAA8B,CAAC","sourcesContent":["// Framework for agent-native apps.\n// Import everything from \"@agent-native/core\".\n\n// Agent (production mode)\nexport {\n createProductionAgentHandler,\n type ActionEntry,\n type ScriptEntry,\n type ProductionAgentOptions,\n type ActionTool,\n type ScriptTool,\n type AgentMessage,\n type AgentChatRequest,\n type AgentChatEvent,\n type AgentChatAttachment,\n DEFAULT_MODEL,\n // In-loop processors (observers/guardrails for runAgentLoop)\n TripWire,\n type Processor,\n type ProcessorState,\n type ProcessorAbort,\n} from \"./agent/index.js\";\nexport {\n defineAction,\n AgentActionStopError,\n isAgentActionStopError,\n type ActionDefinition,\n type ActionHttpConfig,\n type AgentActionStopOptions,\n type PublicAgentActionConfig,\n type ActionDeepLink,\n type ActionLinkBuilder,\n MCP_APP_EXTENSION_ID,\n MCP_APP_MIME_TYPE,\n MCP_APP_RESOURCE_URI_META_KEY,\n type ActionMcpAppConfig,\n type ActionMcpAppCsp,\n type ActionMcpAppCspBuilder,\n type ActionMcpAppHtmlBuilder,\n type ActionMcpAppPermissions,\n type ActionMcpAppResourceConfig,\n type ActionMcpAppResourceMeta,\n} from \"./action.js\";\nexport {\n embedApp,\n MCP_APP_REQUEST_ORIGIN_CSP_SOURCE,\n type EmbedAppOptions,\n} from \"./mcp/embed-app.js\";\nexport {\n embedRoute,\n type EmbedRouteContext,\n type EmbedRouteOptions,\n type EmbedRoutePathBuilder,\n type EmbedRouteResult,\n} from \"./mcp/embed-route.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n ACTION_CHAT_UI_INLINE_EXTENSION_RENDERER,\n type ActionChatUIConfig,\n} from \"./action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./data-widgets/index.js\";\nexport { createDevScriptRegistry } from \"./scripts/dev/index.js\";\nexport {\n createAgentChatPlugin,\n defaultAgentChatPlugin,\n type AgentChatPluginOptions,\n} from \"./server/agent-chat-plugin.js\";\nexport {\n createAgentNativeEmbeddedPlugin,\n mountAgentNativeEmbedded,\n type AgentNativeEmbeddedPluginOptions,\n} from \"./server/embedded.js\";\nexport {\n BUILT_IN_INTEGRATION_CATALOG,\n INTEGRATION_CATEGORIES,\n getIntegrationCatalogEntry,\n listBuiltInChannelIntegrations,\n listIntegrationCatalog,\n type AutomationCapabilities,\n type BuiltInChannelId,\n type ChannelCapabilities,\n type IntegrationAvailability,\n type IntegrationCatalogEntry,\n type IntegrationCategory,\n type IntegrationCredentialRequirement,\n type IntegrationIconKey,\n type IntegrationSupportMaturity,\n} from \"./integrations/catalog.js\";\nexport {\n AutomationConnectorError,\n createAutomationCallbackHandler,\n createAutomationRuntime,\n createInvokeAutomationWorkflowAction,\n type AutomationCallbackAuthentication,\n type AutomationCallbackInput,\n type AutomationCallbackResult,\n type AutomationInboundDefinition,\n type AutomationInvocation,\n type AutomationInvocationResult,\n type AutomationInvocationStatus,\n type AutomationOutboundDefinition,\n type AutomationResponseMode,\n type AutomationRetryPolicy,\n type AutomationRuntime,\n type AutomationRuntimeOptions,\n type AutomationWorkflowCapabilities,\n type AutomationWorkflowDefinition,\n type JsonSchema,\n} from \"./automation/index.js\";\n\n// Server\nexport {\n createServer,\n createSSEHandler,\n defineNitroPlugin,\n autoMountAuth,\n getSession,\n type CreateServerOptions,\n type SSEHandlerOptions,\n type AuthSession,\n type AuthOptions,\n} from \"./server/index.js\";\n\n// Client\n//\n// IMPORTANT: this top-level entry (the package `default`/Node condition) must\n// stay server-safe. It is what `import { defineAction } from \"@agent-native/core\"`\n// resolves to in a headless / Node / SSR context, where React, react-router, and\n// @tanstack/react-query are NOT installed. The React client surface therefore\n// lives behind the `@agent-native/core/client` subpath instead of being\n// re-exported here — re-exporting \"./client/index.js\" from this module would\n// eagerly pull route-state.ts → \"@tanstack/react-query\" into the load graph and\n// crash any headless app at module load.\n//\n// Browser bundlers resolve \"@agent-native/core\" to the `browser` condition\n// (./index.browser.ts), which re-exports the client surface, so UI code that\n// imports client helpers from the bare specifier keeps working in the browser.\n// Code that runs through the Node entry (SSR, scripts, headless) must import\n// client helpers explicitly:\n//\n// import { useDbSync, cn } from \"@agent-native/core/client\";\n\n// Shared (isomorphic)\nexport {\n agentChat,\n type AgentChatCallOptions,\n type AgentChatResponse,\n} from \"./shared/index.js\";\nexport {\n EMBED_MODE_QUERY_PARAM,\n EMBED_SESSION_COOKIE,\n EMBED_START_PATH,\n EMBED_TOKEN_QUERY_PARAM,\n} from \"./shared/embed-auth.js\";\n\n// Agent Web surfaces\nexport {\n AGENT_WEB_CRAWLER_CATEGORIES,\n AGENT_WEB_CRAWLER_USER_AGENTS,\n DEFAULT_AGENT_WEB_CRAWLER_POLICY,\n absoluteUrl,\n agentWebConfigFromPackageJson,\n buildAgentWebStaticFiles,\n buildBaseJsonLd,\n buildLlmsFullTxt,\n buildLlmsTxt,\n buildMarkdownResponseHeaders,\n buildPageJsonLd,\n buildRobotsTxt,\n buildSitemapXml,\n deriveAgentWebPublicRoutes,\n estimateMarkdownTokens,\n markdownFilePathForPage,\n markdownUrlForPage,\n normalizeAgentWebConfig,\n pathPatternMatches,\n resolveAgentWebCrawlerPolicy,\n type AgentWebConfig,\n type AgentWebCrawlerCategory,\n type AgentWebCrawlerDecision,\n type AgentWebCrawlerOverrides,\n type AgentWebCrawlerPolicy,\n type AgentWebInputConfig,\n type AgentWebPage,\n type AgentWebStaticFile,\n type BuildAgentWebStaticFilesOptions,\n type DeriveAgentWebPublicRoutesOptions,\n type MarkdownResponseHeadersOptions,\n} from \"./agent-web/index.js\";\n\n// Token usage tracking\nexport {\n recordUsage,\n getUsageSummary,\n getUserUsageCents,\n calculateCost,\n usageBillingForEngine,\n builderCreditsFromCostCents,\n BUILDER_AGENT_CREDIT_MARGIN_MULTIPLIER,\n BUILDER_AGENT_CREDITS_PER_USD,\n BUILDER_CREDIT_USAGE_BILLING,\n USD_USAGE_BILLING,\n type UsageRecord,\n type UsageSummary,\n type UsageBillingMode,\n type UsageBillingUnit,\n type UsageBucket,\n type DailyBucket,\n type UsageRecentEntry,\n} from \"./usage/store.js\";\n\n// Workspace-scoped third-party connection metadata\nexport {\n deleteWorkspaceConnection,\n getWorkspaceConnectionAppAccess,\n getWorkspaceConnection,\n getWorkspaceConnectionGrant,\n listWorkspaceConnectionProviderCatalogForApp,\n listWorkspaceConnectionGrants,\n listWorkspaceConnections,\n resolveWorkspaceConnectionCredentialForApp,\n resolveWorkspaceConnectionCredentialsForApp,\n revokeWorkspaceConnectionGrant,\n serializeWorkspaceConnectionGrant,\n serializeWorkspaceConnection,\n summarizeWorkspaceConnectionProviderForApp,\n summarizeWorkspaceConnectionProviderReadiness,\n upsertWorkspaceConnectionGrant,\n upsertWorkspaceConnection,\n type ListWorkspaceConnectionProviderCatalogForAppOptions,\n type ListWorkspaceConnectionGrantsOptions,\n type ListWorkspaceConnectionsOptions,\n type ResolveWorkspaceConnectionCredentialForAppOptions,\n type ResolveWorkspaceConnectionCredentialsForAppOptions,\n type SerializedWorkspaceConnectionGrant,\n type SerializedWorkspaceConnection,\n type SummarizeWorkspaceConnectionProviderForAppOptions,\n type SummarizeWorkspaceConnectionProviderReadinessOptions,\n type UpsertWorkspaceConnectionGrantInput,\n type UpsertWorkspaceConnectionInput,\n type WorkspaceConnectionAppAccess,\n type WorkspaceConnectionAppAccessMode,\n type WorkspaceConnection,\n type WorkspaceConnectionCredentialBackend,\n type WorkspaceConnectionCredentialProvenance,\n type WorkspaceConnectionCredentialRef,\n type WorkspaceConnectionCredentialResolution,\n type WorkspaceConnectionCredentialResolutionCheck,\n type WorkspaceConnectionCredentialResolutionStatus,\n type WorkspaceConnectionCredentialsResolution,\n type WorkspaceConnectionExplicitGrantSummary,\n type WorkspaceConnectionForAppSummary,\n type WorkspaceConnectionGrant,\n type WorkspaceConnectionGrantAvailability,\n type WorkspaceConnectionGrantState,\n type WorkspaceConnectionProviderAppSummary,\n type WorkspaceConnectionProviderLike,\n type WorkspaceConnectionProviderCatalogForApp,\n type WorkspaceConnectionProviderCatalogForAppItem,\n type WorkspaceConnectionProviderReadiness,\n type WorkspaceConnectionProviderReadinessStatus,\n type WorkspaceConnectionPublicCredentialRef,\n type WorkspaceConnectionStatus,\n workspaceConnectionIsAvailableToApp,\n} from \"./workspace-connections/index.js\";\n\n// Reusable workspace connection provider catalog\nexport {\n PROVIDER_READERS,\n ProviderReaderRuntimeError,\n WORKSPACE_CONNECTION_PROVIDERS,\n createProviderReaderRuntime,\n defineProviderReader,\n defineProviderReaderImplementation,\n defineWorkspaceConnectionProvider,\n getProviderReader,\n getWorkspaceConnectionProvider,\n isWorkspaceConnectionProviderId,\n listProviderReaders,\n listWorkspaceConnectionProviders,\n listWorkspaceConnectionProvidersForCapability,\n listWorkspaceConnectionProvidersForTemplate,\n providerReaderSupports,\n workspaceConnectionProviderSupports,\n type ListWorkspaceConnectionProvidersOptions,\n type ListProviderReadersOptions,\n type ProviderReaderCapability,\n type ProviderReaderCredentialRequirement,\n type ProviderReaderDefinition,\n type ProviderReaderImplementationStatus,\n type ProviderReaderOperation,\n type ProviderReaderOperationDescriptor,\n type ProviderReaderOperationParameter,\n type ProviderReaderRequest,\n type ProviderReaderRuntime,\n type ProviderReaderRuntimeConnection,\n type ProviderReaderRuntimeConnectionResolverOptions,\n type ProviderReaderRuntimeContext,\n type ProviderReaderRuntimeCredentialsResolverOptions,\n type ProviderReaderRuntimeErrorCode,\n type ProviderReaderRuntimeHandler,\n type ProviderReaderRuntimeImplementation,\n type ProviderReaderRuntimeItem,\n type ProviderReaderRuntimeOptions,\n type ProviderReaderRuntimeResponse,\n type WorkspaceConnectionCapability,\n type WorkspaceConnectionCredentialKey,\n type WorkspaceConnectionProvider,\n type WorkspaceConnectionProviderId,\n type WorkspaceConnectionTemplateUse,\n} from \"./connections/index.js\";\n\n// Scripts\nexport {\n runScript,\n loadEnv,\n parseArgs,\n camelCaseArgs,\n isValidPath,\n isValidProjectPath,\n ensureDir,\n fail,\n} from \"./scripts/index.js\";\n\n// Secrets registry — import from \"@agent-native/core/secrets\" when possible\n// (the subpath keeps the top-level entry point lean), but re-export the\n// public API here for convenience.\nexport {\n registerRequiredSecret,\n listRequiredSecrets,\n getRequiredSecret,\n readAppSecret,\n writeAppSecret,\n deleteAppSecret,\n type RegisteredSecret,\n type SecretScope,\n type SecretKind,\n type SecretValidator,\n type SecretRef,\n} from \"./secrets/index.js\";\n\nexport * from \"./history/index.js\";\nexport * from \"./review/index.js\";\nexport * from \"./org-team/index.js\";\nexport * from \"./navigation/index.js\";\nexport * from \"./command-navigation/index.js\";\nexport {\n registerWorkspaceConnectionOnboardingStep,\n type RegisterWorkspaceConnectionOnboardingStepOptions,\n} from \"./setup-connections/index.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,+CAA+C;AAE/C,0BAA0B;AAC1B,OAAO,EACL,4BAA4B,EAU5B,aAAa;AACb,6DAA6D;AAC7D,QAAQ,GAIT,MAAM,kBAAkB,CAAC;AAC1B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,8BAA8B,EAC9B,2BAA2B,EAC3B,oBAAoB,EACpB,kCAAkC,EAClC,iCAAiC,EACjC,iBAAiB,EACjB,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,EACnB,gCAAgC,EAChC,6CAA6C,EAC7C,2CAA2C,EAC3C,sBAAsB,EACtB,mCAAmC,GA2BpC,MAAM,wBAAwB,CAAC;AAEhC,UAAU;AACV,OAAO,EACL,SAAS,EACT,OAAO,EACP,SAAS,EACT,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,IAAI,GACL,MAAM,oBAAoB,CAAC;AAE5B,4EAA4E;AAC5E,wEAAwE;AACxE,mCAAmC;AACnC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,eAAe,GAMhB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,yCAAyC,GAE1C,MAAM,8BAA8B,CAAC","sourcesContent":["// Framework for agent-native apps.\n// Import everything from \"@agent-native/core\".\n\n// Agent (production mode)\nexport {\n createProductionAgentHandler,\n type ActionEntry,\n type ScriptEntry,\n type ProductionAgentOptions,\n type ActionTool,\n type ScriptTool,\n type AgentMessage,\n type AgentChatRequest,\n type AgentChatEvent,\n type AgentChatAttachment,\n DEFAULT_MODEL,\n // In-loop processors (observers/guardrails for runAgentLoop)\n TripWire,\n type Processor,\n type ProcessorState,\n type ProcessorAbort,\n} from \"./agent/index.js\";\nexport {\n defineAction,\n AgentActionStopError,\n isAgentActionStopError,\n type ActionDefinition,\n type ActionHttpConfig,\n type AgentActionStopOptions,\n type PublicAgentActionConfig,\n type ActionDeepLink,\n type ActionLinkBuilder,\n MCP_APP_EXTENSION_ID,\n MCP_APP_MIME_TYPE,\n MCP_APP_RESOURCE_URI_META_KEY,\n type ActionMcpAppConfig,\n type ActionMcpAppCsp,\n type ActionMcpAppCspBuilder,\n type ActionMcpAppHtmlBuilder,\n type ActionMcpAppPermissions,\n type ActionMcpAppResourceConfig,\n type ActionMcpAppResourceMeta,\n} from \"./action.js\";\nexport {\n embedApp,\n MCP_APP_REQUEST_ORIGIN_CSP_SOURCE,\n type EmbedAppOptions,\n} from \"./mcp/embed-app.js\";\nexport {\n embedRoute,\n type EmbedRouteContext,\n type EmbedRouteOptions,\n type EmbedRoutePathBuilder,\n type EmbedRouteResult,\n} from \"./mcp/embed-route.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n ACTION_CHAT_UI_INLINE_EXTENSION_RENDERER,\n type ActionChatUIConfig,\n} from \"./action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./data-widgets/index.js\";\nexport { createDevScriptRegistry } from \"./scripts/dev/index.js\";\nexport {\n createAgentChatPlugin,\n defaultAgentChatPlugin,\n type AgentChatPluginOptions,\n} from \"./server/agent-chat-plugin.js\";\nexport {\n createAgentNativeEmbeddedPlugin,\n mountAgentNativeEmbedded,\n type AgentNativeEmbeddedPluginOptions,\n} from \"./server/embedded.js\";\nexport {\n BUILT_IN_INTEGRATION_CATALOG,\n INTEGRATION_CATEGORIES,\n getIntegrationCatalogEntry,\n listBuiltInChannelIntegrations,\n listIntegrationCatalog,\n type AutomationCapabilities,\n type BuiltInChannelId,\n type ChannelCapabilities,\n type IntegrationAvailability,\n type IntegrationCatalogEntry,\n type IntegrationCategory,\n type IntegrationCredentialRequirement,\n type IntegrationIconKey,\n type IntegrationSupportMaturity,\n} from \"./integrations/catalog.js\";\nexport {\n AutomationConnectorError,\n createAutomationCallbackHandler,\n createAutomationRuntime,\n createInvokeAutomationWorkflowAction,\n type AutomationCallbackAuthentication,\n type AutomationCallbackInput,\n type AutomationCallbackResult,\n type AutomationInboundDefinition,\n type AutomationInvocation,\n type AutomationInvocationResult,\n type AutomationInvocationStatus,\n type AutomationOutboundDefinition,\n type AutomationResponseMode,\n type AutomationRetryPolicy,\n type AutomationRuntime,\n type AutomationRuntimeOptions,\n type AutomationWorkflowCapabilities,\n type AutomationWorkflowDefinition,\n type JsonSchema,\n} from \"./automation/index.js\";\n\n// Server\nexport {\n createServer,\n createSSEHandler,\n defineNitroPlugin,\n autoMountAuth,\n getSession,\n type CreateServerOptions,\n type SSEHandlerOptions,\n type AuthSession,\n type AuthOptions,\n} from \"./server/index.js\";\n\n// Client\n//\n// IMPORTANT: this top-level entry (the package `default`/Node condition) must\n// stay server-safe. It is what `import { defineAction } from \"@agent-native/core\"`\n// resolves to in a headless / Node / SSR context, where React, react-router, and\n// @tanstack/react-query are NOT installed. The React client surface therefore\n// lives behind the `@agent-native/core/client` subpath instead of being\n// re-exported here — re-exporting \"./client/index.js\" from this module would\n// eagerly pull route-state.ts → \"@tanstack/react-query\" into the load graph and\n// crash any headless app at module load.\n//\n// Browser bundlers resolve \"@agent-native/core\" to the `browser` condition\n// (./index.browser.ts), which re-exports the client surface, so UI code that\n// imports client helpers from the bare specifier keeps working in the browser.\n// Code that runs through the Node entry (SSR, scripts, headless) must import\n// client helpers explicitly:\n//\n// import { useDbSync, cn } from \"@agent-native/core/client\";\n\n// Shared (isomorphic)\nexport {\n agentChat,\n type AgentChatCallOptions,\n type AgentChatResponse,\n} from \"./shared/index.js\";\nexport {\n EMBED_MODE_QUERY_PARAM,\n EMBED_SESSION_COOKIE,\n EMBED_START_PATH,\n EMBED_TOKEN_QUERY_PARAM,\n} from \"./shared/embed-auth.js\";\n\n// Agent Web surfaces\nexport {\n AGENT_WEB_CRAWLER_CATEGORIES,\n AGENT_WEB_CRAWLER_USER_AGENTS,\n DEFAULT_AGENT_WEB_CRAWLER_POLICY,\n absoluteUrl,\n agentWebConfigFromPackageJson,\n buildAgentWebStaticFiles,\n buildBaseJsonLd,\n buildLlmsFullTxt,\n buildLlmsTxt,\n buildMarkdownResponseHeaders,\n buildPageJsonLd,\n buildRobotsTxt,\n buildSitemapXml,\n deriveAgentWebPublicRoutes,\n estimateMarkdownTokens,\n markdownFilePathForPage,\n markdownUrlForPage,\n normalizeAgentWebConfig,\n pathPatternMatches,\n resolveAgentWebCrawlerPolicy,\n type AgentWebConfig,\n type AgentWebCrawlerCategory,\n type AgentWebCrawlerDecision,\n type AgentWebCrawlerOverrides,\n type AgentWebCrawlerPolicy,\n type AgentWebInputConfig,\n type AgentWebPage,\n type AgentWebStaticFile,\n type BuildAgentWebStaticFilesOptions,\n type DeriveAgentWebPublicRoutesOptions,\n type MarkdownResponseHeadersOptions,\n} from \"./agent-web/index.js\";\n\n// Token usage tracking\nexport {\n recordUsage,\n getUsageSummary,\n getUserUsageCents,\n calculateCost,\n usageBillingForEngine,\n builderCreditsFromCostCents,\n BUILDER_AGENT_CREDIT_MARGIN_MULTIPLIER,\n BUILDER_AGENT_CREDITS_PER_USD,\n BUILDER_CREDIT_USAGE_BILLING,\n USD_USAGE_BILLING,\n type UsageRecord,\n type UsageCostSource,\n type UsageCostAggregate,\n type UsageSummary,\n type UsageBillingMode,\n type UsageBillingUnit,\n type UsageBucket,\n type DailyBucket,\n type UsageRecentEntry,\n} from \"./usage/store.js\";\n\n// Workspace-scoped third-party connection metadata\nexport {\n deleteWorkspaceConnection,\n getWorkspaceConnectionAppAccess,\n getWorkspaceConnection,\n getWorkspaceConnectionGrant,\n listWorkspaceConnectionProviderCatalogForApp,\n listWorkspaceConnectionGrants,\n listWorkspaceConnections,\n resolveWorkspaceConnectionCredentialForApp,\n resolveWorkspaceConnectionCredentialsForApp,\n revokeWorkspaceConnectionGrant,\n serializeWorkspaceConnectionGrant,\n serializeWorkspaceConnection,\n summarizeWorkspaceConnectionProviderForApp,\n summarizeWorkspaceConnectionProviderReadiness,\n upsertWorkspaceConnectionGrant,\n upsertWorkspaceConnection,\n type ListWorkspaceConnectionProviderCatalogForAppOptions,\n type ListWorkspaceConnectionGrantsOptions,\n type ListWorkspaceConnectionsOptions,\n type ResolveWorkspaceConnectionCredentialForAppOptions,\n type ResolveWorkspaceConnectionCredentialsForAppOptions,\n type SerializedWorkspaceConnectionGrant,\n type SerializedWorkspaceConnection,\n type SummarizeWorkspaceConnectionProviderForAppOptions,\n type SummarizeWorkspaceConnectionProviderReadinessOptions,\n type UpsertWorkspaceConnectionGrantInput,\n type UpsertWorkspaceConnectionInput,\n type WorkspaceConnectionAppAccess,\n type WorkspaceConnectionAppAccessMode,\n type WorkspaceConnection,\n type WorkspaceConnectionCredentialBackend,\n type WorkspaceConnectionCredentialProvenance,\n type WorkspaceConnectionCredentialRef,\n type WorkspaceConnectionCredentialResolution,\n type WorkspaceConnectionCredentialResolutionCheck,\n type WorkspaceConnectionCredentialResolutionStatus,\n type WorkspaceConnectionCredentialsResolution,\n type WorkspaceConnectionExplicitGrantSummary,\n type WorkspaceConnectionForAppSummary,\n type WorkspaceConnectionGrant,\n type WorkspaceConnectionGrantAvailability,\n type WorkspaceConnectionGrantState,\n type WorkspaceConnectionProviderAppSummary,\n type WorkspaceConnectionProviderLike,\n type WorkspaceConnectionProviderCatalogForApp,\n type WorkspaceConnectionProviderCatalogForAppItem,\n type WorkspaceConnectionProviderReadiness,\n type WorkspaceConnectionProviderReadinessStatus,\n type WorkspaceConnectionPublicCredentialRef,\n type WorkspaceConnectionStatus,\n workspaceConnectionIsAvailableToApp,\n} from \"./workspace-connections/index.js\";\n\n// Reusable workspace connection provider catalog\nexport {\n PROVIDER_READERS,\n ProviderReaderRuntimeError,\n WORKSPACE_CONNECTION_PROVIDERS,\n createProviderReaderRuntime,\n defineProviderReader,\n defineProviderReaderImplementation,\n defineWorkspaceConnectionProvider,\n getProviderReader,\n getWorkspaceConnectionProvider,\n isWorkspaceConnectionProviderId,\n listProviderReaders,\n listWorkspaceConnectionProviders,\n listWorkspaceConnectionProvidersForCapability,\n listWorkspaceConnectionProvidersForTemplate,\n providerReaderSupports,\n workspaceConnectionProviderSupports,\n type ListWorkspaceConnectionProvidersOptions,\n type ListProviderReadersOptions,\n type ProviderReaderCapability,\n type ProviderReaderCredentialRequirement,\n type ProviderReaderDefinition,\n type ProviderReaderImplementationStatus,\n type ProviderReaderOperation,\n type ProviderReaderOperationDescriptor,\n type ProviderReaderOperationParameter,\n type ProviderReaderRequest,\n type ProviderReaderRuntime,\n type ProviderReaderRuntimeConnection,\n type ProviderReaderRuntimeConnectionResolverOptions,\n type ProviderReaderRuntimeContext,\n type ProviderReaderRuntimeCredentialsResolverOptions,\n type ProviderReaderRuntimeErrorCode,\n type ProviderReaderRuntimeHandler,\n type ProviderReaderRuntimeImplementation,\n type ProviderReaderRuntimeItem,\n type ProviderReaderRuntimeOptions,\n type ProviderReaderRuntimeResponse,\n type WorkspaceConnectionCapability,\n type WorkspaceConnectionCredentialKey,\n type WorkspaceConnectionProvider,\n type WorkspaceConnectionProviderId,\n type WorkspaceConnectionTemplateUse,\n} from \"./connections/index.js\";\n\n// Scripts\nexport {\n runScript,\n loadEnv,\n parseArgs,\n camelCaseArgs,\n isValidPath,\n isValidProjectPath,\n ensureDir,\n fail,\n} from \"./scripts/index.js\";\n\n// Secrets registry — import from \"@agent-native/core/secrets\" when possible\n// (the subpath keeps the top-level entry point lean), but re-export the\n// public API here for convenience.\nexport {\n registerRequiredSecret,\n listRequiredSecrets,\n getRequiredSecret,\n readAppSecret,\n writeAppSecret,\n deleteAppSecret,\n type RegisteredSecret,\n type SecretScope,\n type SecretKind,\n type SecretValidator,\n type SecretRef,\n} from \"./secrets/index.js\";\n\nexport * from \"./history/index.js\";\nexport * from \"./review/index.js\";\nexport * from \"./org-team/index.js\";\nexport * from \"./navigation/index.js\";\nexport * from \"./command-navigation/index.js\";\nexport {\n registerWorkspaceConnectionOnboardingStep,\n type RegisterWorkspaceConnectionOnboardingStepOptions,\n} from \"./setup-connections/index.js\";\n"]}
|
|
@@ -42,9 +42,9 @@ const BUILT_IN_CHANNEL_CATALOG = [
|
|
|
42
42
|
credentialRequirements: [
|
|
43
43
|
{
|
|
44
44
|
key: "SLACK_BOT_TOKEN",
|
|
45
|
-
label: "Slack Bot Token",
|
|
45
|
+
label: "Slack Bot Token (legacy)",
|
|
46
46
|
required: false,
|
|
47
|
-
helpText: "
|
|
47
|
+
helpText: "Legacy single-workspace fallback only. For new setups, install Slack from Settings → Messaging; managed OAuth stores each workspace token automatically.",
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
key: "SLACK_CLIENT_ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/integrations/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,eAAe;IACf,eAAe;CACP,CAAC;AA8FX,MAAM,wBAAwB,GAAG;IAC/B;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,CAAC,SAAS,CAA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K,EAAE,EAAE,CACR,KAAK,CAAC,YAAY,KAAK,WAAW;QAClC,KAAK,CAAC,eAAe,KAAK,UAAU,CACvC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Framework-owned integration taxonomy and metadata.\n *\n * This module deliberately describes integrations without implementing them.\n * Runtime behavior stays in adapters and plugins; consumers must use\n * availability and support maturity before offering a connection flow.\n */\n\nexport const INTEGRATION_CATEGORIES = [\n \"channel\",\n \"provider\",\n \"automation\",\n \"agent-runtime\",\n \"tool-protocol\",\n] as const;\n\nexport type IntegrationCategory = (typeof INTEGRATION_CATEGORIES)[number];\n\nexport type IntegrationAvailability =\n | \"available\"\n | \"preview\"\n | \"planned\"\n | \"unavailable\";\n\nexport type IntegrationSupportMaturity =\n | \"built-in\"\n | \"blueprint\"\n | \"experimental\";\n\nexport type IntegrationIconKey =\n | \"slack\"\n | \"telegram\"\n | \"whatsapp\"\n | \"microsoft-teams\"\n | \"discord\"\n | \"email\"\n | \"n8n\"\n | \"zapier\";\n\nexport interface IntegrationCredentialRequirement {\n /** Stable runtime key; this is a name only, never a credential value. */\n readonly key: string;\n readonly label: string;\n readonly required: boolean;\n readonly helpText?: string;\n /**\n * Credential groups model alternatives such as Resend or SendGrid. At least\n * one credential in a group must be configured when `required` is true.\n */\n readonly alternativeGroup?: string;\n}\n\nexport interface ChannelCapabilities {\n readonly inboundText: boolean;\n readonly replyText: boolean;\n readonly proactiveMessages: boolean;\n readonly directMessages?: boolean;\n readonly mentions?: boolean;\n readonly nativeThreads?: boolean;\n readonly contextualReplies?: boolean;\n readonly interactionOnly?: boolean;\n readonly webhookSetup?: \"automatic\" | \"manual\";\n}\n\nexport interface AutomationCapabilities {\n /**\n * `configured-webhook` uses the generic automation runtime after an app\n * owner supplies a workflow URL and credentials. `blueprint-only` has no\n * generic execution path in Agent Native.\n */\n readonly runtime: \"configured-webhook\" | \"blueprint-only\";\n readonly invokeWorkflow: boolean;\n readonly receiveCallback: boolean;\n readonly responseModes: readonly (\"synchronous\" | \"asynchronous\")[];\n readonly idempotency: boolean;\n}\n\nexport interface IntegrationCatalogEntry {\n readonly id: string;\n readonly name: string;\n readonly categories: readonly IntegrationCategory[];\n readonly availability: IntegrationAvailability;\n readonly supportMaturity: IntegrationSupportMaturity;\n /** A semantic key for consumers to map to their own icon library or asset. */\n readonly iconKey: IntegrationIconKey;\n readonly description: string;\n readonly caveats: readonly string[];\n readonly documentation: {\n readonly href: string;\n readonly externalHref?: string;\n readonly externalLabel?: string;\n };\n readonly setup: {\n readonly steps: readonly string[];\n };\n readonly credentialRequirements: readonly IntegrationCredentialRequirement[];\n readonly channelCapabilities?: ChannelCapabilities;\n readonly automationCapabilities?: AutomationCapabilities;\n}\n\nexport type BuiltInChannelId =\n | \"slack\"\n | \"microsoft-teams\"\n | \"discord\"\n | \"telegram\"\n | \"whatsapp\"\n | \"email\";\n\nconst BUILT_IN_CHANNEL_CATALOG = [\n {\n id: \"slack\",\n name: \"Slack\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"slack\",\n description:\n \"Install managed Slack workspaces with channel identities, contextual threads, native progress, and governance.\",\n caveats: [\n \"Replies stay in Slack's native message thread when a thread timestamp is available.\",\n \"Managed installations select encrypted credentials by workspace; legacy manual installs should use SLACK_ALLOWED_TEAM_IDS.\",\n ],\n documentation: {\n href: \"/docs/messaging#slack\",\n externalHref: \"https://api.slack.com/apps\",\n externalLabel: \"Open Slack apps\",\n },\n setup: {\n steps: [\n \"Create or open a Slack app at api.slack.com/apps.\",\n \"Apply the Agent Native Slack manifest to enable Agent View and writable direct messages.\",\n \"Configure the OAuth client id, client secret, and signing secret.\",\n \"Enable Event Subscriptions and Interactivity with the documented URLs.\",\n \"Subscribe to app_home_opened, app_context_changed, app_mention, and message.im/channels/groups, then use Add to Slack.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"SLACK_BOT_TOKEN\",\n label: \"Slack Bot Token\",\n required: false,\n helpText:\n \"OAuth & Permissions → Bot User OAuth Token (starts with `xoxb-`).\",\n },\n {\n key: \"SLACK_CLIENT_ID\",\n label: \"Slack OAuth Client ID\",\n required: true,\n helpText: \"Basic Information → App Credentials → Client ID.\",\n },\n {\n key: \"SLACK_CLIENT_SECRET\",\n label: \"Slack OAuth Client Secret\",\n required: true,\n helpText: \"Basic Information → App Credentials → Client Secret.\",\n },\n {\n key: \"SLACK_SIGNING_SECRET\",\n label: \"Slack Signing Secret\",\n required: true,\n helpText: \"Basic Information → App Credentials → Signing Secret.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n directMessages: true,\n mentions: true,\n nativeThreads: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"microsoft-teams\",\n name: \"Microsoft Teams\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"microsoft-teams\",\n description:\n \"Receive Bot Framework messages from Microsoft Teams and reply in the originating conversation.\",\n caveats: [\n \"Inbound JWTs are validated with Microsoft's Bot Framework connector, including issuer, audience, service URL, and channel endorsement checks.\",\n \"Production deployments must allowlist Microsoft Entra tenant IDs; proactive messaging without an inbound conversation reference is not implemented.\",\n ],\n documentation: {\n href: \"/docs/messaging#microsoft-teams\",\n externalHref: \"https://dev.botframework.com/\",\n externalLabel: \"Open Bot Framework\",\n },\n setup: {\n steps: [\n \"Create an Azure Bot resource and Microsoft Entra app registration.\",\n \"Configure the app ID, client secret, and allowed tenant IDs.\",\n \"Set the bot messaging endpoint to the provided webhook URL.\",\n \"Add the Microsoft Teams channel and install the bot in an allowed tenant.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"MICROSOFT_TEAMS_APP_ID\",\n label: \"Microsoft Bot App ID\",\n required: true,\n },\n {\n key: \"MICROSOFT_TEAMS_APP_PASSWORD\",\n label: \"Microsoft Bot Client Secret\",\n required: true,\n },\n {\n key: \"MICROSOFT_TEAMS_APP_TENANT_ID\",\n label: \"Microsoft Bot Tenant ID\",\n required: false,\n helpText: \"Required for single-tenant bot registrations.\",\n },\n {\n key: \"MICROSOFT_TEAMS_ALLOWED_TENANT_IDS\",\n label: \"Allowed Microsoft Teams Tenant IDs\",\n required: true,\n helpText:\n \"Comma-separated Entra tenant IDs that may invoke this deployment.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n mentions: true,\n nativeThreads: true,\n contextualReplies: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"discord\",\n name: \"Discord\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"discord\",\n description:\n \"Run the agent from Discord slash-command interactions with deferred replies.\",\n caveats: [\n \"This adapter receives HTTP interactions only. It does not ingest ordinary server or direct messages, which require a persistent Gateway connection.\",\n \"Interaction tokens are retained only while the queued task is active and normally expire after 15 minutes.\",\n ],\n documentation: {\n href: \"/docs/messaging#discord\",\n externalHref: \"https://discord.com/developers/applications\",\n externalLabel: \"Open Discord applications\",\n },\n setup: {\n steps: [\n \"Create or open a Discord application.\",\n \"Configure its application ID and public key.\",\n \"Paste the webhook URL into Interactions Endpoint URL.\",\n \"Register a chat-input command with a string prompt option.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"DISCORD_APPLICATION_ID\",\n label: \"Discord Application ID\",\n required: true,\n },\n {\n key: \"DISCORD_PUBLIC_KEY\",\n label: \"Discord Public Key\",\n required: true,\n helpText:\n \"Discord uses this Ed25519 public key to sign interaction webhooks.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n nativeThreads: false,\n contextualReplies: false,\n interactionOnly: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"telegram\",\n name: \"Telegram\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"telegram\",\n description: \"Receive and reply to text messages through a Telegram bot.\",\n caveats: [\n \"Forum topics and private-chat topics use message_thread_id as part of the canonical conversation identity.\",\n \"Webhook verification requires TELEGRAM_WEBHOOK_SECRET for production-safe setup.\",\n ],\n documentation: {\n href: \"/docs/messaging#telegram\",\n externalHref: \"https://t.me/BotFather\",\n externalLabel: \"Open BotFather\",\n },\n setup: {\n steps: [\n \"Create a bot with @BotFather.\",\n \"Configure the bot token and webhook secret.\",\n \"Register the webhook from the setup control.\",\n \"Send the bot a text message to test.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"TELEGRAM_BOT_TOKEN\",\n label: \"Telegram Bot Token\",\n required: true,\n helpText: \"The token provided by @BotFather after `/newbot`.\",\n },\n {\n key: \"TELEGRAM_WEBHOOK_SECRET\",\n label: \"Telegram Webhook Secret\",\n required: true,\n helpText:\n \"Telegram echoes this value on webhook requests for verification.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n directMessages: true,\n nativeThreads: true,\n contextualReplies: true,\n webhookSetup: \"automatic\",\n },\n },\n {\n id: \"whatsapp\",\n name: \"WhatsApp\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"whatsapp\",\n description: \"Receive and reply to WhatsApp Cloud API text messages.\",\n caveats: [\n \"This adapter uses the Meta-managed WhatsApp Cloud API, not personal WhatsApp accounts.\",\n \"Meta pricing and the customer-service conversation window can limit replies; template-message flows are not implemented by this adapter.\",\n ],\n documentation: {\n href: \"/docs/messaging#whatsapp\",\n externalHref: \"https://developers.facebook.com/apps\",\n externalLabel: \"Open Meta developer console\",\n },\n setup: {\n steps: [\n \"Create a Meta app and add the WhatsApp product.\",\n \"Configure the access token, verify token, and phone number ID.\",\n \"Paste the webhook URL and verify token into Meta.\",\n \"Subscribe to the messages webhook field.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"WHATSAPP_ACCESS_TOKEN\",\n label: \"WhatsApp Access Token\",\n required: true,\n },\n {\n key: \"WHATSAPP_VERIFY_TOKEN\",\n label: \"WhatsApp Verify Token\",\n required: true,\n },\n {\n key: \"WHATSAPP_PHONE_NUMBER_ID\",\n label: \"WhatsApp Phone Number ID\",\n required: true,\n },\n {\n key: \"WHATSAPP_APP_SECRET\",\n label: \"WhatsApp App Secret\",\n required: true,\n helpText: \"Verifies inbound webhooks with Meta's HMAC signature.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n contextualReplies: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"email\",\n name: \"Email\",\n categories: [\"channel\", \"provider\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"email\",\n description:\n \"Receive provider webhooks and reply by email through Resend or SendGrid.\",\n caveats: [\n \"This is a webhook-provider adapter for Resend or SendGrid, not a generic SMTP or IMAP connector.\",\n \"Email replies preserve RFC email threads and reply-all when the agent was CC'd.\",\n ],\n documentation: {\n href: \"/docs/messaging#email\",\n externalHref: \"https://resend.com/webhooks\",\n externalLabel: \"Open Resend webhooks\",\n },\n setup: {\n steps: [\n \"Choose Resend or SendGrid for inbound and outbound mail.\",\n \"Configure the agent address and one provider API key.\",\n \"Register the provider's inbound webhook URL.\",\n \"Configure a webhook signing secret in production.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"EMAIL_AGENT_ADDRESS\",\n label: \"Agent Email Address\",\n required: true,\n },\n {\n key: \"RESEND_API_KEY\",\n label: \"Resend API Key\",\n required: true,\n alternativeGroup: \"email-provider\",\n },\n {\n key: \"SENDGRID_API_KEY\",\n label: \"SendGrid API Key\",\n required: true,\n alternativeGroup: \"email-provider\",\n },\n {\n key: \"EMAIL_INBOUND_WEBHOOK_SECRET\",\n label: \"Inbound Webhook Secret\",\n required: false,\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n nativeThreads: true,\n webhookSetup: \"manual\",\n },\n },\n] as const satisfies readonly IntegrationCatalogEntry[];\n\nconst AUTOMATION_CATALOG = [\n {\n id: \"n8n\",\n name: \"n8n\",\n categories: [\"automation\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"n8n\",\n description:\n \"Invoke configured n8n Webhook workflows or receive authenticated n8n callbacks through the automation runtime.\",\n caveats: [\n \"n8n must be deployed and configured by the workspace owner; Agent Native does not provision or host n8n.\",\n \"Configure n8n Webhook authentication and an explicit response mode. Synchronous responses depend on the workflow's Webhook or Respond to Webhook node.\",\n \"Use a configured webhook URL or n8n credential; never put an n8n URL or credential in an agent prompt.\",\n ],\n documentation: {\n href: \"/docs/automation-connectors#n8n\",\n externalHref:\n \"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/\",\n externalLabel: \"Open n8n Webhook docs\",\n },\n setup: {\n steps: [\n \"Deploy or select an n8n instance and publish a Webhook workflow.\",\n \"Choose Header, Basic, or JWT authentication in n8n and save the matching credential in Agent Native.\",\n \"Register the static webhook path and allow-listed n8n origin in the app's automation configuration.\",\n \"Choose immediate, final-node, or Respond to Webhook behavior and test with a fake event ID.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"N8N_WEBHOOK_CREDENTIAL\",\n label: \"n8n Webhook Credential\",\n required: true,\n helpText:\n \"A header, basic, or JWT credential matching the configured n8n Webhook node.\",\n },\n ],\n automationCapabilities: {\n runtime: \"configured-webhook\",\n invokeWorkflow: true,\n receiveCallback: true,\n responseModes: [\"synchronous\", \"asynchronous\"],\n idempotency: true,\n },\n },\n {\n id: \"zapier\",\n name: \"Zapier\",\n categories: [\"automation\", \"tool-protocol\"],\n availability: \"available\",\n supportMaturity: \"blueprint\",\n iconKey: \"zapier\",\n description:\n \"Blueprint guidance for Zapier webhooks and Zapier MCP; there is no generic Zapier workflow execution runtime in Agent Native.\",\n caveats: [\n \"Zapier is not a chat channel and is not exposed through provider-api.\",\n \"Zapier REST Hook triggers require an app-owned subscribe and unsubscribe API; a static incoming webhook is not supported for public integrations.\",\n \"Zapier MCP is a separately configured remote MCP connection with its own account and authorization flow.\",\n ],\n documentation: {\n href: \"/docs/automation-connectors#zapier\",\n externalHref: \"https://docs.zapier.com/mcp/home\",\n externalLabel: \"Open Zapier MCP docs\",\n },\n setup: {\n steps: [\n \"Choose either an app-owned Zapier REST Hook integration or a separately configured Zapier MCP server.\",\n \"For REST Hooks, implement durable subscribe and unsubscribe endpoints before publishing an app integration.\",\n \"For MCP, complete Zapier's account authorization flow; do not treat an MCP server as a webhook credential.\",\n ],\n },\n credentialRequirements: [],\n automationCapabilities: {\n runtime: \"blueprint-only\",\n invokeWorkflow: false,\n receiveCallback: false,\n responseModes: [],\n idempotency: false,\n },\n },\n] as const satisfies readonly IntegrationCatalogEntry[];\n\nfunction deepFreeze<T>(value: T): T {\n if (value && typeof value === \"object\" && !Object.isFrozen(value)) {\n Object.freeze(value);\n for (const child of Object.values(value)) {\n deepFreeze(child);\n }\n }\n return value;\n}\n\nexport const BUILT_IN_INTEGRATION_CATALOG: readonly IntegrationCatalogEntry[] =\n deepFreeze([...BUILT_IN_CHANNEL_CATALOG, ...AUTOMATION_CATALOG]);\n\nexport function listIntegrationCatalog(\n category?: IntegrationCategory,\n): readonly IntegrationCatalogEntry[] {\n if (!category) return BUILT_IN_INTEGRATION_CATALOG;\n return BUILT_IN_INTEGRATION_CATALOG.filter((entry) =>\n entry.categories.includes(category),\n );\n}\n\nexport function getIntegrationCatalogEntry(\n id: string,\n): IntegrationCatalogEntry | undefined {\n return BUILT_IN_INTEGRATION_CATALOG.find((entry) => entry.id === id);\n}\n\nexport function listBuiltInChannelIntegrations(): readonly IntegrationCatalogEntry[] {\n return listIntegrationCatalog(\"channel\").filter(\n (entry) =>\n entry.availability === \"available\" &&\n entry.supportMaturity === \"built-in\",\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/integrations/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,eAAe;IACf,eAAe;CACP,CAAC;AA8FX,M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AACvE,CAAC;AAED,MAAM,UAAU,8BAA8B;IAC5C,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC,MAAM,CAC7C,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,CAAC,YAAY,KAAK,WAAW;QAClC,KAAK,CAAC,eAAe,KAAK,UAAU,CACvC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Framework-owned integration taxonomy and metadata.\n *\n * This module deliberately describes integrations without implementing them.\n * Runtime behavior stays in adapters and plugins; consumers must use\n * availability and support maturity before offering a connection flow.\n */\n\nexport const INTEGRATION_CATEGORIES = [\n \"channel\",\n \"provider\",\n \"automation\",\n \"agent-runtime\",\n \"tool-protocol\",\n] as const;\n\nexport type IntegrationCategory = (typeof INTEGRATION_CATEGORIES)[number];\n\nexport type IntegrationAvailability =\n | \"available\"\n | \"preview\"\n | \"planned\"\n | \"unavailable\";\n\nexport type IntegrationSupportMaturity =\n | \"built-in\"\n | \"blueprint\"\n | \"experimental\";\n\nexport type IntegrationIconKey =\n | \"slack\"\n | \"telegram\"\n | \"whatsapp\"\n | \"microsoft-teams\"\n | \"discord\"\n | \"email\"\n | \"n8n\"\n | \"zapier\";\n\nexport interface IntegrationCredentialRequirement {\n /** Stable runtime key; this is a name only, never a credential value. */\n readonly key: string;\n readonly label: string;\n readonly required: boolean;\n readonly helpText?: string;\n /**\n * Credential groups model alternatives such as Resend or SendGrid. At least\n * one credential in a group must be configured when `required` is true.\n */\n readonly alternativeGroup?: string;\n}\n\nexport interface ChannelCapabilities {\n readonly inboundText: boolean;\n readonly replyText: boolean;\n readonly proactiveMessages: boolean;\n readonly directMessages?: boolean;\n readonly mentions?: boolean;\n readonly nativeThreads?: boolean;\n readonly contextualReplies?: boolean;\n readonly interactionOnly?: boolean;\n readonly webhookSetup?: \"automatic\" | \"manual\";\n}\n\nexport interface AutomationCapabilities {\n /**\n * `configured-webhook` uses the generic automation runtime after an app\n * owner supplies a workflow URL and credentials. `blueprint-only` has no\n * generic execution path in Agent Native.\n */\n readonly runtime: \"configured-webhook\" | \"blueprint-only\";\n readonly invokeWorkflow: boolean;\n readonly receiveCallback: boolean;\n readonly responseModes: readonly (\"synchronous\" | \"asynchronous\")[];\n readonly idempotency: boolean;\n}\n\nexport interface IntegrationCatalogEntry {\n readonly id: string;\n readonly name: string;\n readonly categories: readonly IntegrationCategory[];\n readonly availability: IntegrationAvailability;\n readonly supportMaturity: IntegrationSupportMaturity;\n /** A semantic key for consumers to map to their own icon library or asset. */\n readonly iconKey: IntegrationIconKey;\n readonly description: string;\n readonly caveats: readonly string[];\n readonly documentation: {\n readonly href: string;\n readonly externalHref?: string;\n readonly externalLabel?: string;\n };\n readonly setup: {\n readonly steps: readonly string[];\n };\n readonly credentialRequirements: readonly IntegrationCredentialRequirement[];\n readonly channelCapabilities?: ChannelCapabilities;\n readonly automationCapabilities?: AutomationCapabilities;\n}\n\nexport type BuiltInChannelId =\n | \"slack\"\n | \"microsoft-teams\"\n | \"discord\"\n | \"telegram\"\n | \"whatsapp\"\n | \"email\";\n\nconst BUILT_IN_CHANNEL_CATALOG = [\n {\n id: \"slack\",\n name: \"Slack\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"slack\",\n description:\n \"Install managed Slack workspaces with channel identities, contextual threads, native progress, and governance.\",\n caveats: [\n \"Replies stay in Slack's native message thread when a thread timestamp is available.\",\n \"Managed installations select encrypted credentials by workspace; legacy manual installs should use SLACK_ALLOWED_TEAM_IDS.\",\n ],\n documentation: {\n href: \"/docs/messaging#slack\",\n externalHref: \"https://api.slack.com/apps\",\n externalLabel: \"Open Slack apps\",\n },\n setup: {\n steps: [\n \"Create or open a Slack app at api.slack.com/apps.\",\n \"Apply the Agent Native Slack manifest to enable Agent View and writable direct messages.\",\n \"Configure the OAuth client id, client secret, and signing secret.\",\n \"Enable Event Subscriptions and Interactivity with the documented URLs.\",\n \"Subscribe to app_home_opened, app_context_changed, app_mention, and message.im/channels/groups, then use Add to Slack.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"SLACK_BOT_TOKEN\",\n label: \"Slack Bot Token (legacy)\",\n required: false,\n helpText:\n \"Legacy single-workspace fallback only. For new setups, install Slack from Settings → Messaging; managed OAuth stores each workspace token automatically.\",\n },\n {\n key: \"SLACK_CLIENT_ID\",\n label: \"Slack OAuth Client ID\",\n required: true,\n helpText: \"Basic Information → App Credentials → Client ID.\",\n },\n {\n key: \"SLACK_CLIENT_SECRET\",\n label: \"Slack OAuth Client Secret\",\n required: true,\n helpText: \"Basic Information → App Credentials → Client Secret.\",\n },\n {\n key: \"SLACK_SIGNING_SECRET\",\n label: \"Slack Signing Secret\",\n required: true,\n helpText: \"Basic Information → App Credentials → Signing Secret.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n directMessages: true,\n mentions: true,\n nativeThreads: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"microsoft-teams\",\n name: \"Microsoft Teams\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"microsoft-teams\",\n description:\n \"Receive Bot Framework messages from Microsoft Teams and reply in the originating conversation.\",\n caveats: [\n \"Inbound JWTs are validated with Microsoft's Bot Framework connector, including issuer, audience, service URL, and channel endorsement checks.\",\n \"Production deployments must allowlist Microsoft Entra tenant IDs; proactive messaging without an inbound conversation reference is not implemented.\",\n ],\n documentation: {\n href: \"/docs/messaging#microsoft-teams\",\n externalHref: \"https://dev.botframework.com/\",\n externalLabel: \"Open Bot Framework\",\n },\n setup: {\n steps: [\n \"Create an Azure Bot resource and Microsoft Entra app registration.\",\n \"Configure the app ID, client secret, and allowed tenant IDs.\",\n \"Set the bot messaging endpoint to the provided webhook URL.\",\n \"Add the Microsoft Teams channel and install the bot in an allowed tenant.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"MICROSOFT_TEAMS_APP_ID\",\n label: \"Microsoft Bot App ID\",\n required: true,\n },\n {\n key: \"MICROSOFT_TEAMS_APP_PASSWORD\",\n label: \"Microsoft Bot Client Secret\",\n required: true,\n },\n {\n key: \"MICROSOFT_TEAMS_APP_TENANT_ID\",\n label: \"Microsoft Bot Tenant ID\",\n required: false,\n helpText: \"Required for single-tenant bot registrations.\",\n },\n {\n key: \"MICROSOFT_TEAMS_ALLOWED_TENANT_IDS\",\n label: \"Allowed Microsoft Teams Tenant IDs\",\n required: true,\n helpText:\n \"Comma-separated Entra tenant IDs that may invoke this deployment.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n mentions: true,\n nativeThreads: true,\n contextualReplies: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"discord\",\n name: \"Discord\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"discord\",\n description:\n \"Run the agent from Discord slash-command interactions with deferred replies.\",\n caveats: [\n \"This adapter receives HTTP interactions only. It does not ingest ordinary server or direct messages, which require a persistent Gateway connection.\",\n \"Interaction tokens are retained only while the queued task is active and normally expire after 15 minutes.\",\n ],\n documentation: {\n href: \"/docs/messaging#discord\",\n externalHref: \"https://discord.com/developers/applications\",\n externalLabel: \"Open Discord applications\",\n },\n setup: {\n steps: [\n \"Create or open a Discord application.\",\n \"Configure its application ID and public key.\",\n \"Paste the webhook URL into Interactions Endpoint URL.\",\n \"Register a chat-input command with a string prompt option.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"DISCORD_APPLICATION_ID\",\n label: \"Discord Application ID\",\n required: true,\n },\n {\n key: \"DISCORD_PUBLIC_KEY\",\n label: \"Discord Public Key\",\n required: true,\n helpText:\n \"Discord uses this Ed25519 public key to sign interaction webhooks.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n nativeThreads: false,\n contextualReplies: false,\n interactionOnly: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"telegram\",\n name: \"Telegram\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"telegram\",\n description: \"Receive and reply to text messages through a Telegram bot.\",\n caveats: [\n \"Forum topics and private-chat topics use message_thread_id as part of the canonical conversation identity.\",\n \"Webhook verification requires TELEGRAM_WEBHOOK_SECRET for production-safe setup.\",\n ],\n documentation: {\n href: \"/docs/messaging#telegram\",\n externalHref: \"https://t.me/BotFather\",\n externalLabel: \"Open BotFather\",\n },\n setup: {\n steps: [\n \"Create a bot with @BotFather.\",\n \"Configure the bot token and webhook secret.\",\n \"Register the webhook from the setup control.\",\n \"Send the bot a text message to test.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"TELEGRAM_BOT_TOKEN\",\n label: \"Telegram Bot Token\",\n required: true,\n helpText: \"The token provided by @BotFather after `/newbot`.\",\n },\n {\n key: \"TELEGRAM_WEBHOOK_SECRET\",\n label: \"Telegram Webhook Secret\",\n required: true,\n helpText:\n \"Telegram echoes this value on webhook requests for verification.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n directMessages: true,\n nativeThreads: true,\n contextualReplies: true,\n webhookSetup: \"automatic\",\n },\n },\n {\n id: \"whatsapp\",\n name: \"WhatsApp\",\n categories: [\"channel\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"whatsapp\",\n description: \"Receive and reply to WhatsApp Cloud API text messages.\",\n caveats: [\n \"This adapter uses the Meta-managed WhatsApp Cloud API, not personal WhatsApp accounts.\",\n \"Meta pricing and the customer-service conversation window can limit replies; template-message flows are not implemented by this adapter.\",\n ],\n documentation: {\n href: \"/docs/messaging#whatsapp\",\n externalHref: \"https://developers.facebook.com/apps\",\n externalLabel: \"Open Meta developer console\",\n },\n setup: {\n steps: [\n \"Create a Meta app and add the WhatsApp product.\",\n \"Configure the access token, verify token, and phone number ID.\",\n \"Paste the webhook URL and verify token into Meta.\",\n \"Subscribe to the messages webhook field.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"WHATSAPP_ACCESS_TOKEN\",\n label: \"WhatsApp Access Token\",\n required: true,\n },\n {\n key: \"WHATSAPP_VERIFY_TOKEN\",\n label: \"WhatsApp Verify Token\",\n required: true,\n },\n {\n key: \"WHATSAPP_PHONE_NUMBER_ID\",\n label: \"WhatsApp Phone Number ID\",\n required: true,\n },\n {\n key: \"WHATSAPP_APP_SECRET\",\n label: \"WhatsApp App Secret\",\n required: true,\n helpText: \"Verifies inbound webhooks with Meta's HMAC signature.\",\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: false,\n directMessages: true,\n contextualReplies: true,\n webhookSetup: \"manual\",\n },\n },\n {\n id: \"email\",\n name: \"Email\",\n categories: [\"channel\", \"provider\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"email\",\n description:\n \"Receive provider webhooks and reply by email through Resend or SendGrid.\",\n caveats: [\n \"This is a webhook-provider adapter for Resend or SendGrid, not a generic SMTP or IMAP connector.\",\n \"Email replies preserve RFC email threads and reply-all when the agent was CC'd.\",\n ],\n documentation: {\n href: \"/docs/messaging#email\",\n externalHref: \"https://resend.com/webhooks\",\n externalLabel: \"Open Resend webhooks\",\n },\n setup: {\n steps: [\n \"Choose Resend or SendGrid for inbound and outbound mail.\",\n \"Configure the agent address and one provider API key.\",\n \"Register the provider's inbound webhook URL.\",\n \"Configure a webhook signing secret in production.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"EMAIL_AGENT_ADDRESS\",\n label: \"Agent Email Address\",\n required: true,\n },\n {\n key: \"RESEND_API_KEY\",\n label: \"Resend API Key\",\n required: true,\n alternativeGroup: \"email-provider\",\n },\n {\n key: \"SENDGRID_API_KEY\",\n label: \"SendGrid API Key\",\n required: true,\n alternativeGroup: \"email-provider\",\n },\n {\n key: \"EMAIL_INBOUND_WEBHOOK_SECRET\",\n label: \"Inbound Webhook Secret\",\n required: false,\n },\n ],\n channelCapabilities: {\n inboundText: true,\n replyText: true,\n proactiveMessages: true,\n nativeThreads: true,\n webhookSetup: \"manual\",\n },\n },\n] as const satisfies readonly IntegrationCatalogEntry[];\n\nconst AUTOMATION_CATALOG = [\n {\n id: \"n8n\",\n name: \"n8n\",\n categories: [\"automation\"],\n availability: \"available\",\n supportMaturity: \"built-in\",\n iconKey: \"n8n\",\n description:\n \"Invoke configured n8n Webhook workflows or receive authenticated n8n callbacks through the automation runtime.\",\n caveats: [\n \"n8n must be deployed and configured by the workspace owner; Agent Native does not provision or host n8n.\",\n \"Configure n8n Webhook authentication and an explicit response mode. Synchronous responses depend on the workflow's Webhook or Respond to Webhook node.\",\n \"Use a configured webhook URL or n8n credential; never put an n8n URL or credential in an agent prompt.\",\n ],\n documentation: {\n href: \"/docs/automation-connectors#n8n\",\n externalHref:\n \"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/\",\n externalLabel: \"Open n8n Webhook docs\",\n },\n setup: {\n steps: [\n \"Deploy or select an n8n instance and publish a Webhook workflow.\",\n \"Choose Header, Basic, or JWT authentication in n8n and save the matching credential in Agent Native.\",\n \"Register the static webhook path and allow-listed n8n origin in the app's automation configuration.\",\n \"Choose immediate, final-node, or Respond to Webhook behavior and test with a fake event ID.\",\n ],\n },\n credentialRequirements: [\n {\n key: \"N8N_WEBHOOK_CREDENTIAL\",\n label: \"n8n Webhook Credential\",\n required: true,\n helpText:\n \"A header, basic, or JWT credential matching the configured n8n Webhook node.\",\n },\n ],\n automationCapabilities: {\n runtime: \"configured-webhook\",\n invokeWorkflow: true,\n receiveCallback: true,\n responseModes: [\"synchronous\", \"asynchronous\"],\n idempotency: true,\n },\n },\n {\n id: \"zapier\",\n name: \"Zapier\",\n categories: [\"automation\", \"tool-protocol\"],\n availability: \"available\",\n supportMaturity: \"blueprint\",\n iconKey: \"zapier\",\n description:\n \"Blueprint guidance for Zapier webhooks and Zapier MCP; there is no generic Zapier workflow execution runtime in Agent Native.\",\n caveats: [\n \"Zapier is not a chat channel and is not exposed through provider-api.\",\n \"Zapier REST Hook triggers require an app-owned subscribe and unsubscribe API; a static incoming webhook is not supported for public integrations.\",\n \"Zapier MCP is a separately configured remote MCP connection with its own account and authorization flow.\",\n ],\n documentation: {\n href: \"/docs/automation-connectors#zapier\",\n externalHref: \"https://docs.zapier.com/mcp/home\",\n externalLabel: \"Open Zapier MCP docs\",\n },\n setup: {\n steps: [\n \"Choose either an app-owned Zapier REST Hook integration or a separately configured Zapier MCP server.\",\n \"For REST Hooks, implement durable subscribe and unsubscribe endpoints before publishing an app integration.\",\n \"For MCP, complete Zapier's account authorization flow; do not treat an MCP server as a webhook credential.\",\n ],\n },\n credentialRequirements: [],\n automationCapabilities: {\n runtime: \"blueprint-only\",\n invokeWorkflow: false,\n receiveCallback: false,\n responseModes: [],\n idempotency: false,\n },\n },\n] as const satisfies readonly IntegrationCatalogEntry[];\n\nfunction deepFreeze<T>(value: T): T {\n if (value && typeof value === \"object\" && !Object.isFrozen(value)) {\n Object.freeze(value);\n for (const child of Object.values(value)) {\n deepFreeze(child);\n }\n }\n return value;\n}\n\nexport const BUILT_IN_INTEGRATION_CATALOG: readonly IntegrationCatalogEntry[] =\n deepFreeze([...BUILT_IN_CHANNEL_CATALOG, ...AUTOMATION_CATALOG]);\n\nexport function listIntegrationCatalog(\n category?: IntegrationCategory,\n): readonly IntegrationCatalogEntry[] {\n if (!category) return BUILT_IN_INTEGRATION_CATALOG;\n return BUILT_IN_INTEGRATION_CATALOG.filter((entry) =>\n entry.categories.includes(category),\n );\n}\n\nexport function getIntegrationCatalogEntry(\n id: string,\n): IntegrationCatalogEntry | undefined {\n return BUILT_IN_INTEGRATION_CATALOG.find((entry) => entry.id === id);\n}\n\nexport function listBuiltInChannelIntegrations(): readonly IntegrationCatalogEntry[] {\n return listIntegrationCatalog(\"channel\").filter(\n (entry) =>\n entry.availability === \"available\" &&\n entry.supportMaturity === \"built-in\",\n );\n}\n"]}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
export declare function createNotificationsHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<"" | import("./types.js").Notification[] | {
|
|
14
14
|
count: number;
|
|
15
15
|
updated?: undefined;
|
|
16
|
-
error?: undefined;
|
|
17
16
|
ok?: undefined;
|
|
17
|
+
error?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
count?: undefined;
|
|
20
20
|
updated: number;
|
|
21
|
-
error?: undefined;
|
|
22
21
|
ok?: undefined;
|
|
22
|
+
error?: undefined;
|
|
23
23
|
} | {
|
|
24
24
|
count?: undefined;
|
|
25
25
|
updated?: undefined;
|
|
@@ -73,7 +73,6 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
73
73
|
offset?: unknown;
|
|
74
74
|
limit?: unknown;
|
|
75
75
|
}, {
|
|
76
|
-
deleted?: undefined;
|
|
77
76
|
jobs: {
|
|
78
77
|
id: string;
|
|
79
78
|
name: string;
|
|
@@ -84,6 +83,7 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
84
83
|
updatedAt: string;
|
|
85
84
|
}[];
|
|
86
85
|
total: number;
|
|
86
|
+
deleted?: undefined;
|
|
87
87
|
jobId?: undefined;
|
|
88
88
|
} | {
|
|
89
89
|
jobs?: undefined;
|
|
@@ -91,9 +91,9 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
91
91
|
deleted: boolean;
|
|
92
92
|
jobId: string;
|
|
93
93
|
} | {
|
|
94
|
-
deleted?: undefined;
|
|
95
94
|
jobs?: undefined;
|
|
96
95
|
total?: undefined;
|
|
96
|
+
deleted?: undefined;
|
|
97
97
|
jobId?: undefined;
|
|
98
98
|
hits: Record<string, unknown>[];
|
|
99
99
|
offset: number;
|
|
@@ -49,8 +49,8 @@ export declare function handleUpdateResource(event: any): Promise<import("./stor
|
|
|
49
49
|
}>;
|
|
50
50
|
/** DELETE /_agent-native/resources/:id — delete a resource */
|
|
51
51
|
export declare function handleDeleteResource(event: any): Promise<{
|
|
52
|
-
error: string;
|
|
53
52
|
ok?: undefined;
|
|
53
|
+
error: string;
|
|
54
54
|
} | {
|
|
55
55
|
error?: undefined;
|
|
56
56
|
ok: boolean;
|
|
@@ -27,11 +27,11 @@ export declare function resolveAgentEngineApiKeyWriteTarget(event: H3Event, scop
|
|
|
27
27
|
export declare function createAgentEngineApiKeyHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
28
28
|
error: any;
|
|
29
29
|
} | {
|
|
30
|
-
error?: undefined;
|
|
31
30
|
ok: boolean;
|
|
32
31
|
key: string;
|
|
33
32
|
baseUrlKey?: string;
|
|
34
33
|
scope: AgentEngineApiKeyScope;
|
|
34
|
+
error?: undefined;
|
|
35
35
|
}>>;
|
|
36
36
|
export {};
|
|
37
37
|
//# sourceMappingURL=agent-engine-api-key-route.d.ts.map
|
package/dist/server/auth.js
CHANGED
|
@@ -1155,7 +1155,7 @@ function loginHtmlResponse(loginHtml, event) {
|
|
|
1155
1155
|
headers: {
|
|
1156
1156
|
"Content-Type": "text/html; charset=utf-8",
|
|
1157
1157
|
// The sign-in document is part of the public server shell. Keep it on the
|
|
1158
|
-
// same
|
|
1158
|
+
// same long-fresh/long-SWR CDN policy as React Router SSR so hosted
|
|
1159
1159
|
// template roots do not invoke origin just to render anonymous login UI.
|
|
1160
1160
|
// The login HTML is env-INDEPENDENT (a Google-only app always renders a
|
|
1161
1161
|
// working button), so a cached copy is never "wrong" — never downgrade
|