trackops 2.0.4 → 2.0.6

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.
Files changed (92) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +660 -575
  3. package/bin/trackops.js +127 -106
  4. package/lib/cli-format.js +118 -0
  5. package/lib/config.js +352 -326
  6. package/lib/control.js +408 -246
  7. package/lib/env.js +234 -222
  8. package/lib/i18n.js +5 -4
  9. package/lib/init.js +390 -282
  10. package/lib/locale.js +41 -41
  11. package/lib/opera-bootstrap.js +1066 -880
  12. package/lib/opera.js +615 -444
  13. package/lib/preferences.js +74 -74
  14. package/lib/registry.js +214 -214
  15. package/lib/release.js +56 -56
  16. package/lib/runtime-state.js +144 -144
  17. package/lib/skills.js +114 -89
  18. package/lib/workspace.js +259 -248
  19. package/locales/en.json +311 -167
  20. package/locales/es.json +314 -170
  21. package/package.json +61 -58
  22. package/scripts/postinstall-locale.js +21 -21
  23. package/scripts/skills-marketplace-smoke.js +124 -124
  24. package/scripts/smoke-tests.js +563 -517
  25. package/scripts/sync-skill-version.js +21 -21
  26. package/scripts/validate-skill.js +103 -103
  27. package/skills/trackops/SKILL.md +126 -122
  28. package/skills/trackops/agents/openai.yaml +7 -7
  29. package/skills/trackops/locales/en/SKILL.md +126 -122
  30. package/skills/trackops/locales/en/references/activation.md +94 -90
  31. package/skills/trackops/locales/en/references/troubleshooting.md +73 -67
  32. package/skills/trackops/locales/en/references/workflow.md +55 -32
  33. package/skills/trackops/references/activation.md +94 -90
  34. package/skills/trackops/references/troubleshooting.md +73 -67
  35. package/skills/trackops/references/workflow.md +55 -32
  36. package/skills/trackops/skill.json +29 -29
  37. package/templates/hooks/post-checkout +2 -2
  38. package/templates/hooks/post-commit +2 -2
  39. package/templates/hooks/post-merge +2 -2
  40. package/templates/opera/agent.md +28 -27
  41. package/templates/opera/architecture/dependency-graph.md +24 -24
  42. package/templates/opera/architecture/runtime-automation.md +24 -24
  43. package/templates/opera/architecture/runtime-operations.md +34 -34
  44. package/templates/opera/en/agent.md +22 -21
  45. package/templates/opera/en/architecture/dependency-graph.md +24 -24
  46. package/templates/opera/en/architecture/runtime-automation.md +24 -24
  47. package/templates/opera/en/architecture/runtime-operations.md +34 -34
  48. package/templates/opera/en/reviews/delivery-audit.md +18 -18
  49. package/templates/opera/en/reviews/integration-audit.md +18 -18
  50. package/templates/opera/en/router.md +24 -19
  51. package/templates/opera/references/autonomy-and-recovery.md +117 -117
  52. package/templates/opera/references/opera-cycle.md +193 -193
  53. package/templates/opera/registry.md +28 -28
  54. package/templates/opera/reviews/delivery-audit.md +18 -18
  55. package/templates/opera/reviews/integration-audit.md +18 -18
  56. package/templates/opera/router.md +54 -49
  57. package/templates/skills/changelog-updater/SKILL.md +69 -69
  58. package/templates/skills/commiter/SKILL.md +99 -99
  59. package/templates/skills/opera-contract-auditor/SKILL.md +38 -38
  60. package/templates/skills/opera-contract-auditor/locales/en/SKILL.md +38 -38
  61. package/templates/skills/opera-policy-guard/SKILL.md +26 -26
  62. package/templates/skills/opera-policy-guard/locales/en/SKILL.md +26 -26
  63. package/templates/skills/opera-skill/SKILL.md +279 -0
  64. package/templates/skills/opera-skill/locales/en/SKILL.md +279 -0
  65. package/templates/skills/opera-skill/locales/en/references/phase-dod.md +138 -0
  66. package/templates/skills/opera-skill/references/phase-dod.md +138 -0
  67. package/templates/skills/project-starter-skill/SKILL.md +150 -131
  68. package/templates/skills/project-starter-skill/locales/en/SKILL.md +143 -105
  69. package/templates/skills/project-starter-skill/references/opera-cycle.md +195 -193
  70. package/ui/css/base.css +284 -284
  71. package/ui/css/charts.css +425 -425
  72. package/ui/css/components.css +1107 -1107
  73. package/ui/css/onboarding.css +133 -133
  74. package/ui/css/terminal.css +125 -125
  75. package/ui/css/timeline.css +58 -58
  76. package/ui/css/tokens.css +284 -284
  77. package/ui/favicon.svg +5 -5
  78. package/ui/index.html +99 -99
  79. package/ui/js/charts.js +526 -526
  80. package/ui/js/console-logger.js +172 -172
  81. package/ui/js/filters.js +247 -247
  82. package/ui/js/icons.js +129 -129
  83. package/ui/js/keyboard.js +229 -229
  84. package/ui/js/router.js +142 -142
  85. package/ui/js/theme.js +100 -100
  86. package/ui/js/time-tracker.js +248 -248
  87. package/ui/js/views/dashboard.js +870 -870
  88. package/ui/js/views/flash.js +47 -47
  89. package/ui/js/views/projects.js +745 -745
  90. package/ui/js/views/scrum.js +476 -476
  91. package/ui/js/views/settings.js +331 -331
  92. package/ui/js/views/timeline.js +265 -265
