@flowdular/sdk 0.1.0
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/.ai/agents/README.md +27 -0
- package/.ai/agents/module-executor.md +36 -0
- package/.ai/agents/reviewer.md +23 -0
- package/.ai/agents/sandbox/agentic-engineer.md +31 -0
- package/.ai/agents/sandbox/backend-engineer.md +36 -0
- package/.ai/agents/sandbox/business-manager.md +23 -0
- package/.ai/agents/sandbox/frontend-engineer.md +27 -0
- package/.ai/agents/sandbox/ux-designer.md +23 -0
- package/.ai/agents/spec-author.md +29 -0
- package/.ai/blueprints/add-migration/README.md +5 -0
- package/.ai/blueprints/add-migration/allowed-paths.yaml +23 -0
- package/.ai/blueprints/add-migration/blueprint.json +14 -0
- package/.ai/blueprints/add-migration/examples/invalid/input-destructive.json +6 -0
- package/.ai/blueprints/add-migration/examples/invalid/plan-unnumbered-file.json +9 -0
- package/.ai/blueprints/add-migration/examples/valid/input.json +6 -0
- package/.ai/blueprints/add-migration/examples/valid/plan.json +9 -0
- package/.ai/blueprints/add-migration/gates.yaml +30 -0
- package/.ai/blueprints/add-migration/input.schema.json +23 -0
- package/.ai/blueprints/add-migration/plan.schema.json +54 -0
- package/.ai/blueprints/add-migration/required-files.yaml +18 -0
- package/.ai/blueprints/add-migration/spec-requirements.yaml +13 -0
- package/.ai/blueprints/add-migration/steps.yaml +62 -0
- package/.ai/blueprints/author-spec/README.md +5 -0
- package/.ai/blueprints/author-spec/allowed-paths.yaml +7 -0
- package/.ai/blueprints/author-spec/blueprint.json +14 -0
- package/.ai/blueprints/author-spec/examples/invalid/input-missing-outcome.json +5 -0
- package/.ai/blueprints/author-spec/examples/valid/input.json +6 -0
- package/.ai/blueprints/author-spec/gates.yaml +13 -0
- package/.ai/blueprints/author-spec/input.schema.json +20 -0
- package/.ai/blueprints/author-spec/plan.schema.json +14 -0
- package/.ai/blueprints/author-spec/required-files.yaml +6 -0
- package/.ai/blueprints/author-spec/spec-requirements.yaml +35 -0
- package/.ai/blueprints/author-spec/steps.yaml +28 -0
- package/.ai/blueprints/author-spec/templates/module.yaml +45 -0
- package/.ai/blueprints/bug-fix/README.md +5 -0
- package/.ai/blueprints/bug-fix/allowed-paths.yaml +29 -0
- package/.ai/blueprints/bug-fix/blueprint.json +14 -0
- package/.ai/blueprints/bug-fix/examples/invalid/input-no-symptom.json +4 -0
- package/.ai/blueprints/bug-fix/examples/invalid/plan-no-test.json +8 -0
- package/.ai/blueprints/bug-fix/examples/valid/input.json +6 -0
- package/.ai/blueprints/bug-fix/examples/valid/plan.json +8 -0
- package/.ai/blueprints/bug-fix/gates.yaml +30 -0
- package/.ai/blueprints/bug-fix/input.schema.json +25 -0
- package/.ai/blueprints/bug-fix/plan.schema.json +53 -0
- package/.ai/blueprints/bug-fix/required-files.yaml +7 -0
- package/.ai/blueprints/bug-fix/spec-requirements.yaml +7 -0
- package/.ai/blueprints/bug-fix/steps.yaml +51 -0
- package/.ai/blueprints/core-extend/README.md +5 -0
- package/.ai/blueprints/core-extend/allowed-paths.yaml +49 -0
- package/.ai/blueprints/core-extend/blueprint.json +14 -0
- package/.ai/blueprints/core-extend/examples/invalid/input-unknown-package.json +5 -0
- package/.ai/blueprints/core-extend/examples/invalid/plan-missing-gates.json +7 -0
- package/.ai/blueprints/core-extend/examples/valid/input.json +6 -0
- package/.ai/blueprints/core-extend/examples/valid/plan.json +10 -0
- package/.ai/blueprints/core-extend/gates.yaml +16 -0
- package/.ai/blueprints/core-extend/input.schema.json +54 -0
- package/.ai/blueprints/core-extend/plan.schema.json +39 -0
- package/.ai/blueprints/core-extend/required-files.yaml +36 -0
- package/.ai/blueprints/core-extend/spec-requirements.yaml +17 -0
- package/.ai/blueprints/core-extend/steps.yaml +54 -0
- package/.ai/blueprints/edit-module/README.md +9 -0
- package/.ai/blueprints/edit-module/allowed-paths.yaml +27 -0
- package/.ai/blueprints/edit-module/blueprint.json +20 -0
- package/.ai/blueprints/edit-module/examples/invalid/input-unknown-change.json +5 -0
- package/.ai/blueprints/edit-module/examples/invalid/plan-touches-platform.json +15 -0
- package/.ai/blueprints/edit-module/examples/valid/input.json +5 -0
- package/.ai/blueprints/edit-module/examples/valid/plan.json +25 -0
- package/.ai/blueprints/edit-module/gates.yaml +30 -0
- package/.ai/blueprints/edit-module/input.schema.json +31 -0
- package/.ai/blueprints/edit-module/plan.schema.json +65 -0
- package/.ai/blueprints/edit-module/required-files.yaml +80 -0
- package/.ai/blueprints/edit-module/spec-requirements.yaml +15 -0
- package/.ai/blueprints/edit-module/steps.yaml +115 -0
- package/.ai/blueprints/new-module/README.md +7 -0
- package/.ai/blueprints/new-module/allowed-paths.yaml +27 -0
- package/.ai/blueprints/new-module/blueprint.json +20 -0
- package/.ai/blueprints/new-module/examples/invalid/input-spec-outside-modules.json +4 -0
- package/.ai/blueprints/new-module/examples/invalid/plan-unknown-gate.json +8 -0
- package/.ai/blueprints/new-module/examples/valid/input.json +5 -0
- package/.ai/blueprints/new-module/examples/valid/plan.json +22 -0
- package/.ai/blueprints/new-module/gates.yaml +30 -0
- package/.ai/blueprints/new-module/input.schema.json +21 -0
- package/.ai/blueprints/new-module/plan.schema.json +58 -0
- package/.ai/blueprints/new-module/required-files.yaml +73 -0
- package/.ai/blueprints/new-module/spec-requirements.yaml +30 -0
- package/.ai/blueprints/new-module/steps.yaml +138 -0
- package/.ai/blueprints/release/README.md +5 -0
- package/.ai/blueprints/release/allowed-paths.yaml +19 -0
- package/.ai/blueprints/release/blueprint.json +14 -0
- package/.ai/blueprints/release/examples/invalid/input-bad-version.json +4 -0
- package/.ai/blueprints/release/examples/invalid/plan-bad-branch.json +7 -0
- package/.ai/blueprints/release/examples/valid/input.json +5 -0
- package/.ai/blueprints/release/examples/valid/plan.json +20 -0
- package/.ai/blueprints/release/gates.yaml +20 -0
- package/.ai/blueprints/release/input.schema.json +24 -0
- package/.ai/blueprints/release/plan.schema.json +46 -0
- package/.ai/blueprints/release/required-files.yaml +19 -0
- package/.ai/blueprints/release/spec-requirements.yaml +8 -0
- package/.ai/blueprints/release/steps.yaml +47 -0
- package/.ai/blueprints/security-review/README.md +5 -0
- package/.ai/blueprints/security-review/allowed-paths.yaml +6 -0
- package/.ai/blueprints/security-review/blueprint.json +14 -0
- package/.ai/blueprints/security-review/examples/invalid/input-unknown-kind.json +4 -0
- package/.ai/blueprints/security-review/examples/invalid/plan-finding-without-scenario.json +14 -0
- package/.ai/blueprints/security-review/examples/valid/input.json +4 -0
- package/.ai/blueprints/security-review/examples/valid/plan.json +19 -0
- package/.ai/blueprints/security-review/gates.yaml +22 -0
- package/.ai/blueprints/security-review/input.schema.json +20 -0
- package/.ai/blueprints/security-review/plan.schema.json +65 -0
- package/.ai/blueprints/security-review/required-files.yaml +6 -0
- package/.ai/blueprints/security-review/spec-requirements.yaml +9 -0
- package/.ai/blueprints/security-review/steps.yaml +38 -0
- package/.ai/policies/capabilities.yaml +164 -0
- package/.ai/policies/model-routing.yaml +72 -0
- package/.ai/policies/path-ownership.yaml +65 -0
- package/.ai/policies/task-budgets.yaml +37 -0
- package/.ai/references/catalog/LICENSE +21 -0
- package/.ai/references/catalog/migrations/0001_catalog_core.down.sql +2 -0
- package/.ai/references/catalog/migrations/0001_catalog_core.up.sql +21 -0
- package/.ai/references/catalog/migrations/0002_catalog_history.down.sql +3 -0
- package/.ai/references/catalog/migrations/0002_catalog_history.up.sql +20 -0
- package/.ai/references/catalog/migrations/0003_catalog_history_service_actors.down.sql +3 -0
- package/.ai/references/catalog/migrations/0003_catalog_history_service_actors.up.sql +36 -0
- package/.ai/references/catalog/migrations/0004_catalog_idempotency_ledger.down.sql +3 -0
- package/.ai/references/catalog/migrations/0004_catalog_idempotency_ledger.up.sql +19 -0
- package/.ai/references/catalog/migrations/README.md +3 -0
- package/.ai/references/catalog/module.json +27 -0
- package/.ai/references/catalog/package.json +49 -0
- package/.ai/references/catalog/spec/module.yaml +86 -0
- package/.ai/references/catalog/src/acl/permissions.ts +6 -0
- package/.ai/references/catalog/src/agent/tools.ts +164 -0
- package/.ai/references/catalog/src/api/endpoints.ts +243 -0
- package/.ai/references/catalog/src/client/CatalogHistoryDrawer.tsrx +123 -0
- package/.ai/references/catalog/src/client/CatalogItemForm.tsrx +190 -0
- package/.ai/references/catalog/src/client/CatalogView.tsrx +473 -0
- package/.ai/references/catalog/src/client/api.ts +111 -0
- package/.ai/references/catalog/src/client/contribution.tsrx +61 -0
- package/.ai/references/catalog/src/client/index.ts +18 -0
- package/.ai/references/catalog/src/client/navigation-copy.ts +9 -0
- package/.ai/references/catalog/src/client/state.ts +24 -0
- package/.ai/references/catalog/src/domain/types.ts +32 -0
- package/.ai/references/catalog/src/domain/variables.ts +111 -0
- package/.ai/references/catalog/src/index.ts +31 -0
- package/.ai/references/catalog/src/platform.ts +35 -0
- package/.ai/references/catalog/src/server/index.ts +4 -0
- package/.ai/references/catalog/src/server/runtime.ts +86 -0
- package/.ai/references/catalog/src/services/catalog-service.ts +306 -0
- package/.ai/references/catalog/src/services/database-repository.ts +440 -0
- package/.ai/references/catalog/src/services/index.ts +4 -0
- package/.ai/references/catalog/src/services/migration.ts +171 -0
- package/.ai/references/catalog/src/services/repository.ts +36 -0
- package/.ai/references/catalog/src/services/target-idempotency.ts +59 -0
- package/.ai/references/catalog/tests/agent-tools.test.ts +277 -0
- package/.ai/references/catalog/tests/endpoints.test.ts +320 -0
- package/.ai/references/catalog/tests/idempotency.test.ts +297 -0
- package/.ai/references/catalog/tests/migrations.test.ts +149 -0
- package/.ai/references/catalog/tests/module.test.ts +271 -0
- package/.ai/references/catalog/tests/support/database.ts +76 -0
- package/.ai/references/catalog/translations/en.json +101 -0
- package/.ai/references/catalog/translations/pl.json +101 -0
- package/.ai/references/catalog/tsconfig.json +15 -0
- package/.ai/references/catalog/vitest.config.ts +16 -0
- package/.ai/references/catalog.provenance.json +55 -0
- package/.ai/skills/README.md +36 -0
- package/.ai/skills/agent-tool-design/SKILL.md +209 -0
- package/.ai/skills/auth-security-review/SKILL.md +96 -0
- package/.ai/skills/auto-review/SKILL.md +112 -0
- package/.ai/skills/bug-hunt/SKILL.md +110 -0
- package/.ai/skills/business-agent-design/SKILL.md +188 -0
- package/.ai/skills/cli-extension/SKILL.md +114 -0
- package/.ai/skills/core-extend/SKILL.md +104 -0
- package/.ai/skills/database-adapter/SKILL.md +204 -0
- package/.ai/skills/database-adapter/references/first-run-and-matrix.md +105 -0
- package/.ai/skills/migration-authoring/SKILL.md +167 -0
- package/.ai/skills/module-new/SKILL.md +180 -0
- package/.ai/skills/module-update/SKILL.md +100 -0
- package/.ai/skills/perf-audit/SKILL.md +105 -0
- package/.ai/skills/release-eject-pr/SKILL.md +113 -0
- package/.ai/skills/spec-approval/SKILL.md +112 -0
- package/.ai/skills/test-hardening/SKILL.md +86 -0
- package/.ai/skills/translations-i18n/SKILL.md +85 -0
- package/.ai/skills/ux-design/SKILL.md +97 -0
- package/.ai/skills/variables/SKILL.md +164 -0
- package/.ai/skills/workflow-development/SKILL.md +199 -0
- package/AGENTS.md +59 -0
- package/LICENSE +21 -0
- package/README.md +24 -0
- package/docs/agent-contract.md +45 -0
- package/docs/design-system.md +217 -0
- package/modules/agents/migrations/0001_agents_core.down.sql +4 -0
- package/modules/agents/migrations/0001_agents_core.up.sql +106 -0
- package/modules/agents/migrations/0002_provider_connections.down.sql +1 -0
- package/modules/agents/migrations/0002_provider_connections.up.sql +34 -0
- package/modules/agents/migrations/0003_resource_audit.down.sql +1 -0
- package/modules/agents/migrations/0003_resource_audit.up.sql +25 -0
- package/modules/agents/migrations/0004_run_grants.down.sql +1 -0
- package/modules/agents/migrations/0004_run_grants.up.sql +19 -0
- package/modules/agents/migrations/0005_long_running_limits.down.sql +2 -0
- package/modules/agents/migrations/0005_long_running_limits.up.sql +14 -0
- package/modules/agents/migrations/0006_agent_skills.down.sql +3 -0
- package/modules/agents/migrations/0006_agent_skills.up.sql +44 -0
- package/modules/agents/migrations/0007_model_readiness.down.sql +1 -0
- package/modules/agents/migrations/0007_model_readiness.up.sql +18 -0
- package/modules/agents/migrations/0008_output_limits.down.sql +2 -0
- package/modules/agents/migrations/0008_output_limits.up.sql +8 -0
- package/modules/agents/migrations/0009_agent_audit_v3.down.sql +1 -0
- package/modules/agents/migrations/0009_agent_audit_v3.up.sql +25 -0
- package/modules/agents/migrations/0012_agent_run_costs.down.sql +3 -0
- package/modules/agents/migrations/0012_agent_run_costs.up.sql +32 -0
- package/modules/agents/migrations/0013_workflow_prerequisites.down.sql +3 -0
- package/modules/agents/migrations/0013_workflow_prerequisites.up.sql +97 -0
- package/modules/agents/migrations/0014_agent_action_audit.down.sql +1 -0
- package/modules/agents/migrations/0014_agent_action_audit.up.sql +25 -0
- package/modules/agents/migrations/0015_agent_run_actors.down.sql +1 -0
- package/modules/agents/migrations/0015_agent_run_actors.up.sql +17 -0
- package/modules/agents/migrations/0016_module_owned_agents.down.sql +6 -0
- package/modules/agents/migrations/0016_module_owned_agents.up.sql +68 -0
- package/modules/agents/migrations/0017_agent_authorization_subjects.down.sql +2 -0
- package/modules/agents/migrations/0017_agent_authorization_subjects.up.sql +18 -0
- package/modules/agents/migrations/0018_agent_child_tenant_isolation.down.sql +12 -0
- package/modules/agents/migrations/0018_agent_child_tenant_isolation.up.sql +88 -0
- package/modules/agents/migrations/0019_background_recovery_grants.down.sql +6 -0
- package/modules/agents/migrations/0019_background_recovery_grants.up.sql +17 -0
- package/modules/agents/migrations/0020_provider_summary_role.down.sql +2 -0
- package/modules/agents/migrations/0020_provider_summary_role.up.sql +17 -0
- package/modules/agents/migrations/0021_agents_agent_reconciliation_role.down.sql +4 -0
- package/modules/agents/migrations/0021_agents_agent_reconciliation_role.up.sql +7 -0
- package/modules/agents/migrations/README.md +39 -0
- package/modules/agents/module.json +38 -0
- package/modules/agents/package.json +56 -0
- package/modules/agents/spec/module.yaml +271 -0
- package/modules/agents/spec/procedures-compatibility.md +63 -0
- package/modules/agents/src/acl/permissions.ts +13 -0
- package/modules/agents/src/api/endpoints.ts +1122 -0
- package/modules/agents/src/cli/commands.json +29 -0
- package/modules/agents/src/cli/index.ts +162 -0
- package/modules/agents/src/client/AgentDashboardWidget.tsrx +32 -0
- package/modules/agents/src/client/AgentDefinitionForm.tsrx +362 -0
- package/modules/agents/src/client/AgentDefinitionList.tsrx +127 -0
- package/modules/agents/src/client/AgentPlaygroundView.tsrx +246 -0
- package/modules/agents/src/client/AgentProcedureForm.tsrx +182 -0
- package/modules/agents/src/client/AgentProcedureList.tsrx +118 -0
- package/modules/agents/src/client/AgentProceduresView.tsrx +253 -0
- package/modules/agents/src/client/AgentProvidersView.tsrx +248 -0
- package/modules/agents/src/client/AgentRunsView.tsrx +304 -0
- package/modules/agents/src/client/AgentUsageView.tsrx +233 -0
- package/modules/agents/src/client/AgentsView.tsrx +339 -0
- package/modules/agents/src/client/ModuleAgentBindingForm.tsrx +239 -0
- package/modules/agents/src/client/ModuleAgentList.tsrx +122 -0
- package/modules/agents/src/client/ProviderConnectionForm.tsrx +273 -0
- package/modules/agents/src/client/ProviderConnectionList.tsrx +229 -0
- package/modules/agents/src/client/ProviderModelEditor.tsrx +313 -0
- package/modules/agents/src/client/RunTimeline.tsrx +212 -0
- package/modules/agents/src/client/agents.css +349 -0
- package/modules/agents/src/client/api.ts +373 -0
- package/modules/agents/src/client/contribution.tsrx +181 -0
- package/modules/agents/src/client/index.ts +21 -0
- package/modules/agents/src/client/presentation.ts +162 -0
- package/modules/agents/src/client/state.ts +100 -0
- package/modules/agents/src/domain/context-variables.ts +58 -0
- package/modules/agents/src/domain/run-timeline.ts +145 -0
- package/modules/agents/src/domain/types.ts +481 -0
- package/modules/agents/src/index.ts +88 -0
- package/modules/agents/src/platform.ts +82 -0
- package/modules/agents/src/server/action-execution.ts +811 -0
- package/modules/agents/src/server/define-agent.ts +170 -0
- package/modules/agents/src/server/index.ts +67 -0
- package/modules/agents/src/server/run-execution.ts +231 -0
- package/modules/agents/src/server/run-queue.ts +96 -0
- package/modules/agents/src/server/runtime.ts +448 -0
- package/modules/agents/src/server/tools.ts +18 -0
- package/modules/agents/src/services/agent-service.ts +2167 -0
- package/modules/agents/src/services/credential-vault.ts +133 -0
- package/modules/agents/src/services/database-repository.ts +2786 -0
- package/modules/agents/src/services/index.ts +33 -0
- package/modules/agents/src/services/migration.ts +1152 -0
- package/modules/agents/src/services/module-agent-preflight.ts +76 -0
- package/modules/agents/src/services/outbound-policy.ts +136 -0
- package/modules/agents/src/services/provider-broker.ts +80 -0
- package/modules/agents/src/services/provider-repository.ts +589 -0
- package/modules/agents/src/services/provider-service.ts +968 -0
- package/modules/agents/src/services/repository.ts +294 -0
- package/modules/agents/src/services/run-grant.ts +305 -0
- package/modules/agents/src/services/usage-service.ts +119 -0
- package/modules/agents/src/services/worker.ts +442 -0
- package/modules/agents/src/settings.ts +244 -0
- package/modules/agents/translations/en.json +403 -0
- package/modules/agents/translations/pl.json +403 -0
- package/modules/auth/README.md +215 -0
- package/modules/auth/migrations/0001_auth_core.up.sql +108 -0
- package/modules/auth/migrations/0002_bundled_module_scopes.up.sql +26 -0
- package/modules/auth/migrations/0003_agent_core_scopes.up.sql +12 -0
- package/modules/auth/migrations/0004_owner_only_development_scopes.up.sql +8 -0
- package/modules/auth/migrations/0005_agent_provider_scopes.up.sql +13 -0
- package/modules/auth/migrations/0006_tenant_slug.up.sql +6 -0
- package/modules/auth/migrations/0007_sandbox_scopes.up.sql +13 -0
- package/modules/auth/migrations/0008_api_tokens.up.sql +43 -0
- package/modules/auth/migrations/0009_module_settings.up.sql +24 -0
- package/modules/auth/migrations/0010_sign_in_lockout.up.sql +11 -0
- package/modules/auth/migrations/0011_session_ids_and_password_reset.up.sql +7 -0
- package/modules/auth/migrations/0012_roles.up.sql +31 -0
- package/modules/auth/migrations/0013_audit.up.sql +27 -0
- package/modules/auth/migrations/0014_audit_actor.up.sql +4 -0
- package/modules/auth/migrations/0015_account_security.up.sql +81 -0
- package/modules/auth/module.json +26 -0
- package/modules/auth/package.json +61 -0
- package/modules/auth/spec/module.yaml +190 -0
- package/modules/auth/src/acl/scopes.ts +86 -0
- package/modules/auth/src/api/attempt-limiter.ts +42 -0
- package/modules/auth/src/api/client-address.ts +14 -0
- package/modules/auth/src/api/cookies.ts +52 -0
- package/modules/auth/src/api/origin.ts +40 -0
- package/modules/auth/src/cli/commands.json +74 -0
- package/modules/auth/src/cli/database.ts +51 -0
- package/modules/auth/src/cli/greenfield.ts +173 -0
- package/modules/auth/src/cli/index.ts +184 -0
- package/modules/auth/src/cli/provisioning.ts +211 -0
- package/modules/auth/src/client/AuthBackdrop.tsrx +137 -0
- package/modules/auth/src/client/AuthenticationCore.tsrx +630 -0
- package/modules/auth/src/client/PasswordChangeRequired.tsrx +145 -0
- package/modules/auth/src/client/PublicAuthFlows.tsrx +379 -0
- package/modules/auth/src/client/api.ts +464 -0
- package/modules/auth/src/client/audit/AuditView.tsrx +357 -0
- package/modules/auth/src/client/audit/api.ts +164 -0
- package/modules/auth/src/client/audit/audit-columns.tsrx +47 -0
- package/modules/auth/src/client/audit/audit-row.ts +38 -0
- package/modules/auth/src/client/auth.css +483 -0
- package/modules/auth/src/client/contribution.tsrx +100 -0
- package/modules/auth/src/client/index.ts +32 -0
- package/modules/auth/src/client/security/SecurityView.tsrx +253 -0
- package/modules/auth/src/client/settings/PreferencesCard.tsrx +65 -0
- package/modules/auth/src/client/settings/SettingsView.tsrx +212 -0
- package/modules/auth/src/client/settings/WorkspaceCard.tsrx +59 -0
- package/modules/auth/src/client/settings/api.ts +115 -0
- package/modules/auth/src/client/slug.ts +26 -0
- package/modules/auth/src/client/state.ts +115 -0
- package/modules/auth/src/client/tokens/ApiTokenForm.tsrx +153 -0
- package/modules/auth/src/client/tokens/ApiTokenSecret.tsrx +35 -0
- package/modules/auth/src/client/tokens/ApiTokensView.tsrx +216 -0
- package/modules/auth/src/client/tokens/api.ts +59 -0
- package/modules/auth/src/client/tokens/state.ts +26 -0
- package/modules/auth/src/client/tokens/token-columns.tsrx +64 -0
- package/modules/auth/src/client/translations.ts +23 -0
- package/modules/auth/src/domain/types.ts +152 -0
- package/modules/auth/src/index.ts +42 -0
- package/modules/auth/src/middleware/authentication.ts +97 -0
- package/modules/auth/src/platform.ts +0 -0
- package/modules/auth/src/server/actor.ts +12 -0
- package/modules/auth/src/server/audit-endpoints.ts +51 -0
- package/modules/auth/src/server/composition.ts +9 -0
- package/modules/auth/src/server/endpoints.ts +893 -0
- package/modules/auth/src/server/http.ts +153 -0
- package/modules/auth/src/server/index.ts +37 -0
- package/modules/auth/src/server/roles-endpoints.ts +120 -0
- package/modules/auth/src/server/runtime.ts +705 -0
- package/modules/auth/src/server/session-endpoints.ts +86 -0
- package/modules/auth/src/server/session-security.ts +62 -0
- package/modules/auth/src/server/token-endpoints.ts +106 -0
- package/modules/auth/src/services/auth-service-error.ts +11 -0
- package/modules/auth/src/services/auth-service.ts +2309 -0
- package/modules/auth/src/services/database-repository.ts +1825 -0
- package/modules/auth/src/services/mail-delivery.ts +27 -0
- package/modules/auth/src/services/migration.ts +591 -0
- package/modules/auth/src/services/password.ts +115 -0
- package/modules/auth/src/services/repository.ts +395 -0
- package/modules/auth/src/services/settings-store.ts +92 -0
- package/modules/auth/src/services/totp.ts +135 -0
- package/modules/auth/src/services/validation.ts +186 -0
- package/modules/auth/src/settings.ts +150 -0
- package/modules/auth/translations/en.json +263 -0
- package/modules/auth/translations/pl.json +263 -0
- package/modules/automations/migrations/0001_automations_core.down.sql +10 -0
- package/modules/automations/migrations/0001_automations_core.up.sql +76 -0
- package/modules/automations/migrations/0002_automations_targets.down.sql +9 -0
- package/modules/automations/migrations/0002_automations_targets.up.sql +37 -0
- package/modules/automations/migrations/0003_automations_scheduler_role.down.sql +3 -0
- package/modules/automations/migrations/0003_automations_scheduler_role.up.sql +19 -0
- package/modules/automations/migrations/0004_automations_trigger_routing_role.down.sql +3 -0
- package/modules/automations/migrations/0004_automations_trigger_routing_role.up.sql +18 -0
- package/modules/automations/migrations/README.md +3 -0
- package/modules/automations/module.json +31 -0
- package/modules/automations/package.json +55 -0
- package/modules/automations/spec/module.yaml +93 -0
- package/modules/automations/src/acl/permissions.ts +10 -0
- package/modules/automations/src/api/endpoints.ts +480 -0
- package/modules/automations/src/client/AutomationScheduleForm.tsrx +218 -0
- package/modules/automations/src/client/AutomationSchedulesView.tsrx +339 -0
- package/modules/automations/src/client/AutomationTriggerForm.tsrx +190 -0
- package/modules/automations/src/client/AutomationTriggersView.tsrx +329 -0
- package/modules/automations/src/client/api.ts +148 -0
- package/modules/automations/src/client/contribution.tsrx +70 -0
- package/modules/automations/src/client/index.ts +20 -0
- package/modules/automations/src/client/presentation.ts +38 -0
- package/modules/automations/src/client/state.ts +40 -0
- package/modules/automations/src/client/target-selection.ts +44 -0
- package/modules/automations/src/domain/cadence.ts +44 -0
- package/modules/automations/src/domain/types.ts +110 -0
- package/modules/automations/src/domain/variables.ts +178 -0
- package/modules/automations/src/index.ts +39 -0
- package/modules/automations/src/platform.ts +73 -0
- package/modules/automations/src/server/execution.ts +77 -0
- package/modules/automations/src/server/index.ts +39 -0
- package/modules/automations/src/server/runtime.ts +218 -0
- package/modules/automations/src/server/targets.ts +116 -0
- package/modules/automations/src/services/automations-service.ts +10 -0
- package/modules/automations/src/services/database-repository.ts +763 -0
- package/modules/automations/src/services/index.ts +5 -0
- package/modules/automations/src/services/migration.ts +223 -0
- package/modules/automations/src/services/repository.ts +119 -0
- package/modules/automations/src/services/schedule-service.ts +837 -0
- package/modules/automations/src/services/secret-vault.ts +124 -0
- package/modules/automations/src/services/trigger-service.ts +648 -0
- package/modules/automations/src/settings.ts +69 -0
- package/modules/automations/translations/en.json +126 -0
- package/modules/automations/translations/pl.json +126 -0
- package/modules/automations-workflows-integration/module.json +27 -0
- package/modules/automations-workflows-integration/package.json +48 -0
- package/modules/automations-workflows-integration/spec/module.yaml +93 -0
- package/modules/automations-workflows-integration/src/index.ts +14 -0
- package/modules/automations-workflows-integration/src/platform.ts +24 -0
- package/modules/automations-workflows-integration/src/server/adapter.ts +272 -0
- package/modules/automations-workflows-integration/src/server/index.ts +11 -0
- package/modules/automations-workflows-integration/src/server/tools.ts +0 -0
- package/modules/automations-workflows-integration/translations/en.json +21 -0
- package/modules/automations-workflows-integration/translations/pl.json +21 -0
- package/modules/profile/migrations/0001_profile_core.down.sql +1 -0
- package/modules/profile/migrations/0001_profile_core.up.sql +13 -0
- package/modules/profile/migrations/0002_profile_language.down.sql +1 -0
- package/modules/profile/migrations/0002_profile_language.up.sql +12 -0
- package/modules/profile/migrations/README.md +3 -0
- package/modules/profile/module.json +23 -0
- package/modules/profile/package.json +55 -0
- package/modules/profile/spec/module.yaml +136 -0
- package/modules/profile/src/acl/permissions.ts +5 -0
- package/modules/profile/src/api/endpoints.ts +184 -0
- package/modules/profile/src/client/DisplayNameCard.tsrx +59 -0
- package/modules/profile/src/client/LanguageCard.tsrx +89 -0
- package/modules/profile/src/client/PasswordCard.tsrx +79 -0
- package/modules/profile/src/client/ProfileView.tsrx +192 -0
- package/modules/profile/src/client/SessionsCard.tsrx +158 -0
- package/modules/profile/src/client/api.ts +134 -0
- package/modules/profile/src/client/contribution.tsrx +61 -0
- package/modules/profile/src/client/index.ts +15 -0
- package/modules/profile/src/client/password.ts +41 -0
- package/modules/profile/src/client/sessions-api.ts +52 -0
- package/modules/profile/src/client/state.ts +23 -0
- package/modules/profile/src/domain/types.ts +21 -0
- package/modules/profile/src/index.ts +21 -0
- package/modules/profile/src/platform.ts +23 -0
- package/modules/profile/src/server/index.ts +7 -0
- package/modules/profile/src/server/runtime.ts +84 -0
- package/modules/profile/src/services/database-repository.ts +154 -0
- package/modules/profile/src/services/index.ts +6 -0
- package/modules/profile/src/services/migration.ts +58 -0
- package/modules/profile/src/services/profile-service.ts +114 -0
- package/modules/profile/src/services/repository.ts +13 -0
- package/modules/profile/translations/en.json +58 -0
- package/modules/profile/translations/pl.json +58 -0
- package/modules/sandbox/migrations/0001_sandbox_core.down.sql +6 -0
- package/modules/sandbox/migrations/0001_sandbox_core.up.sql +70 -0
- package/modules/sandbox/migrations/0002_sandbox_session_lifecycle.down.sql +36 -0
- package/modules/sandbox/migrations/0002_sandbox_session_lifecycle.up.sql +37 -0
- package/modules/sandbox/migrations/README.md +7 -0
- package/modules/sandbox/module.json +31 -0
- package/modules/sandbox/package.json +56 -0
- package/modules/sandbox/spec/module.yaml +111 -0
- package/modules/sandbox/src/acl/permissions.ts +18 -0
- package/modules/sandbox/src/api/endpoints.ts +439 -0
- package/modules/sandbox/src/cli/commands.json +84 -0
- package/modules/sandbox/src/cli/index.ts +450 -0
- package/modules/sandbox/src/client/SandboxAccessView.tsrx +191 -0
- package/modules/sandbox/src/client/SandboxGrantForm.tsrx +134 -0
- package/modules/sandbox/src/client/SandboxGrantList.tsrx +83 -0
- package/modules/sandbox/src/client/SandboxSessionList.tsrx +56 -0
- package/modules/sandbox/src/client/api.ts +87 -0
- package/modules/sandbox/src/client/contribution.tsrx +47 -0
- package/modules/sandbox/src/client/index.ts +18 -0
- package/modules/sandbox/src/client/presentation.ts +47 -0
- package/modules/sandbox/src/client/state.ts +20 -0
- package/modules/sandbox/src/domain/types.ts +125 -0
- package/modules/sandbox/src/index.ts +33 -0
- package/modules/sandbox/src/platform.ts +28 -0
- package/modules/sandbox/src/server/index.ts +20 -0
- package/modules/sandbox/src/server/runtime.ts +119 -0
- package/modules/sandbox/src/services/database-repository.ts +567 -0
- package/modules/sandbox/src/services/directory.ts +33 -0
- package/modules/sandbox/src/services/index.ts +19 -0
- package/modules/sandbox/src/services/migration.ts +145 -0
- package/modules/sandbox/src/services/repository.ts +55 -0
- package/modules/sandbox/src/services/sandbox-service-error.ts +10 -0
- package/modules/sandbox/src/services/sandbox-service.ts +533 -0
- package/modules/sandbox/translations/en.json +77 -0
- package/modules/sandbox/translations/pl.json +77 -0
- package/modules/system/module.json +18 -0
- package/modules/system/package.json +56 -0
- package/modules/system/spec/module.yaml +104 -0
- package/modules/system/src/acl/permissions.ts +10 -0
- package/modules/system/src/client/ModuleSettingRow.tsrx +191 -0
- package/modules/system/src/client/ModuleSettingsSection.tsrx +155 -0
- package/modules/system/src/client/ModulesView.tsrx +241 -0
- package/modules/system/src/client/api.ts +36 -0
- package/modules/system/src/client/contribution.tsrx +48 -0
- package/modules/system/src/client/index.ts +26 -0
- package/modules/system/src/client/module-columns.tsrx +66 -0
- package/modules/system/src/client/overview-api.ts +30 -0
- package/modules/system/src/client/setting-copy.ts +30 -0
- package/modules/system/src/client/settings-api.ts +57 -0
- package/modules/system/src/client/state.ts +16 -0
- package/modules/system/src/index.ts +11 -0
- package/modules/system/src/platform.ts +11 -0
- package/modules/system/src/server/endpoints.ts +372 -0
- package/modules/system/src/server/index.ts +11 -0
- package/modules/system/src/server/module-catalog.ts +117 -0
- package/modules/system/translations/en.json +64 -0
- package/modules/system/translations/pl.json +64 -0
- package/modules/users/migrations/README.md +3 -0
- package/modules/users/module.json +27 -0
- package/modules/users/package.json +54 -0
- package/modules/users/spec/module.yaml +79 -0
- package/modules/users/src/acl/permissions.ts +6 -0
- package/modules/users/src/api/endpoints.ts +222 -0
- package/modules/users/src/client/InviteMemberForm.tsrx +62 -0
- package/modules/users/src/client/MemberDrawer.tsrx +298 -0
- package/modules/users/src/client/RoleForm.tsrx +140 -0
- package/modules/users/src/client/RolesView.tsrx +288 -0
- package/modules/users/src/client/UserAccountForm.tsrx +86 -0
- package/modules/users/src/client/UsersView.tsrx +486 -0
- package/modules/users/src/client/api.ts +172 -0
- package/modules/users/src/client/contribution.tsrx +92 -0
- package/modules/users/src/client/index.ts +19 -0
- package/modules/users/src/client/member-columns.tsrx +52 -0
- package/modules/users/src/client/roles-api.ts +90 -0
- package/modules/users/src/client/state.ts +42 -0
- package/modules/users/src/index.ts +27 -0
- package/modules/users/src/platform.ts +11 -0
- package/modules/users/src/services/index.ts +2 -0
- package/modules/users/src/services/users-service.ts +142 -0
- package/modules/users/translations/en.json +133 -0
- package/modules/users/translations/pl.json +133 -0
- package/modules/workflows/migrations/0001_workflows_core.down.sql +19 -0
- package/modules/workflows/migrations/0001_workflows_core.up.sql +228 -0
- package/modules/workflows/migrations/0002_workflows_authorization_subject.down.sql +1 -0
- package/modules/workflows/migrations/0002_workflows_authorization_subject.up.sql +9 -0
- package/modules/workflows/migrations/0003_workflows_worker_role.up.sql +34 -0
- package/modules/workflows/migrations/README.md +7 -0
- package/modules/workflows/module.json +31 -0
- package/modules/workflows/package.json +55 -0
- package/modules/workflows/spec/module.yaml +227 -0
- package/modules/workflows/src/acl/permissions.ts +10 -0
- package/modules/workflows/src/api/endpoints.ts +852 -0
- package/modules/workflows/src/client/WorkflowCanvas.tsrx +819 -0
- package/modules/workflows/src/client/WorkflowCreateForm.tsrx +111 -0
- package/modules/workflows/src/client/WorkflowEditor.tsrx +443 -0
- package/modules/workflows/src/client/WorkflowExecutionHistory.tsrx +169 -0
- package/modules/workflows/src/client/WorkflowFixtureDrawer.tsrx +206 -0
- package/modules/workflows/src/client/WorkflowInputForm.tsrx +125 -0
- package/modules/workflows/src/client/WorkflowInputSchemaEditor.tsrx +185 -0
- package/modules/workflows/src/client/WorkflowInspector.tsrx +471 -0
- package/modules/workflows/src/client/WorkflowLiveConfirmation.tsrx +67 -0
- package/modules/workflows/src/client/WorkflowMappingEditor.tsrx +283 -0
- package/modules/workflows/src/client/WorkflowNodePalette.tsrx +50 -0
- package/modules/workflows/src/client/WorkflowPointerField.tsrx +178 -0
- package/modules/workflows/src/client/WorkflowRevisionReview.tsrx +49 -0
- package/modules/workflows/src/client/WorkflowRunInspector.tsrx +143 -0
- package/modules/workflows/src/client/WorkflowTestPanel.tsrx +109 -0
- package/modules/workflows/src/client/WorkflowValidationPanel.tsrx +139 -0
- package/modules/workflows/src/client/WorkflowsView.tsrx +1060 -0
- package/modules/workflows/src/client/api.ts +312 -0
- package/modules/workflows/src/client/canvas-model.ts +472 -0
- package/modules/workflows/src/client/connected-node.ts +71 -0
- package/modules/workflows/src/client/contribution.tsrx +57 -0
- package/modules/workflows/src/client/create-model.ts +15 -0
- package/modules/workflows/src/client/draft-repair.ts +86 -0
- package/modules/workflows/src/client/index.ts +19 -0
- package/modules/workflows/src/client/input-model.ts +124 -0
- package/modules/workflows/src/client/mapping-model.ts +110 -0
- package/modules/workflows/src/client/pointer-model.ts +123 -0
- package/modules/workflows/src/client/presentation.ts +62 -0
- package/modules/workflows/src/client/run-actions.ts +19 -0
- package/modules/workflows/src/client/state.ts +57 -0
- package/modules/workflows/src/client/viewport.ts +107 -0
- package/modules/workflows/src/client/workflows.css +899 -0
- package/modules/workflows/src/domain/events.ts +399 -0
- package/modules/workflows/src/domain/graph.ts +1136 -0
- package/modules/workflows/src/domain/types.ts +563 -0
- package/modules/workflows/src/index.ts +27 -0
- package/modules/workflows/src/platform.ts +49 -0
- package/modules/workflows/src/server/index.ts +13 -0
- package/modules/workflows/src/server/runtime.ts +266 -0
- package/modules/workflows/src/services/cursor-codec.ts +62 -0
- package/modules/workflows/src/services/database-repository.ts +2407 -0
- package/modules/workflows/src/services/index.ts +6 -0
- package/modules/workflows/src/services/migration.ts +375 -0
- package/modules/workflows/src/services/payload-codec.ts +264 -0
- package/modules/workflows/src/services/repository.ts +285 -0
- package/modules/workflows/src/services/simulation.ts +359 -0
- package/modules/workflows/src/services/worker.ts +1196 -0
- package/modules/workflows/src/services/workflows-service.ts +1395 -0
- package/modules/workflows/translations/en.json +348 -0
- package/modules/workflows/translations/pl.json +348 -0
- package/modules.json +41 -0
- package/package.json +125 -0
- package/packages/ai-provider/package.json +46 -0
- package/packages/ai-provider/src/catalog.ts +102 -0
- package/packages/ai-provider/src/errors.ts +110 -0
- package/packages/ai-provider/src/index.ts +33 -0
- package/packages/ai-provider/src/model.ts +198 -0
- package/packages/ai-provider/src/pricing.ts +73 -0
- package/packages/cli-protocol/package.json +40 -0
- package/packages/cli-protocol/src/index.ts +113 -0
- package/packages/client/package.json +46 -0
- package/packages/client/src/ApplicationShell.tsrx +374 -0
- package/packages/client/src/contributions.ts +172 -0
- package/packages/client/src/i18n/index.ts +30 -0
- package/packages/client/src/i18n/locale.ts +25 -0
- package/packages/client/src/i18n/locales/en.json +66 -0
- package/packages/client/src/i18n/locales/pl.json +66 -0
- package/packages/client/src/i18n/runtime.ts +201 -0
- package/packages/client/src/i18n/translations.ts +88 -0
- package/packages/client/src/index.ts +55 -0
- package/packages/client/src/routing.ts +9 -0
- package/packages/client/src/shell/BrandMark.tsrx +10 -0
- package/packages/client/src/shell/CommandPalette.tsrx +79 -0
- package/packages/client/src/shell/ContributionOutlets.tsrx +31 -0
- package/packages/client/src/shell/DashboardView.tsrx +60 -0
- package/packages/client/src/shell/MobileHeader.tsrx +24 -0
- package/packages/client/src/shell/OrganizationSwitcher.tsrx +100 -0
- package/packages/client/src/shell/OverviewCharts.tsrx +167 -0
- package/packages/client/src/shell/PrimaryNavigation.tsrx +75 -0
- package/packages/client/src/shell/Sidebar.tsrx +76 -0
- package/packages/client/src/shell/Topbar.tsrx +44 -0
- package/packages/client/src/shell/UserMenu.tsrx +103 -0
- package/packages/client/src/shell/WorkspaceContent.tsrx +30 -0
- package/packages/client/src/shell/identity.ts +12 -0
- package/packages/client/src/shell/navigation.ts +68 -0
- package/packages/client/src/shell/shell.css +734 -0
- package/packages/client/src/shell/types.ts +29 -0
- package/packages/client/src/state.ts +63 -0
- package/packages/client/src/web.ts +39 -0
- package/packages/coding-agent/package.json +44 -0
- package/packages/coding-agent/src/drivers/byok.ts +322 -0
- package/packages/coding-agent/src/drivers/claude-code.ts +290 -0
- package/packages/coding-agent/src/drivers/codex.ts +281 -0
- package/packages/coding-agent/src/index.ts +56 -0
- package/packages/coding-agent/src/registry.ts +119 -0
- package/packages/coding-agent/src/roles/contract.ts +60 -0
- package/packages/coding-agent/src/roles/defaults.ts +134 -0
- package/packages/coding-agent/src/roles/handoff.ts +41 -0
- package/packages/coding-agent/src/roles/registry.ts +156 -0
- package/packages/coding-agent/src/roles/skills.ts +72 -0
- package/packages/coding-agent/src/roles/sync.ts +88 -0
- package/packages/coding-agent/src/types.ts +102 -0
- package/packages/coding-agent/src/workspace.ts +275 -0
- package/packages/contracts/package.json +38 -0
- package/packages/contracts/schemas/blueprint.schema.json +48 -0
- package/packages/contracts/schemas/cli-extension.schema.json +90 -0
- package/packages/contracts/schemas/module-artifact.schema.json +82 -0
- package/packages/contracts/schemas/module-catalog.schema.json +48 -0
- package/packages/contracts/schemas/module-spec.schema.json +111 -0
- package/packages/contracts/schemas/module.schema.json +156 -0
- package/packages/contracts/schemas/platform-spec.schema.json +17 -0
- package/packages/contracts/schemas/project.schema.json +270 -0
- package/packages/contracts/src/index.ts +191 -0
- package/packages/contracts/src/module-distribution.ts +47 -0
- package/packages/contracts/src/schemas.ts +18 -0
- package/packages/contracts/src/variables.ts +156 -0
- package/packages/contracts/src/web.ts +60 -0
- package/packages/database/package.json +43 -0
- package/packages/database/src/contracts.ts +399 -0
- package/packages/database/src/index.ts +112 -0
- package/packages/database/src/migrations.ts +444 -0
- package/packages/database/src/postgresql.ts +517 -0
- package/packages/database/src/provider.ts +639 -0
- package/packages/database/src/record-history.ts +201 -0
- package/packages/database/src/registry.ts +265 -0
- package/packages/database/src/reset.ts +87 -0
- package/packages/database-pglite/package.json +42 -0
- package/packages/database-pglite/src/driver.ts +168 -0
- package/packages/database-pglite/src/index.ts +2 -0
- package/packages/database-testing/package.json +44 -0
- package/packages/database-testing/src/index.ts +8 -0
- package/packages/database-testing/src/pglite.ts +124 -0
- package/packages/database-testing/src/postgres.ts +184 -0
- package/packages/database-testing/src/provider.ts +43 -0
- package/packages/database-testing/src/vitest-preset.ts +23 -0
- package/packages/dev-console/README.md +6 -0
- package/packages/dev-console/package.json +38 -0
- package/packages/dev-console/src/index.mjs +220 -0
- package/packages/harness/package.json +47 -0
- package/packages/harness/schemas/task-packet.schema.json +48 -0
- package/packages/harness/src/catalog.ts +24 -0
- package/packages/harness/src/errors.ts +9 -0
- package/packages/harness/src/index.ts +53 -0
- package/packages/harness/src/preamble.ts +31 -0
- package/packages/harness/src/runtime.ts +833 -0
- package/packages/harness/src/task-packet.ts +86 -0
- package/packages/harness/src/tool-adapters.ts +106 -0
- package/packages/harness/src/tool-contract.ts +242 -0
- package/packages/harness/src/vercel-ai-provider.ts +198 -0
- package/packages/kernel/package.json +44 -0
- package/packages/kernel/src/acl.ts +20 -0
- package/packages/kernel/src/actor.ts +139 -0
- package/packages/kernel/src/agent-registry.ts +81 -0
- package/packages/kernel/src/capability-registry.ts +28 -0
- package/packages/kernel/src/errors.ts +9 -0
- package/packages/kernel/src/index.ts +90 -0
- package/packages/kernel/src/legacy-local-state.ts +103 -0
- package/packages/kernel/src/module-compatibility.ts +70 -0
- package/packages/kernel/src/module-registry.ts +124 -0
- package/packages/kernel/src/module-settings.ts +403 -0
- package/packages/kernel/src/record-history.ts +146 -0
- package/packages/kernel/src/runtime-config.ts +51 -0
- package/packages/kernel/src/tool-registry.ts +25 -0
- package/packages/kernel/src/variable-registry.ts +339 -0
- package/packages/sandbox/README.md +691 -0
- package/packages/sandbox/bin/flowdular-sandbox.mjs +393 -0
- package/packages/sandbox/dist/client/assets/App-ClMOrpyg.js +11 -0
- package/packages/sandbox/dist/client/assets/PreviewHost-BHiHrfbQ.js +1 -0
- package/packages/sandbox/dist/client/assets/auto-buGEq6de.js +3 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/packages/sandbox/dist/client/assets/index-CvwhlQ87.js +4 -0
- package/packages/sandbox/dist/client/assets/styles-BPWaGf55.js +3 -0
- package/packages/sandbox/dist/client/assets/styles-Dx1_KOag.css +1 -0
- package/packages/sandbox/dist/client/favicon.svg +1 -0
- package/packages/sandbox/dist/server/assets/auto-CVGNYyb3.js +12785 -0
- package/packages/sandbox/dist/server/assets/chunk-DDJLRBDX-3OUNo51g.js +4125 -0
- package/packages/sandbox/dist/server/assets/nodefs-DVSI7kG0.js +24 -0
- package/packages/sandbox/dist/server/assets/opfs-ahp-D56iokt1.js +388 -0
- package/packages/sandbox/dist/server/assets/token-Bvaq7Anz.js +55 -0
- package/packages/sandbox/dist/server/assets/token-util-BqSvdIPQ.js +3 -0
- package/packages/sandbox/dist/server/assets/token-util-CktFFT4z.js +494 -0
- package/packages/sandbox/dist/server/entry.js +91671 -0
- package/packages/sandbox/dist/server/favicon.svg +1 -0
- package/packages/sandbox/dist/server/index.html +161 -0
- package/packages/sandbox/index.html +159 -0
- package/packages/sandbox/octane.config.ts +36 -0
- package/packages/sandbox/package.json +83 -0
- package/packages/sandbox/public/favicon.svg +1 -0
- package/packages/sandbox/public/og.png +0 -0
- package/packages/sandbox/src/App.tsrx +924 -0
- package/packages/sandbox/src/client/ApprovalHandoff.tsrx +39 -0
- package/packages/sandbox/src/client/ChatPane.tsrx +694 -0
- package/packages/sandbox/src/client/ConnectView.tsrx +86 -0
- package/packages/sandbox/src/client/DiffPane.tsrx +150 -0
- package/packages/sandbox/src/client/EjectModal.tsrx +571 -0
- package/packages/sandbox/src/client/GateResults.tsrx +60 -0
- package/packages/sandbox/src/client/GitHubSettingsModal.tsrx +219 -0
- package/packages/sandbox/src/client/NewSessionForm.tsrx +214 -0
- package/packages/sandbox/src/client/SessionBar.tsrx +151 -0
- package/packages/sandbox/src/client/SessionPicker.tsrx +472 -0
- package/packages/sandbox/src/client/SpecEditor.tsrx +109 -0
- package/packages/sandbox/src/client/SpecReviewCard.tsrx +321 -0
- package/packages/sandbox/src/client/WorkCard.tsrx +128 -0
- package/packages/sandbox/src/client/WorkbenchModal.tsrx +161 -0
- package/packages/sandbox/src/client/WorkspaceMenu.tsrx +100 -0
- package/packages/sandbox/src/client/api.ts +797 -0
- package/packages/sandbox/src/client/attachments.ts +73 -0
- package/packages/sandbox/src/client/dashboard.ts +46 -0
- package/packages/sandbox/src/client/github-settings.ts +48 -0
- package/packages/sandbox/src/client/highlight.ts +105 -0
- package/packages/sandbox/src/client/i18n.ts +32 -0
- package/packages/sandbox/src/client/locales/en.json +466 -0
- package/packages/sandbox/src/client/locales/pl.json +466 -0
- package/packages/sandbox/src/client/session-labels.ts +77 -0
- package/packages/sandbox/src/client/state.ts +108 -0
- package/packages/sandbox/src/index.ts +10 -0
- package/packages/sandbox/src/preview/PreviewHost.tsrx +373 -0
- package/packages/sandbox/src/preview/load-module.ts +16 -0
- package/packages/sandbox/src/server/attachments.ts +308 -0
- package/packages/sandbox/src/server/auto-review.ts +181 -0
- package/packages/sandbox/src/server/checkpoints.ts +90 -0
- package/packages/sandbox/src/server/config.ts +460 -0
- package/packages/sandbox/src/server/dashboard.ts +245 -0
- package/packages/sandbox/src/server/delivery/configuration.ts +193 -0
- package/packages/sandbox/src/server/delivery/git-pr.ts +1473 -0
- package/packages/sandbox/src/server/delivery/index.ts +83 -0
- package/packages/sandbox/src/server/delivery/local.ts +151 -0
- package/packages/sandbox/src/server/delivery/official-modules.ts +516 -0
- package/packages/sandbox/src/server/delivery/plan.ts +218 -0
- package/packages/sandbox/src/server/delivery/policies.ts +239 -0
- package/packages/sandbox/src/server/delivery/record.ts +41 -0
- package/packages/sandbox/src/server/delivery/steps.ts +464 -0
- package/packages/sandbox/src/server/delivery/types.ts +158 -0
- package/packages/sandbox/src/server/dependencies.ts +88 -0
- package/packages/sandbox/src/server/diff.ts +230 -0
- package/packages/sandbox/src/server/gates.ts +388 -0
- package/packages/sandbox/src/server/index.ts +139 -0
- package/packages/sandbox/src/server/path-guard.ts +282 -0
- package/packages/sandbox/src/server/planning.ts +749 -0
- package/packages/sandbox/src/server/platform-client.ts +189 -0
- package/packages/sandbox/src/server/preview-database-host.ts +340 -0
- package/packages/sandbox/src/server/preview-database-protocol.ts +163 -0
- package/packages/sandbox/src/server/preview-database-proxy.ts +356 -0
- package/packages/sandbox/src/server/preview-database.ts +109 -0
- package/packages/sandbox/src/server/preview-ipc.ts +15 -0
- package/packages/sandbox/src/server/preview-modules.ts +83 -0
- package/packages/sandbox/src/server/preview-revision.ts +44 -0
- package/packages/sandbox/src/server/preview-runtime.ts +467 -0
- package/packages/sandbox/src/server/preview-worker-manager.ts +436 -0
- package/packages/sandbox/src/server/preview-worker.ts +168 -0
- package/packages/sandbox/src/server/reference.ts +251 -0
- package/packages/sandbox/src/server/routes.ts +2258 -0
- package/packages/sandbox/src/server/runtime.ts +188 -0
- package/packages/sandbox/src/server/session-owner.ts +23 -0
- package/packages/sandbox/src/server/sessions.ts +849 -0
- package/packages/sandbox/src/server/spec.ts +471 -0
- package/packages/sandbox/src/server/turn-lifecycle.ts +56 -0
- package/packages/sandbox/src/server/turns.ts +993 -0
- package/packages/sandbox/src/server/workspace-install.ts +266 -0
- package/packages/sandbox/src/server/workspace-root.ts +73 -0
- package/packages/sandbox/src/styles.css +1573 -0
- package/packages/sandbox/vite.config.ts +133 -0
- package/packages/server/package.json +43 -0
- package/packages/server/src/application-routes.ts +21 -0
- package/packages/server/src/composition.ts +48 -0
- package/packages/server/src/endpoint.ts +142 -0
- package/packages/server/src/http.ts +128 -0
- package/packages/server/src/index.ts +46 -0
- package/packages/server/src/response-lifetime.ts +56 -0
- package/packages/server/src/security-headers.ts +130 -0
- package/packages/server/src/web-html.ts +55 -0
- package/packages/server/src/web.ts +361 -0
- package/packages/ui/package.json +46 -0
- package/packages/ui/src/brand/BrandMark.tsrx +66 -0
- package/packages/ui/src/brand/mark.ts +44 -0
- package/packages/ui/src/components/Alert.tsrx +17 -0
- package/packages/ui/src/components/Avatar.tsrx +18 -0
- package/packages/ui/src/components/Button.tsrx +29 -0
- package/packages/ui/src/components/Chart.tsrx +274 -0
- package/packages/ui/src/components/CheckGrid.tsrx +93 -0
- package/packages/ui/src/components/ConfirmDialog.tsrx +63 -0
- package/packages/ui/src/components/Drawer.tsrx +71 -0
- package/packages/ui/src/components/EmptyState.tsrx +26 -0
- package/packages/ui/src/components/Filters.tsrx +39 -0
- package/packages/ui/src/components/FormField.tsrx +27 -0
- package/packages/ui/src/components/Kpi.tsrx +36 -0
- package/packages/ui/src/components/PageHeader.tsrx +26 -0
- package/packages/ui/src/components/ScopeSummary.tsrx +76 -0
- package/packages/ui/src/components/SearchField.tsrx +24 -0
- package/packages/ui/src/components/SettingRow.tsrx +50 -0
- package/packages/ui/src/components/Switch.tsrx +21 -0
- package/packages/ui/src/components/Table.tsrx +267 -0
- package/packages/ui/src/components/TableCard.tsrx +52 -0
- package/packages/ui/src/components/Tag.tsrx +28 -0
- package/packages/ui/src/components/VariableField.tsrx +284 -0
- package/packages/ui/src/components/VariableInput.tsrx +7 -0
- package/packages/ui/src/components/VariableSelect.tsrx +72 -0
- package/packages/ui/src/components/VariableTextarea.tsrx +9 -0
- package/packages/ui/src/components/variable-field.ts +61 -0
- package/packages/ui/src/components/variable-select.ts +69 -0
- package/packages/ui/src/icons/Icon.tsrx +56 -0
- package/packages/ui/src/index.ts +81 -0
- package/packages/ui/src/initials.ts +10 -0
- package/packages/ui/src/styles/base.css +71 -0
- package/packages/ui/src/styles/components.css +1859 -0
- package/packages/ui/src/styles/index.css +3 -0
- package/packages/ui/src/styles/tokens.css +124 -0
- package/tsconfig.base.json +18 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module.name": "Automations Core",
|
|
3
|
+
"nav.schedules.label": "Schedules",
|
|
4
|
+
"nav.schedules.description": "Run agents or workflows on fixed intervals",
|
|
5
|
+
"nav.triggers.label": "Webhook triggers",
|
|
6
|
+
"nav.triggers.description": "Run agents or workflows from signed external requests",
|
|
7
|
+
"common.agent": "Agent",
|
|
8
|
+
"common.actions": "Automation actions",
|
|
9
|
+
"common.cancel": "Cancel",
|
|
10
|
+
"common.close": "Close",
|
|
11
|
+
"common.disabled": "disabled",
|
|
12
|
+
"common.edit": "Edit",
|
|
13
|
+
"common.enabled": "enabled",
|
|
14
|
+
"common.enabledLabel": "Enabled",
|
|
15
|
+
"common.enabledOnly": "Enabled only",
|
|
16
|
+
"common.eyebrow": "Automation",
|
|
17
|
+
"common.filters": "Filters",
|
|
18
|
+
"common.label": "Label",
|
|
19
|
+
"common.notYet": "Not yet",
|
|
20
|
+
"common.paused": "Paused",
|
|
21
|
+
"common.refresh": "Refresh",
|
|
22
|
+
"common.refreshing": "Refreshing…",
|
|
23
|
+
"common.requestFailed": "The automations operation failed.",
|
|
24
|
+
"common.saving": "Saving…",
|
|
25
|
+
"common.state": "State",
|
|
26
|
+
"common.target": "Target",
|
|
27
|
+
"common.targetUnavailable": "Unavailable {kind}",
|
|
28
|
+
"common.view": "View",
|
|
29
|
+
"targetKind.agent": "Agent",
|
|
30
|
+
"targetKind.workflow": "Workflow",
|
|
31
|
+
"cadence.day": "Every day",
|
|
32
|
+
"cadence.days": "Every {count} days",
|
|
33
|
+
"cadence.hour": "Every hour",
|
|
34
|
+
"cadence.hours": "Every {count} hours",
|
|
35
|
+
"cadence.hoursMinutes": "Every {hours} h {minutes} min",
|
|
36
|
+
"cadence.minutes": "Every {count} min",
|
|
37
|
+
"schedules.column.cadence": "Cadence",
|
|
38
|
+
"schedules.column.lastRun": "Last run",
|
|
39
|
+
"schedules.column.nextRun": "Next run",
|
|
40
|
+
"schedules.column.schedule": "Schedule",
|
|
41
|
+
"schedules.description": "Run an agent or published workflow on a fixed interval, with one durable run per time slot.",
|
|
42
|
+
"schedules.drawer.subtitle": "Interval trigger",
|
|
43
|
+
"schedules.empty.filteredHint": "No schedule in this workspace matches the current filters.",
|
|
44
|
+
"schedules.empty.filteredTitle": "No matching schedules",
|
|
45
|
+
"schedules.empty.hint": "Create a schedule to run an available target at a fixed interval.",
|
|
46
|
+
"schedules.empty.title": "No schedules yet",
|
|
47
|
+
"schedules.error.delete": "Could not delete the schedule.",
|
|
48
|
+
"schedules.error.load": "Could not load schedules.",
|
|
49
|
+
"schedules.error.run": "Could not queue the run.",
|
|
50
|
+
"schedules.error.save": "Could not save the schedule.",
|
|
51
|
+
"schedules.form.delete": "Delete schedule",
|
|
52
|
+
"schedules.form.deleteHint": "The schedule stops firing. Runs it already queued are kept.",
|
|
53
|
+
"schedules.form.deleteTitle": "Delete schedule",
|
|
54
|
+
"schedules.form.input": "Input",
|
|
55
|
+
"schedules.form.inputHelp": "Resolved once and sent to the agent at every scheduled slot.",
|
|
56
|
+
"schedules.form.workflowInputHelp": "Resolved once and parsed as JSON before the published workflow is queued.",
|
|
57
|
+
"schedules.form.inputPlaceholder": "Summarize yesterday's open orders.",
|
|
58
|
+
"schedules.form.interval": "Every (minutes)",
|
|
59
|
+
"schedules.form.intervalHelp": "A fixed interval from 1 minute to 7 days. A missed slot is skipped, never replayed.",
|
|
60
|
+
"schedules.form.labelPlaceholder": "Nightly order summary",
|
|
61
|
+
"schedules.form.noAgents": "No agent is active in this workspace. Activate one before a schedule can queue its runs.",
|
|
62
|
+
"schedules.form.noTargets": "No agent or published workflow is available with your current permissions.",
|
|
63
|
+
"schedules.form.save": "Save schedule",
|
|
64
|
+
"schedules.loading": "Loading schedules…",
|
|
65
|
+
"schedules.new": "New schedule",
|
|
66
|
+
"schedules.note": "Automatic runs use the permissions saved when the target was configured. An unavailable target stops the schedule and records the reason.",
|
|
67
|
+
"schedules.notice.queued": "Queued run {id} for {label}.",
|
|
68
|
+
"schedules.runNow": "Run now",
|
|
69
|
+
"schedules.search.label": "Filter schedules",
|
|
70
|
+
"schedules.search.placeholder": "Filter by label or target",
|
|
71
|
+
"schedules.table.caption": "Automation schedules",
|
|
72
|
+
"schedules.table.count": "{enabled} enabled · {total} defined",
|
|
73
|
+
"schedules.table.title": "Workspace schedules",
|
|
74
|
+
"schedules.title": "Schedules",
|
|
75
|
+
"template.available": "Available variables",
|
|
76
|
+
"template.empty": "No matching variables.",
|
|
77
|
+
"template.insert": "Insert variable",
|
|
78
|
+
"template.sample.agent": "Operations assistant",
|
|
79
|
+
"template.sample.schedule": "Nightly order summary",
|
|
80
|
+
"variables.agent.name.label": "Agent name",
|
|
81
|
+
"variables.automation.schedule.id.label": "Schedule ID",
|
|
82
|
+
"variables.automation.schedule.label.label": "Schedule label",
|
|
83
|
+
"variables.context.now.label": "Run time (UTC)",
|
|
84
|
+
"variables.context.today.label": "Run date (UTC)",
|
|
85
|
+
"triggers.column.accepted": "Accepted",
|
|
86
|
+
"triggers.column.lastFired": "Last fired",
|
|
87
|
+
"triggers.column.rejected": "Rejected",
|
|
88
|
+
"triggers.column.trigger": "Trigger",
|
|
89
|
+
"triggers.description": "Invoke an agent or published workflow from a signed external request with replay protection.",
|
|
90
|
+
"triggers.drawer.subtitle": "Signed webhook",
|
|
91
|
+
"triggers.empty.filteredHint": "No trigger in this workspace matches the current filters.",
|
|
92
|
+
"triggers.empty.filteredTitle": "No matching triggers",
|
|
93
|
+
"triggers.empty.hint": "Create a signed endpoint that invokes an available automation target.",
|
|
94
|
+
"triggers.empty.title": "No triggers yet",
|
|
95
|
+
"triggers.error.delete": "Could not delete the trigger.",
|
|
96
|
+
"triggers.error.load": "Could not load triggers.",
|
|
97
|
+
"triggers.error.rotate": "Could not rotate the secret.",
|
|
98
|
+
"triggers.error.save": "Could not save the trigger.",
|
|
99
|
+
"triggers.form.agentFixed": "Fixed after creation.",
|
|
100
|
+
"triggers.form.create": "Create trigger",
|
|
101
|
+
"triggers.form.dangerHint": "Rotating invalidates the current secret immediately. Deleting closes the endpoint for good.",
|
|
102
|
+
"triggers.form.dangerTitle": "Secret and removal",
|
|
103
|
+
"triggers.form.delete": "Delete trigger",
|
|
104
|
+
"triggers.form.endpoint": "Endpoint",
|
|
105
|
+
"triggers.form.endpointHelp": "Unauthenticated. The signature and its timestamp are the only credentials it accepts, within a five minute window.",
|
|
106
|
+
"triggers.form.labelPlaceholder": "Order webhook",
|
|
107
|
+
"triggers.form.noAgents": "No agent is active in this workspace. Activate one before a webhook can queue its runs.",
|
|
108
|
+
"triggers.form.noTargets": "No agent or published workflow is available with your current permissions.",
|
|
109
|
+
"triggers.form.rotate": "Rotate secret",
|
|
110
|
+
"triggers.form.save": "Save trigger",
|
|
111
|
+
"triggers.form.secret": "Signing secret",
|
|
112
|
+
"triggers.form.secretHelp": "HMAC-SHA256 key. Sign v1.<timestamp>.<raw body> and send x-flowdular-signature: v1=<hex> with x-flowdular-timestamp in Unix milliseconds.",
|
|
113
|
+
"triggers.form.secretWarning": "Copy the signing secret now. It is stored encrypted and is never shown again.",
|
|
114
|
+
"triggers.loading": "Loading webhook triggers…",
|
|
115
|
+
"triggers.new": "New trigger",
|
|
116
|
+
"triggers.note": "Every rejected request returns the same response. Requests are limited per trigger and signatures older than five minutes are refused.",
|
|
117
|
+
"triggers.search.label": "Filter webhook triggers",
|
|
118
|
+
"triggers.search.placeholder": "Filter by label or target",
|
|
119
|
+
"triggers.secretRevision": "secret r{revision}",
|
|
120
|
+
"triggers.table.caption": "Webhook triggers",
|
|
121
|
+
"triggers.table.count": "{enabled} enabled · {total} defined",
|
|
122
|
+
"triggers.table.title": "Workspace triggers",
|
|
123
|
+
"triggers.title": "Webhook triggers",
|
|
124
|
+
"settings.schedulerPollMs.label": "Scheduler poll interval (ms)",
|
|
125
|
+
"settings.schedulerPollMs.description": "How often this process checks for due schedules. Applied when the automations runtime starts."
|
|
126
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module.name": "Automatyzacje",
|
|
3
|
+
"nav.schedules.label": "Harmonogramy",
|
|
4
|
+
"nav.schedules.description": "Uruchamiaj agentów lub workflow w stałych odstępach czasu",
|
|
5
|
+
"nav.triggers.label": "Wyzwalacze webhook",
|
|
6
|
+
"nav.triggers.description": "Uruchamiaj agentów lub workflow przez podpisane żądania zewnętrzne",
|
|
7
|
+
"common.agent": "Agent",
|
|
8
|
+
"common.actions": "Akcje automatyzacji",
|
|
9
|
+
"common.cancel": "Anuluj",
|
|
10
|
+
"common.close": "Zamknij",
|
|
11
|
+
"common.disabled": "wyłączony",
|
|
12
|
+
"common.edit": "Edytuj",
|
|
13
|
+
"common.enabled": "włączony",
|
|
14
|
+
"common.enabledLabel": "Włączony",
|
|
15
|
+
"common.enabledOnly": "Tylko włączone",
|
|
16
|
+
"common.eyebrow": "Automatyzacje",
|
|
17
|
+
"common.filters": "Filtry",
|
|
18
|
+
"common.label": "Nazwa",
|
|
19
|
+
"common.notYet": "Jeszcze nie uruchomiono",
|
|
20
|
+
"common.paused": "Wstrzymany",
|
|
21
|
+
"common.refresh": "Odśwież",
|
|
22
|
+
"common.refreshing": "Odświeżanie…",
|
|
23
|
+
"common.requestFailed": "Operacja automatyzacji nie powiodła się.",
|
|
24
|
+
"common.saving": "Zapisywanie…",
|
|
25
|
+
"common.state": "Stan",
|
|
26
|
+
"common.target": "Cel",
|
|
27
|
+
"common.targetUnavailable": "Niedostępny cel: {kind}",
|
|
28
|
+
"common.view": "Zobacz",
|
|
29
|
+
"targetKind.agent": "Agent",
|
|
30
|
+
"targetKind.workflow": "Workflow",
|
|
31
|
+
"cadence.day": "Codziennie",
|
|
32
|
+
"cadence.days": "Co {count} dni",
|
|
33
|
+
"cadence.hour": "Co godzinę",
|
|
34
|
+
"cadence.hours": "Co {count} godz.",
|
|
35
|
+
"cadence.hoursMinutes": "Co {hours} godz. {minutes} min",
|
|
36
|
+
"cadence.minutes": "Co {count} min",
|
|
37
|
+
"schedules.column.cadence": "Częstotliwość",
|
|
38
|
+
"schedules.column.lastRun": "Ostatnie uruchomienie",
|
|
39
|
+
"schedules.column.nextRun": "Następne uruchomienie",
|
|
40
|
+
"schedules.column.schedule": "Harmonogram",
|
|
41
|
+
"schedules.description": "Uruchamiaj agenta lub opublikowany workflow w stałych odstępach, z jednym trwałym przebiegiem na każdy przedział czasu.",
|
|
42
|
+
"schedules.drawer.subtitle": "Wyzwalacz czasowy",
|
|
43
|
+
"schedules.empty.filteredHint": "Żaden harmonogram w tym obszarze roboczym nie pasuje do wybranych filtrów.",
|
|
44
|
+
"schedules.empty.filteredTitle": "Brak pasujących harmonogramów",
|
|
45
|
+
"schedules.empty.hint": "Utwórz harmonogram, aby uruchamiać dostępny cel w stałych odstępach.",
|
|
46
|
+
"schedules.empty.title": "Brak harmonogramów",
|
|
47
|
+
"schedules.error.delete": "Nie udało się usunąć harmonogramu.",
|
|
48
|
+
"schedules.error.load": "Nie udało się wczytać harmonogramów.",
|
|
49
|
+
"schedules.error.run": "Nie udało się dodać przebiegu do kolejki.",
|
|
50
|
+
"schedules.error.save": "Nie udało się zapisać harmonogramu.",
|
|
51
|
+
"schedules.form.delete": "Usuń harmonogram",
|
|
52
|
+
"schedules.form.deleteHint": "Harmonogram przestanie się uruchamiać. Przebiegi już dodane do kolejki pozostaną.",
|
|
53
|
+
"schedules.form.deleteTitle": "Usuń harmonogram",
|
|
54
|
+
"schedules.form.input": "Dane wejściowe",
|
|
55
|
+
"schedules.form.inputHelp": "Treść jest rozwiązywana raz i przekazywana agentowi w każdym zaplanowanym terminie.",
|
|
56
|
+
"schedules.form.workflowInputHelp": "Treść jest rozwiązywana raz i parsowana jako JSON przed dodaniem opublikowanego workflow do kolejki.",
|
|
57
|
+
"schedules.form.inputPlaceholder": "Podsumuj otwarte zamówienia z wczoraj.",
|
|
58
|
+
"schedules.form.interval": "Co ile minut",
|
|
59
|
+
"schedules.form.intervalHelp": "Stały odstęp od 1 minuty do 7 dni. Pominięty termin nie jest uruchamiany ponownie.",
|
|
60
|
+
"schedules.form.labelPlaceholder": "Nocne podsumowanie zamówień",
|
|
61
|
+
"schedules.form.noAgents": "W tej przestrzeni nie ma aktywnego agenta. Aktywuj agenta, zanim harmonogram zacznie dodawać przebiegi do kolejki.",
|
|
62
|
+
"schedules.form.noTargets": "Przy obecnych uprawnieniach nie jest dostępny żaden agent ani opublikowany workflow.",
|
|
63
|
+
"schedules.form.save": "Zapisz harmonogram",
|
|
64
|
+
"schedules.loading": "Wczytywanie harmonogramów…",
|
|
65
|
+
"schedules.new": "Nowy harmonogram",
|
|
66
|
+
"schedules.note": "Automatyczne przebiegi używają uprawnień zapisanych podczas konfiguracji celu. Niedostępny cel zatrzymuje harmonogram i zapisuje przyczynę.",
|
|
67
|
+
"schedules.notice.queued": "Dodano przebieg {id} dla harmonogramu {label}.",
|
|
68
|
+
"schedules.runNow": "Uruchom teraz",
|
|
69
|
+
"schedules.search.label": "Filtruj harmonogramy",
|
|
70
|
+
"schedules.search.placeholder": "Szukaj po nazwie lub celu",
|
|
71
|
+
"schedules.table.caption": "Harmonogramy automatyzacji",
|
|
72
|
+
"schedules.table.count": "włączone: {enabled} · wszystkie: {total}",
|
|
73
|
+
"schedules.table.title": "Harmonogramy obszaru roboczego",
|
|
74
|
+
"schedules.title": "Harmonogramy",
|
|
75
|
+
"template.available": "Dostępne zmienne",
|
|
76
|
+
"template.empty": "Brak pasujących zmiennych.",
|
|
77
|
+
"template.insert": "Wstaw zmienną",
|
|
78
|
+
"template.sample.agent": "Asystent operacyjny",
|
|
79
|
+
"template.sample.schedule": "Nocne podsumowanie zamówień",
|
|
80
|
+
"variables.agent.name.label": "Nazwa agenta",
|
|
81
|
+
"variables.automation.schedule.id.label": "Identyfikator harmonogramu",
|
|
82
|
+
"variables.automation.schedule.label.label": "Nazwa harmonogramu",
|
|
83
|
+
"variables.context.now.label": "Czas uruchomienia (UTC)",
|
|
84
|
+
"variables.context.today.label": "Data uruchomienia (UTC)",
|
|
85
|
+
"triggers.column.accepted": "Przyjęte",
|
|
86
|
+
"triggers.column.lastFired": "Ostatnie wywołanie",
|
|
87
|
+
"triggers.column.rejected": "Odrzucone",
|
|
88
|
+
"triggers.column.trigger": "Wyzwalacz",
|
|
89
|
+
"triggers.description": "Uruchamiaj agenta lub opublikowany workflow przez podpisane żądania z ochroną przed ponownym użyciem.",
|
|
90
|
+
"triggers.drawer.subtitle": "Podpisany webhook",
|
|
91
|
+
"triggers.empty.filteredHint": "Żaden wyzwalacz w tym obszarze roboczym nie pasuje do wybranych filtrów.",
|
|
92
|
+
"triggers.empty.filteredTitle": "Brak pasujących wyzwalaczy",
|
|
93
|
+
"triggers.empty.hint": "Utwórz podpisany endpoint, który uruchamia dostępny cel automatyzacji.",
|
|
94
|
+
"triggers.empty.title": "Brak wyzwalaczy",
|
|
95
|
+
"triggers.error.delete": "Nie udało się usunąć wyzwalacza.",
|
|
96
|
+
"triggers.error.load": "Nie udało się wczytać wyzwalaczy.",
|
|
97
|
+
"triggers.error.rotate": "Nie udało się zmienić sekretu.",
|
|
98
|
+
"triggers.error.save": "Nie udało się zapisać wyzwalacza.",
|
|
99
|
+
"triggers.form.agentFixed": "Nie można zmienić po utworzeniu.",
|
|
100
|
+
"triggers.form.create": "Utwórz wyzwalacz",
|
|
101
|
+
"triggers.form.dangerHint": "Zmiana sekretu natychmiast unieważnia poprzedni. Usunięcie trwale zamyka endpoint.",
|
|
102
|
+
"triggers.form.dangerTitle": "Sekret i usunięcie",
|
|
103
|
+
"triggers.form.delete": "Usuń wyzwalacz",
|
|
104
|
+
"triggers.form.endpoint": "Endpoint",
|
|
105
|
+
"triggers.form.endpointHelp": "Endpoint nie wymaga sesji. Przyjmuje wyłącznie podpis i jego znacznik czasu z ostatnich pięciu minut.",
|
|
106
|
+
"triggers.form.labelPlaceholder": "Webhook zamówień",
|
|
107
|
+
"triggers.form.noAgents": "W tej przestrzeni nie ma aktywnego agenta. Aktywuj agenta, zanim webhook zacznie dodawać przebiegi do kolejki.",
|
|
108
|
+
"triggers.form.noTargets": "Przy obecnych uprawnieniach nie jest dostępny żaden agent ani opublikowany workflow.",
|
|
109
|
+
"triggers.form.rotate": "Zmień sekret",
|
|
110
|
+
"triggers.form.save": "Zapisz wyzwalacz",
|
|
111
|
+
"triggers.form.secret": "Sekret podpisu",
|
|
112
|
+
"triggers.form.secretHelp": "Klucz HMAC-SHA256. Podpisz v1.<timestamp>.<raw body> i wyślij x-flowdular-signature: v1=<hex> wraz z x-flowdular-timestamp w milisekundach czasu Unix.",
|
|
113
|
+
"triggers.form.secretWarning": "Skopiuj sekret podpisu teraz. Jest przechowywany w postaci zaszyfrowanej i nie będzie ponownie wyświetlony.",
|
|
114
|
+
"triggers.loading": "Wczytywanie wyzwalaczy webhook…",
|
|
115
|
+
"triggers.new": "Nowy wyzwalacz",
|
|
116
|
+
"triggers.note": "Każde odrzucone żądanie dostaje tę samą odpowiedź. Obowiązuje limit na wyzwalacz, a podpisy starsze niż pięć minut są odrzucane.",
|
|
117
|
+
"triggers.search.label": "Filtruj wyzwalacze webhook",
|
|
118
|
+
"triggers.search.placeholder": "Szukaj po nazwie lub celu",
|
|
119
|
+
"triggers.secretRevision": "sekret r{revision}",
|
|
120
|
+
"triggers.table.caption": "Wyzwalacze webhook",
|
|
121
|
+
"triggers.table.count": "włączone: {enabled} · wszystkie: {total}",
|
|
122
|
+
"triggers.table.title": "Wyzwalacze obszaru roboczego",
|
|
123
|
+
"triggers.title": "Wyzwalacze webhook",
|
|
124
|
+
"settings.schedulerPollMs.label": "Częstotliwość sprawdzania harmonogramów (ms)",
|
|
125
|
+
"settings.schedulerPollMs.description": "Określa, jak często proces sprawdza harmonogramy oczekujące na uruchomienie. Wartość jest stosowana podczas uruchamiania automatyzacji."
|
|
126
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../packages/contracts/schemas/module.schema.json",
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"id": "automations-workflows.integration",
|
|
5
|
+
"package": "@flowdular/module-automations-workflows-integration",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"profile": "integration",
|
|
8
|
+
"capabilities": ["integration"],
|
|
9
|
+
"platform": {
|
|
10
|
+
"server": true,
|
|
11
|
+
"client": false
|
|
12
|
+
},
|
|
13
|
+
"dependencies": [
|
|
14
|
+
{
|
|
15
|
+
"id": "automations.core",
|
|
16
|
+
"range": "0.4.0"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "workflows.core",
|
|
20
|
+
"range": "0.3.0"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"tenancy": "required",
|
|
24
|
+
"locales": ["en", "pl"],
|
|
25
|
+
"stability": "experimental",
|
|
26
|
+
"platformApi": "0.1.0"
|
|
27
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flowdular/module-automations-workflows-integration",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./src/index.ts",
|
|
7
|
+
"./server": "./src/server/index.ts",
|
|
8
|
+
"./platform": "./src/platform.ts",
|
|
9
|
+
"./module.json": "./module.json"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
13
|
+
"test": "vitest run"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@flowdular/contracts": "workspace:*",
|
|
17
|
+
"@flowdular/harness": "workspace:*",
|
|
18
|
+
"@flowdular/kernel": "workspace:*",
|
|
19
|
+
"@flowdular/module-auth": "workspace:*",
|
|
20
|
+
"@flowdular/module-automations": "workspace:*",
|
|
21
|
+
"@flowdular/module-workflows": "workspace:*"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "24.13.3",
|
|
25
|
+
"typescript": "5.9.3",
|
|
26
|
+
"vitest": "4.1.10"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/Flowdular/flowdular.git",
|
|
32
|
+
"directory": "modules/automations-workflows-integration"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"src",
|
|
36
|
+
"schemas",
|
|
37
|
+
"dist",
|
|
38
|
+
"bin",
|
|
39
|
+
"public",
|
|
40
|
+
"module.json",
|
|
41
|
+
"migrations",
|
|
42
|
+
"translations",
|
|
43
|
+
"spec",
|
|
44
|
+
"README.md",
|
|
45
|
+
"LICENSE"
|
|
46
|
+
],
|
|
47
|
+
"private": true
|
|
48
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
schemaVersion: 1
|
|
2
|
+
id: automations-workflows.integration
|
|
3
|
+
specVersion: 0.1.0
|
|
4
|
+
status: approved
|
|
5
|
+
name: Automations Workflow Integration
|
|
6
|
+
description: Connects schedules and signed webhooks owned by automations.core to published workflows through the public workflows.execution.v1 capability.
|
|
7
|
+
profile: integration
|
|
8
|
+
capabilities:
|
|
9
|
+
- integration
|
|
10
|
+
dependencies:
|
|
11
|
+
- id: automations.core
|
|
12
|
+
range: 0.4.0
|
|
13
|
+
- id: workflows.core
|
|
14
|
+
range: 0.3.0
|
|
15
|
+
tenancy: required
|
|
16
|
+
locales:
|
|
17
|
+
- en
|
|
18
|
+
- pl
|
|
19
|
+
invariants:
|
|
20
|
+
- The integration registers one versioned workflow target adapter through the public automations target extension contract and invokes workflows only through workflows.execution.v1.
|
|
21
|
+
- The integration owns no scheduler, polling interval, webhook route, signature verification, secret, workflow worker, execution history, database, HTTP endpoint, client view, or permission.
|
|
22
|
+
- automations.core remains the sole owner of schedule and webhook firing, target configuration, encrypted trigger secrets, configuredBy provenance, permission snapshots, and ingress audit evidence.
|
|
23
|
+
- workflows.core remains the sole owner of workflow selection by published key, exact revision snapshotting, durable enqueue, execution, cancellation, payload evidence, cost, run history, and workflow audit evidence.
|
|
24
|
+
- A schedule or webhook can select a workflow only when the configuring user can read published workflows, execute workflow runs, and satisfy every permission required by the selected published workflow.
|
|
25
|
+
- Automatic schedule and webhook invocations use a service actor for automations.core whose configuredBy field is the real user actor captured when the target was last configured, while schedule or webhook identity remains a separate execution origin.
|
|
26
|
+
- A user selecting Run now on a workflow schedule remains the real workflow actor; automations.core records the schedule correlation and invokes the workflow with module origin automations.core and operation schedules.run-now instead of disguising the user as an automatic service invocation.
|
|
27
|
+
- The workflow permission snapshot is captured by automations.core from trusted authorization context when the target is created or updated and cannot be supplied or widened by a schedule template, webhook body, or integration adapter.
|
|
28
|
+
- A schedule invocation uses the stable tenant-scoped key automations-workflows:schedule:<schedule-id>:<slot>, where slot is the exact persisted due timestamp owned by automations.core.
|
|
29
|
+
- A webhook invocation uses the stable tenant-scoped key automations-workflows:webhook:<trigger-id>:<accepted-signature-digest>, where the digest comes from the already verified signed request and exposes neither the trigger secret nor the request body.
|
|
30
|
+
- Repeating the same schedule slot or accepted signed webhook request resolves to the original workflow run, and a key reused for different workflow input is refused as an idempotency conflict.
|
|
31
|
+
- Schedule input resolves once through automations.core variable rules and must parse as bounded JSON before enqueue; an accepted webhook body must parse as bounded JSON before it is passed unchanged as workflow input.
|
|
32
|
+
- The adapter never accepts tenant, actor, configuredBy, permission, origin, workflow revision, mode, or idempotency fields from user-controlled input.
|
|
33
|
+
- If either required capability is absent, the workflow target is unavailable without weakening agent automations; existing workflow target configuration is retained, automatic firing is skipped with safe audit evidence, and signed webhook callers receive the normal indistinguishable refusal.
|
|
34
|
+
- A missing, archived, unpublished, or newly unauthorized workflow never falls back to another workflow or agent and never substitutes a latest revision selected outside workflows.core.
|
|
35
|
+
- Uninstalling the integration leaves automations.core agent schedules and triggers, workflows.core definitions and runs, and both modules' owned data fully usable and unchanged.
|
|
36
|
+
dataOwnership:
|
|
37
|
+
- automations-workflows.integration owns no persistent records.
|
|
38
|
+
- automations.core owns the target kind, published workflow key reference, schedule input template, webhook ingress, service configuredBy user snapshot, trusted permission snapshot, stable source slot or accepted signature digest, and automation audit correlation.
|
|
39
|
+
- workflows.core owns the workflow run identifier, selected published revision, execution payload, node and edge evidence, usage, cost, status, cancellation, history, and workflow audit correlation.
|
|
40
|
+
- The integration passes stable correlation identifiers between the two owners and never copies private workflow evidence, webhook secrets, credentials, unrestricted bodies, or another module's database records.
|
|
41
|
+
acceptanceScenarios:
|
|
42
|
+
- id: AUTO-WORKFLOW-REGISTER
|
|
43
|
+
given: automations.core, workflows.core, and the integration are composed.
|
|
44
|
+
when: Platform composition completes before module start hooks run.
|
|
45
|
+
then: Exactly one workflow target adapter is available to automations.core, duplicate registration stops boot, and no second scheduler, webhook ingress, or workflow worker starts.
|
|
46
|
+
- id: AUTO-WORKFLOW-OPTIONAL
|
|
47
|
+
given: The integration is not installed or workflows.core is unavailable.
|
|
48
|
+
when: A user opens automations or an automatic trigger becomes due.
|
|
49
|
+
then: Agent targets continue to work, workflow targets are hidden or marked unavailable, existing workflow target configuration is retained, no workflow run is created, and automations records a safe unavailable outcome without reading workflow storage.
|
|
50
|
+
- id: AUTO-WORKFLOW-CONFIGURE
|
|
51
|
+
given: A user can manage the schedule or trigger, read workflow definitions, execute workflow runs, and holds every permission required by a published workflow.
|
|
52
|
+
when: The user selects that workflow as the automation target.
|
|
53
|
+
then: automations.core stores the workflow key, service configuredBy user, trusted permission snapshot, and target input configuration without copying a workflow revision, graph, secret, or execution record.
|
|
54
|
+
- id: AUTO-WORKFLOW-CONFIGURE-DENY
|
|
55
|
+
given: A user lacks automation management, workflow read, workflow execution, or one permission required by the selected workflow.
|
|
56
|
+
when: The user attempts to create or update a workflow schedule or trigger.
|
|
57
|
+
then: automations.core refuses before persisting the target or invoking the adapter, and the integration grants no permission of its own.
|
|
58
|
+
- id: AUTO-WORKFLOW-SCHEDULE
|
|
59
|
+
given: An enabled workflow schedule is due for a persisted slot and its once-resolved input template produces schema-valid bounded JSON.
|
|
60
|
+
when: The automations worker fires that slot more than once because of polling or recovery.
|
|
61
|
+
then: The adapter enqueues one workflow by published key with a schedule origin, automations.core service actor, configuring user, trusted permission snapshot, and the same slot-derived idempotency key, and automations stores the returned run correlation.
|
|
62
|
+
- id: AUTO-WORKFLOW-RUN-NOW
|
|
63
|
+
given: An authorized user selects Run now on a workflow schedule and still holds every permission required by its published workflow.
|
|
64
|
+
when: automations.core asks the adapter to invoke the target with a bounded request identifier.
|
|
65
|
+
then: The adapter uses the real requesting user actor, module origin automations.core with operation schedules.run-now, the caller's current trusted permission snapshot, and a request-derived idempotency key while automations stores the schedule and run correlation.
|
|
66
|
+
- id: AUTO-WORKFLOW-WEBHOOK
|
|
67
|
+
given: An enabled workflow trigger receives a fresh valid signature and a bounded JSON body.
|
|
68
|
+
when: The same signed request is delivered more than once.
|
|
69
|
+
then: automations.core verifies ingress once per delivery, the adapter passes the parsed JSON unchanged with a webhook origin and stable signature-digest key, workflows.core returns the same run, and neither module exposes the secret or raw signature.
|
|
70
|
+
- id: AUTO-WORKFLOW-WEBHOOK-REFUSE
|
|
71
|
+
given: A workflow webhook has an invalid signature, stale timestamp, unknown identifier, disabled target, invalid JSON body, unavailable workflow capability, or workflow refusal.
|
|
72
|
+
when: The public fire route handles the request.
|
|
73
|
+
then: Every case returns the same external refusal, no alternate target runs, and the real bounded reason is stored only in tenant-scoped automation audit evidence.
|
|
74
|
+
- id: AUTO-WORKFLOW-ACTOR
|
|
75
|
+
given: A schedule or signed webhook was configured by a real user and later fires automatically.
|
|
76
|
+
when: Automation audit and workflow run history are inspected.
|
|
77
|
+
then: The automation event and workflow run share stable correlation identifiers, the workflow actor is the automations.core service with that user in configuredBy, and the schedule or trigger identifier appears only in the separate origin.
|
|
78
|
+
- id: AUTO-WORKFLOW-TENANT
|
|
79
|
+
given: Two tenants use the same workflow key and equivalent schedule or trigger identifiers and payloads.
|
|
80
|
+
when: Their automations fire.
|
|
81
|
+
then: Each adapter call uses only its trusted tenant context, idempotency is isolated per tenant, each run resolves that tenant's published workflow, and neither tenant can observe or affect the other's target or run.
|
|
82
|
+
- id: AUTO-WORKFLOW-UNAVAILABLE-TARGET
|
|
83
|
+
given: A configured workflow is archived, unpublished, missing, or no longer authorized by the stored permission snapshot.
|
|
84
|
+
when: Its schedule or webhook attempts to fire.
|
|
85
|
+
then: workflows.core refuses with its stable code, no fallback target or revision is selected, automations records a safe correlated failure, and the schedule or trigger is made visibly unavailable until an authorized user updates it.
|
|
86
|
+
- id: AUTO-WORKFLOW-IDEMPOTENCY-CONFLICT
|
|
87
|
+
given: An automation source reuses a persisted slot or accepted signature digest with a different workflow key or parsed input hash.
|
|
88
|
+
when: The adapter calls workflows.execution.v1 with the existing idempotency key.
|
|
89
|
+
then: workflows.core returns WORKFLOW_IDEMPOTENCY_CONFLICT, no second run is created, and automations records the refusal without retrying under a new key.
|
|
90
|
+
- id: AUTO-WORKFLOW-BOUNDARY
|
|
91
|
+
given: A workflow automation succeeds, fails, is refused, or is cancelled after durable enqueue.
|
|
92
|
+
when: The automation source reads its last outcome.
|
|
93
|
+
then: automations stores only target and run correlation plus a safe status summary, workflows retains the complete execution history, and the integration writes no duplicate run, audit, payload, usage, cost, or secret record.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ModuleManifest, RegisteredModule } from '@flowdular/sdk/contracts';
|
|
2
|
+
import manifest from '../module.json' with { type: 'json' };
|
|
3
|
+
|
|
4
|
+
export const moduleDefinition = {
|
|
5
|
+
manifest: manifest as ModuleManifest,
|
|
6
|
+
navigation: [],
|
|
7
|
+
permissions: [],
|
|
8
|
+
} satisfies RegisteredModule;
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
createWorkflowAutomationTargetAdapter,
|
|
12
|
+
registerAutomationsWorkflowsIntegration,
|
|
13
|
+
WorkflowAutomationTargetError,
|
|
14
|
+
} from './server/adapter.ts';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
PlatformServerComposition,
|
|
3
|
+
PlatformServerContext,
|
|
4
|
+
} from '@flowdular/sdk/modules/auth/server';
|
|
5
|
+
import {
|
|
6
|
+
AUTOMATION_EXECUTION_CAPABILITY,
|
|
7
|
+
type AutomationExecutionCapability,
|
|
8
|
+
} from '@flowdular/sdk/modules/automations/server';
|
|
9
|
+
import { registerAutomationsWorkflowsIntegration } from './server/adapter.ts';
|
|
10
|
+
import { createAutomationWorkflowActionTools } from './server/tools.ts';
|
|
11
|
+
|
|
12
|
+
export function createServerComposition(
|
|
13
|
+
context: PlatformServerContext,
|
|
14
|
+
): PlatformServerComposition {
|
|
15
|
+
registerAutomationsWorkflowsIntegration(context.capabilities);
|
|
16
|
+
context.agentTools.register(
|
|
17
|
+
createAutomationWorkflowActionTools(() =>
|
|
18
|
+
context.capabilities.get<AutomationExecutionCapability>(
|
|
19
|
+
AUTOMATION_EXECUTION_CAPABILITY,
|
|
20
|
+
),
|
|
21
|
+
),
|
|
22
|
+
);
|
|
23
|
+
return { routes: [] };
|
|
24
|
+
}
|