codika 3.0.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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/cli/commands/completion.d.ts +15 -0
- package/dist/cli/commands/completion.d.ts.map +1 -0
- package/dist/cli/commands/completion.js +810 -0
- package/dist/cli/commands/completion.js.map +1 -0
- package/dist/cli/commands/config/clear.d.ts +12 -0
- package/dist/cli/commands/config/clear.d.ts.map +1 -0
- package/dist/cli/commands/config/clear.js +35 -0
- package/dist/cli/commands/config/clear.js.map +1 -0
- package/dist/cli/commands/config/index.d.ts +15 -0
- package/dist/cli/commands/config/index.d.ts.map +1 -0
- package/dist/cli/commands/config/index.js +21 -0
- package/dist/cli/commands/config/index.js.map +1 -0
- package/dist/cli/commands/config/set.d.ts +41 -0
- package/dist/cli/commands/config/set.d.ts.map +1 -0
- package/dist/cli/commands/config/set.js +185 -0
- package/dist/cli/commands/config/set.js.map +1 -0
- package/dist/cli/commands/config/show.d.ts +12 -0
- package/dist/cli/commands/config/show.d.ts.map +1 -0
- package/dist/cli/commands/config/show.js +45 -0
- package/dist/cli/commands/config/show.js.map +1 -0
- package/dist/cli/commands/deploy/documents.d.ts +12 -0
- package/dist/cli/commands/deploy/documents.d.ts.map +1 -0
- package/dist/cli/commands/deploy/documents.js +217 -0
- package/dist/cli/commands/deploy/documents.js.map +1 -0
- package/dist/cli/commands/deploy/index.d.ts +14 -0
- package/dist/cli/commands/deploy/index.d.ts.map +1 -0
- package/dist/cli/commands/deploy/index.js +21 -0
- package/dist/cli/commands/deploy/index.js.map +1 -0
- package/dist/cli/commands/deploy/process-data-ingestion.d.ts +13 -0
- package/dist/cli/commands/deploy/process-data-ingestion.d.ts.map +1 -0
- package/dist/cli/commands/deploy/process-data-ingestion.js +226 -0
- package/dist/cli/commands/deploy/process-data-ingestion.js.map +1 -0
- package/dist/cli/commands/deploy/use-case.d.ts +9 -0
- package/dist/cli/commands/deploy/use-case.d.ts.map +1 -0
- package/dist/cli/commands/deploy/use-case.js +212 -0
- package/dist/cli/commands/deploy/use-case.js.map +1 -0
- package/dist/cli/commands/get/execution.d.ts +9 -0
- package/dist/cli/commands/get/execution.d.ts.map +1 -0
- package/dist/cli/commands/get/execution.js +159 -0
- package/dist/cli/commands/get/execution.js.map +1 -0
- package/dist/cli/commands/get/index.d.ts +13 -0
- package/dist/cli/commands/get/index.d.ts.map +1 -0
- package/dist/cli/commands/get/index.js +20 -0
- package/dist/cli/commands/get/index.js.map +1 -0
- package/dist/cli/commands/get/skills.d.ts +15 -0
- package/dist/cli/commands/get/skills.d.ts.map +1 -0
- package/dist/cli/commands/get/skills.js +135 -0
- package/dist/cli/commands/get/skills.js.map +1 -0
- package/dist/cli/commands/get/use-case.d.ts +9 -0
- package/dist/cli/commands/get/use-case.d.ts.map +1 -0
- package/dist/cli/commands/get/use-case.js +186 -0
- package/dist/cli/commands/get/use-case.js.map +1 -0
- package/dist/cli/commands/init.d.ts +14 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +347 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/integration/delete.d.ts +13 -0
- package/dist/cli/commands/integration/delete.d.ts.map +1 -0
- package/dist/cli/commands/integration/delete.js +140 -0
- package/dist/cli/commands/integration/delete.js.map +1 -0
- package/dist/cli/commands/integration/index.d.ts +13 -0
- package/dist/cli/commands/integration/index.d.ts.map +1 -0
- package/dist/cli/commands/integration/index.js +20 -0
- package/dist/cli/commands/integration/index.js.map +1 -0
- package/dist/cli/commands/integration/list.d.ts +13 -0
- package/dist/cli/commands/integration/list.d.ts.map +1 -0
- package/dist/cli/commands/integration/list.js +129 -0
- package/dist/cli/commands/integration/list.js.map +1 -0
- package/dist/cli/commands/integration/set.d.ts +13 -0
- package/dist/cli/commands/integration/set.d.ts.map +1 -0
- package/dist/cli/commands/integration/set.js +253 -0
- package/dist/cli/commands/integration/set.js.map +1 -0
- package/dist/cli/commands/list/executions.d.ts +12 -0
- package/dist/cli/commands/list/executions.d.ts.map +1 -0
- package/dist/cli/commands/list/executions.js +168 -0
- package/dist/cli/commands/list/executions.js.map +1 -0
- package/dist/cli/commands/list/index.d.ts +11 -0
- package/dist/cli/commands/list/index.d.ts.map +1 -0
- package/dist/cli/commands/list/index.js +14 -0
- package/dist/cli/commands/list/index.js.map +1 -0
- package/dist/cli/commands/logout.d.ts +12 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/logout.js +58 -0
- package/dist/cli/commands/logout.js.map +1 -0
- package/dist/cli/commands/project/create.d.ts +8 -0
- package/dist/cli/commands/project/create.d.ts.map +1 -0
- package/dist/cli/commands/project/create.js +109 -0
- package/dist/cli/commands/project/create.js.map +1 -0
- package/dist/cli/commands/project/index.d.ts +12 -0
- package/dist/cli/commands/project/index.d.ts.map +1 -0
- package/dist/cli/commands/project/index.js +15 -0
- package/dist/cli/commands/project/index.js.map +1 -0
- package/dist/cli/commands/publish.d.ts +12 -0
- package/dist/cli/commands/publish.d.ts.map +1 -0
- package/dist/cli/commands/publish.js +152 -0
- package/dist/cli/commands/publish.js.map +1 -0
- package/dist/cli/commands/redeploy.d.ts +11 -0
- package/dist/cli/commands/redeploy.d.ts.map +1 -0
- package/dist/cli/commands/redeploy.js +166 -0
- package/dist/cli/commands/redeploy.js.map +1 -0
- package/dist/cli/commands/status.d.ts +63 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +290 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/trigger.d.ts +8 -0
- package/dist/cli/commands/trigger.d.ts.map +1 -0
- package/dist/cli/commands/trigger.js +247 -0
- package/dist/cli/commands/trigger.js.map +1 -0
- package/dist/cli/commands/use.d.ts +13 -0
- package/dist/cli/commands/use.d.ts.map +1 -0
- package/dist/cli/commands/use.js +92 -0
- package/dist/cli/commands/use.js.map +1 -0
- package/dist/cli/commands/verify/index.d.ts +13 -0
- package/dist/cli/commands/verify/index.d.ts.map +1 -0
- package/dist/cli/commands/verify/index.js +18 -0
- package/dist/cli/commands/verify/index.js.map +1 -0
- package/dist/cli/commands/verify/use-case.d.ts +23 -0
- package/dist/cli/commands/verify/use-case.d.ts.map +1 -0
- package/dist/cli/commands/verify/use-case.js +94 -0
- package/dist/cli/commands/verify/use-case.js.map +1 -0
- package/dist/cli/commands/verify/workflow.d.ts +22 -0
- package/dist/cli/commands/verify/workflow.d.ts.map +1 -0
- package/dist/cli/commands/verify/workflow.js +82 -0
- package/dist/cli/commands/verify/workflow.js.map +1 -0
- package/dist/cli/commands/whoami.d.ts +13 -0
- package/dist/cli/commands/whoami.d.ts.map +1 -0
- package/dist/cli/commands/whoami.js +126 -0
- package/dist/cli/commands/whoami.js.map +1 -0
- package/dist/cli/index.d.ts +24 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +90 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/templates/claude-md-template.d.ts +12 -0
- package/dist/cli/templates/claude-md-template.d.ts.map +1 -0
- package/dist/cli/templates/claude-md-template.js +162 -0
- package/dist/cli/templates/claude-md-template.js.map +1 -0
- package/dist/cli/templates/config-template.d.ts +18 -0
- package/dist/cli/templates/config-template.d.ts.map +1 -0
- package/dist/cli/templates/config-template.js +350 -0
- package/dist/cli/templates/config-template.js.map +1 -0
- package/dist/cli/templates/skill-templates.d.ts +24 -0
- package/dist/cli/templates/skill-templates.d.ts.map +1 -0
- package/dist/cli/templates/skill-templates.js +117 -0
- package/dist/cli/templates/skill-templates.js.map +1 -0
- package/dist/cli/templates/slug.d.ts +9 -0
- package/dist/cli/templates/slug.d.ts.map +1 -0
- package/dist/cli/templates/slug.js +17 -0
- package/dist/cli/templates/slug.js.map +1 -0
- package/dist/cli/templates/workflow-templates.d.ts +693 -0
- package/dist/cli/templates/workflow-templates.d.ts.map +1 -0
- package/dist/cli/templates/workflow-templates.js +516 -0
- package/dist/cli/templates/workflow-templates.js.map +1 -0
- package/dist/cli/utils/output.d.ts +65 -0
- package/dist/cli/utils/output.d.ts.map +1 -0
- package/dist/cli/utils/output.js +188 -0
- package/dist/cli/utils/output.js.map +1 -0
- package/dist/cli/utils/validation-output.d.ts +21 -0
- package/dist/cli/utils/validation-output.d.ts.map +1 -0
- package/dist/cli/utils/validation-output.js +204 -0
- package/dist/cli/utils/validation-output.js.map +1 -0
- package/dist/data/integration-fields.d.ts +27 -0
- package/dist/data/integration-fields.d.ts.map +1 -0
- package/dist/data/integration-fields.js +361 -0
- package/dist/data/integration-fields.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/types/process-types.d.ts +740 -0
- package/dist/types/process-types.d.ts.map +1 -0
- package/dist/types/process-types.js +22 -0
- package/dist/types/process-types.js.map +1 -0
- package/dist/utils/config.d.ts +127 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +315 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/data-ingestion-deploy-client.d.ts +53 -0
- package/dist/utils/data-ingestion-deploy-client.d.ts.map +1 -0
- package/dist/utils/data-ingestion-deploy-client.js +63 -0
- package/dist/utils/data-ingestion-deploy-client.js.map +1 -0
- package/dist/utils/data-ingestion-deployer.d.ts +78 -0
- package/dist/utils/data-ingestion-deployer.d.ts.map +1 -0
- package/dist/utils/data-ingestion-deployer.js +119 -0
- package/dist/utils/data-ingestion-deployer.js.map +1 -0
- package/dist/utils/deploy-client.d.ts +55 -0
- package/dist/utils/deploy-client.d.ts.map +1 -0
- package/dist/utils/deploy-client.js +73 -0
- package/dist/utils/deploy-client.js.map +1 -0
- package/dist/utils/deployment-archiver.d.ts +110 -0
- package/dist/utils/deployment-archiver.d.ts.map +1 -0
- package/dist/utils/deployment-archiver.js +158 -0
- package/dist/utils/deployment-archiver.js.map +1 -0
- package/dist/utils/document-deploy-client.d.ts +41 -0
- package/dist/utils/document-deploy-client.d.ts.map +1 -0
- package/dist/utils/document-deploy-client.js +46 -0
- package/dist/utils/document-deploy-client.js.map +1 -0
- package/dist/utils/encryption.d.ts +85 -0
- package/dist/utils/encryption.d.ts.map +1 -0
- package/dist/utils/encryption.js +162 -0
- package/dist/utils/encryption.js.map +1 -0
- package/dist/utils/execution-client.d.ts +71 -0
- package/dist/utils/execution-client.d.ts.map +1 -0
- package/dist/utils/execution-client.js +56 -0
- package/dist/utils/execution-client.js.map +1 -0
- package/dist/utils/integration-client.d.ts +134 -0
- package/dist/utils/integration-client.d.ts.map +1 -0
- package/dist/utils/integration-client.js +109 -0
- package/dist/utils/integration-client.js.map +1 -0
- package/dist/utils/list-executions-client.d.ts +47 -0
- package/dist/utils/list-executions-client.d.ts.map +1 -0
- package/dist/utils/list-executions-client.js +50 -0
- package/dist/utils/list-executions-client.js.map +1 -0
- package/dist/utils/metadata-client.d.ts +90 -0
- package/dist/utils/metadata-client.d.ts.map +1 -0
- package/dist/utils/metadata-client.js +66 -0
- package/dist/utils/metadata-client.js.map +1 -0
- package/dist/utils/project-client.d.ts +70 -0
- package/dist/utils/project-client.d.ts.map +1 -0
- package/dist/utils/project-client.js +63 -0
- package/dist/utils/project-client.js.map +1 -0
- package/dist/utils/project-json.d.ts +71 -0
- package/dist/utils/project-json.d.ts.map +1 -0
- package/dist/utils/project-json.js +129 -0
- package/dist/utils/project-json.js.map +1 -0
- package/dist/utils/publish-client.d.ts +53 -0
- package/dist/utils/publish-client.d.ts.map +1 -0
- package/dist/utils/publish-client.js +64 -0
- package/dist/utils/publish-client.js.map +1 -0
- package/dist/utils/redeploy-client.d.ts +39 -0
- package/dist/utils/redeploy-client.d.ts.map +1 -0
- package/dist/utils/redeploy-client.js +51 -0
- package/dist/utils/redeploy-client.js.map +1 -0
- package/dist/utils/skill-parser.d.ts +52 -0
- package/dist/utils/skill-parser.d.ts.map +1 -0
- package/dist/utils/skill-parser.js +127 -0
- package/dist/utils/skill-parser.js.map +1 -0
- package/dist/utils/skills-client.d.ts +39 -0
- package/dist/utils/skills-client.d.ts.map +1 -0
- package/dist/utils/skills-client.js +32 -0
- package/dist/utils/skills-client.js.map +1 -0
- package/dist/utils/trigger-client.d.ts +78 -0
- package/dist/utils/trigger-client.d.ts.map +1 -0
- package/dist/utils/trigger-client.js +81 -0
- package/dist/utils/trigger-client.js.map +1 -0
- package/dist/utils/use-case-deployer.d.ts +93 -0
- package/dist/utils/use-case-deployer.d.ts.map +1 -0
- package/dist/utils/use-case-deployer.js +270 -0
- package/dist/utils/use-case-deployer.js.map +1 -0
- package/dist/utils/version-manager.d.ts +63 -0
- package/dist/utils/version-manager.d.ts.map +1 -0
- package/dist/utils/version-manager.js +91 -0
- package/dist/utils/version-manager.js.map +1 -0
- package/dist/utils/workflow-encoding.d.ts +26 -0
- package/dist/utils/workflow-encoding.d.ts.map +1 -0
- package/dist/utils/workflow-encoding.js +41 -0
- package/dist/utils/workflow-encoding.js.map +1 -0
- package/dist/validation/fixer.d.ts +56 -0
- package/dist/validation/fixer.d.ts.map +1 -0
- package/dist/validation/fixer.js +168 -0
- package/dist/validation/fixer.js.map +1 -0
- package/dist/validation/rules/codika-init-required.d.ts +18 -0
- package/dist/validation/rules/codika-init-required.d.ts.map +1 -0
- package/dist/validation/rules/codika-init-required.js +70 -0
- package/dist/validation/rules/codika-init-required.js.map +1 -0
- package/dist/validation/rules/codika-submit-result.d.ts +22 -0
- package/dist/validation/rules/codika-submit-result.d.ts.map +1 -0
- package/dist/validation/rules/codika-submit-result.js +144 -0
- package/dist/validation/rules/codika-submit-result.js.map +1 -0
- package/dist/validation/rules/error-branch-required.d.ts +24 -0
- package/dist/validation/rules/error-branch-required.d.ts.map +1 -0
- package/dist/validation/rules/error-branch-required.js +103 -0
- package/dist/validation/rules/error-branch-required.js.map +1 -0
- package/dist/validation/rules/index.d.ts +18 -0
- package/dist/validation/rules/index.d.ts.map +1 -0
- package/dist/validation/rules/index.js +28 -0
- package/dist/validation/rules/index.js.map +1 -0
- package/dist/validation/rules/schedule-webhook-convergence.d.ts +24 -0
- package/dist/validation/rules/schedule-webhook-convergence.d.ts.map +1 -0
- package/dist/validation/rules/schedule-webhook-convergence.js +129 -0
- package/dist/validation/rules/schedule-webhook-convergence.js.map +1 -0
- package/dist/validation/rules/subworkflow-min-params.d.ts +21 -0
- package/dist/validation/rules/subworkflow-min-params.d.ts.map +1 -0
- package/dist/validation/rules/subworkflow-min-params.js +84 -0
- package/dist/validation/rules/subworkflow-min-params.js.map +1 -0
- package/dist/validation/runner.d.ts +43 -0
- package/dist/validation/runner.d.ts.map +1 -0
- package/dist/validation/runner.js +335 -0
- package/dist/validation/runner.js.map +1 -0
- package/dist/validation/types.d.ts +155 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +8 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/use-case-scripts/calledby-consistency.d.ts +23 -0
- package/dist/validation/use-case-scripts/calledby-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/calledby-consistency.js +236 -0
- package/dist/validation/use-case-scripts/calledby-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/config-exports.d.ts +17 -0
- package/dist/validation/use-case-scripts/config-exports.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/config-exports.js +93 -0
- package/dist/validation/use-case-scripts/config-exports.js.map +1 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.d.ts +21 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.js +378 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.js.map +1 -0
- package/dist/validation/use-case-scripts/index.d.ts +27 -0
- package/dist/validation/use-case-scripts/index.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/index.js +52 -0
- package/dist/validation/use-case-scripts/index.js.map +1 -0
- package/dist/validation/use-case-scripts/integration-inheritance.d.ts +35 -0
- package/dist/validation/use-case-scripts/integration-inheritance.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/integration-inheritance.js +348 -0
- package/dist/validation/use-case-scripts/integration-inheritance.js.map +1 -0
- package/dist/validation/use-case-scripts/schema-types.d.ts +21 -0
- package/dist/validation/use-case-scripts/schema-types.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/schema-types.js +134 -0
- package/dist/validation/use-case-scripts/schema-types.js.map +1 -0
- package/dist/validation/use-case-scripts/skill-consistency.d.ts +21 -0
- package/dist/validation/use-case-scripts/skill-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/skill-consistency.js +180 -0
- package/dist/validation/use-case-scripts/skill-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/subworkflow-references.d.ts +22 -0
- package/dist/validation/use-case-scripts/subworkflow-references.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/subworkflow-references.js +139 -0
- package/dist/validation/use-case-scripts/subworkflow-references.js.map +1 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.d.ts +25 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.js +265 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/trigger-types.d.ts +20 -0
- package/dist/validation/use-case-scripts/trigger-types.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/trigger-types.js +177 -0
- package/dist/validation/use-case-scripts/trigger-types.js.map +1 -0
- package/dist/validation/use-case-scripts/triggers-required.d.ts +23 -0
- package/dist/validation/use-case-scripts/triggers-required.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/triggers-required.js +111 -0
- package/dist/validation/use-case-scripts/triggers-required.js.map +1 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.d.ts +28 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.js +288 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/workflow-imports.d.ts +16 -0
- package/dist/validation/use-case-scripts/workflow-imports.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/workflow-imports.js +206 -0
- package/dist/validation/use-case-scripts/workflow-imports.js.map +1 -0
- package/dist/validation/workflow-scripts/credential-placeholders.d.ts +21 -0
- package/dist/validation/workflow-scripts/credential-placeholders.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/credential-placeholders.js +278 -0
- package/dist/validation/workflow-scripts/credential-placeholders.js.map +1 -0
- package/dist/validation/workflow-scripts/db-always-output.d.ts +16 -0
- package/dist/validation/workflow-scripts/db-always-output.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/db-always-output.js +95 -0
- package/dist/validation/workflow-scripts/db-always-output.js.map +1 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.d.ts +15 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.js +85 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.js.map +1 -0
- package/dist/validation/workflow-scripts/index.d.ts +31 -0
- package/dist/validation/workflow-scripts/index.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/index.js +58 -0
- package/dist/validation/workflow-scripts/index.js.map +1 -0
- package/dist/validation/workflow-scripts/instparm-quoting.d.ts +21 -0
- package/dist/validation/workflow-scripts/instparm-quoting.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/instparm-quoting.js +59 -0
- package/dist/validation/workflow-scripts/instparm-quoting.js.map +1 -0
- package/dist/validation/workflow-scripts/llm-model-id.d.ts +17 -0
- package/dist/validation/workflow-scripts/llm-model-id.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/llm-model-id.js +171 -0
- package/dist/validation/workflow-scripts/llm-model-id.js.map +1 -0
- package/dist/validation/workflow-scripts/llm-output-access.d.ts +23 -0
- package/dist/validation/workflow-scripts/llm-output-access.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/llm-output-access.js +274 -0
- package/dist/validation/workflow-scripts/llm-output-access.js.map +1 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.d.ts +20 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.js +87 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.js.map +1 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.d.ts +29 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.js +154 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.js.map +1 -0
- package/dist/validation/workflow-scripts/retry-backoff.d.ts +16 -0
- package/dist/validation/workflow-scripts/retry-backoff.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/retry-backoff.js +197 -0
- package/dist/validation/workflow-scripts/retry-backoff.js.map +1 -0
- package/dist/validation/workflow-scripts/webhook-id.d.ts +17 -0
- package/dist/validation/workflow-scripts/webhook-id.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/webhook-id.js +79 -0
- package/dist/validation/workflow-scripts/webhook-id.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-format.d.ts +16 -0
- package/dist/validation/workflow-scripts/workflow-format.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-format.js +51 -0
- package/dist/validation/workflow-scripts/workflow-format.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.d.ts +21 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.js +78 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-settings.d.ts +19 -0
- package/dist/validation/workflow-scripts/workflow-settings.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-settings.js +131 -0
- package/dist/validation/workflow-scripts/workflow-settings.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config Template Generator
|
|
3
|
+
*
|
|
4
|
+
* Generates a config.ts file for a new use case following the patterns
|
|
5
|
+
* established in simple-translator and subworkflow-demo.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Generate a complete config.ts file as a string.
|
|
9
|
+
*/
|
|
10
|
+
export function generateConfigTs(params) {
|
|
11
|
+
const { name, slug, description, icon, withDataIngestion } = params;
|
|
12
|
+
const dataIngestionImport = withDataIngestion
|
|
13
|
+
? `\n type ProcessDataIngestionConfigInput,`
|
|
14
|
+
: '';
|
|
15
|
+
return `/**
|
|
16
|
+
* ${name} - Configuration
|
|
17
|
+
*
|
|
18
|
+
* Generated by codika init.
|
|
19
|
+
* Edit this file to customize your use case deployment configuration.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { dirname, join } from 'path';
|
|
23
|
+
import { fileURLToPath } from 'url';
|
|
24
|
+
import {
|
|
25
|
+
loadAndEncodeWorkflow,
|
|
26
|
+
type FormInputSchema,
|
|
27
|
+
type FormOutputSchema,
|
|
28
|
+
type HttpTrigger,
|
|
29
|
+
type ScheduleTrigger,
|
|
30
|
+
type SubworkflowTrigger,
|
|
31
|
+
type ProcessDeploymentConfigurationInput,${dataIngestionImport}
|
|
32
|
+
} from 'codika';
|
|
33
|
+
|
|
34
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
35
|
+
const __dirname = dirname(__filename);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* List of workflow files for archiving and metadata
|
|
39
|
+
*/
|
|
40
|
+
export const WORKFLOW_FILES = [
|
|
41
|
+
join(__dirname, 'workflows/main-workflow.json'),
|
|
42
|
+
join(__dirname, 'workflows/scheduled-report.json'),
|
|
43
|
+
join(__dirname, 'workflows/text-processor.json'),
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get the complete deployment configuration for this use case
|
|
48
|
+
*/
|
|
49
|
+
export function getConfiguration(): ProcessDeploymentConfigurationInput {
|
|
50
|
+
const httpTriggerId = crypto.randomUUID();
|
|
51
|
+
const scheduleTriggerId = crypto.randomUUID();
|
|
52
|
+
const subworkflowTriggerId = crypto.randomUUID();
|
|
53
|
+
|
|
54
|
+
// URL patterns with placeholders
|
|
55
|
+
const webhookUrl = \`{{ORGSECRET_N8N_BASE_URL_TERCESORG}}/webhook/{{PROCDATA_PROCESS_ID_ATADCORP}}/{{USERDATA_PROCESS_INSTANCE_UID_ATADRESU}}/${slug}\`;
|
|
56
|
+
const manualTriggerUrl = \`{{ORGSECRET_N8N_BASE_URL_TERCESORG}}/webhook/{{PROCDATA_PROCESS_ID_ATADCORP}}/{{USERDATA_PROCESS_INSTANCE_UID_ATADRESU}}/${slug}-report\`;
|
|
57
|
+
|
|
58
|
+
// Load and encode workflows
|
|
59
|
+
const mainWorkflowBase64 = loadAndEncodeWorkflow(
|
|
60
|
+
join(__dirname, 'workflows/main-workflow.json')
|
|
61
|
+
);
|
|
62
|
+
const scheduledReportBase64 = loadAndEncodeWorkflow(
|
|
63
|
+
join(__dirname, 'workflows/scheduled-report.json')
|
|
64
|
+
);
|
|
65
|
+
const textProcessorBase64 = loadAndEncodeWorkflow(
|
|
66
|
+
join(__dirname, 'workflows/text-processor.json')
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const workflows = [
|
|
70
|
+
// Main workflow - user-facing HTTP trigger
|
|
71
|
+
{
|
|
72
|
+
workflowTemplateId: 'main-workflow',
|
|
73
|
+
workflowId: 'main-workflow',
|
|
74
|
+
workflowName: 'Main Workflow',
|
|
75
|
+
markdownInfo: getMainWorkflowMarkdown(),
|
|
76
|
+
knowledgeBaseAccess: {
|
|
77
|
+
processDocTags: [],
|
|
78
|
+
processInstanceDocTags: [],
|
|
79
|
+
},
|
|
80
|
+
integrationUids: [] as string[],
|
|
81
|
+
triggers: [
|
|
82
|
+
{
|
|
83
|
+
triggerId: httpTriggerId,
|
|
84
|
+
type: 'http' as const,
|
|
85
|
+
url: webhookUrl,
|
|
86
|
+
method: 'POST' as const,
|
|
87
|
+
title: 'Process Text',
|
|
88
|
+
description: 'Submit text to be processed',
|
|
89
|
+
inputSchema: getInputSchema(),
|
|
90
|
+
} satisfies HttpTrigger,
|
|
91
|
+
],
|
|
92
|
+
outputSchema: getOutputSchema(),
|
|
93
|
+
n8nWorkflowJsonBase64: mainWorkflowBase64,
|
|
94
|
+
cost: 1,
|
|
95
|
+
},
|
|
96
|
+
// Scheduled report workflow
|
|
97
|
+
{
|
|
98
|
+
workflowTemplateId: 'scheduled-report',
|
|
99
|
+
workflowId: 'scheduled-report',
|
|
100
|
+
workflowName: 'Scheduled Report',
|
|
101
|
+
markdownInfo: getScheduledReportMarkdown(),
|
|
102
|
+
knowledgeBaseAccess: {
|
|
103
|
+
processDocTags: [],
|
|
104
|
+
processInstanceDocTags: [],
|
|
105
|
+
},
|
|
106
|
+
integrationUids: [] as string[],
|
|
107
|
+
triggers: [
|
|
108
|
+
{
|
|
109
|
+
triggerId: scheduleTriggerId,
|
|
110
|
+
type: 'schedule' as const,
|
|
111
|
+
cronExpression: '0 9 * * 1',
|
|
112
|
+
timezone: 'Europe/Amsterdam',
|
|
113
|
+
humanReadable: 'Every Monday at 9:00 AM',
|
|
114
|
+
manualTriggerUrl: manualTriggerUrl,
|
|
115
|
+
title: 'Weekly Report',
|
|
116
|
+
description: 'Generates a report every Monday at 9 AM',
|
|
117
|
+
} satisfies ScheduleTrigger,
|
|
118
|
+
],
|
|
119
|
+
outputSchema: getReportOutputSchema(),
|
|
120
|
+
n8nWorkflowJsonBase64: scheduledReportBase64,
|
|
121
|
+
cost: 1,
|
|
122
|
+
},
|
|
123
|
+
// Text processor sub-workflow (called by main workflow)
|
|
124
|
+
{
|
|
125
|
+
workflowTemplateId: 'text-processor',
|
|
126
|
+
workflowId: 'text-processor',
|
|
127
|
+
workflowName: 'Text Processor',
|
|
128
|
+
markdownInfo: getTextProcessorMarkdown(),
|
|
129
|
+
knowledgeBaseAccess: {
|
|
130
|
+
processDocTags: [],
|
|
131
|
+
processInstanceDocTags: [],
|
|
132
|
+
},
|
|
133
|
+
integrationUids: [] as string[],
|
|
134
|
+
triggers: [
|
|
135
|
+
{
|
|
136
|
+
triggerId: subworkflowTriggerId,
|
|
137
|
+
type: 'subworkflow' as const,
|
|
138
|
+
title: 'Process Text',
|
|
139
|
+
description: 'Called by Main Workflow to process text',
|
|
140
|
+
inputSchema: [{ name: 'text', type: 'string' as const }],
|
|
141
|
+
calledBy: ['main-workflow'],
|
|
142
|
+
} satisfies SubworkflowTrigger,
|
|
143
|
+
],
|
|
144
|
+
outputSchema: [] as FormOutputSchema,
|
|
145
|
+
n8nWorkflowJsonBase64: textProcessorBase64,
|
|
146
|
+
cost: 0, // Sub-workflows don't cost credits
|
|
147
|
+
},
|
|
148
|
+
];
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
title: ${JSON.stringify(name)},
|
|
152
|
+
subtitle: ${JSON.stringify(description)},
|
|
153
|
+
description: ${JSON.stringify(description)},
|
|
154
|
+
workflows,
|
|
155
|
+
processDeploymentMarkdown: getProcessMarkdown(),
|
|
156
|
+
tags: ['demo'],
|
|
157
|
+
integrationUids: [],
|
|
158
|
+
icon: ${JSON.stringify(icon)},
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// ============================================================================
|
|
163
|
+
// Schema Definitions
|
|
164
|
+
// ============================================================================
|
|
165
|
+
|
|
166
|
+
function getInputSchema(): FormInputSchema {
|
|
167
|
+
return [
|
|
168
|
+
{
|
|
169
|
+
key: 'text',
|
|
170
|
+
type: 'text',
|
|
171
|
+
label: 'Text',
|
|
172
|
+
description: 'Enter the text to process',
|
|
173
|
+
placeholder: 'Enter text...',
|
|
174
|
+
required: true,
|
|
175
|
+
maxLength: 5000,
|
|
176
|
+
rows: 4,
|
|
177
|
+
},
|
|
178
|
+
];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function getOutputSchema(): FormOutputSchema {
|
|
182
|
+
return [
|
|
183
|
+
{
|
|
184
|
+
key: 'result',
|
|
185
|
+
type: 'text',
|
|
186
|
+
label: 'Result',
|
|
187
|
+
description: 'The processed result',
|
|
188
|
+
required: true,
|
|
189
|
+
rows: 4,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
key: 'processedAt',
|
|
193
|
+
type: 'string',
|
|
194
|
+
label: 'Processed At',
|
|
195
|
+
description: 'Timestamp of processing',
|
|
196
|
+
required: true,
|
|
197
|
+
maxLength: 100,
|
|
198
|
+
},
|
|
199
|
+
];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function getReportOutputSchema(): FormOutputSchema {
|
|
203
|
+
return [
|
|
204
|
+
{
|
|
205
|
+
key: 'title',
|
|
206
|
+
type: 'string',
|
|
207
|
+
label: 'Report Title',
|
|
208
|
+
required: true,
|
|
209
|
+
maxLength: 200,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
key: 'summary',
|
|
213
|
+
type: 'text',
|
|
214
|
+
label: 'Summary',
|
|
215
|
+
required: true,
|
|
216
|
+
rows: 4,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
key: 'generatedAt',
|
|
220
|
+
type: 'string',
|
|
221
|
+
label: 'Generated At',
|
|
222
|
+
required: true,
|
|
223
|
+
maxLength: 100,
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// ============================================================================
|
|
229
|
+
// Markdown Documentation
|
|
230
|
+
// ============================================================================
|
|
231
|
+
|
|
232
|
+
function getMainWorkflowMarkdown(): string {
|
|
233
|
+
return \`# Main Workflow
|
|
234
|
+
|
|
235
|
+
## Purpose
|
|
236
|
+
Receives text input via HTTP and delegates processing to the text-processor sub-workflow.
|
|
237
|
+
|
|
238
|
+
## How It Works
|
|
239
|
+
1. User submits text via the HTTP trigger
|
|
240
|
+
2. Input is validated
|
|
241
|
+
3. Text is sent to the text-processor sub-workflow
|
|
242
|
+
4. Processed result is returned
|
|
243
|
+
|
|
244
|
+
## Input
|
|
245
|
+
- **Text**: The text to process
|
|
246
|
+
|
|
247
|
+
## Output
|
|
248
|
+
- **Result**: The processed text
|
|
249
|
+
- **Processed At**: Timestamp of processing\`;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function getScheduledReportMarkdown(): string {
|
|
253
|
+
return \`# Scheduled Report
|
|
254
|
+
|
|
255
|
+
## Purpose
|
|
256
|
+
Generates a report on a recurring schedule (every Monday at 9 AM).
|
|
257
|
+
|
|
258
|
+
## How It Works
|
|
259
|
+
1. Schedule trigger fires automatically
|
|
260
|
+
2. Report is generated
|
|
261
|
+
3. Result is submitted
|
|
262
|
+
|
|
263
|
+
## Output
|
|
264
|
+
- **Title**: Report title
|
|
265
|
+
- **Summary**: Report summary
|
|
266
|
+
- **Generated At**: Timestamp\`;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function getTextProcessorMarkdown(): string {
|
|
270
|
+
return \`# Text Processor (Sub-Workflow)
|
|
271
|
+
|
|
272
|
+
## Purpose
|
|
273
|
+
Called by the main workflow to process text. Not directly accessible by users.
|
|
274
|
+
|
|
275
|
+
## How It Works
|
|
276
|
+
1. Receives text from the parent workflow
|
|
277
|
+
2. Processes the text (uppercase + timestamp)
|
|
278
|
+
3. Returns the result to the parent
|
|
279
|
+
|
|
280
|
+
## Input (from parent)
|
|
281
|
+
- **text**: String to process
|
|
282
|
+
|
|
283
|
+
## Output (to parent)
|
|
284
|
+
- **originalText**: The original input
|
|
285
|
+
- **processedText**: Processed version
|
|
286
|
+
- **processedAt**: ISO timestamp\`;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function getProcessMarkdown(): string {
|
|
290
|
+
return \`# ${name.replace(/`/g, "'")}
|
|
291
|
+
|
|
292
|
+
${description.replace(/`/g, "'")}
|
|
293
|
+
|
|
294
|
+
## Workflows
|
|
295
|
+
|
|
296
|
+
### Main Workflow
|
|
297
|
+
- **Trigger**: HTTP POST
|
|
298
|
+
- **Function**: Receives user input, validates it, and delegates to the text processor sub-workflow
|
|
299
|
+
|
|
300
|
+
### Scheduled Report
|
|
301
|
+
- **Trigger**: Schedule (every Monday at 9 AM)
|
|
302
|
+
- **Function**: Generates a periodic report
|
|
303
|
+
|
|
304
|
+
### Text Processor (Sub-Workflow)
|
|
305
|
+
- **Trigger**: Called by Main Workflow (not user-accessible)
|
|
306
|
+
- **Function**: Processes text and returns the result
|
|
307
|
+
|
|
308
|
+
## Getting Started
|
|
309
|
+
|
|
310
|
+
1. Edit the workflow JSON files in \\\`workflows/\\\` to add your business logic
|
|
311
|
+
2. Update the schemas in this file to match your input/output
|
|
312
|
+
3. Run: \\\`codika verify use-case .\\\`
|
|
313
|
+
4. Run: \\\`codika deploy use-case .\\\`\`;
|
|
314
|
+
}
|
|
315
|
+
${withDataIngestion ? generateDataIngestionSection(slug) : ''}`;
|
|
316
|
+
}
|
|
317
|
+
function generateDataIngestionSection(slug) {
|
|
318
|
+
return `
|
|
319
|
+
// ============================================================================
|
|
320
|
+
// Data Ingestion Configuration (Process-Level)
|
|
321
|
+
// ============================================================================
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Get the data ingestion configuration for this use case.
|
|
325
|
+
*
|
|
326
|
+
* This is deployed separately via:
|
|
327
|
+
* codika deploy process-data-ingestion <path>
|
|
328
|
+
*
|
|
329
|
+
* The workflow file is auto-discovered from the data-ingestion/ folder.
|
|
330
|
+
*/
|
|
331
|
+
export function getDataIngestionConfig(): ProcessDataIngestionConfigInput {
|
|
332
|
+
const workflowBase64 = loadAndEncodeWorkflow(
|
|
333
|
+
join(__dirname, 'data-ingestion/${slug}-embedding-ingestion.json')
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
return {
|
|
337
|
+
workflowTemplateId: '${slug}-embedding-ingestion',
|
|
338
|
+
workflowName: 'Embedding Ingestion',
|
|
339
|
+
n8nWorkflowJsonBase64: workflowBase64,
|
|
340
|
+
webhooks: {
|
|
341
|
+
embed: \\\`{{PROCDATA_PROCESS_ID_ATADCORP}}/embed\\\`,
|
|
342
|
+
delete: \\\`{{PROCDATA_PROCESS_ID_ATADCORP}}/embed-delete\\\`,
|
|
343
|
+
},
|
|
344
|
+
purpose: 'Embed KB documents into Pinecone for RAG retrieval',
|
|
345
|
+
cost: 2,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
`;
|
|
349
|
+
}
|
|
350
|
+
//# sourceMappingURL=config-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-template.js","sourceRoot":"","sources":["../../../src/cli/templates/config-template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAA4B;IAC3D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,mBAAmB,GAAG,iBAAiB;QAC3C,CAAC,CAAC,2CAA2C;QAC7C,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;KACJ,IAAI;;;;;;;;;;;;;;;6CAeoC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;kJAwBkF,IAAI;wJACE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+F/I,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;mBACxB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;YAKlC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoIjB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;EAEpC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;EAuB9B,iBAAiB,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC;AAED,SAAS,4BAA4B,CAAC,IAAY;IAChD,OAAO;;;;;;;;;;;;;;;sCAe6B,IAAI;;;;2BAIf,IAAI;;;;;;;;;;;CAW9B,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Template Generators
|
|
3
|
+
*
|
|
4
|
+
* Generate SKILL.md files for the init command.
|
|
5
|
+
* Each skill follows the Claude Agent Skills format:
|
|
6
|
+
* - YAML frontmatter with name, description, workflowTemplateId
|
|
7
|
+
* - Concise markdown body (under 500 lines)
|
|
8
|
+
* - Third-person descriptions
|
|
9
|
+
*
|
|
10
|
+
* See: https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
|
|
11
|
+
*/
|
|
12
|
+
export interface SkillTemplateParams {
|
|
13
|
+
slug: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Generate the SKILL.md for the HTTP-triggered main workflow.
|
|
18
|
+
*/
|
|
19
|
+
export declare function generateMainWorkflowSkill(params: SkillTemplateParams): string;
|
|
20
|
+
/**
|
|
21
|
+
* Generate the SKILL.md for the scheduled report workflow.
|
|
22
|
+
*/
|
|
23
|
+
export declare function generateScheduledReportSkill(params: SkillTemplateParams): string;
|
|
24
|
+
//# sourceMappingURL=skill-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-templates.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/skill-templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAiD7E;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAgDhF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Template Generators
|
|
3
|
+
*
|
|
4
|
+
* Generate SKILL.md files for the init command.
|
|
5
|
+
* Each skill follows the Claude Agent Skills format:
|
|
6
|
+
* - YAML frontmatter with name, description, workflowTemplateId
|
|
7
|
+
* - Concise markdown body (under 500 lines)
|
|
8
|
+
* - Third-person descriptions
|
|
9
|
+
*
|
|
10
|
+
* See: https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Generate the SKILL.md for the HTTP-triggered main workflow.
|
|
14
|
+
*/
|
|
15
|
+
export function generateMainWorkflowSkill(params) {
|
|
16
|
+
const { slug, name } = params;
|
|
17
|
+
return `---
|
|
18
|
+
name: ${slug}-process-text
|
|
19
|
+
description: Submits text for AI processing via the main-workflow HTTP endpoint of the ${name} use case. Returns processed text with a timestamp.
|
|
20
|
+
workflowTemplateId: main-workflow
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Process Text
|
|
24
|
+
|
|
25
|
+
Receives text input via HTTP POST and processes it using AI (OpenAI). Calls the text-processor sub-workflow internally.
|
|
26
|
+
|
|
27
|
+
## How to trigger
|
|
28
|
+
|
|
29
|
+
\`\`\`bash
|
|
30
|
+
codika trigger main-workflow --payload-file - <<'EOF'
|
|
31
|
+
{
|
|
32
|
+
"text_input": "Your text to process",
|
|
33
|
+
"processing_mode": "summarize"
|
|
34
|
+
}
|
|
35
|
+
EOF
|
|
36
|
+
\`\`\`
|
|
37
|
+
|
|
38
|
+
## Input
|
|
39
|
+
|
|
40
|
+
| Parameter | Type | Required | Description |
|
|
41
|
+
|-----------|------|----------|-------------|
|
|
42
|
+
| text_input | string | yes | The text to process (max 5000 chars) |
|
|
43
|
+
| processing_mode | select | yes | One of: "summarize", "analyze", "translate" |
|
|
44
|
+
|
|
45
|
+
## Output
|
|
46
|
+
|
|
47
|
+
\`\`\`json
|
|
48
|
+
{
|
|
49
|
+
"result": "Processed text output",
|
|
50
|
+
"processedAt": "2025-01-01T00:00:00.000Z"
|
|
51
|
+
}
|
|
52
|
+
\`\`\`
|
|
53
|
+
|
|
54
|
+
| Field | Type | Description |
|
|
55
|
+
|-------|------|-------------|
|
|
56
|
+
| result | string | The processed text output |
|
|
57
|
+
| processedAt | string | ISO 8601 timestamp of when processing completed |
|
|
58
|
+
|
|
59
|
+
## Notes
|
|
60
|
+
|
|
61
|
+
- Cost: 1 credit per execution
|
|
62
|
+
- Uses OpenAI for text processing (via Flex Credentials)
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Generate the SKILL.md for the scheduled report workflow.
|
|
67
|
+
*/
|
|
68
|
+
export function generateScheduledReportSkill(params) {
|
|
69
|
+
const { slug, name } = params;
|
|
70
|
+
return `---
|
|
71
|
+
name: ${slug}-scheduled-report
|
|
72
|
+
description: Generates a weekly report automatically every Monday at 9 AM for the ${name} use case. Can be manually triggered for testing via codika trigger.
|
|
73
|
+
workflowTemplateId: scheduled-report
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
# Scheduled Report
|
|
77
|
+
|
|
78
|
+
Runs automatically on a schedule (every Monday at 9:00 AM Brussels time). No user input required for automatic execution.
|
|
79
|
+
|
|
80
|
+
## Automatic execution
|
|
81
|
+
|
|
82
|
+
This workflow is triggered automatically by n8n's schedule trigger. Results are stored and viewable in the Codika dashboard.
|
|
83
|
+
|
|
84
|
+
## Manual trigger (for testing)
|
|
85
|
+
|
|
86
|
+
To trigger the report manually (bypasses the schedule):
|
|
87
|
+
|
|
88
|
+
\`\`\`bash
|
|
89
|
+
codika trigger scheduled-report
|
|
90
|
+
\`\`\`
|
|
91
|
+
|
|
92
|
+
No payload is required. The manual trigger webhook converges with the schedule trigger inside the workflow.
|
|
93
|
+
|
|
94
|
+
## Output
|
|
95
|
+
|
|
96
|
+
| Field | Type | Description |
|
|
97
|
+
|-------|------|-------------|
|
|
98
|
+
| title | string | Report title |
|
|
99
|
+
| summary | string | Report summary text |
|
|
100
|
+
| generatedAt | string | ISO 8601 timestamp |
|
|
101
|
+
|
|
102
|
+
\`\`\`json
|
|
103
|
+
{
|
|
104
|
+
"title": "Weekly Report - 2025-03-15",
|
|
105
|
+
"summary": "Summary of activity for the past week...",
|
|
106
|
+
"generatedAt": "2025-03-15T09:00:00.000Z"
|
|
107
|
+
}
|
|
108
|
+
\`\`\`
|
|
109
|
+
|
|
110
|
+
## Notes
|
|
111
|
+
|
|
112
|
+
- Cost: 1 credit per execution (automatic or manual)
|
|
113
|
+
- Schedule: Every Monday at 9:00 AM (Europe/Brussels)
|
|
114
|
+
- No input parameters needed
|
|
115
|
+
`;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=skill-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-templates.js","sourceRoot":"","sources":["../../../src/cli/templates/skill-templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAA2B;IACnE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC9B,OAAO;QACD,IAAI;yFAC6E,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C5F,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,MAA2B;IACtE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC9B,OAAO;QACD,IAAI;oFACwE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CvF,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slug utility for generating URL-safe identifiers from display names.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Convert a display name to a URL-safe slug.
|
|
6
|
+
* "My Translation Service" → "my-translation-service"
|
|
7
|
+
*/
|
|
8
|
+
export declare function toSlug(name: string): string;
|
|
9
|
+
//# sourceMappingURL=slug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slug.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/slug.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ3C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slug utility for generating URL-safe identifiers from display names.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Convert a display name to a URL-safe slug.
|
|
6
|
+
* "My Translation Service" → "my-translation-service"
|
|
7
|
+
*/
|
|
8
|
+
export function toSlug(name) {
|
|
9
|
+
return name
|
|
10
|
+
.toLowerCase()
|
|
11
|
+
.trim()
|
|
12
|
+
.replace(/[^a-z0-9\s-]/g, '')
|
|
13
|
+
.replace(/\s+/g, '-')
|
|
14
|
+
.replace(/-+/g, '-')
|
|
15
|
+
.replace(/^-|-$/g, '');
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=slug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../../src/cli/templates/slug.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,OAAO,IAAI;SACR,WAAW,EAAE;SACb,IAAI,EAAE;SACN,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;SAC5B,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|