atris 3.74.0 → 3.74.1
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 +85 -82
- package/commands/aeo.js +2 -2
- package/commands/align.js +10 -19
- package/commands/auth.js +1 -1
- package/commands/autopilot.js +4 -8
- package/commands/avail.js +36 -7
- package/commands/computer.js +3 -1
- package/commands/console.js +1 -1
- package/commands/context-sync.js +1 -60
- package/commands/fleet.js +0 -1
- package/commands/lifecycle.js +17 -6
- package/commands/log-sync.js +1 -1
- package/commands/member.js +17 -11
- package/commands/mission.js +1 -4
- package/commands/now.js +0 -7
- package/commands/plugin.js +1 -1
- package/commands/pull.js +1 -1
- package/commands/push.js +0 -1
- package/commands/radar.js +0 -4
- package/commands/recap.js +25 -1
- package/commands/report.js +0 -4
- package/commands/review.js +1 -1
- package/commands/setup.js +6 -2
- package/commands/task.js +0 -522
- package/commands/terminal.js +1 -1
- package/commands/youtube.js +4 -6
- package/commands/zen.js +4 -4
- package/lib/agent-today.js +412 -0
- package/lib/autoland.js +0 -8
- package/lib/bench/runner.js +0 -4
- package/lib/chat-log-scan.js +0 -28
- package/lib/cli-scope.js +4 -2
- package/lib/engine-registry.js +0 -4
- package/lib/file-ops.js +6 -1
- package/lib/first-minute.js +2 -0
- package/lib/gm-bet.js +41 -5
- package/lib/gm-phone-page.js +14 -3
- package/lib/gm-phone.js +3 -0
- package/lib/manifest.js +0 -10
- package/lib/member-switches.js +0 -11
- package/lib/review-integrity.js +0 -4
- package/package.json +1 -1
package/lib/gm-phone.js
CHANGED
|
@@ -509,6 +509,9 @@ function createPhoneHandler(deps) {
|
|
|
509
509
|
async function betAction(p, body) {
|
|
510
510
|
let out;
|
|
511
511
|
if (p === '/bet/think') out = bet.next({ sharper: body.sharper === true });
|
|
512
|
+
// typed words in something else are read first, like say something: a
|
|
513
|
+
// question back or confusion is explained and nothing is saved
|
|
514
|
+
else if (p === '/bet/answer' && body.choice === 'other') out = await bet.say({ text: String(body.text || ''), card: String(body.card || '') });
|
|
512
515
|
else if (p === '/bet/answer') out = bet.answer({ choice: String(body.choice || ''), text: String(body.text || ''), card: String(body.card || '') });
|
|
513
516
|
else if (p === '/bet/report') out = bet.report({ value: body.value });
|
|
514
517
|
else if (p === '/bet/pick') out = bet.pick({ id: String(body.id || '') });
|
package/lib/manifest.js
CHANGED
|
@@ -2,7 +2,6 @@ const crypto = require('crypto');
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { stateHome } = require('./state-home');
|
|
5
|
-
const { computeContentHash } = require('./journal');
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Get the manifest file path for a business slug.
|
|
@@ -35,14 +34,6 @@ function saveManifest(slug, manifest) {
|
|
|
35
34
|
fs.writeFileSync(p, JSON.stringify(manifest, null, 2));
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
/**
|
|
39
|
-
* Compute SHA-256 hash of normalized content.
|
|
40
|
-
* Delegates to journal.js computeContentHash.
|
|
41
|
-
*/
|
|
42
|
-
function computeFileHash(content) {
|
|
43
|
-
return computeContentHash(content);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
37
|
/**
|
|
47
38
|
* Build a manifest object from a set of files.
|
|
48
39
|
* files: { [path]: { hash, size } }
|
|
@@ -247,7 +238,6 @@ function threeWayCompare(localFiles, remoteFiles, manifest) {
|
|
|
247
238
|
module.exports = {
|
|
248
239
|
loadManifest,
|
|
249
240
|
saveManifest,
|
|
250
|
-
computeFileHash,
|
|
251
241
|
buildManifest,
|
|
252
242
|
computeLocalHashes,
|
|
253
243
|
threeWayCompare,
|
package/lib/member-switches.js
CHANGED
|
@@ -70,17 +70,6 @@ function asleepMembers(root = process.cwd()) {
|
|
|
70
70
|
return Object.keys(members).filter((name) => normalizeMemberEntry(members[name]).awake === false).sort();
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
function isMemberLoopAwake(name, loopId, root = process.cwd()) {
|
|
74
|
-
const entry = getMemberSwitch(name, root);
|
|
75
|
-
if (entry.awake === false) return false;
|
|
76
|
-
const id = String(loopId || '').trim();
|
|
77
|
-
if (!id) return entry.awake !== false;
|
|
78
|
-
if (Object.prototype.hasOwnProperty.call(entry.loops, id)) {
|
|
79
|
-
return entry.loops[id] !== false;
|
|
80
|
-
}
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
73
|
function ensureMemberEntry(state, name) {
|
|
85
74
|
if (!state.members[name] || typeof state.members[name] !== 'object') {
|
|
86
75
|
state.members[name] = { awake: true, loops: {} };
|
package/lib/review-integrity.js
CHANGED
|
@@ -25,10 +25,6 @@ function normalizeActor(value) {
|
|
|
25
25
|
.replace(/^-+|-+$/g, '');
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function envActor() {
|
|
29
|
-
return normalizeActor(process.env.ATRIS_AGENT_ID || process.env.USER || '');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
28
|
// Builder identity, oldest signal wins: explicit stamp, then who claimed it,
|
|
33
29
|
// then whoever sent the first proof.
|
|
34
30
|
function taskBuilder(task) {
|
package/package.json
CHANGED