diff --git a/.scripts/copy-shared-files.mjs b/.scripts/copy-shared-files.mjs index 8192dd7b..612f9ace 100644 --- a/.scripts/copy-shared-files.mjs +++ b/.scripts/copy-shared-files.mjs @@ -42,7 +42,6 @@ const GITIGNORE_EXCLUDE = [ 'nestjs-exchange-rates', ]; const ESLINTRC_EXCLUDE = [ - 'openai-agents', 'nextjs-ecommerce-oneclick', 'monorepo-folders', 'fetch-esm', @@ -64,6 +63,14 @@ const ESLINTIGNORE_EXCLUDE = [ const POST_CREATE_EXCLUDE = [ 'openai-agents', + 'env-config', + 'dsl-interpreter', + 'eager-workflow-start', + 'standalone-activity', + 'state', + 'nexus-cancellation', + 'nexus-hello', + 'nexus-messaging', 'schedules', 'timer-examples', 'query-subscriptions', diff --git a/.shared/.eslintrc.js b/.shared/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/.shared/.eslintrc.js +++ b/.shared/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/activities-cancellation-heartbeating/.eslintrc.js b/activities-cancellation-heartbeating/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/activities-cancellation-heartbeating/.eslintrc.js +++ b/activities-cancellation-heartbeating/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/activities-dependency-injection/.eslintrc.js b/activities-dependency-injection/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/activities-dependency-injection/.eslintrc.js +++ b/activities-dependency-injection/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/activities-examples/.eslintrc.js b/activities-examples/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/activities-examples/.eslintrc.js +++ b/activities-examples/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/ai-sdk/.eslintrc.js b/ai-sdk/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/ai-sdk/.eslintrc.js +++ b/ai-sdk/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/batch-sliding-window/.eslintrc.js b/batch-sliding-window/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/batch-sliding-window/.eslintrc.js +++ b/batch-sliding-window/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/child-workflows/.eslintrc.js b/child-workflows/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/child-workflows/.eslintrc.js +++ b/child-workflows/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/continue-as-new/.eslintrc.js b/continue-as-new/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/continue-as-new/.eslintrc.js +++ b/continue-as-new/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/cron-workflows/.eslintrc.js b/cron-workflows/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/cron-workflows/.eslintrc.js +++ b/cron-workflows/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/custom-logger/.eslintrc.js b/custom-logger/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/custom-logger/.eslintrc.js +++ b/custom-logger/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/dsl-interpreter/.eslintrc.js b/dsl-interpreter/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/dsl-interpreter/.eslintrc.js +++ b/dsl-interpreter/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/dsl-interpreter/.post-create b/dsl-interpreter/.post-create index 055c11e9..868d1bb3 100644 --- a/dsl-interpreter/.post-create +++ b/dsl-interpreter/.post-create @@ -12,7 +12,11 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +Then, in the project directory, start the Worker: {cyan npm run start.watch} -{cyan npm run workflow} + +In another shell, run one of the sample Workflows: + +{cyan npm run workflow1} +{cyan npm run workflow2} diff --git a/eager-workflow-start/.eslintrc.js b/eager-workflow-start/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/eager-workflow-start/.eslintrc.js +++ b/eager-workflow-start/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/eager-workflow-start/.post-create b/eager-workflow-start/.post-create index 055c11e9..136865d2 100644 --- a/eager-workflow-start/.post-create +++ b/eager-workflow-start/.post-create @@ -12,7 +12,6 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +Then, in the project directory, run the sample: -{cyan npm run start.watch} -{cyan npm run workflow} +{cyan npm run start} diff --git a/early-return/.eslintrc.js b/early-return/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/early-return/.eslintrc.js +++ b/early-return/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/ejson/.eslintrc.js b/ejson/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/ejson/.eslintrc.js +++ b/ejson/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/empty/.eslintrc.js b/empty/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/empty/.eslintrc.js +++ b/empty/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/encryption/.eslintrc.js b/encryption/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/encryption/.eslintrc.js +++ b/encryption/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/env-config/.eslintrc.js b/env-config/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/env-config/.eslintrc.js +++ b/env-config/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/env-config/.post-create b/env-config/.post-create index 055c11e9..73a93896 100644 --- a/env-config/.post-create +++ b/env-config/.post-create @@ -12,7 +12,7 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +This sample loads Temporal Client configuration from a TOML file. In the project directory, run either: -{cyan npm run start.watch} -{cyan npm run workflow} +{cyan npm run load-default} +{cyan npm run load-profile} diff --git a/expense/.eslintrc.js b/expense/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/expense/.eslintrc.js +++ b/expense/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/grpc-calls/.eslintrc.js b/grpc-calls/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/grpc-calls/.eslintrc.js +++ b/grpc-calls/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/hello-world-mtls/.eslintrc.js b/hello-world-mtls/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/hello-world-mtls/.eslintrc.js +++ b/hello-world-mtls/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/hello-world/.eslintrc.js b/hello-world/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/hello-world/.eslintrc.js +++ b/hello-world/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/interceptors-opentelemetry/.eslintrc.js b/interceptors-opentelemetry/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/interceptors-opentelemetry/.eslintrc.js +++ b/interceptors-opentelemetry/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/lambda-worker/.eslintrc.js b/lambda-worker/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/lambda-worker/.eslintrc.js +++ b/lambda-worker/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/message-passing/execute-update/.eslintrc.js b/message-passing/execute-update/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/message-passing/execute-update/.eslintrc.js +++ b/message-passing/execute-update/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/message-passing/introduction/.eslintrc.js b/message-passing/introduction/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/message-passing/introduction/.eslintrc.js +++ b/message-passing/introduction/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/message-passing/safe-message-handlers/.eslintrc.js b/message-passing/safe-message-handlers/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/message-passing/safe-message-handlers/.eslintrc.js +++ b/message-passing/safe-message-handlers/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/mutex/.eslintrc.js b/mutex/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/mutex/.eslintrc.js +++ b/mutex/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/nexus-cancellation/.eslintrc.js b/nexus-cancellation/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/nexus-cancellation/.eslintrc.js +++ b/nexus-cancellation/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/nexus-cancellation/.post-create b/nexus-cancellation/.post-create index 055c11e9..90f0a8df 100644 --- a/nexus-cancellation/.post-create +++ b/nexus-cancellation/.post-create @@ -12,7 +12,10 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +This sample uses Nexus, so first create the namespaces and Nexus endpoint as described in the README. -{cyan npm run start.watch} +Then, in the project directory, start the service Worker, the caller Worker, and the Workflow in three separate shells: + +{cyan npm run start.service} +{cyan npm run start.caller} {cyan npm run workflow} diff --git a/nexus-hello/.eslintrc.js b/nexus-hello/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/nexus-hello/.eslintrc.js +++ b/nexus-hello/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/nexus-hello/.post-create b/nexus-hello/.post-create index 055c11e9..90f0a8df 100644 --- a/nexus-hello/.post-create +++ b/nexus-hello/.post-create @@ -12,7 +12,10 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +This sample uses Nexus, so first create the namespaces and Nexus endpoint as described in the README. -{cyan npm run start.watch} +Then, in the project directory, start the service Worker, the caller Worker, and the Workflow in three separate shells: + +{cyan npm run start.service} +{cyan npm run start.caller} {cyan npm run workflow} diff --git a/nexus-messaging/.eslintrc.js b/nexus-messaging/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/nexus-messaging/.eslintrc.js +++ b/nexus-messaging/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/nexus-messaging/.post-create b/nexus-messaging/.post-create index 055c11e9..e10df16e 100644 --- a/nexus-messaging/.post-create +++ b/nexus-messaging/.post-create @@ -12,7 +12,12 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +This sample uses Nexus and has two self-contained patterns (callerpattern and ondemandpattern). First create the namespaces and Nexus endpoint as described in the README. -{cyan npm run start.watch} -{cyan npm run workflow} +For the caller pattern, start the service Worker, the caller Worker, and the Workflow in three separate shells: + +{cyan npm run start.callerpattern.service} +{cyan npm run start.callerpattern.caller} +{cyan npm run workflow.callerpattern} + +The on-demand pattern has an equivalent ondemandpattern trio of scripts -- see the README. diff --git a/openai-agents/.eslintrc.js b/openai-agents/.eslintrc.js index 53812fe4..9f199cd9 100644 --- a/openai-agents/.eslintrc.js +++ b/openai-agents/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/*/workflows.ts', 'src/*/workflows-*.ts', 'src/*/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/patching-api/.eslintrc.js b/patching-api/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/patching-api/.eslintrc.js +++ b/patching-api/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/polling/infrequent/.eslintrc.js b/polling/infrequent/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/polling/infrequent/.eslintrc.js +++ b/polling/infrequent/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/production/.eslintrc.js b/production/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/production/.eslintrc.js +++ b/production/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/query-subscriptions/.eslintrc.js b/query-subscriptions/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/query-subscriptions/.eslintrc.js +++ b/query-subscriptions/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/saga/.eslintrc.js b/saga/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/saga/.eslintrc.js +++ b/saga/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/schedules/.eslintrc.js b/schedules/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/schedules/.eslintrc.js +++ b/schedules/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/scratchpad/.eslintrc.js b/scratchpad/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/scratchpad/.eslintrc.js +++ b/scratchpad/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/search-attributes/.eslintrc.js b/search-attributes/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/search-attributes/.eslintrc.js +++ b/search-attributes/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/signals-queries/.eslintrc.js b/signals-queries/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/signals-queries/.eslintrc.js +++ b/signals-queries/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/sinks/.eslintrc.js b/sinks/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/sinks/.eslintrc.js +++ b/sinks/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/sleep-for-days/.eslintrc.js b/sleep-for-days/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/sleep-for-days/.eslintrc.js +++ b/sleep-for-days/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/snippets/.eslintrc.js b/snippets/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/snippets/.eslintrc.js +++ b/snippets/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/standalone-activity/.eslintrc.js b/standalone-activity/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/standalone-activity/.eslintrc.js +++ b/standalone-activity/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/standalone-activity/.post-create b/standalone-activity/.post-create index 055c11e9..bb81190f 100644 --- a/standalone-activity/.post-create +++ b/standalone-activity/.post-create @@ -12,7 +12,11 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +Then, in the project directory, start the Worker: {cyan npm run start.watch} -{cyan npm run workflow} + +In another shell, execute the Activity, then list executions: + +{cyan npm run execute} +{cyan npm run list} diff --git a/state/.eslintrc.js b/state/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/state/.eslintrc.js +++ b/state/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/state/.post-create b/state/.post-create index 055c11e9..d5da945e 100644 --- a/state/.post-create +++ b/state/.post-create @@ -12,7 +12,13 @@ Use Node version 18+ (v22.x is recommended): Mac: {cyan brew install node@22} Other: https://nodejs.org/en/download/ -Then, in the project directory, using two other shells, run these commands: +Then, in the project directory, start the Worker: {cyan npm run start.watch} -{cyan npm run workflow} + +In another shell, start the Workflow and interact with it via Query, Signal, and cancellation: + +{cyan npm run workflow.start} +{cyan npm run workflow.query} +{cyan npm run workflow.signal} +{cyan npm run workflow.cancel} diff --git a/timer-examples/.eslintrc.js b/timer-examples/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/timer-examples/.eslintrc.js +++ b/timer-examples/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/timer-progress/.eslintrc.js b/timer-progress/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/timer-progress/.eslintrc.js +++ b/timer-progress/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/vscode-debugger/.eslintrc.js b/vscode-debugger/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/vscode-debugger/.eslintrc.js +++ b/vscode-debugger/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/worker-specific-task-queues/.eslintrc.js b/worker-specific-task-queues/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/worker-specific-task-queues/.eslintrc.js +++ b/worker-specific-task-queues/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/worker-versioning/.eslintrc.js b/worker-versioning/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/worker-versioning/.eslintrc.js +++ b/worker-versioning/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error', diff --git a/workflow-streams/.eslintrc.js b/workflow-streams/.eslintrc.js index b8251a06..9f199cd9 100644 --- a/workflow-streams/.eslintrc.js +++ b/workflow-streams/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = { }, overrides: [ { - files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'], + files: ['src/**/workflows.ts', 'src/**/workflows-*.ts', 'src/**/workflows/*.ts'], rules: { 'no-restricted-imports': [ 'error',