@evalops/maestro 0.10.8 → 0.10.11
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 +3 -1
- package/dist/agent/action-approval.d.ts +6 -0
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +13 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +368 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/auto-compaction.d.ts +4 -4
- package/dist/agent/auto-compaction.d.ts.map +1 -1
- package/dist/agent/auto-compaction.js.map +1 -1
- package/dist/agent/compaction-cleanup.d.ts +2 -0
- package/dist/agent/compaction-cleanup.d.ts.map +1 -1
- package/dist/agent/compaction-cleanup.js +17 -2
- package/dist/agent/compaction-cleanup.js.map +1 -1
- package/dist/agent/compaction.d.ts +3 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +10 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-manager.d.ts +4 -0
- package/dist/agent/context-manager.d.ts.map +1 -1
- package/dist/agent/context-manager.js +8 -0
- package/dist/agent/context-manager.js.map +1 -1
- package/dist/agent/context-providers.d.ts +2 -0
- package/dist/agent/context-providers.d.ts.map +1 -1
- package/dist/agent/context-providers.js +3 -2
- package/dist/agent/context-providers.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +17 -5
- package/dist/agent/providers/google.js +174 -144
- package/dist/agent/providers/openai-codex-responses.d.ts +4 -0
- package/dist/agent/providers/openai-codex-responses.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-responses.js +637 -0
- package/dist/agent/providers/openai-codex-responses.js.map +1 -0
- package/dist/agent/providers/openai-codex-session.d.ts +18 -0
- package/dist/agent/providers/openai-codex-session.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-session.js +53 -0
- package/dist/agent/providers/openai-codex-session.js.map +1 -0
- package/dist/agent/providers/openai-responses-sdk.d.ts.map +1 -1
- package/dist/agent/providers/openai-responses-sdk.js +16 -6
- package/dist/agent/providers/openai-responses-sdk.js.map +1 -1
- package/dist/agent/providers/openai-shared.d.ts +12 -5
- package/dist/agent/providers/openai-shared.d.ts.map +1 -1
- package/dist/agent/providers/openai-shared.js +291 -2
- package/dist/agent/providers/openai-shared.js.map +1 -1
- package/dist/agent/providers/openai.d.ts +1 -1
- package/dist/agent/providers/openai.d.ts.map +1 -1
- package/dist/agent/providers/openai.js +48 -20
- package/dist/agent/providers/openai.js.map +1 -1
- package/dist/agent/providers/vertex.js +7 -0
- package/dist/agent/tracing.d.ts +16 -5
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +44 -2
- package/dist/agent/tracing.js.map +1 -1
- package/dist/agent/transport/create-provider-stream.d.ts.map +1 -1
- package/dist/agent/transport/create-provider-stream.js +9 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.d.ts +86 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.js +665 -0
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -0
- package/dist/agent/transport/tool-execution.d.ts +3 -0
- package/dist/agent/transport/tool-execution.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution.js +16 -1
- package/dist/agent/transport/tool-execution.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +7 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +207 -40
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport/tool-update-queue.d.ts +2 -0
- package/dist/agent/transport/tool-update-queue.d.ts.map +1 -1
- package/dist/agent/transport/tool-update-queue.js.map +1 -1
- package/dist/agent/transport.d.ts +3 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +96 -16
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +50 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/approvals/platform-action-approval.d.ts +32 -0
- package/dist/approvals/platform-action-approval.d.ts.map +1 -0
- package/dist/approvals/platform-action-approval.js +210 -0
- package/dist/approvals/platform-action-approval.js.map +1 -0
- package/dist/approvals/service-client.d.ts +56 -0
- package/dist/approvals/service-client.d.ts.map +1 -0
- package/dist/approvals/service-client.js +316 -0
- package/dist/approvals/service-client.js.map +1 -0
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/auth-setup.d.ts +2 -2
- package/dist/bootstrap/auth-setup.d.ts.map +1 -1
- package/dist/bootstrap/auth-setup.js +4 -7
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +29 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +2 -0
- package/dist/cli/commands/codex.d.ts.map +1 -0
- package/dist/cli/commands/codex.js +65 -0
- package/dist/cli/commands/codex.js.map +1 -0
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/evalops.d.ts +2 -0
- package/dist/cli/commands/evalops.d.ts.map +1 -0
- package/dist/cli/commands/evalops.js +74 -0
- package/dist/cli/commands/evalops.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +23 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -0
- package/dist/cli/commands/hosted-runner.js +241 -0
- package/dist/cli/commands/hosted-runner.js.map +1 -0
- package/dist/cli/commands/init.d.ts +4 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +140 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +23 -30
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/remote.d.ts +3 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +631 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +7 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +167 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +16 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +60 -4
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +1 -0
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +44 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/jsonl-writer.d.ts.map +1 -1
- package/dist/cli/jsonl-writer.js +19 -6
- package/dist/cli/jsonl-writer.js.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +17 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +1 -1
- package/dist/cli-tui/commands/access-command.js +1 -1
- package/dist/cli-tui/commands/access-command.js.map +1 -1
- package/dist/cli-tui/commands/audit-command.js +1 -1
- package/dist/cli-tui/commands/audit-command.js.map +1 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +29 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-catalog.js +645 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +12 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.js +120 -0
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +14 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.js +147 -0
- package/dist/cli-tui/commands/command-suite-catalog.js.map +1 -0
- package/dist/cli-tui/commands/{grouped-command-handlers.d.ts → command-suite-handlers.d.ts} +27 -26
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-handlers.js +110 -0
- package/dist/cli-tui/commands/command-suite-handlers.js.map +1 -0
- package/dist/cli-tui/commands/hotkeys-command.d.ts +1 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +1 -1
- package/dist/cli-tui/commands/hotkeys-command.js +2 -2
- package/dist/cli-tui/commands/hotkeys-command.js.map +1 -1
- package/dist/cli-tui/commands/limits-command.js +1 -1
- package/dist/cli-tui/commands/limits-command.js.map +1 -1
- package/dist/cli-tui/commands/pii-command.js +1 -1
- package/dist/cli-tui/commands/pii-command.js.map +1 -1
- package/dist/cli-tui/commands/registry.d.ts +1 -1
- package/dist/cli-tui/commands/registry.d.ts.map +1 -1
- package/dist/cli-tui/commands/registry.js +29 -921
- package/dist/cli-tui/commands/registry.js.map +1 -1
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.d.ts +2 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.js +22 -6
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.js +5 -7
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.d.ts +0 -2
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.d.ts +2 -2
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.js +2 -2
- package/dist/cli-tui/commands/subcommands/index.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.js +12 -12
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.js +3 -3
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.js +5 -5
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.js +6 -6
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +1 -0
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.d.ts +15 -15
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.js +13 -8
- package/dist/cli-tui/commands/subcommands/utils.js.map +1 -0
- package/dist/cli-tui/commands/types.d.ts +3 -3
- package/dist/cli-tui/commands/types.d.ts.map +1 -1
- package/dist/cli-tui/commands/types.js.map +1 -1
- package/dist/cli-tui/editor-view.d.ts +1 -1
- package/dist/cli-tui/editor-view.d.ts.map +1 -1
- package/dist/cli-tui/editor-view.js +1 -1
- package/dist/cli-tui/editor-view.js.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +4 -0
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +76 -5
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +1 -1
- package/dist/cli-tui/run/run-controller.d.ts +2 -2
- package/dist/cli-tui/run/run-controller.d.ts.map +1 -1
- package/dist/cli-tui/run/run-controller.js +3 -2
- package/dist/cli-tui/run/run-controller.js.map +1 -1
- package/dist/cli-tui/run/run-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/run-shell-command.js +11 -3
- package/dist/cli-tui/run/run-shell-command.js.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.js +11 -3
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +1 -0
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +8 -0
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +23 -2
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +3 -3
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +12 -2
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +32 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +1 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +108 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +1 -0
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer.d.ts +1 -3
- package/dist/cli-tui/tui-renderer.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer.js +37 -83
- package/dist/cli-tui/tui-renderer.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +8 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +58 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli.js +42555 -23133
- package/dist/cli.js.map +1 -1
- package/dist/config/env-vars.d.ts +4 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +4 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/config/feature-flags.d.ts +44 -0
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +214 -0
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/connectors/service-client.d.ts +98 -0
- package/dist/connectors/service-client.d.ts.map +1 -0
- package/dist/connectors/service-client.js +459 -0
- package/dist/connectors/service-client.js.map +1 -0
- package/dist/conversation/render-model.d.ts.map +1 -1
- package/dist/conversation/render-model.js +53 -3
- package/dist/conversation/render-model.js.map +1 -1
- package/dist/db/health.d.ts +8 -0
- package/dist/db/health.d.ts.map +1 -0
- package/dist/db/health.js +64 -0
- package/dist/db/health.js.map +1 -0
- package/dist/db/migrate.d.ts +301 -0
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +186 -0
- package/dist/db/migrate.js.map +1 -1
- package/dist/db/migrations/0000_initial.sql +308 -0
- package/dist/db/migrations/0001_shared_sessions.sql +18 -0
- package/dist/db/migrations/0002_usage_metrics.sql +28 -0
- package/dist/db/migrations/0003_execution_traces.sql +18 -0
- package/dist/db/migrations/0004_workspace_config.sql +11 -0
- package/dist/db/migrations/0005_revenue_attribution.sql +31 -0
- package/dist/db/migrations/0006_hosted_session_storage.sql +51 -0
- package/dist/db/migrations/0007_reconcile_legacy_audit_hash_cache.sql +24 -0
- package/dist/db/migrations/0008_reconcile_legacy_webhook_deliveries.sql +290 -0
- package/dist/db/migrations/meta/0000_snapshot.json +2438 -0
- package/dist/db/migrations/meta/_journal.json +69 -0
- package/dist/db/schema.d.ts +2232 -844
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +187 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/agent-bootstrap.d.ts +73 -0
- package/dist/evalops/agent-bootstrap.d.ts.map +1 -0
- package/dist/evalops/agent-bootstrap.js +380 -0
- package/dist/evalops/agent-bootstrap.js.map +1 -0
- package/dist/export-html.d.ts.map +1 -1
- package/dist/export-html.js +7 -4
- package/dist/export-html.js.map +1 -1
- package/dist/headless/utility-command-manager.d.ts +2 -1
- package/dist/headless/utility-command-manager.d.ts.map +1 -1
- package/dist/headless/utility-command-manager.js +12 -6
- package/dist/headless/utility-command-manager.js.map +1 -1
- package/dist/headless/utility-file-read.d.ts +1 -0
- package/dist/headless/utility-file-read.d.ts.map +1 -1
- package/dist/headless/utility-file-read.js +5 -1
- package/dist/headless/utility-file-read.js.map +1 -1
- package/dist/headless/utility-file-search.d.ts +1 -0
- package/dist/headless/utility-file-search.d.ts.map +1 -1
- package/dist/headless/utility-file-search.js +4 -1
- package/dist/headless/utility-file-search.js.map +1 -1
- package/dist/headless/utility-file-watch-manager.d.ts +2 -1
- package/dist/headless/utility-file-watch-manager.d.ts.map +1 -1
- package/dist/headless/utility-file-watch-manager.js +6 -2
- package/dist/headless/utility-file-watch-manager.js.map +1 -1
- package/dist/headless/workspace-root.d.ts +8 -0
- package/dist/headless/workspace-root.d.ts.map +1 -0
- package/dist/headless/workspace-root.js +74 -0
- package/dist/headless/workspace-root.js.map +1 -0
- package/dist/hooks/notification-hooks.d.ts +5 -0
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js +4 -0
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/lsp/diagnostic-deltas.d.ts +20 -0
- package/dist/lsp/diagnostic-deltas.d.ts.map +1 -0
- package/dist/lsp/diagnostic-deltas.js +92 -0
- package/dist/lsp/diagnostic-deltas.js.map +1 -0
- package/dist/lsp/diagnostic-repair.d.ts +48 -0
- package/dist/lsp/diagnostic-repair.d.ts.map +1 -0
- package/dist/lsp/diagnostic-repair.js +143 -0
- package/dist/lsp/diagnostic-repair.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +127 -37
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts +4 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +58 -14
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/manager.d.ts +1 -0
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +1 -0
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts +3 -0
- package/dist/mcp/platform-plugin.d.ts.map +1 -0
- package/dist/mcp/platform-plugin.js +117 -0
- package/dist/mcp/platform-plugin.js.map +1 -0
- package/dist/mcp/tool-bridge.d.ts +15 -0
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +194 -6
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/memory/platform-memory-client.d.ts +130 -0
- package/dist/memory/platform-memory-client.d.ts.map +1 -0
- package/dist/memory/platform-memory-client.js +330 -0
- package/dist/memory/platform-memory-client.js.map +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +1 -2
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +137 -0
- package/dist/models/builtin.js.map +1 -1
- package/dist/models/config-loader.d.ts +10 -10
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +1 -0
- package/dist/models/config-loader.js.map +1 -1
- package/dist/models/registry.d.ts +1 -0
- package/dist/models/registry.d.ts.map +1 -1
- package/dist/models/registry.js +1 -0
- package/dist/models/registry.js.map +1 -1
- package/dist/oauth/connectors.d.ts +25 -0
- package/dist/oauth/connectors.d.ts.map +1 -0
- package/dist/oauth/connectors.js +253 -0
- package/dist/oauth/connectors.js.map +1 -0
- package/dist/oauth/device-identity.d.ts +18 -0
- package/dist/oauth/device-identity.d.ts.map +1 -0
- package/dist/oauth/device-identity.js +193 -0
- package/dist/oauth/device-identity.js.map +1 -0
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +74 -15
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.d.ts.map +1 -1
- package/dist/oauth/index.js +31 -1
- package/dist/oauth/index.js.map +1 -1
- package/dist/oauth/openai-codex.d.ts +16 -0
- package/dist/oauth/openai-codex.d.ts.map +1 -0
- package/dist/oauth/openai-codex.js +300 -0
- package/dist/oauth/openai-codex.js.map +1 -0
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +9 -2
- package/dist/opentelemetry.js.map +1 -1
- package/dist/platform/agent-runtime-client.d.ts +279 -0
- package/dist/platform/agent-runtime-client.d.ts.map +1 -0
- package/dist/platform/agent-runtime-client.js +515 -0
- package/dist/platform/agent-runtime-client.js.map +1 -0
- package/dist/platform/cerebro-facts-client.d.ts +56 -0
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -0
- package/dist/platform/cerebro-facts-client.js +297 -0
- package/dist/platform/cerebro-facts-client.js.map +1 -0
- package/dist/platform/client.d.ts +2 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +9 -26
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +128 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +128 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/maestro-timeline-client.d.ts +22 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -0
- package/dist/platform/maestro-timeline-client.js +373 -0
- package/dist/platform/maestro-timeline-client.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts +104 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -0
- package/dist/platform/tool-execution-client.js +284 -0
- package/dist/platform/tool-execution-client.js.map +1 -0
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +5 -2
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/providers/anthropic-auth.d.ts.map +1 -1
- package/dist/providers/anthropic-auth.js +8 -6
- package/dist/providers/anthropic-auth.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -0
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +5 -0
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts +2 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +26 -3
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts +41 -0
- package/dist/remote-runner/attach-client.d.ts.map +1 -0
- package/dist/remote-runner/attach-client.js +692 -0
- package/dist/remote-runner/attach-client.js.map +1 -0
- package/dist/remote-runner/client.d.ts +205 -0
- package/dist/remote-runner/client.d.ts.map +1 -0
- package/dist/remote-runner/client.js +633 -0
- package/dist/remote-runner/client.js.map +1 -0
- package/dist/safety/action-firewall.d.ts +6 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +62 -26
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts +36 -0
- package/dist/safety/governance-service-client.d.ts.map +1 -0
- package/dist/safety/governance-service-client.js +279 -0
- package/dist/safety/governance-service-client.js.map +1 -0
- package/dist/safety/policy.d.ts +13 -2
- package/dist/safety/policy.d.ts.map +1 -1
- package/dist/safety/policy.js +474 -52
- package/dist/safety/policy.js.map +1 -1
- package/dist/sdk-tools.d.ts +21 -0
- package/dist/sdk-tools.d.ts.map +1 -1
- package/dist/sdk-tools.js +16 -0
- package/dist/sdk-tools.js.map +1 -1
- package/dist/server/app-context.d.ts +25 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/approval-service.d.ts +7 -8
- package/dist/server/approval-service.d.ts.map +1 -1
- package/dist/server/approval-service.js +12 -24
- package/dist/server/approval-service.js.map +1 -1
- package/dist/server/authz.d.ts +23 -2
- package/dist/server/authz.d.ts.map +1 -1
- package/dist/server/authz.js +153 -17
- package/dist/server/authz.js.map +1 -1
- package/dist/server/handlers/approvals.d.ts.map +1 -1
- package/dist/server/handlers/approvals.js +3 -10
- package/dist/server/handlers/approvals.js.map +1 -1
- package/dist/server/handlers/branch.d.ts.map +1 -1
- package/dist/server/handlers/branch.js +29 -20
- package/dist/server/handlers/branch.js.map +1 -1
- package/dist/server/handlers/bridge.d.ts.map +1 -1
- package/dist/server/handlers/bridge.js +3 -2
- package/dist/server/handlers/bridge.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +23 -31
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +105 -46
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/compliance.d.ts +3 -0
- package/dist/server/handlers/compliance.d.ts.map +1 -0
- package/dist/server/handlers/compliance.js +53 -0
- package/dist/server/handlers/compliance.js.map +1 -0
- package/dist/server/handlers/context.d.ts.map +1 -1
- package/dist/server/handlers/context.js +3 -8
- package/dist/server/handlers/context.js.map +1 -1
- package/dist/server/handlers/fleet.d.ts +4 -0
- package/dist/server/handlers/fleet.d.ts.map +1 -0
- package/dist/server/handlers/fleet.js +9 -0
- package/dist/server/handlers/fleet.js.map +1 -0
- package/dist/server/handlers/headless-sessions.d.ts +4 -0
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +168 -3
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +31 -2
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +82 -8
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +128 -0
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-drain.js +373 -0
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts +17 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.js +39 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -0
- package/dist/server/handlers/intelligent-router.d.ts +3 -0
- package/dist/server/handlers/intelligent-router.d.ts.map +1 -0
- package/dist/server/handlers/intelligent-router.js +141 -0
- package/dist/server/handlers/intelligent-router.js.map +1 -0
- package/dist/server/handlers/models.d.ts.map +1 -1
- package/dist/server/handlers/models.js +14 -0
- package/dist/server/handlers/models.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts +8 -0
- package/dist/server/handlers/pending-requests.d.ts.map +1 -0
- package/dist/server/handlers/pending-requests.js +149 -0
- package/dist/server/handlers/pending-requests.js.map +1 -0
- package/dist/server/handlers/revenue-attribution.d.ts +3 -0
- package/dist/server/handlers/revenue-attribution.d.ts.map +1 -0
- package/dist/server/handlers/revenue-attribution.js +45 -0
- package/dist/server/handlers/revenue-attribution.js.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts +10 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.js +206 -0
- package/dist/server/handlers/runtime-app-server-ws.js.map +1 -0
- package/dist/server/handlers/session-artifacts.js +2 -2
- package/dist/server/handlers/session-artifacts.js.map +1 -1
- package/dist/server/handlers/session-attachments.js +3 -3
- package/dist/server/handlers/session-attachments.js.map +1 -1
- package/dist/server/handlers/session-timeline.d.ts +11 -0
- package/dist/server/handlers/session-timeline.d.ts.map +1 -0
- package/dist/server/handlers/session-timeline.js +77 -0
- package/dist/server/handlers/session-timeline.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts +11 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +68 -100
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/handlers/traces.d.ts +3 -0
- package/dist/server/handlers/traces.d.ts.map +1 -0
- package/dist/server/handlers/traces.js +60 -0
- package/dist/server/handlers/traces.js.map +1 -0
- package/dist/server/handlers/usage-analytics.d.ts +3 -0
- package/dist/server/handlers/usage-analytics.d.ts.map +1 -0
- package/dist/server/handlers/usage-analytics.js +40 -0
- package/dist/server/handlers/usage-analytics.js.map +1 -0
- package/dist/server/handlers/workspace-config.d.ts +3 -0
- package/dist/server/handlers/workspace-config.d.ts.map +1 -0
- package/dist/server/handlers/workspace-config.js +62 -0
- package/dist/server/handlers/workspace-config.js.map +1 -0
- package/dist/server/headless-in-process-host.d.ts +8 -1
- package/dist/server/headless-in-process-host.d.ts.map +1 -1
- package/dist/server/headless-in-process-host.js +6 -0
- package/dist/server/headless-in-process-host.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +99 -1
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +286 -23
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +103 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -0
- package/dist/server/hosted-session-manager.js +629 -0
- package/dist/server/hosted-session-manager.js.map +1 -0
- package/dist/server/pending-request-payload.d.ts +4 -0
- package/dist/server/pending-request-payload.d.ts.map +1 -0
- package/dist/server/pending-request-payload.js +107 -0
- package/dist/server/pending-request-payload.js.map +1 -0
- package/dist/server/request-context.d.ts +4 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/request-context.js +9 -0
- package/dist/server/request-context.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +149 -1
- package/dist/server/routes.js.map +1 -1
- package/dist/server/runtime-ws-access.d.ts +16 -0
- package/dist/server/runtime-ws-access.d.ts.map +1 -0
- package/dist/server/runtime-ws-access.js +21 -0
- package/dist/server/runtime-ws-access.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +1 -1
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +35 -27
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +8 -27
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +7 -0
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/server/server-utils.d.ts +2 -1
- package/dist/server/server-utils.d.ts.map +1 -1
- package/dist/server/server-utils.js +11 -1
- package/dist/server/server-utils.js.map +1 -1
- package/dist/server/session-event-env.d.ts +2 -0
- package/dist/server/session-event-env.d.ts.map +1 -0
- package/dist/server/session-event-env.js +8 -0
- package/dist/server/session-event-env.js.map +1 -0
- package/dist/server/session-initialization.d.ts +25 -4
- package/dist/server/session-initialization.d.ts.map +1 -1
- package/dist/server/session-initialization.js +22 -5
- package/dist/server/session-initialization.js.map +1 -1
- package/dist/server/session-scope.d.ts +4 -0
- package/dist/server/session-scope.d.ts.map +1 -1
- package/dist/server/session-scope.js +44 -4
- package/dist/server/session-scope.js.map +1 -1
- package/dist/server/session-timeline.d.ts +13 -0
- package/dist/server/session-timeline.d.ts.map +1 -0
- package/dist/server/session-timeline.js +566 -0
- package/dist/server/session-timeline.js.map +1 -0
- package/dist/services/compliance/controls.d.ts +6 -0
- package/dist/services/compliance/controls.d.ts.map +1 -0
- package/dist/services/compliance/controls.js +113 -0
- package/dist/services/compliance/controls.js.map +1 -0
- package/dist/services/compliance/index.d.ts +6 -0
- package/dist/services/compliance/index.d.ts.map +1 -0
- package/dist/services/compliance/index.js +5 -0
- package/dist/services/compliance/index.js.map +1 -0
- package/dist/services/compliance/normalize.d.ts +23 -0
- package/dist/services/compliance/normalize.d.ts.map +1 -0
- package/dist/services/compliance/normalize.js +226 -0
- package/dist/services/compliance/normalize.js.map +1 -0
- package/dist/services/compliance/recorder.d.ts +22 -0
- package/dist/services/compliance/recorder.d.ts.map +1 -0
- package/dist/services/compliance/recorder.js +89 -0
- package/dist/services/compliance/recorder.js.map +1 -0
- package/dist/services/compliance/service.d.ts +24 -0
- package/dist/services/compliance/service.d.ts.map +1 -0
- package/dist/services/compliance/service.js +426 -0
- package/dist/services/compliance/service.js.map +1 -0
- package/dist/services/compliance/types.d.ts +185 -0
- package/dist/services/compliance/types.d.ts.map +1 -0
- package/dist/services/compliance/types.js +2 -0
- package/dist/services/compliance/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +5 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -0
- package/dist/services/intelligent-router/index.js +5 -0
- package/dist/services/intelligent-router/index.js.map +1 -0
- package/dist/services/intelligent-router/normalize.d.ts +9 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -0
- package/dist/services/intelligent-router/normalize.js +169 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +24 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -0
- package/dist/services/intelligent-router/recorder.js +98 -0
- package/dist/services/intelligent-router/recorder.js.map +1 -0
- package/dist/services/intelligent-router/service.d.ts +22 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -0
- package/dist/services/intelligent-router/service.js +328 -0
- package/dist/services/intelligent-router/service.js.map +1 -0
- package/dist/services/intelligent-router/types.d.ts +98 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -0
- package/dist/services/intelligent-router/types.js +7 -0
- package/dist/services/intelligent-router/types.js.map +1 -0
- package/dist/services/revenue-attribution/index.d.ts +4 -0
- package/dist/services/revenue-attribution/index.d.ts.map +1 -0
- package/dist/services/revenue-attribution/index.js +4 -0
- package/dist/services/revenue-attribution/index.js.map +1 -0
- package/dist/services/revenue-attribution/normalize.d.ts +13 -0
- package/dist/services/revenue-attribution/normalize.d.ts.map +1 -0
- package/dist/services/revenue-attribution/normalize.js +155 -0
- package/dist/services/revenue-attribution/normalize.js.map +1 -0
- package/dist/services/revenue-attribution/service.d.ts +21 -0
- package/dist/services/revenue-attribution/service.d.ts.map +1 -0
- package/dist/services/revenue-attribution/service.js +248 -0
- package/dist/services/revenue-attribution/service.js.map +1 -0
- package/dist/services/revenue-attribution/types.d.ts +96 -0
- package/dist/services/revenue-attribution/types.d.ts.map +1 -0
- package/dist/services/revenue-attribution/types.js +7 -0
- package/dist/services/revenue-attribution/types.js.map +1 -0
- package/dist/services/traces/index.d.ts +5 -0
- package/dist/services/traces/index.d.ts.map +1 -0
- package/dist/services/traces/index.js +4 -0
- package/dist/services/traces/index.js.map +1 -0
- package/dist/services/traces/normalize.d.ts +20 -0
- package/dist/services/traces/normalize.d.ts.map +1 -0
- package/dist/services/traces/normalize.js +261 -0
- package/dist/services/traces/normalize.js.map +1 -0
- package/dist/services/traces/otel.d.ts +3 -0
- package/dist/services/traces/otel.d.ts.map +1 -0
- package/dist/services/traces/otel.js +173 -0
- package/dist/services/traces/otel.js.map +1 -0
- package/dist/services/traces/service.d.ts +17 -0
- package/dist/services/traces/service.d.ts.map +1 -0
- package/dist/services/traces/service.js +197 -0
- package/dist/services/traces/service.js.map +1 -0
- package/dist/services/traces/types.d.ts +130 -0
- package/dist/services/traces/types.d.ts.map +1 -0
- package/dist/services/traces/types.js +8 -0
- package/dist/services/traces/types.js.map +1 -0
- package/dist/services/usage-analytics/aggregation.d.ts +18 -0
- package/dist/services/usage-analytics/aggregation.d.ts.map +1 -0
- package/dist/services/usage-analytics/aggregation.js +130 -0
- package/dist/services/usage-analytics/aggregation.js.map +1 -0
- package/dist/services/usage-analytics/index.d.ts +5 -0
- package/dist/services/usage-analytics/index.d.ts.map +1 -0
- package/dist/services/usage-analytics/index.js +4 -0
- package/dist/services/usage-analytics/index.js.map +1 -0
- package/dist/services/usage-analytics/recorder.d.ts +16 -0
- package/dist/services/usage-analytics/recorder.d.ts.map +1 -0
- package/dist/services/usage-analytics/recorder.js +128 -0
- package/dist/services/usage-analytics/recorder.js.map +1 -0
- package/dist/services/usage-analytics/service.d.ts +15 -0
- package/dist/services/usage-analytics/service.d.ts.map +1 -0
- package/dist/services/usage-analytics/service.js +210 -0
- package/dist/services/usage-analytics/service.js.map +1 -0
- package/dist/services/usage-analytics/types.d.ts +80 -0
- package/dist/services/usage-analytics/types.d.ts.map +1 -0
- package/dist/services/usage-analytics/types.js +2 -0
- package/dist/services/usage-analytics/types.js.map +1 -0
- package/dist/services/workspace-config/index.d.ts +6 -0
- package/dist/services/workspace-config/index.d.ts.map +1 -0
- package/dist/services/workspace-config/index.js +5 -0
- package/dist/services/workspace-config/index.js.map +1 -0
- package/dist/services/workspace-config/middleware.d.ts +5 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -0
- package/dist/services/workspace-config/middleware.js +98 -0
- package/dist/services/workspace-config/middleware.js.map +1 -0
- package/dist/services/workspace-config/normalize.d.ts +17 -0
- package/dist/services/workspace-config/normalize.d.ts.map +1 -0
- package/dist/services/workspace-config/normalize.js +148 -0
- package/dist/services/workspace-config/normalize.js.map +1 -0
- package/dist/services/workspace-config/policy.d.ts +16 -0
- package/dist/services/workspace-config/policy.d.ts.map +1 -0
- package/dist/services/workspace-config/policy.js +77 -0
- package/dist/services/workspace-config/policy.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +20 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -0
- package/dist/services/workspace-config/service.js +162 -0
- package/dist/services/workspace-config/service.js.map +1 -0
- package/dist/services/workspace-config/types.d.ts +71 -0
- package/dist/services/workspace-config/types.d.ts.map +1 -0
- package/dist/services/workspace-config/types.js +2 -0
- package/dist/services/workspace-config/types.js.map +1 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +10 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/migration.d.ts.map +1 -1
- package/dist/session/migration.js +2 -1
- package/dist/session/migration.js.map +1 -1
- package/dist/session/session-memory.d.ts.map +1 -1
- package/dist/session/session-memory.js +7 -1
- package/dist/session/session-memory.js.map +1 -1
- package/dist/session/types.d.ts +1 -2
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +1 -22
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.d.ts +7 -0
- package/dist/session/wire-format.d.ts.map +1 -0
- package/dist/session/wire-format.generated.d.ts +95 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -0
- package/dist/session/wire-format.generated.js +111 -0
- package/dist/session/wire-format.generated.js.map +1 -0
- package/dist/session/wire-format.js +145 -0
- package/dist/session/wire-format.js.map +1 -0
- package/dist/shared-memory/client.d.ts.map +1 -1
- package/dist/shared-memory/client.js +22 -22
- package/dist/shared-memory/client.js.map +1 -1
- package/dist/skills/artifact-metadata.d.ts +16 -0
- package/dist/skills/artifact-metadata.d.ts.map +1 -0
- package/dist/skills/artifact-metadata.js +86 -0
- package/dist/skills/artifact-metadata.js.map +1 -0
- package/dist/skills/loader.d.ts +2 -2
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +1 -0
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/service-client.d.ts +42 -0
- package/dist/skills/service-client.d.ts.map +1 -0
- package/dist/skills/service-client.js +258 -0
- package/dist/skills/service-client.js.map +1 -0
- package/dist/skills/tool.d.ts +3 -0
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +67 -5
- package/dist/skills/tool.js.map +1 -1
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +5 -0
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +440 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-bus.js +784 -0
- package/dist/telemetry/maestro-event-bus.js.map +1 -0
- package/dist/telemetry/maestro-event-catalog.d.ts +48 -0
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-catalog.js +69 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts +24 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js +400 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +29 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +240 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts +0 -33
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +22 -50
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +5 -5
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +8 -0
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +28 -0
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +14 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/timeline/redaction.d.ts +5 -0
- package/dist/timeline/redaction.d.ts.map +1 -0
- package/dist/timeline/redaction.js +119 -0
- package/dist/timeline/redaction.js.map +1 -0
- package/dist/tools/ask-user.d.ts +26 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/ask-user.js +33 -1
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/background/task-types.d.ts +1 -1
- package/dist/tools/edit.d.ts +2 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +27 -7
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/pipeline.js +16 -7
- package/dist/tools/pipeline.js.map +1 -1
- package/dist/tools/write.d.ts +2 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +24 -6
- package/dist/tools/write.js.map +1 -1
- package/dist/tracking/cost-tracker.d.ts +15 -12
- package/dist/tracking/cost-tracker.d.ts.map +1 -1
- package/dist/tracking/cost-tracker.js +29 -40
- package/dist/tracking/cost-tracker.js.map +1 -1
- package/dist/utils/checkpoint-profiler.d.ts +29 -0
- package/dist/utils/checkpoint-profiler.d.ts.map +1 -0
- package/dist/utils/checkpoint-profiler.js +118 -0
- package/dist/utils/checkpoint-profiler.js.map +1 -0
- package/dist/utils/downstream-http.d.ts +21 -0
- package/dist/utils/downstream-http.d.ts.map +1 -0
- package/dist/utils/downstream-http.js +151 -0
- package/dist/utils/downstream-http.js.map +1 -0
- package/dist/utils/downstream.d.ts +18 -0
- package/dist/utils/downstream.d.ts.map +1 -0
- package/dist/utils/downstream.js +47 -0
- package/dist/utils/downstream.js.map +1 -0
- package/dist/utils/logger.d.ts +3 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +12 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/oauth-http.d.ts +8 -0
- package/dist/utils/oauth-http.d.ts.map +1 -0
- package/dist/utils/oauth-http.js +41 -0
- package/dist/utils/oauth-http.js.map +1 -0
- package/dist/utils/path-utils.d.ts +2 -0
- package/dist/utils/path-utils.d.ts.map +1 -0
- package/dist/utils/path-utils.js +12 -0
- package/dist/utils/path-utils.js.map +1 -0
- package/dist/utils/path-validation.d.ts +1 -1
- package/dist/utils/path-validation.d.ts.map +1 -1
- package/dist/utils/path-validation.js +3 -3
- package/dist/utils/path-validation.js.map +1 -1
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts +7 -1
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +117 -15
- package/dist/web-server.js.map +1 -1
- package/dist/webhooks/delivery.d.ts.map +1 -1
- package/dist/webhooks/delivery.js +9 -12
- package/dist/webhooks/delivery.js.map +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js +9 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +38 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +10 -11
- package/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +37 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +23 -0
- package/node_modules/@bufbuild/protobuf/package.json +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +305 -2
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +34 -4
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +88 -0
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +77 -77
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +182 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js +83 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +133 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +68 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +178 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +165 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js +5 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/validators.d.ts +4 -1
- package/node_modules/@evalops/contracts/dist/validators.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/validators.js +4 -1
- package/node_modules/@evalops/contracts/dist/validators.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/node_modules/string-width/index.js +93 -9
- package/node_modules/string-width/package.json +1 -1
- package/package.json +32 -25
- package/dist/cli-tui/commands/grouped/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/index.js.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.js.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.js +0 -135
- package/dist/cli-tui/commands/grouped-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts +0 -78
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js +0 -129
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js.map +0 -1
- package/node_modules/@evalops/memory/dist/client.d.ts +0 -94
- package/node_modules/@evalops/memory/dist/client.js +0 -503
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.d.ts +0 -608
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.js +0 -187
- package/node_modules/@evalops/memory/package.json +0 -26
- /package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.d.ts +0 -0
|
@@ -19443,6 +19443,11 @@ var VideoCompressionQuality;
|
|
|
19443
19443
|
VideoCompressionQuality2["OPTIMIZED"] = "OPTIMIZED";
|
|
19444
19444
|
VideoCompressionQuality2["LOSSLESS"] = "LOSSLESS";
|
|
19445
19445
|
})(VideoCompressionQuality || (VideoCompressionQuality = {}));
|
|
19446
|
+
var ImageResizeMode;
|
|
19447
|
+
(function(ImageResizeMode2) {
|
|
19448
|
+
ImageResizeMode2["CROP"] = "CROP";
|
|
19449
|
+
ImageResizeMode2["PAD"] = "PAD";
|
|
19450
|
+
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
19446
19451
|
var TuningMethod;
|
|
19447
19452
|
(function(TuningMethod2) {
|
|
19448
19453
|
TuningMethod2["SUPERVISED_FINE_TUNING"] = "SUPERVISED_FINE_TUNING";
|
|
@@ -20417,6 +20422,8 @@ function tBatchJobSource(client, src) {
|
|
|
20417
20422
|
sourceObj = { format: "jsonl", gcsUri: [src] };
|
|
20418
20423
|
} else if (src.startsWith("bq://")) {
|
|
20419
20424
|
sourceObj = { format: "bigquery", bigqueryUri: src };
|
|
20425
|
+
} else if (/^projects\/[^/]+\/locations\/[^/]+\/datasets\/[^/]+$/.test(src)) {
|
|
20426
|
+
sourceObj = { format: "vertex-dataset", vertexDatasetName: src };
|
|
20420
20427
|
} else {
|
|
20421
20428
|
throw new Error(`Unsupported string source for Vertex AI: ${src}`);
|
|
20422
20429
|
}
|
|
@@ -20435,14 +20442,18 @@ function tBatchJobSource(client, src) {
|
|
|
20435
20442
|
} else {
|
|
20436
20443
|
sourceObj = src;
|
|
20437
20444
|
}
|
|
20438
|
-
const vertexSourcesCount = [
|
|
20445
|
+
const vertexSourcesCount = [
|
|
20446
|
+
sourceObj.gcsUri,
|
|
20447
|
+
sourceObj.bigqueryUri,
|
|
20448
|
+
sourceObj.vertexDatasetName
|
|
20449
|
+
].filter(Boolean).length;
|
|
20439
20450
|
const mldevSourcesCount = [
|
|
20440
20451
|
sourceObj.inlinedRequests,
|
|
20441
20452
|
sourceObj.fileName
|
|
20442
20453
|
].filter(Boolean).length;
|
|
20443
20454
|
if (client.isVertexAI()) {
|
|
20444
20455
|
if (mldevSourcesCount > 0 || vertexSourcesCount !== 1) {
|
|
20445
|
-
throw new Error("Exactly one of `gcsUri` or `
|
|
20456
|
+
throw new Error("Exactly one of `gcsUri`, `bigqueryUri`, or `vertexDatasetName` must be set for Vertex AI.");
|
|
20446
20457
|
}
|
|
20447
20458
|
} else {
|
|
20448
20459
|
if (vertexSourcesCount > 0 || mldevSourcesCount !== 1) {
|
|
@@ -20628,6 +20639,12 @@ function batchJobDestinationFromVertex(fromObject) {
|
|
|
20628
20639
|
if (fromBigqueryUri != null) {
|
|
20629
20640
|
setValueByPath(toObject, ["bigqueryUri"], fromBigqueryUri);
|
|
20630
20641
|
}
|
|
20642
|
+
const fromVertexDataset = getValueByPath(fromObject, [
|
|
20643
|
+
"vertexMultimodalDatasetDestination"
|
|
20644
|
+
]);
|
|
20645
|
+
if (fromVertexDataset != null) {
|
|
20646
|
+
setValueByPath(toObject, ["vertexDataset"], vertexMultimodalDatasetDestinationFromVertex(fromVertexDataset));
|
|
20647
|
+
}
|
|
20631
20648
|
return toObject;
|
|
20632
20649
|
}
|
|
20633
20650
|
function batchJobDestinationToVertex(fromObject) {
|
|
@@ -20645,13 +20662,19 @@ function batchJobDestinationToVertex(fromObject) {
|
|
|
20645
20662
|
setValueByPath(toObject, ["bigqueryDestination", "outputUri"], fromBigqueryUri);
|
|
20646
20663
|
}
|
|
20647
20664
|
if (getValueByPath(fromObject, ["fileName"]) !== void 0) {
|
|
20648
|
-
throw new Error("fileName parameter is not supported in Vertex AI.");
|
|
20665
|
+
throw new Error("fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20649
20666
|
}
|
|
20650
20667
|
if (getValueByPath(fromObject, ["inlinedResponses"]) !== void 0) {
|
|
20651
|
-
throw new Error("inlinedResponses parameter is not supported in Vertex AI.");
|
|
20668
|
+
throw new Error("inlinedResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20652
20669
|
}
|
|
20653
20670
|
if (getValueByPath(fromObject, ["inlinedEmbedContentResponses"]) !== void 0) {
|
|
20654
|
-
throw new Error("inlinedEmbedContentResponses parameter is not supported in Vertex AI.");
|
|
20671
|
+
throw new Error("inlinedEmbedContentResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20672
|
+
}
|
|
20673
|
+
const fromVertexDataset = getValueByPath(fromObject, [
|
|
20674
|
+
"vertexDataset"
|
|
20675
|
+
]);
|
|
20676
|
+
if (fromVertexDataset != null) {
|
|
20677
|
+
setValueByPath(toObject, ["vertexMultimodalDatasetDestination"], vertexMultimodalDatasetDestinationToVertex(fromVertexDataset));
|
|
20655
20678
|
}
|
|
20656
20679
|
return toObject;
|
|
20657
20680
|
}
|
|
@@ -20755,6 +20778,10 @@ function batchJobFromVertex(fromObject) {
|
|
|
20755
20778
|
if (fromCompletionStats != null) {
|
|
20756
20779
|
setValueByPath(toObject, ["completionStats"], fromCompletionStats);
|
|
20757
20780
|
}
|
|
20781
|
+
const fromOutputInfo = getValueByPath(fromObject, ["outputInfo"]);
|
|
20782
|
+
if (fromOutputInfo != null) {
|
|
20783
|
+
setValueByPath(toObject, ["outputInfo"], fromOutputInfo);
|
|
20784
|
+
}
|
|
20758
20785
|
return toObject;
|
|
20759
20786
|
}
|
|
20760
20787
|
function batchJobSourceFromVertex(fromObject) {
|
|
@@ -20774,6 +20801,13 @@ function batchJobSourceFromVertex(fromObject) {
|
|
|
20774
20801
|
if (fromBigqueryUri != null) {
|
|
20775
20802
|
setValueByPath(toObject, ["bigqueryUri"], fromBigqueryUri);
|
|
20776
20803
|
}
|
|
20804
|
+
const fromVertexDatasetName = getValueByPath(fromObject, [
|
|
20805
|
+
"vertexMultimodalDatasetSource",
|
|
20806
|
+
"datasetName"
|
|
20807
|
+
]);
|
|
20808
|
+
if (fromVertexDatasetName != null) {
|
|
20809
|
+
setValueByPath(toObject, ["vertexDatasetName"], fromVertexDatasetName);
|
|
20810
|
+
}
|
|
20777
20811
|
return toObject;
|
|
20778
20812
|
}
|
|
20779
20813
|
function batchJobSourceToMldev(apiClient, fromObject) {
|
|
@@ -20803,6 +20837,9 @@ function batchJobSourceToMldev(apiClient, fromObject) {
|
|
|
20803
20837
|
}
|
|
20804
20838
|
setValueByPath(toObject, ["requests", "requests"], transformedList);
|
|
20805
20839
|
}
|
|
20840
|
+
if (getValueByPath(fromObject, ["vertexDatasetName"]) !== void 0) {
|
|
20841
|
+
throw new Error("vertexDatasetName parameter is not supported in Gemini API.");
|
|
20842
|
+
}
|
|
20806
20843
|
return toObject;
|
|
20807
20844
|
}
|
|
20808
20845
|
function batchJobSourceToVertex(fromObject) {
|
|
@@ -20820,10 +20857,16 @@ function batchJobSourceToVertex(fromObject) {
|
|
|
20820
20857
|
setValueByPath(toObject, ["bigquerySource", "inputUri"], fromBigqueryUri);
|
|
20821
20858
|
}
|
|
20822
20859
|
if (getValueByPath(fromObject, ["fileName"]) !== void 0) {
|
|
20823
|
-
throw new Error("fileName parameter is not supported in Vertex AI.");
|
|
20860
|
+
throw new Error("fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20824
20861
|
}
|
|
20825
20862
|
if (getValueByPath(fromObject, ["inlinedRequests"]) !== void 0) {
|
|
20826
|
-
throw new Error("inlinedRequests parameter is not supported in Vertex AI.");
|
|
20863
|
+
throw new Error("inlinedRequests parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20864
|
+
}
|
|
20865
|
+
const fromVertexDatasetName = getValueByPath(fromObject, [
|
|
20866
|
+
"vertexDatasetName"
|
|
20867
|
+
]);
|
|
20868
|
+
if (fromVertexDatasetName != null) {
|
|
20869
|
+
setValueByPath(toObject, ["vertexMultimodalDatasetSource", "datasetName"], fromVertexDatasetName);
|
|
20827
20870
|
}
|
|
20828
20871
|
return toObject;
|
|
20829
20872
|
}
|
|
@@ -20978,7 +21021,7 @@ function createBatchJobConfigToVertex(fromObject, parentObject) {
|
|
|
20978
21021
|
setValueByPath(parentObject, ["outputConfig"], batchJobDestinationToVertex(tBatchJobDestination(fromDest)));
|
|
20979
21022
|
}
|
|
20980
21023
|
if (getValueByPath(fromObject, ["webhookConfig"]) !== void 0) {
|
|
20981
|
-
throw new Error("webhookConfig parameter is not supported in Vertex AI.");
|
|
21024
|
+
throw new Error("webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
20982
21025
|
}
|
|
20983
21026
|
return toObject;
|
|
20984
21027
|
}
|
|
@@ -21818,6 +21861,35 @@ function toolToMldev$4(fromObject) {
|
|
|
21818
21861
|
}
|
|
21819
21862
|
return toObject;
|
|
21820
21863
|
}
|
|
21864
|
+
function vertexMultimodalDatasetDestinationFromVertex(fromObject) {
|
|
21865
|
+
const toObject = {};
|
|
21866
|
+
const fromBigqueryDestination = getValueByPath(fromObject, [
|
|
21867
|
+
"bigqueryDestination",
|
|
21868
|
+
"outputUri"
|
|
21869
|
+
]);
|
|
21870
|
+
if (fromBigqueryDestination != null) {
|
|
21871
|
+
setValueByPath(toObject, ["bigqueryDestination"], fromBigqueryDestination);
|
|
21872
|
+
}
|
|
21873
|
+
const fromDisplayName = getValueByPath(fromObject, ["displayName"]);
|
|
21874
|
+
if (fromDisplayName != null) {
|
|
21875
|
+
setValueByPath(toObject, ["displayName"], fromDisplayName);
|
|
21876
|
+
}
|
|
21877
|
+
return toObject;
|
|
21878
|
+
}
|
|
21879
|
+
function vertexMultimodalDatasetDestinationToVertex(fromObject) {
|
|
21880
|
+
const toObject = {};
|
|
21881
|
+
const fromBigqueryDestination = getValueByPath(fromObject, [
|
|
21882
|
+
"bigqueryDestination"
|
|
21883
|
+
]);
|
|
21884
|
+
if (fromBigqueryDestination != null) {
|
|
21885
|
+
setValueByPath(toObject, ["bigqueryDestination", "outputUri"], fromBigqueryDestination);
|
|
21886
|
+
}
|
|
21887
|
+
const fromDisplayName = getValueByPath(fromObject, ["displayName"]);
|
|
21888
|
+
if (fromDisplayName != null) {
|
|
21889
|
+
setValueByPath(toObject, ["displayName"], fromDisplayName);
|
|
21890
|
+
}
|
|
21891
|
+
return toObject;
|
|
21892
|
+
}
|
|
21821
21893
|
var PagedItem;
|
|
21822
21894
|
(function(PagedItem2) {
|
|
21823
21895
|
PagedItem2["PAGED_ITEM_BATCH_JOBS"] = "batchJobs";
|
|
@@ -22004,7 +22076,7 @@ var Batches = class extends BaseModule {
|
|
|
22004
22076
|
this.createEmbeddings = async (params) => {
|
|
22005
22077
|
console.warn("batches.createEmbeddings() is experimental and may change without notice.");
|
|
22006
22078
|
if (this.apiClient.isVertexAI()) {
|
|
22007
|
-
throw new Error("Vertex AI does not support batches.createEmbeddings.");
|
|
22079
|
+
throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support batches.createEmbeddings.");
|
|
22008
22080
|
}
|
|
22009
22081
|
return this.createEmbeddingsInternal(params);
|
|
22010
22082
|
};
|
|
@@ -22079,7 +22151,7 @@ var Batches = class extends BaseModule {
|
|
|
22079
22151
|
} else if (bigqueryUri) {
|
|
22080
22152
|
newConfig.dest = `${bigqueryUri}_dest_${timestampStr}`;
|
|
22081
22153
|
} else {
|
|
22082
|
-
throw new Error("Unsupported source for Vertex AI: No GCS or BigQuery URI found.");
|
|
22154
|
+
throw new Error("Unsupported source for Gemini Enterprise Agent Platform (previously known as Vertex AI): No GCS or BigQuery URI found.");
|
|
22083
22155
|
}
|
|
22084
22156
|
}
|
|
22085
22157
|
return newConfig;
|
|
@@ -22732,7 +22804,7 @@ function functionDeclarationToVertex$2(fromObject) {
|
|
|
22732
22804
|
setValueByPath(toObject, ["responseJsonSchema"], fromResponseJsonSchema);
|
|
22733
22805
|
}
|
|
22734
22806
|
if (getValueByPath(fromObject, ["behavior"]) !== void 0) {
|
|
22735
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
22807
|
+
throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
22736
22808
|
}
|
|
22737
22809
|
return toObject;
|
|
22738
22810
|
}
|
|
@@ -23011,13 +23083,13 @@ function partToVertex$2(fromObject) {
|
|
|
23011
23083
|
setValueByPath(toObject, ["videoMetadata"], fromVideoMetadata);
|
|
23012
23084
|
}
|
|
23013
23085
|
if (getValueByPath(fromObject, ["toolCall"]) !== void 0) {
|
|
23014
|
-
throw new Error("toolCall parameter is not supported in Vertex AI.");
|
|
23086
|
+
throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23015
23087
|
}
|
|
23016
23088
|
if (getValueByPath(fromObject, ["toolResponse"]) !== void 0) {
|
|
23017
|
-
throw new Error("toolResponse parameter is not supported in Vertex AI.");
|
|
23089
|
+
throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23018
23090
|
}
|
|
23019
23091
|
if (getValueByPath(fromObject, ["partMetadata"]) !== void 0) {
|
|
23020
|
-
throw new Error("partMetadata parameter is not supported in Vertex AI.");
|
|
23092
|
+
throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23021
23093
|
}
|
|
23022
23094
|
return toObject;
|
|
23023
23095
|
}
|
|
@@ -23056,7 +23128,7 @@ function toolConfigToVertex$1(fromObject) {
|
|
|
23056
23128
|
setValueByPath(toObject, ["functionCallingConfig"], fromFunctionCallingConfig);
|
|
23057
23129
|
}
|
|
23058
23130
|
if (getValueByPath(fromObject, ["includeServerSideToolInvocations"]) !== void 0) {
|
|
23059
|
-
throw new Error("includeServerSideToolInvocations parameter is not supported in Vertex AI.");
|
|
23131
|
+
throw new Error("includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23060
23132
|
}
|
|
23061
23133
|
return toObject;
|
|
23062
23134
|
}
|
|
@@ -23138,7 +23210,7 @@ function toolToVertex$2(fromObject) {
|
|
|
23138
23210
|
setValueByPath(toObject, ["computerUse"], fromComputerUse);
|
|
23139
23211
|
}
|
|
23140
23212
|
if (getValueByPath(fromObject, ["fileSearch"]) !== void 0) {
|
|
23141
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
23213
|
+
throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23142
23214
|
}
|
|
23143
23215
|
const fromGoogleSearch = getValueByPath(fromObject, ["googleSearch"]);
|
|
23144
23216
|
if (fromGoogleSearch != null) {
|
|
@@ -23189,7 +23261,7 @@ function toolToVertex$2(fromObject) {
|
|
|
23189
23261
|
setValueByPath(toObject, ["urlContext"], fromUrlContext);
|
|
23190
23262
|
}
|
|
23191
23263
|
if (getValueByPath(fromObject, ["mcpServers"]) !== void 0) {
|
|
23192
|
-
throw new Error("mcpServers parameter is not supported in Vertex AI.");
|
|
23264
|
+
throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
23193
23265
|
}
|
|
23194
23266
|
return toObject;
|
|
23195
23267
|
}
|
|
@@ -23255,7 +23327,7 @@ var Caches = class extends BaseModule {
|
|
|
23255
23327
|
* @remarks
|
|
23256
23328
|
* Context caching is only supported for specific models. See [Gemini
|
|
23257
23329
|
* Developer API reference](https://ai.google.dev/gemini-api/docs/caching?lang=node/context-cac)
|
|
23258
|
-
* and [
|
|
23330
|
+
* and [Gemini Enterprise Agent Platform reference](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview#supported_models)
|
|
23259
23331
|
* for more information.
|
|
23260
23332
|
*
|
|
23261
23333
|
* @param params - The parameters for the create request.
|
|
@@ -24064,7 +24136,7 @@ var Files = class extends BaseModule {
|
|
|
24064
24136
|
}
|
|
24065
24137
|
/**
|
|
24066
24138
|
* Uploads a file asynchronously to the Gemini API.
|
|
24067
|
-
* This method is not available in Vertex AI.
|
|
24139
|
+
* This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).
|
|
24068
24140
|
* Supported upload sources:
|
|
24069
24141
|
* - Node.js: File path (string) or Blob object.
|
|
24070
24142
|
* - Browser: Blob object (e.g., File).
|
|
@@ -24090,7 +24162,7 @@ var Files = class extends BaseModule {
|
|
|
24090
24162
|
* @see {@link types.UploadFileParameters#config} for the optional
|
|
24091
24163
|
* config in the parameters.
|
|
24092
24164
|
* @return A promise that resolves to a `types.File` object.
|
|
24093
|
-
* @throws An error if called on a Vertex AI client.
|
|
24165
|
+
* @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.
|
|
24094
24166
|
* @throws An error if the `mimeType` is not provided and can not be inferred,
|
|
24095
24167
|
* the `mimeType` can be provided in the `params.config` parameter.
|
|
24096
24168
|
* @throws An error occurs if a suitable upload location cannot be established.
|
|
@@ -24107,7 +24179,7 @@ var Files = class extends BaseModule {
|
|
|
24107
24179
|
*/
|
|
24108
24180
|
async upload(params) {
|
|
24109
24181
|
if (this.apiClient.isVertexAI()) {
|
|
24110
|
-
throw new Error("Vertex AI does not support uploading files. You can share files through a GCS bucket.");
|
|
24182
|
+
throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files. You can share files through a GCS bucket.");
|
|
24111
24183
|
}
|
|
24112
24184
|
return this.apiClient.uploadFile(params.file, params.config).then((resp) => {
|
|
24113
24185
|
return resp;
|
|
@@ -24487,7 +24559,7 @@ function functionDeclarationToVertex$1(fromObject) {
|
|
|
24487
24559
|
setValueByPath(toObject, ["responseJsonSchema"], fromResponseJsonSchema);
|
|
24488
24560
|
}
|
|
24489
24561
|
if (getValueByPath(fromObject, ["behavior"]) !== void 0) {
|
|
24490
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
24562
|
+
throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
24491
24563
|
}
|
|
24492
24564
|
return toObject;
|
|
24493
24565
|
}
|
|
@@ -24614,7 +24686,7 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
24614
24686
|
setValueByPath(toObject, ["topP"], fromTopP);
|
|
24615
24687
|
}
|
|
24616
24688
|
if (getValueByPath(fromObject, ["enableEnhancedCivicAnswers"]) !== void 0) {
|
|
24617
|
-
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Vertex AI.");
|
|
24689
|
+
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
24618
24690
|
}
|
|
24619
24691
|
return toObject;
|
|
24620
24692
|
}
|
|
@@ -25230,13 +25302,13 @@ function partToVertex$1(fromObject) {
|
|
|
25230
25302
|
setValueByPath(toObject, ["videoMetadata"], fromVideoMetadata);
|
|
25231
25303
|
}
|
|
25232
25304
|
if (getValueByPath(fromObject, ["toolCall"]) !== void 0) {
|
|
25233
|
-
throw new Error("toolCall parameter is not supported in Vertex AI.");
|
|
25305
|
+
throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
25234
25306
|
}
|
|
25235
25307
|
if (getValueByPath(fromObject, ["toolResponse"]) !== void 0) {
|
|
25236
|
-
throw new Error("toolResponse parameter is not supported in Vertex AI.");
|
|
25308
|
+
throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
25237
25309
|
}
|
|
25238
25310
|
if (getValueByPath(fromObject, ["partMetadata"]) !== void 0) {
|
|
25239
|
-
throw new Error("partMetadata parameter is not supported in Vertex AI.");
|
|
25311
|
+
throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
25240
25312
|
}
|
|
25241
25313
|
return toObject;
|
|
25242
25314
|
}
|
|
@@ -25344,7 +25416,7 @@ function toolToVertex$1(fromObject) {
|
|
|
25344
25416
|
setValueByPath(toObject, ["computerUse"], fromComputerUse);
|
|
25345
25417
|
}
|
|
25346
25418
|
if (getValueByPath(fromObject, ["fileSearch"]) !== void 0) {
|
|
25347
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
25419
|
+
throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
25348
25420
|
}
|
|
25349
25421
|
const fromGoogleSearch = getValueByPath(fromObject, ["googleSearch"]);
|
|
25350
25422
|
if (fromGoogleSearch != null) {
|
|
@@ -25395,7 +25467,7 @@ function toolToVertex$1(fromObject) {
|
|
|
25395
25467
|
setValueByPath(toObject, ["urlContext"], fromUrlContext);
|
|
25396
25468
|
}
|
|
25397
25469
|
if (getValueByPath(fromObject, ["mcpServers"]) !== void 0) {
|
|
25398
|
-
throw new Error("mcpServers parameter is not supported in Vertex AI.");
|
|
25470
|
+
throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
25399
25471
|
}
|
|
25400
25472
|
return toObject;
|
|
25401
25473
|
}
|
|
@@ -26405,7 +26477,7 @@ function functionDeclarationToVertex(fromObject, _rootObject) {
|
|
|
26405
26477
|
setValueByPath(toObject, ["responseJsonSchema"], fromResponseJsonSchema);
|
|
26406
26478
|
}
|
|
26407
26479
|
if (getValueByPath(fromObject, ["behavior"]) !== void 0) {
|
|
26408
|
-
throw new Error("behavior parameter is not supported in Vertex AI.");
|
|
26480
|
+
throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
26409
26481
|
}
|
|
26410
26482
|
return toObject;
|
|
26411
26483
|
}
|
|
@@ -26739,7 +26811,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
|
|
|
26739
26811
|
setValueByPath(toObject, ["imageConfig"], imageConfigToVertex(fromImageConfig));
|
|
26740
26812
|
}
|
|
26741
26813
|
if (getValueByPath(fromObject, ["enableEnhancedCivicAnswers"]) !== void 0) {
|
|
26742
|
-
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Vertex AI.");
|
|
26814
|
+
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
26743
26815
|
}
|
|
26744
26816
|
const fromModelArmorConfig = getValueByPath(fromObject, [
|
|
26745
26817
|
"modelArmorConfig"
|
|
@@ -27233,6 +27305,9 @@ function generateVideosConfigToMldev(fromObject, parentObject, rootObject) {
|
|
|
27233
27305
|
if (parentObject !== void 0 && fromWebhookConfig != null) {
|
|
27234
27306
|
setValueByPath(parentObject, ["webhookConfig"], fromWebhookConfig);
|
|
27235
27307
|
}
|
|
27308
|
+
if (getValueByPath(fromObject, ["resizeMode"]) !== void 0) {
|
|
27309
|
+
throw new Error("resizeMode parameter is not supported in Gemini API.");
|
|
27310
|
+
}
|
|
27236
27311
|
return toObject;
|
|
27237
27312
|
}
|
|
27238
27313
|
function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
|
|
@@ -27328,7 +27403,11 @@ function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
27328
27403
|
setValueByPath(parentObject, ["labels"], fromLabels);
|
|
27329
27404
|
}
|
|
27330
27405
|
if (getValueByPath(fromObject, ["webhookConfig"]) !== void 0) {
|
|
27331
|
-
throw new Error("webhookConfig parameter is not supported in Vertex AI.");
|
|
27406
|
+
throw new Error("webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
27407
|
+
}
|
|
27408
|
+
const fromResizeMode = getValueByPath(fromObject, ["resizeMode"]);
|
|
27409
|
+
if (parentObject !== void 0 && fromResizeMode != null) {
|
|
27410
|
+
setValueByPath(parentObject, ["parameters", "resizeMode"], fromResizeMode);
|
|
27332
27411
|
}
|
|
27333
27412
|
return toObject;
|
|
27334
27413
|
}
|
|
@@ -27722,7 +27801,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
|
|
|
27722
27801
|
setValueByPath(toObject, ["topP"], fromTopP);
|
|
27723
27802
|
}
|
|
27724
27803
|
if (getValueByPath(fromObject, ["enableEnhancedCivicAnswers"]) !== void 0) {
|
|
27725
|
-
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Vertex AI.");
|
|
27804
|
+
throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
27726
27805
|
}
|
|
27727
27806
|
return toObject;
|
|
27728
27807
|
}
|
|
@@ -28281,13 +28360,13 @@ function partToVertex(fromObject, _rootObject) {
|
|
|
28281
28360
|
setValueByPath(toObject, ["videoMetadata"], fromVideoMetadata);
|
|
28282
28361
|
}
|
|
28283
28362
|
if (getValueByPath(fromObject, ["toolCall"]) !== void 0) {
|
|
28284
|
-
throw new Error("toolCall parameter is not supported in Vertex AI.");
|
|
28363
|
+
throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28285
28364
|
}
|
|
28286
28365
|
if (getValueByPath(fromObject, ["toolResponse"]) !== void 0) {
|
|
28287
|
-
throw new Error("toolResponse parameter is not supported in Vertex AI.");
|
|
28366
|
+
throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28288
28367
|
}
|
|
28289
28368
|
if (getValueByPath(fromObject, ["partMetadata"]) !== void 0) {
|
|
28290
|
-
throw new Error("partMetadata parameter is not supported in Vertex AI.");
|
|
28369
|
+
throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28291
28370
|
}
|
|
28292
28371
|
return toObject;
|
|
28293
28372
|
}
|
|
@@ -28643,7 +28722,7 @@ function toolConfigToVertex(fromObject, _rootObject) {
|
|
|
28643
28722
|
setValueByPath(toObject, ["functionCallingConfig"], fromFunctionCallingConfig);
|
|
28644
28723
|
}
|
|
28645
28724
|
if (getValueByPath(fromObject, ["includeServerSideToolInvocations"]) !== void 0) {
|
|
28646
|
-
throw new Error("includeServerSideToolInvocations parameter is not supported in Vertex AI.");
|
|
28725
|
+
throw new Error("includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28647
28726
|
}
|
|
28648
28727
|
return toObject;
|
|
28649
28728
|
}
|
|
@@ -28725,7 +28804,7 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
28725
28804
|
setValueByPath(toObject, ["computerUse"], fromComputerUse);
|
|
28726
28805
|
}
|
|
28727
28806
|
if (getValueByPath(fromObject, ["fileSearch"]) !== void 0) {
|
|
28728
|
-
throw new Error("fileSearch parameter is not supported in Vertex AI.");
|
|
28807
|
+
throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28729
28808
|
}
|
|
28730
28809
|
const fromGoogleSearch = getValueByPath(fromObject, ["googleSearch"]);
|
|
28731
28810
|
if (fromGoogleSearch != null) {
|
|
@@ -28776,7 +28855,7 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
28776
28855
|
setValueByPath(toObject, ["urlContext"], fromUrlContext);
|
|
28777
28856
|
}
|
|
28778
28857
|
if (getValueByPath(fromObject, ["mcpServers"]) !== void 0) {
|
|
28779
|
-
throw new Error("mcpServers parameter is not supported in Vertex AI.");
|
|
28858
|
+
throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
28780
28859
|
}
|
|
28781
28860
|
return toObject;
|
|
28782
28861
|
}
|
|
@@ -29321,7 +29400,7 @@ var CONTENT_TYPE_HEADER = "Content-Type";
|
|
|
29321
29400
|
var SERVER_TIMEOUT_HEADER = "X-Server-Timeout";
|
|
29322
29401
|
var USER_AGENT_HEADER = "User-Agent";
|
|
29323
29402
|
var GOOGLE_API_CLIENT_HEADER = "x-goog-api-client";
|
|
29324
|
-
var SDK_VERSION = "1.
|
|
29403
|
+
var SDK_VERSION = "1.51.0";
|
|
29325
29404
|
var LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
29326
29405
|
var VERTEX_AI_API_DEFAULT_VERSION = "v1beta1";
|
|
29327
29406
|
var GOOGLE_AI_API_DEFAULT_VERSION = "v1beta";
|
|
@@ -30789,7 +30868,7 @@ var Models = class extends BaseModule {
|
|
|
30789
30868
|
if (this.apiClient.isVertexAI()) {
|
|
30790
30869
|
if (!actualParams.config.queryBase) {
|
|
30791
30870
|
if ((_a2 = actualParams.config) === null || _a2 === void 0 ? void 0 : _a2.filter) {
|
|
30792
|
-
throw new Error("Filtering tuned models list for Vertex AI is not currently supported");
|
|
30871
|
+
throw new Error("Filtering tuned models list for Gemini Enterprise Agent Platform (previously known as Vertex AI) is not currently supported");
|
|
30793
30872
|
} else {
|
|
30794
30873
|
actualParams.config.filter = "labels.tune-type:*";
|
|
30795
30874
|
}
|
|
@@ -31342,7 +31421,7 @@ var Models = class extends BaseModule {
|
|
|
31342
31421
|
return typedResp;
|
|
31343
31422
|
});
|
|
31344
31423
|
} else {
|
|
31345
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
31424
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
31346
31425
|
}
|
|
31347
31426
|
}
|
|
31348
31427
|
/**
|
|
@@ -31382,7 +31461,7 @@ var Models = class extends BaseModule {
|
|
|
31382
31461
|
return typedResp;
|
|
31383
31462
|
});
|
|
31384
31463
|
} else {
|
|
31385
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
31464
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
31386
31465
|
}
|
|
31387
31466
|
}
|
|
31388
31467
|
/**
|
|
@@ -31437,7 +31516,7 @@ var Models = class extends BaseModule {
|
|
|
31437
31516
|
return typedResp;
|
|
31438
31517
|
});
|
|
31439
31518
|
} else {
|
|
31440
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
31519
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
31441
31520
|
}
|
|
31442
31521
|
}
|
|
31443
31522
|
/**
|
|
@@ -31488,7 +31567,7 @@ var Models = class extends BaseModule {
|
|
|
31488
31567
|
return typedResp;
|
|
31489
31568
|
});
|
|
31490
31569
|
} else {
|
|
31491
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
31570
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
31492
31571
|
}
|
|
31493
31572
|
}
|
|
31494
31573
|
/**
|
|
@@ -31878,7 +31957,7 @@ var Models = class extends BaseModule {
|
|
|
31878
31957
|
return typedResp;
|
|
31879
31958
|
});
|
|
31880
31959
|
} else {
|
|
31881
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
31960
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
31882
31961
|
}
|
|
31883
31962
|
}
|
|
31884
31963
|
/**
|
|
@@ -32081,7 +32160,7 @@ var Operations = class extends BaseModule {
|
|
|
32081
32160
|
});
|
|
32082
32161
|
return response;
|
|
32083
32162
|
} else {
|
|
32084
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
32163
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
32085
32164
|
}
|
|
32086
32165
|
}
|
|
32087
32166
|
};
|
|
@@ -32954,7 +33033,7 @@ var FileSearchStores = class extends BaseModule {
|
|
|
32954
33033
|
}
|
|
32955
33034
|
/**
|
|
32956
33035
|
* Uploads a file asynchronously to a given File Search Store.
|
|
32957
|
-
* This method is not available in Vertex AI.
|
|
33036
|
+
* This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).
|
|
32958
33037
|
* Supported upload sources:
|
|
32959
33038
|
* - Node.js: File path (string) or Blob object.
|
|
32960
33039
|
* - Browser: Blob object (e.g., File).
|
|
@@ -32973,7 +33052,7 @@ var FileSearchStores = class extends BaseModule {
|
|
|
32973
33052
|
* @see {@link types.UploadToFileSearchStoreParameters#config} for the optional
|
|
32974
33053
|
* config in the parameters.
|
|
32975
33054
|
* @return A promise that resolves to a long running operation.
|
|
32976
|
-
* @throws An error if called on a Vertex AI client.
|
|
33055
|
+
* @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.
|
|
32977
33056
|
* @throws An error if the `mimeType` is not provided and can not be inferred,
|
|
32978
33057
|
* the `mimeType` can be provided in the `params.config` parameter.
|
|
32979
33058
|
* @throws An error occurs if a suitable upload location cannot be established.
|
|
@@ -32990,7 +33069,7 @@ var FileSearchStores = class extends BaseModule {
|
|
|
32990
33069
|
*/
|
|
32991
33070
|
async uploadToFileSearchStore(params) {
|
|
32992
33071
|
if (this.apiClient.isVertexAI()) {
|
|
32993
|
-
throw new Error("Vertex AI does not support uploading files to a file search store.");
|
|
33072
|
+
throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files to a file search store.");
|
|
32994
33073
|
}
|
|
32995
33074
|
return this.apiClient.uploadFileToFileSearchStore(params.fileSearchStoreName, params.file, params.config);
|
|
32996
33075
|
}
|
|
@@ -33644,14 +33723,14 @@ var BaseWebhooks = class extends APIResource {
|
|
|
33644
33723
|
* Creates a new Webhook.
|
|
33645
33724
|
*/
|
|
33646
33725
|
create(params, options) {
|
|
33647
|
-
const { api_version = this._client.apiVersion
|
|
33648
|
-
return this._client.post(path`/${api_version}/webhooks`, Object.assign({
|
|
33726
|
+
const { api_version = this._client.apiVersion } = params, body = __rest(params, ["api_version"]);
|
|
33727
|
+
return this._client.post(path`/${api_version}/webhooks`, Object.assign({ body }, options));
|
|
33649
33728
|
}
|
|
33650
33729
|
/**
|
|
33651
33730
|
* Updates an existing Webhook.
|
|
33652
33731
|
*/
|
|
33653
|
-
update(id, params, options) {
|
|
33654
|
-
const { api_version = this._client.apiVersion, update_mask } =
|
|
33732
|
+
update(id, params = {}, options) {
|
|
33733
|
+
const _a2 = params !== null && params !== void 0 ? params : {}, { api_version = this._client.apiVersion, update_mask } = _a2, body = __rest(_a2, ["api_version", "update_mask"]);
|
|
33655
33734
|
return this._client.patch(path`/${api_version}/webhooks/${id}`, Object.assign({ query: { update_mask }, body }, options));
|
|
33656
33735
|
}
|
|
33657
33736
|
/**
|
|
@@ -35287,22 +35366,6 @@ function getTuningJobParametersToVertex(fromObject, _rootObject) {
|
|
|
35287
35366
|
}
|
|
35288
35367
|
return toObject;
|
|
35289
35368
|
}
|
|
35290
|
-
function listTuningJobsConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
35291
|
-
const toObject = {};
|
|
35292
|
-
const fromPageSize = getValueByPath(fromObject, ["pageSize"]);
|
|
35293
|
-
if (parentObject !== void 0 && fromPageSize != null) {
|
|
35294
|
-
setValueByPath(parentObject, ["_query", "pageSize"], fromPageSize);
|
|
35295
|
-
}
|
|
35296
|
-
const fromPageToken = getValueByPath(fromObject, ["pageToken"]);
|
|
35297
|
-
if (parentObject !== void 0 && fromPageToken != null) {
|
|
35298
|
-
setValueByPath(parentObject, ["_query", "pageToken"], fromPageToken);
|
|
35299
|
-
}
|
|
35300
|
-
const fromFilter = getValueByPath(fromObject, ["filter"]);
|
|
35301
|
-
if (parentObject !== void 0 && fromFilter != null) {
|
|
35302
|
-
setValueByPath(parentObject, ["_query", "filter"], fromFilter);
|
|
35303
|
-
}
|
|
35304
|
-
return toObject;
|
|
35305
|
-
}
|
|
35306
35369
|
function listTuningJobsConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
35307
35370
|
const toObject = {};
|
|
35308
35371
|
const fromPageSize = getValueByPath(fromObject, ["pageSize"]);
|
|
@@ -35319,14 +35382,6 @@ function listTuningJobsConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
|
35319
35382
|
}
|
|
35320
35383
|
return toObject;
|
|
35321
35384
|
}
|
|
35322
|
-
function listTuningJobsParametersToMldev(fromObject, rootObject) {
|
|
35323
|
-
const toObject = {};
|
|
35324
|
-
const fromConfig = getValueByPath(fromObject, ["config"]);
|
|
35325
|
-
if (fromConfig != null) {
|
|
35326
|
-
listTuningJobsConfigToMldev(fromConfig, toObject);
|
|
35327
|
-
}
|
|
35328
|
-
return toObject;
|
|
35329
|
-
}
|
|
35330
35385
|
function listTuningJobsParametersToVertex(fromObject, rootObject) {
|
|
35331
35386
|
const toObject = {};
|
|
35332
35387
|
const fromConfig = getValueByPath(fromObject, ["config"]);
|
|
@@ -35335,32 +35390,6 @@ function listTuningJobsParametersToVertex(fromObject, rootObject) {
|
|
|
35335
35390
|
}
|
|
35336
35391
|
return toObject;
|
|
35337
35392
|
}
|
|
35338
|
-
function listTuningJobsResponseFromMldev(fromObject, rootObject) {
|
|
35339
|
-
const toObject = {};
|
|
35340
|
-
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
35341
|
-
"sdkHttpResponse"
|
|
35342
|
-
]);
|
|
35343
|
-
if (fromSdkHttpResponse != null) {
|
|
35344
|
-
setValueByPath(toObject, ["sdkHttpResponse"], fromSdkHttpResponse);
|
|
35345
|
-
}
|
|
35346
|
-
const fromNextPageToken = getValueByPath(fromObject, [
|
|
35347
|
-
"nextPageToken"
|
|
35348
|
-
]);
|
|
35349
|
-
if (fromNextPageToken != null) {
|
|
35350
|
-
setValueByPath(toObject, ["nextPageToken"], fromNextPageToken);
|
|
35351
|
-
}
|
|
35352
|
-
const fromTuningJobs = getValueByPath(fromObject, ["tunedModels"]);
|
|
35353
|
-
if (fromTuningJobs != null) {
|
|
35354
|
-
let transformedList = fromTuningJobs;
|
|
35355
|
-
if (Array.isArray(transformedList)) {
|
|
35356
|
-
transformedList = transformedList.map((item) => {
|
|
35357
|
-
return tuningJobFromMldev(item);
|
|
35358
|
-
});
|
|
35359
|
-
}
|
|
35360
|
-
setValueByPath(toObject, ["tuningJobs"], transformedList);
|
|
35361
|
-
}
|
|
35362
|
-
return toObject;
|
|
35363
|
-
}
|
|
35364
35393
|
function listTuningJobsResponseFromVertex(fromObject, rootObject) {
|
|
35365
35394
|
const toObject = {};
|
|
35366
35395
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
@@ -35474,7 +35503,7 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
|
|
|
35474
35503
|
}
|
|
35475
35504
|
}
|
|
35476
35505
|
if (getValueByPath(fromObject, ["examples"]) !== void 0) {
|
|
35477
|
-
throw new Error("examples parameter is not supported in Vertex AI.");
|
|
35506
|
+
throw new Error("examples parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
35478
35507
|
}
|
|
35479
35508
|
return toObject;
|
|
35480
35509
|
}
|
|
@@ -35842,7 +35871,7 @@ var Tunings = class extends BaseModule {
|
|
|
35842
35871
|
}
|
|
35843
35872
|
}
|
|
35844
35873
|
async listInternal(params) {
|
|
35845
|
-
var _a2, _b
|
|
35874
|
+
var _a2, _b;
|
|
35846
35875
|
let response;
|
|
35847
35876
|
let path2 = "";
|
|
35848
35877
|
let queryParams = {};
|
|
@@ -35875,33 +35904,7 @@ var Tunings = class extends BaseModule {
|
|
|
35875
35904
|
return typedResp;
|
|
35876
35905
|
});
|
|
35877
35906
|
} else {
|
|
35878
|
-
|
|
35879
|
-
path2 = formatMap("tunedModels", body["_url"]);
|
|
35880
|
-
queryParams = body["_query"];
|
|
35881
|
-
delete body["_url"];
|
|
35882
|
-
delete body["_query"];
|
|
35883
|
-
response = this.apiClient.request({
|
|
35884
|
-
path: path2,
|
|
35885
|
-
queryParams,
|
|
35886
|
-
body: JSON.stringify(body),
|
|
35887
|
-
httpMethod: "GET",
|
|
35888
|
-
httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,
|
|
35889
|
-
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal
|
|
35890
|
-
}).then((httpResponse) => {
|
|
35891
|
-
return httpResponse.json().then((jsonResponse) => {
|
|
35892
|
-
const response2 = jsonResponse;
|
|
35893
|
-
response2.sdkHttpResponse = {
|
|
35894
|
-
headers: httpResponse.headers
|
|
35895
|
-
};
|
|
35896
|
-
return response2;
|
|
35897
|
-
});
|
|
35898
|
-
});
|
|
35899
|
-
return response.then((apiResponse) => {
|
|
35900
|
-
const resp = listTuningJobsResponseFromMldev(apiResponse);
|
|
35901
|
-
const typedResp = new ListTuningJobsResponse();
|
|
35902
|
-
Object.assign(typedResp, resp);
|
|
35903
|
-
return typedResp;
|
|
35904
|
-
});
|
|
35907
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
35905
35908
|
}
|
|
35906
35909
|
}
|
|
35907
35910
|
/**
|
|
@@ -36010,7 +36013,7 @@ var Tunings = class extends BaseModule {
|
|
|
36010
36013
|
return resp;
|
|
36011
36014
|
});
|
|
36012
36015
|
} else {
|
|
36013
|
-
throw new Error("This method is only supported by the Vertex AI.");
|
|
36016
|
+
throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).");
|
|
36014
36017
|
}
|
|
36015
36018
|
}
|
|
36016
36019
|
async tuneMldevInternal(params) {
|
|
@@ -36365,6 +36368,29 @@ var NodeFiles = class extends Files {
|
|
|
36365
36368
|
}
|
|
36366
36369
|
};
|
|
36367
36370
|
var LANGUAGE_LABEL_PREFIX = "gl-node/";
|
|
36371
|
+
function resolveCloudFlag(options) {
|
|
36372
|
+
var _a2;
|
|
36373
|
+
if (options.enterprise !== void 0 || options.vertexai !== void 0) {
|
|
36374
|
+
if (options.enterprise !== void 0 && options.vertexai !== void 0 && options.enterprise !== options.vertexai) {
|
|
36375
|
+
throw new Error("enterprise and vertexAI flags have conflicting values, please set enterprise value only.");
|
|
36376
|
+
}
|
|
36377
|
+
return (_a2 = options.enterprise) !== null && _a2 !== void 0 ? _a2 : options.vertexai;
|
|
36378
|
+
}
|
|
36379
|
+
const envEnterpriseStr = getEnv("GOOGLE_GENAI_USE_ENTERPRISE");
|
|
36380
|
+
const envVertexaiStr = getEnv("GOOGLE_GENAI_USE_VERTEXAI");
|
|
36381
|
+
const useEnterpriseEnv = stringToBoolean(envEnterpriseStr);
|
|
36382
|
+
const useVertexaiEnv = stringToBoolean(envVertexaiStr);
|
|
36383
|
+
if (envEnterpriseStr !== void 0 && envVertexaiStr !== void 0 && useEnterpriseEnv !== useVertexaiEnv) {
|
|
36384
|
+
console.warn("Warning: Both GOOGLE_GENAI_USE_ENTERPRISE and GOOGLE_GENAI_USE_VERTEXAI are set with conflicting values. The value of GOOGLE_GENAI_USE_ENTERPRISE will be used.");
|
|
36385
|
+
}
|
|
36386
|
+
if (envEnterpriseStr !== void 0) {
|
|
36387
|
+
return useEnterpriseEnv;
|
|
36388
|
+
}
|
|
36389
|
+
if (envVertexaiStr !== void 0) {
|
|
36390
|
+
return useVertexaiEnv;
|
|
36391
|
+
}
|
|
36392
|
+
return false;
|
|
36393
|
+
}
|
|
36368
36394
|
var GoogleGenAI = class {
|
|
36369
36395
|
getNextGenClient() {
|
|
36370
36396
|
var _a2;
|
|
@@ -36401,22 +36427,22 @@ var GoogleGenAI = class {
|
|
|
36401
36427
|
return this._webhooks;
|
|
36402
36428
|
}
|
|
36403
36429
|
constructor(options) {
|
|
36404
|
-
var _a2, _b, _c, _d
|
|
36430
|
+
var _a2, _b, _c, _d;
|
|
36405
36431
|
if ((options.project || options.location) && options.apiKey) {
|
|
36406
36432
|
throw new Error("Project/location and API key are mutually exclusive in the client initializer.");
|
|
36407
36433
|
}
|
|
36408
|
-
this.vertexai = (
|
|
36434
|
+
this.vertexai = resolveCloudFlag(options);
|
|
36409
36435
|
const envApiKey = getApiKeyFromEnv();
|
|
36410
36436
|
const envProject = getEnv("GOOGLE_CLOUD_PROJECT");
|
|
36411
36437
|
const envLocation = getEnv("GOOGLE_CLOUD_LOCATION");
|
|
36412
|
-
this.apiKey = (
|
|
36413
|
-
this.project = (
|
|
36414
|
-
this.location = (
|
|
36438
|
+
this.apiKey = (_a2 = options.apiKey) !== null && _a2 !== void 0 ? _a2 : envApiKey;
|
|
36439
|
+
this.project = (_b = options.project) !== null && _b !== void 0 ? _b : envProject;
|
|
36440
|
+
this.location = (_c = options.location) !== null && _c !== void 0 ? _c : envLocation;
|
|
36415
36441
|
if (!this.vertexai && !this.apiKey) {
|
|
36416
36442
|
console.warn("API key should be set when using the Gemini API.");
|
|
36417
36443
|
}
|
|
36418
|
-
if (
|
|
36419
|
-
if ((
|
|
36444
|
+
if (this.vertexai) {
|
|
36445
|
+
if ((_d = options.googleAuthOptions) === null || _d === void 0 ? void 0 : _d.credentials) {
|
|
36420
36446
|
console.debug("The user provided Google Cloud credentials will take precedence over the API key from the environment variable.");
|
|
36421
36447
|
this.apiKey = void 0;
|
|
36422
36448
|
}
|
|
@@ -36435,7 +36461,7 @@ var GoogleGenAI = class {
|
|
|
36435
36461
|
this.location = "global";
|
|
36436
36462
|
}
|
|
36437
36463
|
}
|
|
36438
|
-
const baseUrl = getBaseUrl(options.httpOptions,
|
|
36464
|
+
const baseUrl = getBaseUrl(options.httpOptions, this.vertexai, getEnv("GOOGLE_VERTEX_BASE_URL"), getEnv("GOOGLE_GEMINI_BASE_URL"));
|
|
36439
36465
|
if (baseUrl) {
|
|
36440
36466
|
if (options.httpOptions) {
|
|
36441
36467
|
options.httpOptions.baseUrl = baseUrl;
|
|
@@ -36477,9 +36503,6 @@ function getEnv(env) {
|
|
|
36477
36503
|
var _a2, _b, _c;
|
|
36478
36504
|
return (_c = (_b = (_a2 = process === null || process === void 0 ? void 0 : process.env) === null || _a2 === void 0 ? void 0 : _a2[env]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : void 0;
|
|
36479
36505
|
}
|
|
36480
|
-
function getBooleanEnv(env) {
|
|
36481
|
-
return stringToBoolean(getEnv(env));
|
|
36482
|
-
}
|
|
36483
36506
|
function stringToBoolean(str) {
|
|
36484
36507
|
if (str === void 0) {
|
|
36485
36508
|
return false;
|
|
@@ -36675,6 +36698,13 @@ var FEATURES = {
|
|
|
36675
36698
|
};
|
|
36676
36699
|
|
|
36677
36700
|
// dist/utils/logger.js
|
|
36701
|
+
var originalConsole = {
|
|
36702
|
+
log: console.log.bind(console),
|
|
36703
|
+
info: console.info.bind(console),
|
|
36704
|
+
warn: console.warn.bind(console),
|
|
36705
|
+
error: console.error.bind(console),
|
|
36706
|
+
debug: console.debug.bind(console)
|
|
36707
|
+
};
|
|
36678
36708
|
var LOG_LEVELS = {
|
|
36679
36709
|
debug: 0,
|
|
36680
36710
|
info: 1,
|