atris 3.15.30 → 3.15.36
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 +1 -1
- package/commands/business.js +21 -2
- package/commands/computer.js +515 -10
- package/commands/gm.js +4 -2
- package/commands/lifecycle.js +115 -0
- package/commands/mission.js +9 -3
- package/commands/play.js +4 -2
- package/commands/xp.js +309 -3
- package/lib/runtime-bootstrap.js +107 -0
- package/package.json +1 -1
package/bin/atris.js
CHANGED
|
@@ -1666,7 +1666,7 @@ if (command === 'init') {
|
|
|
1666
1666
|
require('../commands/workflow').executeAgentSDKFast(userInput);
|
|
1667
1667
|
} else if (command === 'computer') {
|
|
1668
1668
|
require('../commands/computer').runComputer()
|
|
1669
|
-
.then(() => process.exit(0))
|
|
1669
|
+
.then(() => process.exit(process.exitCode || 0))
|
|
1670
1670
|
.catch((err) => { console.error(`\n✗ Error: ${err.message || err}`); process.exit(1); });
|
|
1671
1671
|
} else if (command === 'diff') {
|
|
1672
1672
|
let diffSlug = process.argv[3];
|
package/commands/business.js
CHANGED
|
@@ -5,6 +5,7 @@ const { loadCredentials } = require('../utils/auth');
|
|
|
5
5
|
const { apiRequestJson } = require('../utils/api');
|
|
6
6
|
const { syncBusinessCanonical, ensureWorkspaceStateFiles } = require('./sync');
|
|
7
7
|
const { ensureContextScaffold, writeWikiStatus, appendWikiLog } = require('../lib/wiki');
|
|
8
|
+
const { writeRuntimeReceipt } = require('../lib/runtime-bootstrap');
|
|
8
9
|
|
|
9
10
|
function getBusinessConfigPath() {
|
|
10
11
|
const home = require('os').homedir();
|
|
@@ -398,6 +399,17 @@ function createCanonicalBusinessWorkspace(targetRoot, bizMeta, options = {}) {
|
|
|
398
399
|
}, null, 2));
|
|
399
400
|
|
|
400
401
|
syncBusinessCanonical(targetRoot, bizMeta, { force: false, dryRun: false, templateName: workspaceTemplate });
|
|
402
|
+
writeRuntimeReceipt(targetRoot, {
|
|
403
|
+
scope: 'local-business-computer',
|
|
404
|
+
boundary: 'business-workspace-scaffold',
|
|
405
|
+
business_id: bizMeta.business_id,
|
|
406
|
+
workspace_id: bizMeta.workspace_id,
|
|
407
|
+
business_slug: bizMeta.slug,
|
|
408
|
+
business_name: bizMeta.name,
|
|
409
|
+
workspace_template: workspaceTemplate,
|
|
410
|
+
install_status: 'local_cli_present',
|
|
411
|
+
sync_status: 'templates_seeded',
|
|
412
|
+
});
|
|
401
413
|
return { targetRoot, businessJsonPath, workspaceTemplate };
|
|
402
414
|
}
|
|
403
415
|
|
|
@@ -1827,8 +1839,15 @@ async function createBusinessInternal(name, flags = [], mode = 'auto') {
|
|
|
1827
1839
|
console.log(` Dashboard: https://atris.ai/dashboard/gm/${biz.id}`);
|
|
1828
1840
|
if (shouldCreateCanonicalWorkspace) {
|
|
1829
1841
|
const workspaceRoot = resolveWorkspaceRoot(biz.slug, options);
|
|
1830
|
-
console.log(
|
|
1831
|
-
console.log('
|
|
1842
|
+
console.log(' Atris: seeded local computer + operator + validator');
|
|
1843
|
+
console.log('');
|
|
1844
|
+
console.log(' Start here:');
|
|
1845
|
+
console.log(` cd ${workspaceRoot}`);
|
|
1846
|
+
console.log(' atris member activate operator');
|
|
1847
|
+
console.log(' atris business onboard --website <url> --contact "Name" --note "what they do"');
|
|
1848
|
+
console.log('');
|
|
1849
|
+
console.log(' Sync when ready:');
|
|
1850
|
+
console.log(` atris align ${biz.slug} --fix`);
|
|
1832
1851
|
}
|
|
1833
1852
|
console.log('');
|
|
1834
1853
|
}
|