diff --git a/.claude/rules/sim-workflow-code.md b/.claude/rules/sim-workflow-code.md index 24d4b87b2d8..8cb0c1c3056 100644 --- a/.claude/rules/sim-workflow-code.md +++ b/.claude/rules/sim-workflow-code.md @@ -42,7 +42,7 @@ workspace directory). | `packages/table-cells` | Pure table cell rules (coerce, validate, currency/date/ttl parsing) shared by the table codec's offline row check and the server's writes | | `packages/workflow-sdk` | Authoring declarations (`src/core.d.ts`, `src/workspace/*.d.ts`), type codegen from the catalog (`src/codegen/`), the cookbook | | `packages/sim-cli/src/commands/protocol/` | `workflow-source-*` and `workspace-source-*` commands, which never import each other's command modules; `source-dir/`, `workflow-dir.ts`, `source-check.ts`, `source-write.ts`, `source-tree.ts`, `source-ui.ts` and `workspace-source-dir.ts` (the workspace directory reader a workflow check also reads declarations through) are shared | -| `apps/sim/lib/workflows/code/` | Server glue: catalog projection from the registry (`catalog/`), source-apply gates (`apply/`), stored canonical form, the feature flag, the proof corpus (`corpus/`) | +| `apps/sim/lib/workflows/code/` | Server glue: catalog projection from the registry (`catalog/`), source-apply gates (`apply/`), stored canonical form, the proof corpus (`corpus/`) | | `apps/sim/lib/workflows/application/*source*` | Workflow source use cases: read, apply, create, catalog, resources; `source-pipeline/` holds the one plan → preview/commit flow an apply and a create share | | `apps/sim/lib/workspace-source/` | Workspace source use cases (`application/`), one adapter per kind (`application/kinds//`), route policies (`api/`) | | `apps/sim/blocks/sdk-names/.json` | Frozen SDK builder names, one file per block type | @@ -69,7 +69,7 @@ server unchanged. Both words name the same feature, split by role; follow the split rather than rename: - **code** names the feature and its engines: the packages (`workflow-code`, `workspace-code`), the - server glue folder `lib/workflows/code/`, the `workflow-code` flag, the Code tab. + server glue folder `lib/workflows/code/`, the Code tab. - **source** names the artifact and the operations on it: the files themselves, the use cases (`readWorkflowSource`, `applyWorkspaceSource`), the routes (`/source`), the CLI (`sim workflows source get`), `lib/workspace-source/`. @@ -91,18 +91,6 @@ lock. The catalog (built from the block registry, `lib/workflows/code/catalog/`) engine learns about blocks; engines never import the registry. See DESIGN.md "The canonical model" and "The catalog". -## Feature flag - -One global flag, `workflow-code` (`lib/core/config/feature-flags.ts`, env fallback -`WORKFLOW_CODE`), gates workflow source, workspace source, the source catalog and resources, and -the Code tab. Every source operation (the workflow source ones in -`lib/workflows/application/operations.ts` and the workspace source ones in -`lib/workspace-source/application/operations.ts`) declares `feature: WORKFLOW_CODE_FEATURE`, which -the shared use-case wrapper checks after authorization (`FEATURE_NOT_ENABLED`); a new source -operation declares the same feature, never its own check. A surface outside an operation (the Code -tab, Copilot entitlements) calls `isWorkflowCodeEnabled()` (`lib/workflows/code/feature-flag.ts`); -the UI reads it from the workspace layout's flags. - ## Adding things ### A block type diff --git a/.cursor/rules/sim-workflow-code.mdc b/.cursor/rules/sim-workflow-code.mdc index 100c3bdefe5..095f515465a 100644 --- a/.cursor/rules/sim-workflow-code.mdc +++ b/.cursor/rules/sim-workflow-code.mdc @@ -22,7 +22,7 @@ workspace directory). | `packages/table-cells` | Pure table cell rules (coerce, validate, currency/date/ttl parsing) shared by the table codec's offline row check and the server's writes | | `packages/workflow-sdk` | Authoring declarations (`src/core.d.ts`, `src/workspace/*.d.ts`), type codegen from the catalog (`src/codegen/`), the cookbook | | `packages/sim-cli/src/commands/protocol/` | `workflow-source-*` and `workspace-source-*` commands, which never import each other's command modules; `source-dir/`, `workflow-dir.ts`, `source-check.ts`, `source-write.ts`, `source-tree.ts`, `source-ui.ts` and `workspace-source-dir.ts` (the workspace directory reader a workflow check also reads declarations through) are shared | -| `apps/sim/lib/workflows/code/` | Server glue: catalog projection from the registry (`catalog/`), source-apply gates (`apply/`), stored canonical form, the feature flag, the proof corpus (`corpus/`) | +| `apps/sim/lib/workflows/code/` | Server glue: catalog projection from the registry (`catalog/`), source-apply gates (`apply/`), stored canonical form, the proof corpus (`corpus/`) | | `apps/sim/lib/workflows/application/*source*` | Workflow source use cases: read, apply, create, catalog, resources; `source-pipeline/` holds the one plan → preview/commit flow an apply and a create share | | `apps/sim/lib/workspace-source/` | Workspace source use cases (`application/`), one adapter per kind (`application/kinds//`), route policies (`api/`) | | `apps/sim/blocks/sdk-names/.json` | Frozen SDK builder names, one file per block type | @@ -49,7 +49,7 @@ server unchanged. Both words name the same feature, split by role; follow the split rather than rename: - **code** names the feature and its engines: the packages (`workflow-code`, `workspace-code`), the - server glue folder `lib/workflows/code/`, the `workflow-code` flag, the Code tab. + server glue folder `lib/workflows/code/`, the Code tab. - **source** names the artifact and the operations on it: the files themselves, the use cases (`readWorkflowSource`, `applyWorkspaceSource`), the routes (`/source`), the CLI (`sim workflows source get`), `lib/workspace-source/`. @@ -71,18 +71,6 @@ lock. The catalog (built from the block registry, `lib/workflows/code/catalog/`) engine learns about blocks; engines never import the registry. See DESIGN.md "The canonical model" and "The catalog". -## Feature flag - -One global flag, `workflow-code` (`lib/core/config/feature-flags.ts`, env fallback -`WORKFLOW_CODE`), gates workflow source, workspace source, the source catalog and resources, and -the Code tab. Every source operation (the workflow source ones in -`lib/workflows/application/operations.ts` and the workspace source ones in -`lib/workspace-source/application/operations.ts`) declares `feature: WORKFLOW_CODE_FEATURE`, which -the shared use-case wrapper checks after authorization (`FEATURE_NOT_ENABLED`); a new source -operation declares the same feature, never its own check. A surface outside an operation (the Code -tab, Copilot entitlements) calls `isWorkflowCodeEnabled()` (`lib/workflows/code/feature-flag.ts`); -the UI reads it from the workspace layout's flags. - ## Adding things ### A block type diff --git a/.github/scripts/http-e2e.sh b/.github/scripts/http-e2e.sh index f67b72a5dbf..13da60428e8 100755 --- a/.github/scripts/http-e2e.sh +++ b/.github/scripts/http-e2e.sh @@ -36,9 +36,6 @@ realtime_tag='' realtime_log='' browsers_pid='' local_app_url='' -extra_pids=() -extra_tags=() -extra_logs=() # `dev` or `start`; a group sets it before start_app. app_server=${E2E_APP_SERVER:-dev} @@ -61,13 +58,6 @@ finish() { tail -n 200 "$server_log" fi fi - for i in "${!extra_pids[@]}"; do - bash "$GITHUB_WORKSPACE/.github/scripts/stop-session.sh" "${extra_pids[$i]}" "${extra_tags[$i]}" || status=1 - wait "${extra_pids[$i]}" 2>/dev/null || true - if [ "$status" -ne 0 ]; then - tail -n 100 "${extra_logs[$i]}" - fi - done if [ -n "$realtime_pid" ]; then bash "$GITHUB_WORKSPACE/.github/scripts/stop-session.sh" "$realtime_pid" "$realtime_tag" || status=1 wait "$realtime_pid" 2>/dev/null || true @@ -132,27 +122,6 @@ start_app() { wait_ready "$server_pid" "$local_app_url/api/health" "$label app" } -# start_extra_app