fix template, remove okr, use casan.*

This commit is contained in:
thanhnv
2026-07-18 16:45:31 +07:00
parent 0dfd1742d3
commit 13fae3e6c3
249 changed files with 4881 additions and 5702 deletions
@@ -24,19 +24,19 @@ OUT = ROOT / "docs" / "output" / "output_logs" / "casan-demo" / "pipeline-contex
steps = [
("step-0", "detect-existing-spec", "agent_step"),
("step-1-srs", "okr.srs", "agent_step"),
("step-2-bd", "okr.bd", "agent_step"),
("step-1-srs", "casan.srs", "agent_step"),
("step-2-bd", "casan.bd", "agent_step"),
("step-3-spec", "speckit.specify", "agent_step"),
("step-4-clarify", "speckit.clarify", "agent_step"),
("step-5-review-spec", "okr.reviewspec", "agent_step"),
("step-5-review-spec", "casan.reviewspec", "agent_step"),
("step-6-plan", "speckit.plan", "agent_step"),
("step-7-review-plan", "okr.reviewplan", "agent_step"),
("step-8-dd", "okr.dd", "agent_step"),
("step-8b-testcases", "okr.testkit.gen-testcases", "agent_step"),
("step-7-review-plan", "casan.reviewplan", "agent_step"),
("step-8-dd", "casan.dd", "agent_step"),
("step-8b-testcases", "casan.testkit.gen-testcases", "agent_step"),
("step-9-tasks", "speckit.tasks", "agent_step"),
("step-10-implement", "speckit.implement", "write_code"),
("step-11-review-code", "okr.reviewcode", "agent_step"),
("step-12-testkit", "okr.testkit.run-tests", "agent_step"),
("step-11-review-code", "casan.reviewcode", "agent_step"),
("step-12-testkit", "casan.testkit.run-tests", "agent_step"),
("step-13-launch", "boss.launch", "deploy"),
]
@@ -202,5 +202,11 @@ class GoalPatchWorkflowTests(unittest.TestCase):
self.assertIn(["npm", "run", "build", "-w", "@ainative-okr/frontend"], commands)
self.assertIn(["npm", "test", "-w", "@ainative-okr/frontend"], commands)
def test_service_desk_patch_uses_service_desk_manifest_commands(self):
commands = EXECUTOR.verification_commands(["apps/service-desk/src/ticket.js"])
self.assertIn(["node", "--check", "apps/service-desk/src/ticket.js"], commands)
self.assertIn(["node", "--test", "apps/service-desk/test/ticket.test.mjs"], commands)
self.assertNotIn(["npm", "test", "-w", "@ainative-okr/backend"], commands)
if __name__ == "__main__":
unittest.main()
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../scripts/bash/casan-paths.sh"
python3 "$CASAN_APP_ROOT/packages/casan-devkit/tests/project-scaffold-tests.py"
python3 "$CASAN_HARNESS_ROOT/scripts/bash/project_manifest.py" validate \
--root "$CASAN_APP_ROOT" --manifest apps/okr/domain/project.manifest.json >/dev/null
python3 "$CASAN_HARNESS_ROOT/scripts/bash/project_manifest.py" validate \
--root "$CASAN_APP_ROOT" --manifest apps/service-desk/domain/project.manifest.json >/dev/null
node --check "$CASAN_APP_ROOT/scripts/casan-project.mjs"
node --check "$CASAN_APP_ROOT/scripts/casan-step.mjs"
node --check "$CASAN_APP_ROOT/scripts/run-casan-pipeline.mjs"
echo "PROJECT_SHELL_TESTS_PASS"