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/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,
@@ -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: {} };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atris",
3
- "version": "3.74.0",
3
+ "version": "3.74.1",
4
4
  "description": "you say what you want in plain words. atris builds it, checks it, and shows you proof.",
5
5
  "mcpName": "io.github.atrislabs/atris",
6
6
  "main": "bin/atris.js",