okstra 0.170.3 → 0.172.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/docs/architecture.md +13 -0
- package/docs/cli.md +4 -2
- package/docs/for-ai/skills/okstra-user-response.md +2 -2
- package/docs/project-structure-overview.md +3 -1
- package/package.json +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/prompts/launch.template.md +4 -0
- package/runtime/prompts/lead/adapters/cmux.md +1 -1
- package/runtime/prompts/lead/okstra-lead-contract.md +36 -12
- package/runtime/prompts/lead/plan-body-verification.md +22 -11
- package/runtime/prompts/lead/report-writer.md +11 -10
- package/runtime/prompts/lead/team-contract.md +2 -0
- package/runtime/prompts/profiles/_clarification-recommendation.md +3 -1
- package/runtime/prompts/profiles/_common-contract.md +2 -1
- package/runtime/prompts/profiles/implementation-planning.md +8 -1
- package/runtime/python/okstra_ctl/adapters/hosts/antigravity/relay.md +1 -1
- package/runtime/python/okstra_ctl/adapters/hosts/claude-code/relay.md +1 -1
- package/runtime/python/okstra_ctl/adapters/hosts/codex/relay.md +1 -1
- package/runtime/python/okstra_ctl/adapters/hosts/external/relay.md +1 -1
- package/runtime/python/okstra_ctl/adapters/hosts/grok/relay.md +1 -1
- package/runtime/python/okstra_ctl/adapters/hosts/kimi/relay.md +1 -1
- package/runtime/python/okstra_ctl/agent_activity.py +306 -0
- package/runtime/python/okstra_ctl/clarification_items.py +37 -20
- package/runtime/python/okstra_ctl/cmux.py +144 -59
- package/runtime/python/okstra_ctl/lead_events.py +47 -4
- package/runtime/python/okstra_ctl/render.py +11 -3
- package/runtime/python/okstra_ctl/report_finalize.py +51 -14
- package/runtime/python/okstra_ctl/report_html/common.py +5 -3
- package/runtime/python/okstra_ctl/report_html/view_models/implementation_planning.py +17 -1
- package/runtime/python/okstra_ctl/report_translation.py +14 -0
- package/runtime/python/okstra_ctl/worker_audit_ledger.py +150 -0
- package/runtime/schemas/final-report-v2.0.schema.json +189 -0
- package/runtime/skills/okstra-user-response/SKILL.md +2 -2
- package/runtime/templates/reports/final-report-v2.template.md +8 -0
- package/runtime/templates/reports/html/assets/base.css +7 -0
- package/runtime/templates/reports/html/i18n/en.json +6 -1
- package/runtime/templates/reports/html/i18n/ko.json +6 -1
- package/runtime/templates/reports/html/macros/forms.html +21 -2
- package/runtime/templates/reports/html/tasks/implementation-planning.template.html +25 -0
- package/runtime/templates/reports/i18n/en.json +4 -0
- package/runtime/templates/reports/report.js +26 -17
- package/runtime/templates/reports/user-response.template.md +3 -1
- package/runtime/templates/worker-prompt-preamble.md +8 -0
- package/runtime/validators/validate-run.py +989 -29
- package/runtime/validators/validate_session_conformance.py +523 -35
- package/src/cli-registry.mjs +7 -0
- package/src/commands/report/agent-activity.mjs +21 -0
package/src/cli-registry.mjs
CHANGED
|
@@ -392,6 +392,13 @@ export const COMMAND_REGISTRY = [
|
|
|
392
392
|
"English (extract | check).",
|
|
393
393
|
],
|
|
394
394
|
},
|
|
395
|
+
{
|
|
396
|
+
name: "agent-activity",
|
|
397
|
+
module: "./commands/report/agent-activity.mjs",
|
|
398
|
+
export: "run",
|
|
399
|
+
category: "introspection",
|
|
400
|
+
summary: ["Record and project structured lead activity into report data"],
|
|
401
|
+
},
|
|
395
402
|
{
|
|
396
403
|
name: "report-finalize",
|
|
397
404
|
module: "./commands/report/finalize.mjs",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { runPythonModule } from "../../lib/python-helper.mjs";
|
|
2
|
+
|
|
3
|
+
const USAGE = `okstra agent-activity — record and project structured lead activity
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
okstra agent-activity append --project-root <dir> --run-manifest <path> [activity fields]
|
|
7
|
+
okstra agent-activity project --project-root <dir> --run-manifest <path> --data <data.json>
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
export async function run(args) {
|
|
11
|
+
if (args.includes("--help") || args.includes("-h") || args.length === 0) {
|
|
12
|
+
process.stdout.write(USAGE);
|
|
13
|
+
return args.length === 0 ? 2 : 0;
|
|
14
|
+
}
|
|
15
|
+
const result = await runPythonModule({
|
|
16
|
+
module: "okstra_ctl.agent_activity",
|
|
17
|
+
args,
|
|
18
|
+
stdio: "inherit-stdout",
|
|
19
|
+
});
|
|
20
|
+
return result.code;
|
|
21
|
+
}
|