package/lib/locale.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const readline = require("readline/promises");
4
-
5
- const SUPPORTED_LOCALES = ["es", "en"];
3
+ const readline = require("readline/promises");
4
+
5
+ const SUPPORTED_LOCALES = ["es", "en"];
6
6
 
7
7
  function normalizeLocale(value) {
8
8
  const raw = String(value || "").trim().toLowerCase();
@@ -32,9 +32,9 @@ function isInteractive() {
32
32
  return Boolean(process.stdin.isTTY && process.stdout.isTTY);
33
33
  }
34
34
 
35
- async function promptForLocale(defaultLocale) {
36
- const initial = normalizeLocale(defaultLocale) || detectSystemLocale();
37
- if (!isInteractive()) return initial;
35
+ async function promptForLocale(defaultLocale) {
36
+ const initial = normalizeLocale(defaultLocale) || detectSystemLocale();
37
+ if (!isInteractive()) return initial;
38
38
 
39
39
  const rl = readline.createInterface({
40
40
  input: process.stdin,
@@ -46,42 +46,42 @@ async function promptForLocale(defaultLocale) {
46
46
  return normalizeLocale(answer) || initial;
47
47
  } finally {
48
48
  rl.close();
49
- }
50
- }
51
-
52
- async function maybePromptForLocale(defaultLocale, options = {}) {
53
- const initial = normalizeLocale(defaultLocale) || detectSystemLocale();
54
- if (!isInteractive()) return initial;
55
-
56
- const promptMode = String(options.promptMode || "always").trim().toLowerCase();
57
- if (promptMode === "never") return initial;
58
-
59
- const rl = readline.createInterface({
60
- input: process.stdin,
61
- output: process.stdout,
62
- });
63
-
64
- try {
65
- const answer = await rl.question(
66
- `Choose project language / Elige idioma del proyecto [es/en] (${initial}, Enter = keep): `,
67
- );
68
- const normalized = normalizeLocale(answer);
69
- return normalized || initial;
70
- } finally {
71
- rl.close();
72
- }
73
- }
74
-
75
- function resolveLocale(preferred, fallback) {
76
- return normalizeLocale(preferred) || normalizeLocale(fallback) || detectSystemLocale();
77
- }
49
+ }
50
+ }
51
+
52
+ async function maybePromptForLocale(defaultLocale, options = {}) {
53
+ const initial = normalizeLocale(defaultLocale) || detectSystemLocale();
54
+ if (!isInteractive()) return initial;
55
+
56
+ const promptMode = String(options.promptMode || "always").trim().toLowerCase();
57
+ if (promptMode === "never") return initial;
58
+
59
+ const rl = readline.createInterface({
60
+ input: process.stdin,
61
+ output: process.stdout,
62
+ });
63
+
64
+ try {
65
+ const answer = await rl.question(
66
+ `Choose project language / Elige idioma del proyecto [es/en] (${initial}, Enter = keep): `,
67
+ );
68
+ const normalized = normalizeLocale(answer);
69
+ return normalized || initial;
70
+ } finally {
71
+ rl.close();
72
+ }
73
+ }
74
+
75
+ function resolveLocale(preferred, fallback) {
76
+ return normalizeLocale(preferred) || normalizeLocale(fallback) || detectSystemLocale();
77
+ }
78
78
 
79
79
  module.exports = {
80
80
  SUPPORTED_LOCALES,
81
81
  normalizeLocale,
82
- detectSystemLocale,
83
- isInteractive,
84
- promptForLocale,
85
- maybePromptForLocale,
86
- resolveLocale,
87
- };
82
+ detectSystemLocale,
83
+ isInteractive,
84
+ promptForLocale,
85
+ maybePromptForLocale,
86
+ resolveLocale,
87
+ };