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.
- package/GETTING_STARTED.md +65 -131
- package/README.md +18 -2
- package/atris/GETTING_STARTED.md +65 -131
- package/atris/PERSONA.md +5 -1
- package/atris/atris.md +122 -153
- package/atris/skills/aeo/SKILL.md +117 -0
- package/atris/skills/atris/SKILL.md +49 -25
- package/atris/skills/create-member/SKILL.md +29 -9
- package/atris/skills/endgame/SKILL.md +9 -0
- package/atris/skills/research-search/SKILL.md +167 -0
- package/atris/skills/research-search/arxiv_search.py +157 -0
- package/atris/skills/research-search/program.md +48 -0
- package/atris/skills/research-search/results.tsv +6 -0
- package/atris/skills/research-search/scholar_search.py +154 -0
- package/atris/skills/tidy/SKILL.md +36 -21
- package/atris/team/_template/MEMBER.md +2 -0
- package/atris/team/validator/MEMBER.md +35 -1
- package/atris.md +118 -178
- package/bin/atris.js +46 -12
- package/cli/__pycache__/atris_code.cpython-314.pyc +0 -0
- package/cli/__pycache__/runtime_guard.cpython-312.pyc +0 -0
- package/cli/__pycache__/runtime_guard.cpython-314.pyc +0 -0
- package/cli/atris_code.py +889 -0
- package/cli/runtime_guard.py +693 -0
- package/commands/align.js +16 -0
- package/commands/app.js +316 -0
- package/commands/autopilot.js +863 -23
- package/commands/brainstorm.js +7 -5
- package/commands/business.js +677 -2
- package/commands/clean.js +19 -3
- package/commands/computer.js +2022 -43
- package/commands/context-sync.js +5 -0
- package/commands/integrations.js +14 -9
- package/commands/lifecycle.js +12 -0
- package/commands/plugin.js +24 -0
- package/commands/pull.js +86 -11
- package/commands/push.js +153 -9
- package/commands/serve.js +1 -0
- package/commands/sync.js +272 -76
- package/commands/verify.js +50 -1
- package/commands/wiki.js +27 -2
- package/commands/workflow.js +24 -9
- package/lib/file-ops.js +13 -1
- package/lib/journal.js +23 -0
- package/lib/manifest.js +3 -0
- package/lib/scorecard.js +42 -4
- package/lib/sync-telemetry.js +59 -0
- package/lib/todo.js +6 -0
- package/lib/wiki.js +150 -6
- package/lib/workspace-safety.js +87 -0
- package/package.json +2 -1
- package/utils/api.js +19 -0
- package/utils/auth.js +25 -1
- package/utils/config.js +24 -0
- package/utils/update-check.js +16 -0
package/commands/brainstorm.js
CHANGED
|
@@ -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
|
|
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
|
|
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`, {
|