atris 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.
- package/bin/atris.js +34 -9
- package/commands/sync.js +9 -1
- package/package.json +1 -1
package/bin/atris.js
CHANGED
|
@@ -242,7 +242,7 @@ async function interactiveEntry(userInput) {
|
|
|
242
242
|
// Case 1: Hot Start (User provided input: "atris fix bug")
|
|
243
243
|
if (userInput) {
|
|
244
244
|
console.log('');
|
|
245
|
-
console.log(
|
|
245
|
+
console.log(`Request: "${userInput}"`);
|
|
246
246
|
console.log(' Initializing Navigator...');
|
|
247
247
|
await planCmd(userInput);
|
|
248
248
|
return;
|
|
@@ -305,7 +305,7 @@ async function interactiveEntry(userInput) {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
// State: Idle / Default
|
|
308
|
-
console.log('\
|
|
308
|
+
console.log('\nCanvas is clean. What are we building?');
|
|
309
309
|
console.log(' (Type a request, "brainstorm", "status", or press Enter to exit)');
|
|
310
310
|
|
|
311
311
|
const request = await ask('\n> ');
|
|
@@ -456,6 +456,13 @@ function initAtris() {
|
|
|
456
456
|
console.log('✓ Created atris/agent_team/ folder');
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
+
// Create policies/ subfolder
|
|
460
|
+
const policiesDir = path.join(targetDir, 'policies');
|
|
461
|
+
if (!fs.existsSync(policiesDir)) {
|
|
462
|
+
fs.mkdirSync(policiesDir, { recursive: true });
|
|
463
|
+
console.log('✓ Created atris/policies/ folder');
|
|
464
|
+
}
|
|
465
|
+
|
|
459
466
|
// Create placeholder files
|
|
460
467
|
const gettingStartedFile = path.join(targetDir, 'GETTING_STARTED.md');
|
|
461
468
|
const personaFile = path.join(targetDir, 'PERSONA.md');
|
|
@@ -517,22 +524,32 @@ function initAtris() {
|
|
|
517
524
|
console.log('✓ Created agent_team/launcher.md');
|
|
518
525
|
}
|
|
519
526
|
|
|
527
|
+
// Copy policies from package
|
|
528
|
+
const antislopSource = path.join(__dirname, '..', 'atris', 'policies', 'ANTISLOP.md');
|
|
529
|
+
const antislopFile = path.join(policiesDir, 'ANTISLOP.md');
|
|
530
|
+
if (!fs.existsSync(antislopFile) && fs.existsSync(antislopSource)) {
|
|
531
|
+
fs.copyFileSync(antislopSource, antislopFile);
|
|
532
|
+
console.log('✓ Created policies/ANTISLOP.md');
|
|
533
|
+
}
|
|
534
|
+
|
|
520
535
|
// Copy atris.md to the folder
|
|
521
536
|
if (fs.existsSync(sourceFile)) {
|
|
522
537
|
fs.copyFileSync(sourceFile, targetFile);
|
|
523
538
|
console.log('✓ Copied atris.md to atris/ folder');
|
|
524
|
-
console.log('\
|
|
539
|
+
console.log('\nATRIS initialized. Structure created:');
|
|
525
540
|
console.log(' atris/');
|
|
526
541
|
console.log(' ├── GETTING_STARTED.md (read this first!)');
|
|
527
542
|
console.log(' ├── PERSONA.md (agent personality)');
|
|
528
543
|
console.log(' ├── atris.md (AI agent instructions)');
|
|
529
544
|
console.log(' ├── MAP.md (placeholder)');
|
|
530
545
|
console.log(' ├── TASK_CONTEXTS.md (placeholder)');
|
|
531
|
-
console.log('
|
|
532
|
-
console.log('
|
|
533
|
-
console.log('
|
|
534
|
-
console.log('
|
|
535
|
-
console.log('
|
|
546
|
+
console.log(' ├── agent_team/');
|
|
547
|
+
console.log(' │ ├── navigator.md');
|
|
548
|
+
console.log(' │ ├── executor.md');
|
|
549
|
+
console.log(' │ ├── validator.md');
|
|
550
|
+
console.log(' │ └── launcher.md');
|
|
551
|
+
console.log(' └── policies/');
|
|
552
|
+
console.log(' └── ANTISLOP.md (output quality checklist)');
|
|
536
553
|
console.log('\nNext steps:');
|
|
537
554
|
console.log('1. Read atris/GETTING_STARTED.md for the full guide');
|
|
538
555
|
console.log('2. Open atris/atris.md and paste it to your AI agent');
|
|
@@ -558,6 +575,13 @@ function syncAtris() {
|
|
|
558
575
|
fs.mkdirSync(agentTeamDir, { recursive: true });
|
|
559
576
|
}
|
|
560
577
|
|
|
578
|
+
// Ensure policies folder exists
|
|
579
|
+
const policiesDir = path.join(targetDir, 'policies');
|
|
580
|
+
if (!fs.existsSync(policiesDir)) {
|
|
581
|
+
fs.mkdirSync(policiesDir, { recursive: true });
|
|
582
|
+
console.log('✓ Created atris/policies/ folder');
|
|
583
|
+
}
|
|
584
|
+
|
|
561
585
|
// Files to sync
|
|
562
586
|
const filesToSync = [
|
|
563
587
|
{ source: 'atris.md', target: 'atris.md' },
|
|
@@ -566,7 +590,8 @@ function syncAtris() {
|
|
|
566
590
|
{ source: 'atris/agent_team/navigator.md', target: 'agent_team/navigator.md' },
|
|
567
591
|
{ source: 'atris/agent_team/executor.md', target: 'agent_team/executor.md' },
|
|
568
592
|
{ source: 'atris/agent_team/validator.md', target: 'agent_team/validator.md' },
|
|
569
|
-
{ source: 'atris/agent_team/launcher.md', target: 'agent_team/launcher.md' }
|
|
593
|
+
{ source: 'atris/agent_team/launcher.md', target: 'agent_team/launcher.md' },
|
|
594
|
+
{ source: 'atris/policies/ANTISLOP.md', target: 'policies/ANTISLOP.md' }
|
|
570
595
|
];
|
|
571
596
|
|
|
572
597
|
let updated = 0;
|
package/commands/sync.js
CHANGED
|
@@ -14,6 +14,13 @@ function syncAtris() {
|
|
|
14
14
|
fs.mkdirSync(agentTeamDir, { recursive: true });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
// Ensure policies folder exists
|
|
18
|
+
const policiesDir = path.join(targetDir, 'policies');
|
|
19
|
+
if (!fs.existsSync(policiesDir)) {
|
|
20
|
+
fs.mkdirSync(policiesDir, { recursive: true });
|
|
21
|
+
console.log('✓ Created atris/policies/ folder');
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
const filesToSync = [
|
|
18
25
|
{ source: 'atris.md', target: 'atris.md' },
|
|
19
26
|
{ source: 'PERSONA.md', target: 'PERSONA.md' },
|
|
@@ -22,7 +29,8 @@ function syncAtris() {
|
|
|
22
29
|
{ source: 'atris/agent_team/executor.md', target: 'agent_team/executor.md' },
|
|
23
30
|
{ source: 'atris/agent_team/validator.md', target: 'agent_team/validator.md' },
|
|
24
31
|
{ source: 'atris/agent_team/launcher.md', target: 'agent_team/launcher.md' },
|
|
25
|
-
{ source: 'atris/agent_team/brainstormer.md', target: 'agent_team/brainstormer.md' }
|
|
32
|
+
{ source: 'atris/agent_team/brainstormer.md', target: 'agent_team/brainstormer.md' },
|
|
33
|
+
{ source: 'atris/policies/ANTISLOP.md', target: 'policies/ANTISLOP.md' }
|
|
26
34
|
];
|
|
27
35
|
|
|
28
36
|
let updated = 0;
|