@ambasada/village 0.8.17 → 0.8.18

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/dist/index.js CHANGED
@@ -167,7 +167,7 @@ var ERROR_STATUS = {
167
167
  CAP_PER_PAYMENT: 403,
168
168
  CAP_BUYER_DAILY: 429,
169
169
  CAP_PAYEE_DAILY: 429,
170
- // A person's spend at one company per venue day (DESIGN.md §5 "Visitor rules")
170
+ // A person's spend at one company over the whole event (DESIGN.md §5 "Visitor rules"; named when it was per day)
171
171
  CAP_VISITOR_DAILY: 429,
172
172
  // Agent payments over the automatic limit wait for the team (DESIGN.md §5 "Agent approvals")
173
173
  APPROVAL_REQUIRED: 403,
@@ -1975,7 +1975,7 @@ var Village = class extends Ambasada {
1975
1975
  const res = await chat({ ...rest, messages: [...messages, { role: "user", content: prompt }] });
1976
1976
  const choice = res.choices[0];
1977
1977
  if (!choice?.message.content?.trim() && choice?.finish_reason === "length") {
1978
- const hint = typeof res.village_hint === "string" ? res.village_hint : `the model ran out of max_tokens before it answered (nothing was charged): raise max_tokens (8192+ with reasoning on), ask for less, or turn reasoning off (reasoning_effort: "none")`;
1978
+ const hint = typeof res.village_hint === "string" ? res.village_hint : `the model ran out of max_tokens before it answered (only its input tokens were charged): raise max_tokens (8192+ with reasoning on), ask for less, or turn reasoning off (reasoning_effort: "none")`;
1979
1979
  throw new AmbasadaError3("UPSTREAM_ERROR", `llm: ${hint}`, 502, { finish_reason: "length" });
1980
1980
  }
1981
1981
  return choice?.message.content ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambasada/village",
3
- "version": "0.8.17",
3
+ "version": "0.8.18",
4
4
  "description": "The Hack A Ton add-on for Ambasada apps: TON checkout, receipts, offerings, LLM, the agent, the market; CLI commands and the local bank.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,15 +27,15 @@
27
27
  "node": ">=22"
28
28
  },
29
29
  "dependencies": {
30
- "@ambasada/sdk": "^0.8.17"
30
+ "@ambasada/sdk": "^0.8.18"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.20.5",
34
34
  "esbuild": "^0.28.2",
35
35
  "typescript": "~5.9.3",
36
36
  "vitest": "^4.1.12",
37
- "@ambasada/protocol": "0.1.0",
38
- "@ambasada/cli": "0.8.17"
37
+ "@ambasada/cli": "0.8.18",
38
+ "@ambasada/protocol": "0.1.0"
39
39
  },
40
40
  "author": "CENTYSO (https://centyso.com)",
41
41
  "homepage": "https://ambasada.id",