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
@@ -3,7 +3,7 @@ const path = require('path');
3
3
  const readline = require('readline');
4
4
  const { getLogPath, ensureLogDirectory, createLogFile } = require('../lib/journal');
5
5
  const { loadConfig } = require('../utils/config');
6
- const { loadCredentials } = require('../utils/auth');
6
+ const { loadCredentials, ensureValidCredentials } = require('../utils/auth');
7
7
  const { apiRequestJson } = require('../utils/api');
8
8
  const { planAtris, doAtris, reviewAtris } = require('./workflow');
9
9
 
@@ -58,8 +58,9 @@ async function brainstormAtris() {
58
58
  // Optional: fetch journal context from backend (for hints only)
59
59
  let remoteJournalContext = '';
60
60
  const config = loadConfig();
61
- const credentials = loadCredentials();
62
-
61
+ const ensured1 = await ensureValidCredentials(apiRequestJson);
62
+ const credentials = ensured1.error ? null : ensured1.credentials;
63
+
63
64
  if (useCloudJournal && config.agent_id && credentials && credentials.token) {
64
65
  try {
65
66
  console.log('📖 Fetching latest journal entry from AtrisOS...');
@@ -623,8 +624,9 @@ async function autopilotAtris(initialIdea = null) {
623
624
  // Try to fetch latest journal entry from backend
624
625
  let journalContext = '';
625
626
  const config = loadConfig();
626
- const credentials = loadCredentials();
627
-
627
+ const ensured2 = await ensureValidCredentials(apiRequestJson);
628
+ const credentials = ensured2.error ? null : ensured2.credentials;
629
+
628
630
  if (config.agent_id && credentials && credentials.token) {
629
631
  try {
630
632
  const journalResult = await apiRequestJson(`/agents/${config.agent_id}/journal/today`, {