atris 3.2.0 → 3.11.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.
Files changed (55) hide show
  1. package/GETTING_STARTED.md +65 -131
  2. package/README.md +18 -2
  3. package/atris/GETTING_STARTED.md +65 -131
  4. package/atris/PERSONA.md +5 -1
  5. package/atris/atris.md +122 -153
  6. package/atris/skills/aeo/SKILL.md +117 -0
  7. package/atris/skills/atris/SKILL.md +49 -25
  8. package/atris/skills/create-member/SKILL.md +29 -9
  9. package/atris/skills/endgame/SKILL.md +9 -0
  10. package/atris/skills/research-search/SKILL.md +167 -0
  11. package/atris/skills/research-search/arxiv_search.py +157 -0
  12. package/atris/skills/research-search/program.md +48 -0
  13. package/atris/skills/research-search/results.tsv +6 -0
  14. package/atris/skills/research-search/scholar_search.py +154 -0
  15. package/atris/skills/tidy/SKILL.md +36 -21
  16. package/atris/team/_template/MEMBER.md +2 -0
  17. package/atris/team/validator/MEMBER.md +35 -1
  18. package/atris.md +118 -178
  19. package/bin/atris.js +46 -12
  20. package/cli/__pycache__/atris_code.cpython-314.pyc +0 -0
  21. package/cli/__pycache__/runtime_guard.cpython-312.pyc +0 -0
  22. package/cli/__pycache__/runtime_guard.cpython-314.pyc +0 -0
  23. package/cli/atris_code.py +889 -0
  24. package/cli/runtime_guard.py +693 -0
  25. package/commands/align.js +16 -0
  26. package/commands/app.js +316 -0
  27. package/commands/autopilot.js +863 -23
  28. package/commands/brainstorm.js +7 -5
  29. package/commands/business.js +677 -2
  30. package/commands/clean.js +19 -3
  31. package/commands/computer.js +2022 -43
  32. package/commands/context-sync.js +5 -0
  33. package/commands/integrations.js +14 -9
  34. package/commands/lifecycle.js +12 -0
  35. package/commands/plugin.js +24 -0
  36. package/commands/pull.js +86 -11
  37. package/commands/push.js +153 -9
  38. package/commands/serve.js +1 -0
  39. package/commands/sync.js +272 -76
  40. package/commands/verify.js +50 -1
  41. package/commands/wiki.js +27 -2
  42. package/commands/workflow.js +24 -9
  43. package/lib/file-ops.js +13 -1
  44. package/lib/journal.js +23 -0
  45. package/lib/manifest.js +3 -0
  46. package/lib/scorecard.js +42 -4
  47. package/lib/sync-telemetry.js +59 -0
  48. package/lib/todo.js +6 -0
  49. package/lib/wiki.js +150 -6
  50. package/lib/workspace-safety.js +87 -0
  51. package/package.json +2 -1
  52. package/utils/api.js +19 -0
  53. package/utils/auth.js +25 -1
  54. package/utils/config.js +24 -0
  55. package/utils/update-check.js +16 -0
@@ -8,6 +8,10 @@ const CHECK_INTERVAL_MS = 60 * 60 * 1000; // 1 hour
8
8
  const ATRIS_DIR = path.join(os.homedir(), '.atris');
9
9
  const CACHE_FILE = path.join(ATRIS_DIR, '.update-check');
10
10
 
11
+ /**
12
+ * Get the currently installed CLI version from package.json.
13
+ * @returns {string|null} Installed version string, or null on error
14
+ */
11
15
  function getInstalledVersion() {
12
16
  try {
13
17
  const packageJsonPath = path.join(__dirname, '..', 'package.json');
@@ -18,6 +22,10 @@ function getInstalledVersion() {
18
22
  }
19
23
  }
20
24
 
25
+ /**
26
+ * Load cached update check data from ~/.atris/.update-check.
27
+ * @returns {{lastCheck: Date|null, latestVersion: string|null}} Cache data
28
+ */
21
29
  function getCacheData() {
22
30
  try {
23
31
  if (fs.existsSync(CACHE_FILE)) {
@@ -33,6 +41,10 @@ function getCacheData() {
33
41
  return { lastCheck: null, latestVersion: null };
34
42
  }
35
43
 
44
+ /**
45
+ * Save update check result to ~/.atris/.update-check cache file.
46
+ * @param {string} latestVersion - The latest version from npm
47
+ */
36
48
  function saveCacheData(latestVersion) {
37
49
  try {
38
50
  // Ensure ~/.atris/ exists
@@ -49,6 +61,10 @@ function saveCacheData(latestVersion) {
49
61
  }
50
62
  }
51
63
 
64
+ /**
65
+ * Fetch the latest version of atris from npm registry.
66
+ * @returns {Promise<string>} Latest version string
67
+ */
52
68
  function checkNpmVersion() {
53
69
  return new Promise((resolve, reject) => {
54
70
  const options = {