devworkspace 0.5.0 → 0.5.2
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/CHANGELOG.md +44 -0
- package/README.md +57 -509
- package/dist/agents/claude/adapter.js +0 -1
- package/dist/agents/claude/content.js +0 -1
- package/dist/agents/codex/adapter.js +0 -1
- package/dist/agents/copilot/adapter.js +0 -1
- package/dist/agents/cursor/adapter.js +0 -1
- package/dist/agents/index.js +0 -1
- package/dist/agents/shared.js +0 -1
- package/dist/agents/types.js +0 -1
- package/dist/cli/args.d.ts +16 -0
- package/dist/cli/args.js +5 -1
- package/dist/cli/help.js +59 -17
- package/dist/cli/main.js +0 -1
- package/dist/cli/prompt.d.ts +15 -0
- package/dist/cli/prompt.js +113 -0
- package/dist/cli/render.d.ts +10 -0
- package/dist/cli/render.js +174 -4
- package/dist/cli/run.d.ts +3 -0
- package/dist/cli/run.js +366 -17
- package/dist/config/feature-gate.d.ts +15 -0
- package/dist/config/feature-gate.js +77 -0
- package/dist/config/feature-registry.d.ts +49 -0
- package/dist/config/feature-registry.js +451 -0
- package/dist/config/schemas.js +0 -1
- package/dist/config/settings.d.ts +54 -0
- package/dist/config/settings.js +293 -0
- package/dist/config/validate.js +0 -1
- package/dist/core/artifacts.js +0 -1
- package/dist/core/contracts.js +0 -1
- package/dist/core/migrations.js +0 -1
- package/dist/core/version.js +0 -1
- package/dist/core/versioned.js +0 -1
- package/dist/core/workspace.d.ts +1 -0
- package/dist/core/workspace.js +1 -1
- package/dist/decisions/decision.js +0 -1
- package/dist/discovery/cache.js +0 -1
- package/dist/discovery/commands.js +0 -1
- package/dist/discovery/detect.js +0 -1
- package/dist/discovery/docs.js +0 -1
- package/dist/discovery/entrypoints.js +0 -1
- package/dist/discovery/ignore.js +0 -1
- package/dist/discovery/scan.js +0 -1
- package/dist/discovery/types.js +0 -1
- package/dist/dx/dashboard.js +2 -1
- package/dist/dx/guidance.js +0 -1
- package/dist/dx/guided-setup.d.ts +102 -0
- package/dist/dx/guided-setup.js +508 -0
- package/dist/dx/index.js +0 -1
- package/dist/dx/onboarding.js +0 -1
- package/dist/dx/types.js +0 -1
- package/dist/errors/index.js +0 -1
- package/dist/features/schema.js +0 -1
- package/dist/features/types.js +0 -1
- package/dist/features/validate.js +0 -1
- package/dist/git/git.js +0 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.js +10 -2
- package/dist/integrations/adapters/agent-skills.js +0 -1
- package/dist/integrations/adapters/claudePlugin.js +0 -1
- package/dist/integrations/adapters/graphify.js +0 -1
- package/dist/integrations/adapters/omniroute.js +0 -1
- package/dist/integrations/adapters/pluginSkill.js +0 -1
- package/dist/integrations/adapters/ponytail.js +0 -1
- package/dist/integrations/exec.js +0 -1
- package/dist/integrations/index.js +0 -1
- package/dist/integrations/manager.d.ts +2 -1
- package/dist/integrations/manager.js +22 -3
- package/dist/integrations/notices.js +0 -1
- package/dist/integrations/persistentPath.js +0 -1
- package/dist/integrations/protect.js +0 -1
- package/dist/integrations/state.js +0 -1
- package/dist/integrations/types.d.ts +1 -1
- package/dist/integrations/types.js +1 -1
- package/dist/intelligence/agents/profiles.js +0 -1
- package/dist/intelligence/agents/registry.js +0 -1
- package/dist/intelligence/agents/types.js +0 -1
- package/dist/intelligence/observability/tracer.js +0 -1
- package/dist/intelligence/observability/types.js +0 -1
- package/dist/intelligence/orchestration/engine.d.ts +21 -3
- package/dist/intelligence/orchestration/engine.js +486 -48
- package/dist/intelligence/orchestration/lock-manager.js +0 -1
- package/dist/intelligence/orchestration/store.js +0 -1
- package/dist/intelligence/orchestration/types.d.ts +40 -2
- package/dist/intelligence/orchestration/types.js +2 -3
- package/dist/intelligence/routing/matcher.js +0 -1
- package/dist/intelligence/routing/router.js +0 -1
- package/dist/intelligence/routing/types.js +0 -1
- package/dist/intelligence/runtime/adk/adapter.js +21 -33
- package/dist/intelligence/runtime/adk/detector.js +0 -1
- package/dist/intelligence/runtime/auth-provider.d.ts +63 -0
- package/dist/intelligence/runtime/auth-provider.js +201 -0
- package/dist/intelligence/runtime/boundary.d.ts +142 -0
- package/dist/intelligence/runtime/boundary.js +845 -0
- package/dist/intelligence/runtime/changes.d.ts +59 -0
- package/dist/intelligence/runtime/changes.js +362 -0
- package/dist/intelligence/runtime/external.d.ts +1 -0
- package/dist/intelligence/runtime/external.js +38 -61
- package/dist/intelligence/runtime/native.js +23 -56
- package/dist/intelligence/runtime/types.d.ts +91 -1
- package/dist/intelligence/runtime/types.js +11 -2
- package/dist/intelligence/security/audit.js +8 -2
- package/dist/intelligence/security/policy.js +0 -1
- package/dist/intelligence/security/types.d.ts +8 -0
- package/dist/intelligence/security/types.js +0 -1
- package/dist/intelligence/skills/builtins.js +0 -1
- package/dist/intelligence/skills/loader.js +0 -1
- package/dist/intelligence/skills/registry.js +0 -1
- package/dist/intelligence/skills/types.js +0 -1
- package/dist/intelligence/verification/engine.d.ts +30 -8
- package/dist/intelligence/verification/engine.js +126 -21
- package/dist/intelligence/verification/reviewer.d.ts +18 -2
- package/dist/intelligence/verification/reviewer.js +356 -4
- package/dist/intelligence/verification/types.d.ts +71 -0
- package/dist/intelligence/verification/types.js +0 -1
- package/dist/knowledge/facts.js +0 -1
- package/dist/mcp/protocol.js +0 -1
- package/dist/mcp/server.js +38 -2
- package/dist/mcp/setup.js +5 -2
- package/dist/mcp/tools.js +0 -1
- package/dist/mcp/types.js +0 -1
- package/dist/mcp/verify.js +0 -1
- package/dist/portability/bundle.js +0 -1
- package/dist/prompts/onboarding.js +0 -1
- package/dist/prompts/refresh.js +0 -1
- package/dist/prompts/requirements.js +0 -1
- package/dist/security/files.js +0 -1
- package/dist/security/redact.js +0 -1
- package/dist/services/agent.js +2 -1
- package/dist/services/analysis.js +0 -1
- package/dist/services/common.js +0 -1
- package/dist/services/doctor.js +13 -2
- package/dist/services/drift.js +0 -1
- package/dist/services/features.js +5 -1
- package/dist/services/graph.js +4 -1
- package/dist/services/init.js +0 -1
- package/dist/services/integrations.d.ts +2 -1
- package/dist/services/integrations.js +29 -6
- package/dist/services/intelligence.d.ts +2 -2
- package/dist/services/intelligence.js +38 -36
- package/dist/services/knowledge.js +0 -1
- package/dist/services/migrate.js +0 -1
- package/dist/services/modules.d.ts +85 -0
- package/dist/services/modules.js +313 -0
- package/dist/services/portability.js +0 -1
- package/dist/services/records.js +5 -1
- package/dist/services/refresh.js +0 -1
- package/dist/services/reset.js +0 -1
- package/dist/services/settings.d.ts +36 -0
- package/dist/services/settings.js +102 -0
- package/dist/services/setup.d.ts +4 -5
- package/dist/services/setup.js +40 -28
- package/dist/services/standards.js +10 -1
- package/dist/services/status.js +0 -1
- package/dist/services/taskContext.js +0 -1
- package/dist/services/tasks.js +9 -1
- package/dist/services/verify.js +7 -2
- package/dist/sessions/session.js +0 -1
- package/dist/standards/acquisition/ingest.js +0 -1
- package/dist/standards/applicability/engine.js +0 -1
- package/dist/standards/builtin/code-quality.js +0 -1
- package/dist/standards/builtin/database-safety.js +0 -1
- package/dist/standards/builtin/index.js +0 -1
- package/dist/standards/builtin/security-baseline.js +0 -1
- package/dist/standards/builtin/testing-contracts.js +0 -1
- package/dist/standards/builtin/undo-kit.js +0 -1
- package/dist/standards/config/config.js +0 -1
- package/dist/standards/distribution/cache.d.ts +1 -0
- package/dist/standards/distribution/cache.js +199 -186
- package/dist/standards/distribution/index.js +0 -1
- package/dist/standards/distribution/keys.js +0 -1
- package/dist/standards/distribution/package.js +6 -1
- package/dist/standards/distribution/server.js +0 -1
- package/dist/standards/distribution/sync.d.ts +7 -2
- package/dist/standards/distribution/sync.js +41 -9
- package/dist/standards/distribution/types.js +0 -1
- package/dist/standards/engine/compliance.js +0 -1
- package/dist/standards/engine/engine.js +0 -1
- package/dist/standards/engine/reporter.js +0 -1
- package/dist/standards/index.js +0 -1
- package/dist/standards/registry/registry.js +0 -1
- package/dist/standards/schema/types.js +0 -1
- package/dist/standards/schema/validate.js +0 -1
- package/dist/standards/templates/index.js +0 -1
- package/dist/standards/validators/database.js +0 -1
- package/dist/standards/validators/quality.js +0 -1
- package/dist/standards/validators/registry.js +0 -1
- package/dist/standards/validators/security.js +0 -1
- package/dist/standards/validators/testing.js +0 -1
- package/dist/standards/validators/types.js +0 -1
- package/dist/standards/validators/undo-kit.js +0 -1
- package/dist/tasks/routing.js +0 -1
- package/dist/tasks/task.js +0 -1
- package/dist/utils/cleanup.js +0 -1
- package/dist/utils/fs.js +0 -1
- package/dist/utils/lock.js +92 -49
- package/dist/utils/logger.js +0 -1
- package/dist/utils/paths.js +0 -1
- package/dist/utils/proc.d.ts +12 -0
- package/dist/utils/proc.js +106 -44
- package/dist/verification/safety.js +0 -1
- package/dist/verification/scope.js +0 -1
- package/docs/agents.md +15 -0
- package/docs/architecture/global-standards-architecture.md +287 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_AUDIT.md +99 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md +138 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md +100 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md +219 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md +184 -0
- package/docs/configuration.md +67 -0
- package/docs/contributing.md +15 -5
- package/docs/development/EXECUTION_STATE.md +50 -0
- package/docs/features.md +80 -0
- package/docs/getting-started.md +69 -111
- package/docs/guides/global-standards-migration.md +100 -0
- package/docs/integrations.md +7 -0
- package/docs/mcp.md +13 -0
- package/docs/security/THIRD_PARTY_LICENSES.md +41 -0
- package/docs/security.md +8 -2
- package/docs/testing/FINAL_CORRECTION_AND_CLEANUP_REPORT.md +92 -0
- package/docs/testing/global-standards-real-project-tests.md +218 -0
- package/docs/testing/global-standards-test-report.md +89 -0
- package/docs/testing/global-standards-verification-matrix.md +174 -0
- package/docs/troubleshooting.md +3 -0
- package/package.json +1 -1
- package/dist/agents/claude/adapter.js.map +0 -1
- package/dist/agents/claude/content.js.map +0 -1
- package/dist/agents/codex/adapter.js.map +0 -1
- package/dist/agents/copilot/adapter.js.map +0 -1
- package/dist/agents/cursor/adapter.js.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/shared.js.map +0 -1
- package/dist/agents/types.js.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/render.js.map +0 -1
- package/dist/cli/run.js.map +0 -1
- package/dist/config/schemas.js.map +0 -1
- package/dist/config/validate.js.map +0 -1
- package/dist/core/artifacts.js.map +0 -1
- package/dist/core/contracts.js.map +0 -1
- package/dist/core/migrations.js.map +0 -1
- package/dist/core/version.js.map +0 -1
- package/dist/core/versioned.js.map +0 -1
- package/dist/core/workspace.js.map +0 -1
- package/dist/decisions/decision.js.map +0 -1
- package/dist/discovery/cache.js.map +0 -1
- package/dist/discovery/commands.js.map +0 -1
- package/dist/discovery/detect.js.map +0 -1
- package/dist/discovery/docs.js.map +0 -1
- package/dist/discovery/entrypoints.js.map +0 -1
- package/dist/discovery/ignore.js.map +0 -1
- package/dist/discovery/scan.js.map +0 -1
- package/dist/discovery/types.js.map +0 -1
- package/dist/dx/dashboard.js.map +0 -1
- package/dist/dx/guidance.js.map +0 -1
- package/dist/dx/index.js.map +0 -1
- package/dist/dx/onboarding.js.map +0 -1
- package/dist/dx/types.js.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/features/schema.js.map +0 -1
- package/dist/features/types.js.map +0 -1
- package/dist/features/validate.js.map +0 -1
- package/dist/git/git.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/adapters/agent-skills.js.map +0 -1
- package/dist/integrations/adapters/claudePlugin.js.map +0 -1
- package/dist/integrations/adapters/graphify.js.map +0 -1
- package/dist/integrations/adapters/omniroute.js.map +0 -1
- package/dist/integrations/adapters/pluginSkill.js.map +0 -1
- package/dist/integrations/adapters/ponytail.js.map +0 -1
- package/dist/integrations/exec.js.map +0 -1
- package/dist/integrations/index.js.map +0 -1
- package/dist/integrations/manager.js.map +0 -1
- package/dist/integrations/notices.js.map +0 -1
- package/dist/integrations/persistentPath.js.map +0 -1
- package/dist/integrations/protect.js.map +0 -1
- package/dist/integrations/state.js.map +0 -1
- package/dist/integrations/types.js.map +0 -1
- package/dist/intelligence/agents/profiles.js.map +0 -1
- package/dist/intelligence/agents/registry.js.map +0 -1
- package/dist/intelligence/agents/types.js.map +0 -1
- package/dist/intelligence/observability/tracer.js.map +0 -1
- package/dist/intelligence/observability/types.js.map +0 -1
- package/dist/intelligence/orchestration/engine.js.map +0 -1
- package/dist/intelligence/orchestration/lock-manager.js.map +0 -1
- package/dist/intelligence/orchestration/store.js.map +0 -1
- package/dist/intelligence/orchestration/types.js.map +0 -1
- package/dist/intelligence/routing/matcher.js.map +0 -1
- package/dist/intelligence/routing/router.js.map +0 -1
- package/dist/intelligence/routing/types.js.map +0 -1
- package/dist/intelligence/runtime/adk/adapter.js.map +0 -1
- package/dist/intelligence/runtime/adk/detector.js.map +0 -1
- package/dist/intelligence/runtime/external.js.map +0 -1
- package/dist/intelligence/runtime/native.js.map +0 -1
- package/dist/intelligence/runtime/types.js.map +0 -1
- package/dist/intelligence/security/audit.js.map +0 -1
- package/dist/intelligence/security/policy.js.map +0 -1
- package/dist/intelligence/security/types.js.map +0 -1
- package/dist/intelligence/skills/builtins.js.map +0 -1
- package/dist/intelligence/skills/loader.js.map +0 -1
- package/dist/intelligence/skills/registry.js.map +0 -1
- package/dist/intelligence/skills/types.js.map +0 -1
- package/dist/intelligence/verification/engine.js.map +0 -1
- package/dist/intelligence/verification/reviewer.js.map +0 -1
- package/dist/intelligence/verification/types.js.map +0 -1
- package/dist/knowledge/facts.js.map +0 -1
- package/dist/mcp/protocol.js.map +0 -1
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/setup.js.map +0 -1
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/types.js.map +0 -1
- package/dist/mcp/verify.js.map +0 -1
- package/dist/portability/bundle.js.map +0 -1
- package/dist/prompts/onboarding.js.map +0 -1
- package/dist/prompts/refresh.js.map +0 -1
- package/dist/prompts/requirements.js.map +0 -1
- package/dist/security/files.js.map +0 -1
- package/dist/security/redact.js.map +0 -1
- package/dist/services/agent.js.map +0 -1
- package/dist/services/analysis.js.map +0 -1
- package/dist/services/common.js.map +0 -1
- package/dist/services/doctor.js.map +0 -1
- package/dist/services/drift.js.map +0 -1
- package/dist/services/features.js.map +0 -1
- package/dist/services/graph.js.map +0 -1
- package/dist/services/init.js.map +0 -1
- package/dist/services/integrations.js.map +0 -1
- package/dist/services/intelligence.js.map +0 -1
- package/dist/services/knowledge.js.map +0 -1
- package/dist/services/migrate.js.map +0 -1
- package/dist/services/portability.js.map +0 -1
- package/dist/services/records.js.map +0 -1
- package/dist/services/refresh.js.map +0 -1
- package/dist/services/reset.js.map +0 -1
- package/dist/services/setup.js.map +0 -1
- package/dist/services/standards.js.map +0 -1
- package/dist/services/status.js.map +0 -1
- package/dist/services/taskContext.js.map +0 -1
- package/dist/services/tasks.js.map +0 -1
- package/dist/services/verify.js.map +0 -1
- package/dist/sessions/session.js.map +0 -1
- package/dist/standards/acquisition/ingest.js.map +0 -1
- package/dist/standards/applicability/engine.js.map +0 -1
- package/dist/standards/builtin/code-quality.js.map +0 -1
- package/dist/standards/builtin/database-safety.js.map +0 -1
- package/dist/standards/builtin/index.js.map +0 -1
- package/dist/standards/builtin/security-baseline.js.map +0 -1
- package/dist/standards/builtin/testing-contracts.js.map +0 -1
- package/dist/standards/builtin/undo-kit.js.map +0 -1
- package/dist/standards/config/config.js.map +0 -1
- package/dist/standards/distribution/cache.js.map +0 -1
- package/dist/standards/distribution/index.js.map +0 -1
- package/dist/standards/distribution/keys.js.map +0 -1
- package/dist/standards/distribution/package.js.map +0 -1
- package/dist/standards/distribution/server.js.map +0 -1
- package/dist/standards/distribution/sync.js.map +0 -1
- package/dist/standards/distribution/types.js.map +0 -1
- package/dist/standards/engine/compliance.js.map +0 -1
- package/dist/standards/engine/engine.js.map +0 -1
- package/dist/standards/engine/reporter.js.map +0 -1
- package/dist/standards/index.js.map +0 -1
- package/dist/standards/registry/registry.js.map +0 -1
- package/dist/standards/schema/types.js.map +0 -1
- package/dist/standards/schema/validate.js.map +0 -1
- package/dist/standards/templates/index.js.map +0 -1
- package/dist/standards/validators/database.js.map +0 -1
- package/dist/standards/validators/quality.js.map +0 -1
- package/dist/standards/validators/registry.js.map +0 -1
- package/dist/standards/validators/security.js.map +0 -1
- package/dist/standards/validators/testing.js.map +0 -1
- package/dist/standards/validators/types.js.map +0 -1
- package/dist/standards/validators/undo-kit.js.map +0 -1
- package/dist/tasks/routing.js.map +0 -1
- package/dist/tasks/task.js.map +0 -1
- package/dist/utils/cleanup.js.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/lock.js.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/proc.js.map +0 -1
- package/dist/verification/safety.js.map +0 -1
- package/dist/verification/scope.js.map +0 -1
package/docs/getting-started.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# Getting
|
|
1
|
+
# Getting Started
|
|
2
|
+
|
|
3
|
+
This guide covers the canonical setup flow for **DevWorkspace** across macOS, Linux, and Windows.
|
|
2
4
|
|
|
3
5
|
## Quick Start (One Command)
|
|
4
6
|
|
|
@@ -7,156 +9,112 @@ cd path/to/your/project
|
|
|
7
9
|
npx devworkspace setup
|
|
8
10
|
```
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
- **In an interactive terminal:** DevWorkspace runs a guided wizard where you pick a preset (`Minimal`, `Recommended`, `Full`, or `Custom`), choose or auto-detect a coding agent, preview every workspace/discovery/settings/agent file and external action, and confirm before writing.
|
|
13
|
+
- **In scripts, CI, or non-interactive terminals:** Bare `npx devworkspace setup` never prompts or hangs; it applies the deterministic `Minimal` preset, persists `.devworkspace/settings.json`, initializes core discovery, and leaves agent/external files untouched unless explicit flags are passed.
|
|
14
|
+
- **Failure recovery:** If an error occurs mid-setup (for example, during agent configuration), DevWorkspace rolls back local managed files changed during that run via pre-run snapshots (preserving all pre-existing user files and project data), records recovery state in `.devworkspace/local/setup-recovery.json`, and allows you to safely re-run `devworkspace setup`. External tool installs that already started are reported cleanly because third-party packages are not auto-uninstalled.
|
|
13
15
|
|
|
14
16
|
```bash
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
# Preview changes without writing any files
|
|
18
|
+
npx devworkspace setup --preset recommended --agent claude-code --dry-run
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
# Deterministic recommended setup with Claude Code MCP
|
|
21
|
+
npx devworkspace setup --preset recommended --agent claude-code
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
npx devworkspace
|
|
22
|
-
npx devworkspace dashboard
|
|
23
|
+
# Custom selection of built-in capabilities
|
|
24
|
+
npx devworkspace setup --preset custom --features workflow.tasks,workflow.decisions --agent codex
|
|
23
25
|
```
|
|
24
26
|
|
|
25
27
|
---
|
|
26
28
|
|
|
27
|
-
##
|
|
29
|
+
## Choosing a Preset
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
- **`minimal`:** Initializes `.devworkspace/`, discovers packages and verification commands (`commands.json`, `facts.json`), enables privacy/security checks, and runs `doctor`. Zero agent files and zero external tool installations.
|
|
32
|
+
- **`recommended`:** Minimal + task/decision workflows + connects one selected or auto-detected coding agent (`Claude Code`, `OpenAI Codex`, `Cursor`, `GitHub Copilot`, or `Google Antigravity`).
|
|
33
|
+
- **`full`:** Enables all built-in capabilities (`standards`, `feature` maps, `graph`, `orchestrate`, `dashboard`) + agent setup. Optional third-party integrations are shown cleanly and still require explicit selection and `--yes` consent.
|
|
34
|
+
- **`custom`:** Lets you pick individual capabilities with dependency explanations.
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
cd path/to/your/project
|
|
33
|
-
npx devworkspace init
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
`init` finds the project root (the Git top-level if you are in a subfolder, otherwise the current directory; override with `--root`), creates `.devworkspace/`, writes a nested `.gitignore` for machine-local state, and reports which integrations it can see. It never edits your source and is safe to repeat. Use `--dry-run` to preview.
|
|
37
|
-
|
|
38
|
-
What you get:
|
|
36
|
+
---
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
.devworkspace/
|
|
42
|
-
├── project.json identity (random id), name, settings, managed-file list
|
|
43
|
-
├── .gitignore ignores local/ and regenerable prompts
|
|
44
|
-
├── context/ facts.json, commands.json (testing contract), your architecture.md etc.
|
|
45
|
-
├── decisions/ 0001-use-redis.md ...
|
|
46
|
-
├── tasks/{active,completed}/
|
|
47
|
-
├── sessions/ short summaries
|
|
48
|
-
├── analysis/ discovery.json (+ onboarding-prompt.md, git-ignored)
|
|
49
|
-
├── state/analysis.json hashes/timestamps used for staleness
|
|
50
|
-
└── local/ machine-specific; never committed
|
|
51
|
-
```
|
|
38
|
+
## Inspecting & Changing Settings
|
|
52
39
|
|
|
53
|
-
|
|
40
|
+
Review what is configured at any time without modifying files:
|
|
54
41
|
|
|
55
42
|
```bash
|
|
56
|
-
npx devworkspace
|
|
43
|
+
npx devworkspace settings
|
|
44
|
+
npx devworkspace settings --json
|
|
57
45
|
```
|
|
58
46
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## 3. Onboard with Claude
|
|
62
|
-
|
|
63
|
-
Open `.devworkspace/analysis/onboarding-prompt.md` and paste it into Claude Code. Claude will:
|
|
64
|
-
|
|
65
|
-
1. validate the findings against the real code,
|
|
66
|
-
2. use Graphify (if available) to understand structure,
|
|
67
|
-
3. run `devworkspace agent install` (adds a small managed block to `CLAUDE.md` and installs the `devworkspace` skill, preserving anything you wrote),
|
|
68
|
-
4. write concise knowledge into `.devworkspace/context/`,
|
|
69
|
-
5. check the testing contract and record a baseline,
|
|
70
|
-
6. run the integration manager (`devworkspace setup --integrations`) after asking you once; it installs and verifies Graphify, Agent Skills and Ponytail and reports precise statuses,
|
|
71
|
-
7. run `devworkspace doctor` and report unknowns and warnings.
|
|
72
|
-
|
|
73
|
-
It is told not to modify application source during onboarding.
|
|
74
|
-
|
|
75
|
-
### Configuring Agent Instructions & Skills Manually
|
|
76
|
-
|
|
77
|
-
You can also install the agent instructions and skills directly from your terminal:
|
|
47
|
+
To adjust your preset, agent, or capabilities later (preserving all recorded project knowledge, decisions, and tasks):
|
|
78
48
|
|
|
79
49
|
```bash
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
# Or configure MCP stdio tools (.mcp.json)
|
|
84
|
-
npx devworkspace setup --agent claude-code
|
|
50
|
+
npx devworkspace setup --edit
|
|
51
|
+
# or
|
|
52
|
+
npx devworkspace settings edit
|
|
85
53
|
```
|
|
86
54
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
To enable structural knowledge graphs:
|
|
55
|
+
You can also toggle individual optional modules directly at any time:
|
|
90
56
|
|
|
91
57
|
```bash
|
|
92
|
-
|
|
93
|
-
npx devworkspace
|
|
58
|
+
npx devworkspace modules list
|
|
59
|
+
npx devworkspace modules enable intelligence.graph
|
|
60
|
+
npx devworkspace modules disable dx.dashboard --dry-run
|
|
94
61
|
```
|
|
95
62
|
|
|
96
|
-
|
|
97
|
-
> **Claude Code Session Reload Requirement:**
|
|
98
|
-
> Claude Code indexes skills and slash commands only when a session starts. If Claude Code is already running when `setup --integrations` or `agent install` writes skills:
|
|
99
|
-
> - Running `/graphify .` will output: `"/graphify" isn't installed in this session`.
|
|
100
|
-
> - **Solution:** In your Claude Code chat prompt, run `/reload-plugins` (or restart the Claude Code session / reload VS Code).
|
|
101
|
-
> - Then run `/graphify .` to build the graph (`graphify-out/graph.json`).
|
|
102
|
-
> - Once restarted, acknowledge the restart in DevWorkspace:
|
|
103
|
-
> ```bash
|
|
104
|
-
> npx devworkspace integrations status --restarted
|
|
105
|
-
> ```
|
|
106
|
-
|
|
107
|
-
## 4. Verify
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
npx devworkspace doctor
|
|
111
|
-
```
|
|
63
|
+
For the full capability matrix, dependencies, and runtime gating rules, see [Modular Features & Toggles](features.md).
|
|
112
64
|
|
|
113
|
-
|
|
114
|
-
- `Integrations` status:
|
|
115
|
-
- `VERIFIED`: CLI executable, project skill, and hooks are confirmed working.
|
|
116
|
-
- `RESTART_REQUIRED`: Skills or plugins were installed; run `/reload-plugins` or restart Claude Code, then acknowledge with `npx devworkspace integrations status --restarted`.
|
|
117
|
-
- `DEGRADED (cli without project skill)`: The Graphify CLI exists, but `.claude/skills/graphify/SKILL.md` is missing. Fix by running `npx devworkspace setup --integrations --yes`.
|
|
118
|
-
- `NOT_INSTALLED`: Optional integration is absent. Missing optional integrations do not fail core checks.
|
|
65
|
+
---
|
|
119
66
|
|
|
120
|
-
|
|
67
|
+
## Optional External Integrations
|
|
121
68
|
|
|
122
|
-
|
|
69
|
+
Third-party tools (`Graphify`, `Agent Skills`, `Ponytail`, `OmniRoute`) are never installed by `Minimal` or `Recommended`. Preview and install only what you want with explicit `--yes` consent:
|
|
123
70
|
|
|
124
|
-
|
|
71
|
+
```bash
|
|
72
|
+
# Preview installation plan and prerequisites
|
|
73
|
+
npx devworkspace setup --integrations --dry-run --only graphify
|
|
125
74
|
|
|
126
|
-
|
|
75
|
+
# Install with explicit confirmation
|
|
76
|
+
npx devworkspace setup --integrations --yes --only graphify
|
|
77
|
+
```
|
|
127
78
|
|
|
128
|
-
|
|
79
|
+
If an installed integration shows `RESTART_REQUIRED`, reload your coding agent session (e.g., `/reload-plugins` in Claude Code) and run:
|
|
129
80
|
|
|
130
81
|
```bash
|
|
131
|
-
devworkspace
|
|
132
|
-
devworkspace feature show auth.login
|
|
133
|
-
devworkspace feature validate
|
|
134
|
-
devworkspace feature add --id sales.orders --name "Sales Orders" --entry src/pages/Orders.tsx --route src/routes/sales.ts --symbol OrderController
|
|
82
|
+
npx devworkspace integrations status --restarted
|
|
135
83
|
```
|
|
136
84
|
|
|
137
|
-
|
|
85
|
+
---
|
|
138
86
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
87
|
+
## Workspace Layout
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
.devworkspace/
|
|
91
|
+
├── project.json project identity and versioned metadata
|
|
92
|
+
├── settings.json selected preset, agent, and capability choices (no secrets)
|
|
93
|
+
├── .gitignore ignores local/ and regenerable prompts
|
|
94
|
+
├── context/ facts.json, commands.json (testing contract), features.json
|
|
95
|
+
├── decisions/ decision records
|
|
96
|
+
├── tasks/{active,completed}/
|
|
97
|
+
├── sessions/ session summaries
|
|
98
|
+
├── analysis/ discovery.json (+ onboarding-prompt.md, git-ignored)
|
|
99
|
+
└── local/ machine-local state (never committed)
|
|
142
100
|
```
|
|
143
101
|
|
|
144
|
-
|
|
102
|
+
---
|
|
145
103
|
|
|
146
|
-
|
|
147
|
-
npx devworkspace reset # shows what would be deleted; deletes nothing
|
|
148
|
-
npx devworkspace reset --yes # deletes .devworkspace/ (knowledge, tasks, decisions, local state)
|
|
149
|
-
npx devworkspace reset --yes --include-agent-files # also removes the DevWorkspace block from CLAUDE.md and the managed skill
|
|
150
|
-
npx devworkspace init # begin again with a new project id
|
|
151
|
-
```
|
|
104
|
+
## Advanced & Manual Commands
|
|
152
105
|
|
|
153
|
-
|
|
106
|
+
Every underlying command remains available independently:
|
|
107
|
+
- `npx devworkspace init` — initialize `.devworkspace/` without running full discovery
|
|
108
|
+
- `npx devworkspace analyze` — run deterministic discovery and refresh `commands.json`
|
|
109
|
+
- `npx devworkspace setup --agent <id>` — configure or re-verify MCP (`claude-code`, `codex`, `antigravity`, `all`)
|
|
110
|
+
- `npx devworkspace agent install --agent <id>` — install file-based rules (`cursor`, `copilot`, `codex`, `claude`)
|
|
111
|
+
- `npx devworkspace doctor [--fix]` — run core workspace and integration diagnostics
|
|
112
|
+
- `npx devworkspace dashboard` — write an optional offline HTML overview to `.devworkspace/local/dashboard.html`
|
|
154
113
|
|
|
155
|
-
##
|
|
114
|
+
## Start Over Cleanly
|
|
156
115
|
|
|
157
116
|
```bash
|
|
158
|
-
|
|
159
|
-
npx devworkspace
|
|
117
|
+
npx devworkspace reset # preview what would be removed; deletes nothing
|
|
118
|
+
npx devworkspace reset --yes # remove .devworkspace/ (keeps source files)
|
|
119
|
+
npx devworkspace reset --yes --include-agent-files # also remove DevWorkspace managed blocks
|
|
160
120
|
```
|
|
161
|
-
|
|
162
|
-
Requires Node.js 20.11+.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# DevWorkspace — Global Engineering Standards Migration Guide
|
|
2
|
+
|
|
3
|
+
This guide details how existing projects and teams using DevWorkspace can adopt the native **Global Engineering Standards & Best Practices System**.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Overview & Backward Compatibility
|
|
8
|
+
|
|
9
|
+
The Global Engineering Standards System is an additive, backward-compatible, offline-first subsystem introduced into DevWorkspace core.
|
|
10
|
+
|
|
11
|
+
- **Zero Breaking Changes:** Existing workspaces without `.devworkspace/standards/` continue to function without interruption.
|
|
12
|
+
- **Offline-First & Deterministic:** No cloud telemetry, LLM token usage, or external AI services are required.
|
|
13
|
+
- **Configurable Enforcement:** Projects can define strictness, grant rule-specific exemptions, or add company-wide custom standards.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 2. Adoption Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Discover Applicable Standards
|
|
20
|
+
Run the standards list command inside any initialized project:
|
|
21
|
+
```bash
|
|
22
|
+
devworkspace standards list
|
|
23
|
+
```
|
|
24
|
+
To see only standards that match your project's detected technology stack (languages, frameworks, databases, platforms):
|
|
25
|
+
```bash
|
|
26
|
+
devworkspace standards list --applicable-only
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Step 2: Audit Project Compliance
|
|
30
|
+
Run an automated compliance audit against your codebase:
|
|
31
|
+
```bash
|
|
32
|
+
devworkspace standards audit
|
|
33
|
+
```
|
|
34
|
+
Or check a specific standard by ID:
|
|
35
|
+
```bash
|
|
36
|
+
devworkspace standards audit deployment-safety-and-rollback
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Step 3: Adopt The Undo Kit (Deployment Safety & Rollback)
|
|
40
|
+
To apply the deployment safety standard and generate a project-tailored `ROLLBACK.md`:
|
|
41
|
+
```bash
|
|
42
|
+
devworkspace standards apply deployment-safety-and-rollback
|
|
43
|
+
```
|
|
44
|
+
This writes `ROLLBACK.md` implementing the **4 Buttons of The Undo Kit**:
|
|
45
|
+
1. **The Last Good Deploy:** Documented hosting platform instant rollback or tagged artifact redeploy.
|
|
46
|
+
2. **Backup First:** Pre-migration automated database dump command.
|
|
47
|
+
3. **A Switch:** Feature flags configuration to deactivate broken code without redeploying.
|
|
48
|
+
4. **Try It Once:** Documented recovery rehearsal log.
|
|
49
|
+
|
|
50
|
+
### Step 4: Generate a Shareable Compliance Report
|
|
51
|
+
To generate a formatted Markdown compliance report for code review or architectural auditing:
|
|
52
|
+
```bash
|
|
53
|
+
devworkspace standards report --out compliance-report.md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 3. Configuration & Exception Management
|
|
59
|
+
|
|
60
|
+
The system stores project configuration under `.devworkspace/standards/config.json`:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"version": "1.0.0",
|
|
65
|
+
"autoDetect": true,
|
|
66
|
+
"enforcement": {
|
|
67
|
+
"security": "required",
|
|
68
|
+
"database": "required",
|
|
69
|
+
"deployment": "required",
|
|
70
|
+
"testing": "required",
|
|
71
|
+
"code-quality": "recommended",
|
|
72
|
+
"architecture": "recommended"
|
|
73
|
+
},
|
|
74
|
+
"disabledStandards": [],
|
|
75
|
+
"exceptions": [
|
|
76
|
+
{
|
|
77
|
+
"ruleId": "code-quality.typecheck",
|
|
78
|
+
"reason": "Legacy backend migration in progress; full typing scheduled for Q1",
|
|
79
|
+
"approvedBy": "Lead Architect",
|
|
80
|
+
"approvedAt": "2026-11-30T00:00:00.000Z",
|
|
81
|
+
"expiresAt": "2026-12-31T23:59:59.000Z"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
> [!IMPORTANT]
|
|
88
|
+
> Critical standards like `security-baseline` cannot be disabled globally. Any rule bypass requires an explicit, audited exemption entry with reason, approver, and expiration date.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 4. Ingesting Custom Internal Standards
|
|
93
|
+
|
|
94
|
+
Teams can define internal organization standards in JSON format and place them under `.devworkspace/standards/custom/*.json`:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
devworkspace standards add /path/to/custom-api-guidelines.json
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Or commit custom standards directly into your repository so teammates automatically inherit them on `devworkspace standards list`.
|
package/docs/integrations.md
CHANGED
|
@@ -34,6 +34,7 @@ Statuses are **observed** by looking at the machine and running the tools. `.dev
|
|
|
34
34
|
| `DEGRADED` | Installed but incomplete or unhealthy; the warnings say what is missing (e.g. portable skills have no commands or hooks). |
|
|
35
35
|
| `FAILED` | The last setup attempt failed; the error and next step are shown and remembered. |
|
|
36
36
|
| `RESTART_REQUIRED` | Installed, but Claude Code must be restarted (or `/reload-plugins` run) to load it. Cleared by `integrations status --restarted`. |
|
|
37
|
+
| `DISABLED` | Explicitly disabled in `.devworkspace/settings.json`; skipped cleanly without spawning inspection commands (pass `--all` to `integrations status` to force diagnostic inspection). |
|
|
37
38
|
|
|
38
39
|
"Full integration readiness" is stated only when every **required** integration (Graphify, Agent Skills, Ponytail) is `VERIFIED`. A missing integration never makes the core workspace unhealthy and never changes `doctor`'s exit code unless you pass `--strict` (exit 3).
|
|
39
40
|
|
|
@@ -99,6 +100,12 @@ DevWorkspace-owned data is under `.devworkspace/` (`context/`, `decisions/`, `ta
|
|
|
99
100
|
| `CLAUDE.md`, `AGENTS.md`, `.claude/` | Agent | Instruction and skill discovery. |
|
|
100
101
|
| `graphify-out/` | **Graphify** | `graphify update`, the `/graphify` skill and its hooks hardcode the project-root `graphify-out/`. Graphify (0.9.x) has no setting to relocate it for those commands, so DevWorkspace does not move it and does not use symlinks or junctions to fake it. |
|
|
101
102
|
|
|
103
|
+
## Module Toggles & Opt-In Policy
|
|
104
|
+
|
|
105
|
+
Optional external integrations (`integration.graphify`, `integration.agent-skills`, `integration.ponytail`, `integration.omniroute`) are off by default under `minimal`, `recommended`, and `full` presets. When `.devworkspace/settings.json` has an integration disabled:
|
|
106
|
+
- `devworkspace integrations status`, `devworkspace status`, and `devworkspace doctor` report it as `DISABLED` without launching external inspection commands (use `devworkspace integrations status --all` only when you explicitly want to probe disabled integrations).
|
|
107
|
+
- `devworkspace setup --integrations --only <id>` blocks installation until you explicitly enable it (`devworkspace modules enable integration.<id> --yes`) or approve it during `setup --integrations --yes --only <id>`. See [Modular Features & Toggles](features.md).
|
|
108
|
+
|
|
102
109
|
The only relocation Graphify supports is `graphify extract <path> --out .devworkspace/graph/graphify`, which writes `.devworkspace/graph/graphify/graphify-out/`. DevWorkspace reads either location (`devworkspace graph status`, MCP tools). If Graphify is not installed or Claude Code is not available, `devworkspace graph generate` can extract code structure directly into an offline fallback graph. If both exist it reads the most recently written one and `devworkspace doctor` warns; nothing is copied, moved or deleted automatically.
|
|
103
110
|
|
|
104
111
|
**Existing workspaces need no migration.** The layout above is unchanged for them; `devworkspace init` is idempotent and only appends the `graph/` ignore rule to `.devworkspace/.gitignore` without touching your lines.
|
package/docs/mcp.md
CHANGED
|
@@ -375,6 +375,19 @@ Testing a build: a **source checkout** (`node dist/cli/main.js setup …`) leave
|
|
|
375
375
|
|
|
376
376
|
---
|
|
377
377
|
|
|
378
|
+
## Tested Compatibility Matrix
|
|
379
|
+
|
|
380
|
+
Only verified combinations from automated tests and CI checks are listed below:
|
|
381
|
+
|
|
382
|
+
| Target / Flow | OS & Runtime Tested | Verification Scope | Limitations / Honest Status |
|
|
383
|
+
| --- | --- | --- | --- |
|
|
384
|
+
| **DevWorkspace MCP STDIO Server** (`mcp serve`) | Windows 11 (Node 24.16.0), Ubuntu CI (`ubuntu-latest`, Node 22) | End-to-end `initialize`, `tools/list`, `get_project_overview`, `get_task_context`, `get_file_context`, `explain_context`, `trace_symbol_dependencies`, `check_mcp_health`, zero open TCP sockets, error/bounds enforcement (`mcp-stdio.test.ts`, `mcp-platform-contracts.test.ts`) | Live stdio server verified in-repo; interactive IDE UI rendering happens inside the host client. |
|
|
385
|
+
| **Claude Code** (`.mcp.json` + `CLAUDE.md`) | Windows 11, Ubuntu CI | Config generation, merge/conflict safety, live server probe via `verifyMcpServer`; live `claude mcp get devworkspace` probe when `claude` CLI is on `PATH` | Agent registration/approval in an active Claude session requires user reload (`/mcp`). |
|
|
386
|
+
| **OpenAI Codex** (`.codex/config.toml` + `AGENTS.md`) | Windows 11, Ubuntu CI | TOML generation, comment/table preservation, legacy `mcp.json` doctor warnings, live `verifyMcpServer` against server binary | Codex CLI itself was not executed in tests; project trust in Codex must be enabled by the user. |
|
|
387
|
+
| **Google Antigravity** (`~/.gemini/.../mcp_config.json`) | Windows 11, Ubuntu CI | Read-only manual snippet without `--user`; atomic backup + `--cwd` merge with `--user`; `ANTIGRAVITY_CONFIG_PATH` override | Antigravity desktop/IDE process reload was not driven automatically. |
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
378
391
|
## 15. Manual Debugging
|
|
379
392
|
|
|
380
393
|
To run the MCP server with diagnostic debug logging to stderr:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# DevWorkspace Third-Party License & Attribution Inventory
|
|
2
|
+
|
|
3
|
+
**Project:** DevWorkspace
|
|
4
|
+
**Primary License:** MIT License
|
|
5
|
+
**Audit Date:** November 25, 2026
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Overview
|
|
10
|
+
|
|
11
|
+
DevWorkspace core runtime is authored under the **MIT License** and operates with **zero runtime production dependencies** (`dependencies: {}` in `package.json`).
|
|
12
|
+
|
|
13
|
+
All optional integrations, specifications, and external adapters adhere strictly to their respective open-source licenses.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 2. Third-Party Software & Specification Attributions
|
|
18
|
+
|
|
19
|
+
### 2.1 Google Agent Development Kit (ADK) for TypeScript
|
|
20
|
+
- **Repository:** https://github.com/google/adk-js
|
|
21
|
+
- **Documentation:** https://adk.dev/
|
|
22
|
+
- **License:** Apache License, Version 2.0
|
|
23
|
+
- **Copyright:** Copyright (c) 2025-2026 Google LLC
|
|
24
|
+
- **Integration Scope in DevWorkspace:** Optional, dynamically imported adapter (`src/intelligence/runtime/adk/`). DevWorkspace does not bundle or vendor Google ADK source code within its core npm distribution package.
|
|
25
|
+
- **Notice Requirements:** Preserved under Section 4(d) of the Apache 2.0 license.
|
|
26
|
+
|
|
27
|
+
### 2.2 Agent Skills Specification
|
|
28
|
+
- **Specification:** https://agentskills.io/
|
|
29
|
+
- **Repository:** https://github.com/agentskills/agentskills
|
|
30
|
+
- **License:** MIT License / Open Specification
|
|
31
|
+
- **Integration Scope in DevWorkspace:** Adoption of the portable skill manifest schema and directory conventions (`.devworkspace/skills/`).
|
|
32
|
+
|
|
33
|
+
### 2.3 Model Context Protocol (MCP)
|
|
34
|
+
- **Specification:** https://modelcontextprotocol.io/
|
|
35
|
+
- **Integration Scope in DevWorkspace:** Built-in lightweight JSON-RPC 2.0 stdio server implementation adhering to the Model Context Protocol specification for tool discovery and execution.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 3. Development Dependencies
|
|
40
|
+
|
|
41
|
+
All development-time dependencies (TypeScript, Vitest, ESLint) are used solely for building, linting, and testing the package during development and are never distributed in the consumer npm tarball.
|
package/docs/security.md
CHANGED
|
@@ -27,9 +27,15 @@ Repository files are untrusted data. The installed instructions and every genera
|
|
|
27
27
|
- Nothing deletes user files. `doctor --fix` only *creates* missing folders/ignore rules.
|
|
28
28
|
- `export` refuses to run if the workspace contains secret-like values. `import` validates **everything** (format, schema version, path allow-list, size, secrets, JSON validity) before writing anything, never replaces `project.json`, and never overwrites differing local files unless `--overwrite` (with backups).
|
|
29
29
|
|
|
30
|
-
## Subprocesses
|
|
30
|
+
## Subprocesses and Execution Boundary
|
|
31
31
|
|
|
32
|
-
`git` (read-only)
|
|
32
|
+
`git` (read-only), runtime adapter commands (`NativeRuntimeAdapter`, `ExternalAgentAdapter`), and during `setup --integrations`, the installers (`uv`, `pipx`, `python -m pip`, `graphify`, `claude`) are executed with argument arrays and `shell: false`, with timeouts and output caps. Windows `.cmd` shims are run only through a validated `cmd.exe` call that rejects arguments containing shell metacharacters. Repository scripts are never run automatically during discovery.
|
|
33
|
+
|
|
34
|
+
For runtime orchestration adapters (`src/intelligence/runtime/boundary.ts`):
|
|
35
|
+
- **Pre-execution enforcement:** Working directories are checked for workspace containment and symlink escape (`resolveInside`, `assertNoSymlinkEscape`); direct shells (`sh`, `bash`, `cmd`, `powershell`, etc.) and unapproved destructive commands are blocked immediately prior to `spawn`.
|
|
36
|
+
- **Minimal environment:** Child execution uses `replaceEnv: true` with `createMinimalExecutionEnv()`, stripping unrelated secrets and tokens (`GITHUB_TOKEN`, cloud keys, database URLs) unless explicitly allowlisted.
|
|
37
|
+
- **Process-tree cleanup:** Timeouts and `AbortSignal` cancellations terminate process groups (`taskkill /T /F` on Windows, `-pid` `SIGKILL` on POSIX).
|
|
38
|
+
- **Non-sandbox disclosure:** `cwd`/`sandboxPath` constrains only the starting directory; DevWorkspace does **not** implement an OS-level filesystem/network sandbox and reports `sandboxed: false` (`unavailable-cwd-only`) explicitly in adapter responses.
|
|
33
39
|
|
|
34
40
|
## Installing third-party tools
|
|
35
41
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Final Correction, Root Cleanup & Production Verification Report (`v0.5.2`)
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-12-02
|
|
4
|
+
**Branch:** `main` (local commits only — nothing published, deployed, tagged, or pushed)
|
|
5
|
+
**Version:** `devworkspace@0.5.2`
|
|
6
|
+
**Platform Verified:** Windows 11 (`win32 x64`, Node.js `v24.16.0`)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Summary of Changes
|
|
11
|
+
|
|
12
|
+
This pass resolved the four implementation review findings across setup defaults, settings coherence validation, integration inspection gating, and setup preview/failure recovery, cleaned up root-level repository clutter into structured `docs/` folders, validated recursive documentation links (`0` broken links), and added targeted regression/scenario tests.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. Review Findings & Exact Resolutions
|
|
17
|
+
|
|
18
|
+
| Finding | Root Cause | Resolution & Files Updated | Verification |
|
|
19
|
+
|---|---|---|---|
|
|
20
|
+
| **1. Non-interactive setup defaults (P1)** | Bare non-TTY `devworkspace setup` routed through `setupProject()` without persisting `.devworkspace/settings.json` (`preset: 'minimal'`), allowing legacy `Recommended` fallback inference. | Routed non-interactive bare `devworkspace setup` and `runDeterministicGuidedSetup()` (`minimal` default unless `--preset` or `--edit` overrides) through [`applyGuidedSetup()`](../../src/dx/guided-setup.ts) in [`run.ts`](../../src/cli/run.ts). Aligned `renderGuidedSetup` header in [`render.ts`](../../src/cli/render.ts) (`DevWorkspace Setup`) and `dryRun` schema (`initialized`). Preserved `setupProject()` public API and `setup --agent <id>` fast path cleanly. | Verified bare non-TTY persistence (`preset: 'minimal'`, only `core.*` enabled), repeated idempotent runs, explicit `recommended`/`full` presets, and legacy workspace compatibility in [`setup-corrections-regression.test.ts`](../../tests/unit/setup-corrections-regression.test.ts). |
|
|
21
|
+
| **2. Strengthen feature settings validation (P1)** | `validateWorkspaceSettings()` only checked string-array types without verifying feature IDs, core capabilities, dependency closure, or conflicts; `loadWorkspaceSettingsSafe()` silently swallowed validation failures on runtime execution paths. | Added `validateSettingsFeatureCoherence()` in [`settings.ts`](../../src/config/settings.ts) validating IDs against [`FEATURE_REGISTRY`](../../src/config/feature-registry.ts), enforcing mandatory `core.*` capabilities, blocking overlap/conflicts, and verifying dependencies. Added `loadWorkspaceSettingsStrict()` so [`checkModuleEnabled()`](../../src/config/feature-gate.ts) and [`modules.ts`](../../src/services/modules.ts) fail closed cleanly without overwriting invalid files, and verified transitive dependencies recursively at runtime. Kept read-only [`settings.ts`](../../src/services/settings.ts) safe recovery (`recoveryWarning`) without crashing or spawning external commands on broken config. Added `'settings'` check in [`doctor.ts`](../../src/services/doctor.ts). | Tested unknown IDs, disabled/omitted `core.security`, missing dependencies, disabled dependencies, conflicts, and fail-closed runtime gating in [`setup-corrections-regression.test.ts`](../../tests/unit/setup-corrections-regression.test.ts). |
|
|
22
|
+
| **3. Prevent disabled integrations from being inspected (P1)** | `inspectAll()` ran `inspect()` (including deep CLI subprocesses) on every adapter even when disabled in `.devworkspace/settings.json`. | Added `'DISABLED'` to [`STATUS_CODES`](../../src/integrations/types.ts). Updated [`inspectAll()`](../../src/integrations/manager.ts) and [`integrationsStatus()`](../../src/services/integrations.ts) to short-circuit disabled `integration.*` modules with `status: 'DISABLED'` (zero subprocesses spawned) unless diagnostic override (`--all` / `--force` / `includeDisabled: true`) is passed. Updated `summarize()` and [`render.ts`](../../src/cli/render.ts) so disabled integrations do not fail readiness checks or render warnings. Documented `DISABLED` and `--all` in [`docs/integrations.md`](../integrations.md) and [`help.ts`](../../src/cli/help.ts). | Proved with spy adapters & spy `Runner` that `graphify`, `agent-skills`, `ponytail`, and `omniroute` execute `0` external inspection commands when disabled, run only when selectively enabled, and obey `--all` override cleanly in [`setup-corrections-regression.test.ts`](../../tests/unit/setup-corrections-regression.test.ts). |
|
|
23
|
+
| **4. Setup preview completeness & failure recovery (P2)** | `planGuidedSetup()` omitted `analyzeWorkspace()` output files and `.gitkeep` entries; `applyGuidedSetup()` lacked rollback and recovery tracking on partial failure (while JSDoc claimed atomicity). | Expanded `planGuidedSetup()` in [`guided-setup.ts`](../../src/dx/guided-setup.ts) to preview init, discovery, analysis, settings, preserved user data (`preserve`), agent config, and `external` integration actions with zero dry-run disk writes. Added pre-run snapshots of reversible managed files, staged step journaling, automatic local rollback preserving pre-existing `CLAUDE.md`/tasks/decisions, and `.devworkspace/local/setup-recovery.json` recovery state + `readSetupRecoveryState()`. Removed false atomicity claim in JSDoc/docs and warned on partial external tool starts (`irreversibleExternalNotes`). | Verified full preview entries (`create`/`update`/`preserve`/`external`) and simulated failures across `analysis`, `agent`, and post-`integrations` `doctor` stages, confirming byte-identical user file preservation and clean recovery on rerun. |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 3. Repository Root Cleanup Summary
|
|
28
|
+
|
|
29
|
+
### Root Directory Before Cleanup (Non-Config / Non-Entry Files Present at Root)
|
|
30
|
+
- **Removed stale untracked build tarballs (`4`):** `devworkspace-0.3.1.tgz`, `devworkspace-0.3.2.tgz`, `devworkspace-0.3.3.tgz`, `devworkspace-0.4.5.tgz` (local scratch artifacts covered by `.gitignore` `*.tgz`).
|
|
31
|
+
- **Moved Root Markdown Documentation (`12` files moved cleanly with `git mv`):**
|
|
32
|
+
- `GLOBAL_STANDARDS_ARCHITECTURE.md` -> [`docs/architecture/global-standards-architecture.md`](../architecture/global-standards-architecture.md) (system design spec)
|
|
33
|
+
- `GLOBAL_STANDARDS_MIGRATION.md` -> [`docs/guides/global-standards-migration.md`](../guides/global-standards-migration.md) (migration guide)
|
|
34
|
+
- `GLOBAL_STANDARDS_TEST_REPORT.md` -> [`docs/testing/global-standards-test-report.md`](../testing/global-standards-test-report.md) (test report)
|
|
35
|
+
- `GLOBAL_STANDARDS_REAL_PROJECT_TESTS.md` -> [`docs/testing/global-standards-real-project-tests.md`](../testing/global-standards-real-project-tests.md) (validation report)
|
|
36
|
+
- `GLOBAL_STANDARDS_VERIFICATION_MATRIX.md` -> [`docs/testing/global-standards-verification-matrix.md`](../testing/global-standards-verification-matrix.md) (verification matrix)
|
|
37
|
+
- `GLOBAL_STANDARDS_AUDIT.md` -> [`docs/archive/global-standards/GLOBAL_STANDARDS_AUDIT.md`](../archive/global-standards/GLOBAL_STANDARDS_AUDIT.md) (historical baseline audit)
|
|
38
|
+
- `GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md` -> [`docs/archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md`](../archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md) (historical v0.5.0 plan)
|
|
39
|
+
- `GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md` -> [`docs/archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md`](../archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md) (historical v0.5.0 audit)
|
|
40
|
+
- `GLOBAL_STANDARDS_FINAL_STATUS.md` -> [`docs/archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md`](../archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md) (historical v0.5.0 status)
|
|
41
|
+
- `GLOBAL_STANDARDS_SECURITY_REPORT.md` -> [`docs/archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md`](../archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md) (historical v0.5.0 security audit)
|
|
42
|
+
- `EXECUTION_STATE.md` -> [`docs/development/EXECUTION_STATE.md`](../development/EXECUTION_STATE.md) (development/release state tracker; internal relative links updated cleanly)
|
|
43
|
+
- `THIRD_PARTY_LICENSES.md` -> [`docs/security/THIRD_PARTY_LICENSES.md`](../security/THIRD_PARTY_LICENSES.md) (license & attribution inventory; now also shipped in npm `docs/`)
|
|
44
|
+
|
|
45
|
+
### Clean Root Directory Retained
|
|
46
|
+
`README.md`, `CHANGELOG.md`, `LICENSE`, `CLAUDE.md` (active workspace agent instructions), `package.json`, `package-lock.json`, `tsconfig.json`, `tsconfig.build.json`, `eslint.config.js`, `vitest.config.ts`, `.gitignore`, `.gitattributes`, and standard folders (`.agents/`, `.claude/`, `.github/`, `src/`, `tests/`, `scripts/`, `fixtures/`, `docs/`, `reports/`, plus ignored `node_modules/`, `dist/`, `coverage/`).
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 4. Updated Documentation & Integrity Checks
|
|
51
|
+
|
|
52
|
+
- Updated relative links across [`docs/development/EXECUTION_STATE.md`](../development/EXECUTION_STATE.md), [`reports/setup-ux/FINAL_SETUP_AND_FEATURE_SELECTION_REPORT.md`](../../reports/setup-ux/FINAL_SETUP_AND_FEATURE_SELECTION_REPORT.md), and [`reports/certification/DEVWORKSPACE_LICENSE_AUDIT.md`](../../reports/certification/DEVWORKSPACE_LICENSE_AUDIT.md).
|
|
53
|
+
- Updated [`README.md`](../../README.md), [`docs/getting-started.md`](../getting-started.md), [`docs/configuration.md`](../configuration.md), [`docs/features.md`](../features.md), [`docs/integrations.md`](../integrations.md), and [`docs/troubleshooting.md`](../troubleshooting.md) to reflect deterministic non-TTY `Minimal` defaults, strict validation, `DISABLED` integration behavior, `--all` diagnostic flag, and partial-failure rollback/recovery (`setup-recovery.json`), with explicit clarification that single-package bundling differs from runtime module activation.
|
|
54
|
+
- Extended [`tests/unit/docs.test.ts`](../../tests/unit/docs.test.ts) to recursively validate relative Markdown links under all `docs/**` subfolders.
|
|
55
|
+
- Recursive link check across all `.md` files in `README.md`, `docs/`, and `reports/`: **`BROKEN_LINKS=0`**.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 5. Exact Verification Commands, Test Results, Build & Packaging
|
|
60
|
+
|
|
61
|
+
All verification commands below ran locally on Windows 11 (`win32`, Node.js `v24.16.0`) after final code & documentation changes:
|
|
62
|
+
|
|
63
|
+
| Command | Exit Code | Observed Output / Summary |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `npm run typecheck` | `0` | Zero TypeScript errors |
|
|
66
|
+
| `npm run lint` | `0` | Zero ESLint errors or warnings |
|
|
67
|
+
| `npm run test:unit` | `0` | `63 passed (63)` files; `1072 passed \| 1 skipped (1073)` *(POSIX-only symlink test in `tests/unit/integrations-plugins.test.ts` skipped on `win32`)* |
|
|
68
|
+
| `npm run test:integration` | `0` | `7 passed (7)` files; `126 passed (126)` |
|
|
69
|
+
| `npm run test:e2e` | `0` | `2 passed (2)` files; `61 passed (61)` |
|
|
70
|
+
| `npm run coverage` | `0` | `72 passed (72)` files; `1259 passed \| 1 skipped (1260)` — Statements `83.67%` (`10960/13099`), Branches `75.11%` (`8116/10805`), Functions `87.98%` (`1596/1814`), Lines `85.01%` (`9744/11461`) |
|
|
71
|
+
| `npm run eval` | `0` | `10/10 cases passed` (`14516ms`) |
|
|
72
|
+
| `npm run build` | `0` | Clean `dist/` build via `tsc -p tsconfig.build.json` |
|
|
73
|
+
| `npm run smoke` | `0` | `devworkspace-0.5.2.tgz: 388 files, 554 kB packed`; `Smoke test PASSED` (local/global/npx install + CLI smoke checks) |
|
|
74
|
+
| `npm publish --dry-run --access public` | `0` | `+ devworkspace@0.5.2`; `388` files, `567.5 kB` packed, `2.1 MB` unpacked *(dry-run only; nothing published)* |
|
|
75
|
+
| `npm run audit:security` | `0` | `found 0 vulnerabilities` (`npm audit --omit=dev --audit-level=high`) |
|
|
76
|
+
| `npm audit` | `0` | `found 0 vulnerabilities` (full dependency tree) |
|
|
77
|
+
| Recursive Markdown link check | `0` | `BROKEN_LINKS=0` across `README.md`, `docs/**`, `reports/**` |
|
|
78
|
+
| **Linux / macOS CI (`ubuntu-latest`, `macos-latest`)** | **NOT RUN** | Local Windows environment only; native multi-OS GitHub Actions workflows run only after remote push. |
|
|
79
|
+
|
|
80
|
+
### Scenarios Verified in Regression Suites
|
|
81
|
+
- [`tests/unit/setup-corrections-regression.test.ts`](../../tests/unit/setup-corrections-regression.test.ts) (`5/5` passed): covers Findings 1–4 and Scenarios A, B, C, D, E, F, and G end-to-end.
|
|
82
|
+
- [`tests/unit/setup-wizard.test.ts`](../../tests/unit/setup-wizard.test.ts) (`6/6` passed): interactive wizard presets, `BACK`/`CANCEL`, non-TTY determinism, consent, recovery.
|
|
83
|
+
- [`tests/unit/modular-features.test.ts`](../../tests/unit/modular-features.test.ts) (`5/5` passed): registry cycles/conflicts/core-lock, dependency resolution, gating across CLI/MCP/services/integrations, data preservation.
|
|
84
|
+
- [`tests/unit/docs.test.ts`](../../tests/unit/docs.test.ts) (`7/7` passed): recursive relative link checks, `COMMANDS` coverage in `README.md`, `STATUS_CODES` including `DISABLED` in `docs/integrations.md`, zero runtime dependencies.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 6. Remaining Limitations & Publication Hold
|
|
89
|
+
|
|
90
|
+
- Native Linux and macOS CI runs have not executed locally; only Windows 11 local verification has run on this commit.
|
|
91
|
+
- Remote GitHub environment protection, branch protection, signed-tag verification, and npm Trusted Publishing live run have not executed.
|
|
92
|
+
- **No publish, deployment, tag creation, or git push was executed.** All work stays cleanly committed on local `main`.
|