vgxness 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.md +110 -0
- package/dist/agents/agent-activation-service.js +144 -0
- package/dist/agents/agent-registry-service.js +46 -0
- package/dist/agents/agent-resolver.js +249 -0
- package/dist/agents/agent-seed-service.js +146 -0
- package/dist/agents/manager-profile-overlay-service.js +34 -0
- package/dist/agents/profile-model-routing.js +26 -0
- package/dist/agents/renderers/claude-renderer.js +98 -0
- package/dist/agents/renderers/index.js +16 -0
- package/dist/agents/renderers/json-renderer.js +87 -0
- package/dist/agents/renderers/opencode-renderer.js +100 -0
- package/dist/agents/renderers/provider-adapter.js +6 -0
- package/dist/agents/repositories/agents.js +185 -0
- package/dist/agents/repositories/manager-profile-overlays.js +81 -0
- package/dist/agents/schema.js +1 -0
- package/dist/cli/dashboard-operational-read-models.js +153 -0
- package/dist/cli/dashboard-renderer.js +109 -0
- package/dist/cli/dashboard-screen-renderers.js +332 -0
- package/dist/cli/dashboard-tui-read-model.js +71 -0
- package/dist/cli/dashboard-tui-state.js +218 -0
- package/dist/cli/dispatcher.js +2880 -0
- package/dist/cli/index.js +27 -0
- package/dist/cli/interactive-dashboard.js +29 -0
- package/dist/cli/mcp-start-path.js +21 -0
- package/dist/cli/setup-status-renderer.js +29 -0
- package/dist/cli/setup-wizard-read-model.js +56 -0
- package/dist/cli/setup-wizard-renderer.js +148 -0
- package/dist/cli/setup-wizard-state.js +82 -0
- package/dist/cli/tui-render-helpers.js +192 -0
- package/dist/export/redaction.js +71 -0
- package/dist/harness/tools/agents.js +245 -0
- package/dist/harness/tools/memory.js +29 -0
- package/dist/mcp/client-install-opencode-contract.js +227 -0
- package/dist/mcp/client-install-opencode.js +194 -0
- package/dist/mcp/client-setup-preview.js +38 -0
- package/dist/mcp/control-plane.js +175 -0
- package/dist/mcp/doctor.js +193 -0
- package/dist/mcp/index.js +10 -0
- package/dist/mcp/opencode-default-agent-config.js +156 -0
- package/dist/mcp/opencode-visibility.js +102 -0
- package/dist/mcp/schema.js +234 -0
- package/dist/mcp/stdio-server.js +56 -0
- package/dist/mcp/validation.js +761 -0
- package/dist/memory/import/dry-run-planner.js +58 -0
- package/dist/memory/import/index.js +3 -0
- package/dist/memory/import/observation-writer.js +220 -0
- package/dist/memory/import/package.js +178 -0
- package/dist/memory/memory-service.js +126 -0
- package/dist/memory/repositories/artifacts.js +41 -0
- package/dist/memory/repositories/observations.js +133 -0
- package/dist/memory/repositories/sessions.js +105 -0
- package/dist/memory/repositories/traces.js +58 -0
- package/dist/memory/schema.js +1 -0
- package/dist/memory/search.js +11 -0
- package/dist/memory/sqlite/database.js +97 -0
- package/dist/memory/sqlite/migrations/001_initial.sql +128 -0
- package/dist/memory/sqlite/migrations/002_observation_revisions.sql +14 -0
- package/dist/memory/sqlite/migrations/003_agent_registry.sql +26 -0
- package/dist/memory/sqlite/migrations/004_run_runtime.sql +62 -0
- package/dist/memory/sqlite/migrations/005_run_approvals.sql +20 -0
- package/dist/memory/sqlite/migrations/006_run_operation_attempts.sql +32 -0
- package/dist/memory/sqlite/migrations/007_abandoned_operation_attempts.sql +46 -0
- package/dist/memory/sqlite/migrations/008_run_execution_plan_events.sql +105 -0
- package/dist/memory/sqlite/migrations/009_multiple_operation_attempts.sql +73 -0
- package/dist/memory/sqlite/migrations/010_skill_registry.sql +66 -0
- package/dist/memory/sqlite/migrations/011_skill_usage_resolution_outcomes.sql +21 -0
- package/dist/memory/sqlite/migrations/012_skill_improvement_proposals.sql +37 -0
- package/dist/memory/sqlite/migrations/013_skill_evaluation_scenarios.sql +43 -0
- package/dist/memory/sqlite/migrations/014_manager_profile_overlays.sql +14 -0
- package/dist/memory/storage-paths.js +72 -0
- package/dist/orchestrator/natural-language-planner.js +191 -0
- package/dist/orchestrator/schema.js +1 -0
- package/dist/permissions/index.js +2 -0
- package/dist/permissions/policy-evaluator.js +109 -0
- package/dist/permissions/schema.js +1 -0
- package/dist/providers/opencode/injection-preview.js +134 -0
- package/dist/providers/opencode/manager-payload.js +129 -0
- package/dist/runs/execution-planning.js +117 -0
- package/dist/runs/operation-execution.js +1 -0
- package/dist/runs/operation-retry.js +124 -0
- package/dist/runs/repositories/runs.js +611 -0
- package/dist/runs/run-insights.js +145 -0
- package/dist/runs/run-service.js +713 -0
- package/dist/runs/run-snapshot-export-service.js +31 -0
- package/dist/runs/sandbox-process-execution.js +218 -0
- package/dist/runs/sandbox-worktree-planning.js +59 -0
- package/dist/runs/schema.js +1 -0
- package/dist/sdd/artifact-portability-service.js +118 -0
- package/dist/sdd/schema.js +17 -0
- package/dist/sdd/sdd-workflow-service.js +217 -0
- package/dist/setup/backup-rollback-service.js +76 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/providers/antigravity-setup-adapter.js +18 -0
- package/dist/setup/providers/claude-setup-adapter.js +30 -0
- package/dist/setup/providers/custom-setup-adapter.js +18 -0
- package/dist/setup/providers/index.js +6 -0
- package/dist/setup/providers/opencode-setup-adapter.js +104 -0
- package/dist/setup/providers/provider-setup-adapter.js +15 -0
- package/dist/setup/providers/provider-setup-registry.js +11 -0
- package/dist/setup/schema.js +1 -0
- package/dist/setup/setup-defaults.js +11 -0
- package/dist/setup/setup-lifecycle-service.js +175 -0
- package/dist/setup/setup-plan.js +105 -0
- package/dist/skills/repositories/skill-evaluation-scenarios.js +289 -0
- package/dist/skills/repositories/skill-improvement-proposals.js +288 -0
- package/dist/skills/repositories/skills.js +430 -0
- package/dist/skills/schema.js +1 -0
- package/dist/skills/skill-payload.js +94 -0
- package/dist/skills/skill-registry-service.js +92 -0
- package/dist/skills/skill-resolver.js +191 -0
- package/dist/workflows/command-allowlist-adapter.js +70 -0
- package/dist/workflows/schema.js +4 -0
- package/dist/workflows/workflow-executor.js +345 -0
- package/dist/workflows/workflow-registry.js +66 -0
- package/docs/architecture.md +698 -0
- package/docs/cli.md +741 -0
- package/docs/funcionamiento-del-sistema.md +868 -0
- package/docs/harness-gap-analysis.md +229 -0
- package/docs/prd.md +372 -0
- package/package.json +57 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { isWorkflowId, workflowIds } from './schema.js';
|
|
2
|
+
const definitions = {
|
|
3
|
+
explore: {
|
|
4
|
+
id: 'explore',
|
|
5
|
+
title: 'Explore',
|
|
6
|
+
description: 'Read-only investigation, codebase understanding, and option discovery without edits.',
|
|
7
|
+
defaultPhase: 'inspect',
|
|
8
|
+
mutability: 'read-only',
|
|
9
|
+
safetyProfile: 'low',
|
|
10
|
+
requiresSddArtifacts: false,
|
|
11
|
+
},
|
|
12
|
+
quickfix: {
|
|
13
|
+
id: 'quickfix',
|
|
14
|
+
title: 'Quick fix',
|
|
15
|
+
description: 'Small, localized, low-risk edits such as typos, narrow config changes, or simple bug fixes.',
|
|
16
|
+
defaultPhase: 'apply',
|
|
17
|
+
mutability: 'local-edits',
|
|
18
|
+
safetyProfile: 'moderate',
|
|
19
|
+
requiresSddArtifacts: false,
|
|
20
|
+
},
|
|
21
|
+
plan: {
|
|
22
|
+
id: 'plan',
|
|
23
|
+
title: 'Plan',
|
|
24
|
+
description: 'Non-mutating planning, design review, checklists, and implementation breakdown before code.',
|
|
25
|
+
defaultPhase: 'outline',
|
|
26
|
+
mutability: 'read-only',
|
|
27
|
+
safetyProfile: 'low',
|
|
28
|
+
requiresSddArtifacts: false,
|
|
29
|
+
},
|
|
30
|
+
build: {
|
|
31
|
+
id: 'build',
|
|
32
|
+
title: 'Build',
|
|
33
|
+
description: 'Clear implementation or feature work that is scoped enough not to require formal SDD gates.',
|
|
34
|
+
defaultPhase: 'implement',
|
|
35
|
+
mutability: 'planned-edits',
|
|
36
|
+
safetyProfile: 'elevated',
|
|
37
|
+
requiresSddArtifacts: false,
|
|
38
|
+
},
|
|
39
|
+
debug: {
|
|
40
|
+
id: 'debug',
|
|
41
|
+
title: 'Debug',
|
|
42
|
+
description: 'Failure analysis for logs, tests, crashes, errors, and reproducible breakages.',
|
|
43
|
+
defaultPhase: 'diagnose',
|
|
44
|
+
mutability: 'read-only',
|
|
45
|
+
safetyProfile: 'moderate',
|
|
46
|
+
requiresSddArtifacts: false,
|
|
47
|
+
},
|
|
48
|
+
sdd: {
|
|
49
|
+
id: 'sdd',
|
|
50
|
+
title: 'SDD',
|
|
51
|
+
description: 'Formal gated workflow for broad, risky, architectural, persistence, security, provider, or multi-step work.',
|
|
52
|
+
defaultPhase: 'explore',
|
|
53
|
+
mutability: 'formal-gated',
|
|
54
|
+
safetyProfile: 'formal-review',
|
|
55
|
+
requiresSddArtifacts: true,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
export function listWorkflows() {
|
|
59
|
+
return workflowIds.map((id) => definitions[id]);
|
|
60
|
+
}
|
|
61
|
+
export function getWorkflowDefinition(id) {
|
|
62
|
+
return definitions[id];
|
|
63
|
+
}
|
|
64
|
+
export function findWorkflowDefinition(id) {
|
|
65
|
+
return isWorkflowId(id) ? definitions[id] : undefined;
|
|
66
|
+
}
|