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/clean.js
CHANGED
|
@@ -197,6 +197,15 @@ function healBrokenMapRefs(cwd, atrisDir, dryRun = false) {
|
|
|
197
197
|
// Required delimiter [(,[,—,-] prevents bleeding into adjacent refs on same line
|
|
198
198
|
const refPattern = /(`?)([a-zA-Z0-9_\-./\\]+\.(js|ts|py|go|rs|rb|java|c|cpp|h|hpp|md|json|yaml|yml)):(\d+)(?:-(\d+))?(`?)([^\S\n]*[\(\[—\-][^\S\n]*([^)\]\n]+))?/g;
|
|
199
199
|
|
|
200
|
+
// Function Inventory form: `symbolName()` → `file:line[-line]`
|
|
201
|
+
// Pre-scan to build a (file:line) → symbol map so refs with the symbol BEFORE them still verify.
|
|
202
|
+
const preRefSymbols = {};
|
|
203
|
+
const preRefPattern = /`([a-zA-Z_][a-zA-Z0-9_]*)\s*\(?\s*\)?`\s*(?:→|->)\s*`([a-zA-Z0-9_\-./\\]+\.(?:js|ts|py|go|rs|rb|java|c|cpp|h|hpp|md|json|yaml|yml)):(\d+)(?:-\d+)?`/g;
|
|
204
|
+
let preMatch;
|
|
205
|
+
while ((preMatch = preRefPattern.exec(mapContent)) !== null) {
|
|
206
|
+
preRefSymbols[`${preMatch[2]}:${preMatch[3]}`] = preMatch[1];
|
|
207
|
+
}
|
|
208
|
+
|
|
200
209
|
// Cache file reads
|
|
201
210
|
const fileCache = {};
|
|
202
211
|
function readFileCached(filePath) {
|
|
@@ -228,7 +237,8 @@ function healBrokenMapRefs(cwd, atrisDir, dryRun = false) {
|
|
|
228
237
|
continue;
|
|
229
238
|
}
|
|
230
239
|
|
|
231
|
-
|
|
240
|
+
let symbol = extractSymbol(contextPart);
|
|
241
|
+
if (!symbol) symbol = preRefSymbols[`${filePath}:${startLine}`] || null;
|
|
232
242
|
|
|
233
243
|
// Check if reference is still accurate
|
|
234
244
|
const outOfBounds = startLine > file.lines.length || (endLine && endLine > file.lines.length);
|
|
@@ -445,9 +455,15 @@ function checkPageStaleness(cwd, filePath) {
|
|
|
445
455
|
.map(line => line.replace(/^\s+-\s+/, '').trim())
|
|
446
456
|
.filter(Boolean);
|
|
447
457
|
|
|
448
|
-
// Check each source's mtime against last_compiled
|
|
458
|
+
// Check each source's mtime against last_compiled.
|
|
459
|
+
// Source entries can include a line range and/or a parenthesized annotation,
|
|
460
|
+
// e.g. "bin/atris.js:199-340 (showHelp function)" — strip both before stat.
|
|
449
461
|
for (const source of sources) {
|
|
450
|
-
const
|
|
462
|
+
const filePart = source
|
|
463
|
+
.replace(/\s*\([^)]*\)\s*$/, '') // drop trailing "(annotation)"
|
|
464
|
+
.replace(/:\d+(-\d+)?$/, '') // drop trailing ":N" or ":N-M"
|
|
465
|
+
.trim();
|
|
466
|
+
const sourcePath = path.isAbsolute(filePart) ? filePart : path.join(cwd, filePart);
|
|
451
467
|
try {
|
|
452
468
|
const stat = fs.statSync(sourcePath);
|
|
453
469
|
if (stat.mtime > compiledDate) {
|