@agentguard-run/spend 0.4.2 → 0.4.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.3
4
+
5
+ - Updated Advisor vertical intelligence from `docs/research/per-vertical-intel-may28.md`. Advisor now cites vertical outcomes, per-outcome caps, recommended models, compliance citations, pricing anchors, and default Governance Posture for law, healthcare, accounting, e-commerce, and real estate.
6
+
3
7
  ## 0.4.1
4
8
 
5
9
  - **Renamed `agentguard coach` to `agentguard advisor`** to better match the business-buyer mental model. The command name now aligns with the outcomes-based positioning, AI policy advisor for your business. v0.4.0 had zero downloads at the time of this release. The rename is clean with no alias.
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/advisor/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,8BAA8B,EAAE,oBAAoB,EA2KhE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAEnB,CAAC"}
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/advisor/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,8BAA8B,EAAE,oBAAoB,EA2LhE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAEnB,CAAC"}
@@ -66,6 +66,21 @@ Standard: default for most SaaS, e-commerce, real estate, agencies, local servic
66
66
  Compliance: for law, healthcare, dental, accounting, SOX, fintech, and regulated workflows. Default mode is canary, meaning enforce with a 5 percent sticky shadow sample. Capabilities are strict, with payment_execute for financial workflows and data_write minimum for PHI or PII workflows. Downgrade chains are conservative, and regulated capabilities block instead of downgrade. Audit retention is 7 years. Per-action approval gates are on for payment_execute.
67
67
 
68
68
  Custom: a Solo tier posture for future Outcome Builder workflows. In this release, tell the user Solo tier is required and choose Velocity, Standard, or Compliance instead.`,
69
+ },
70
+ {
71
+ id: 'vertical-outcome-intel-may28',
72
+ title: 'Vertical Outcome Intel May 28 2026',
73
+ content: `When the user selects one of these five verticals, cite the five outcomes, cap, recommended model, three compliance citations, pricing anchor, and default Governance Posture. Use these values unless the user gives a stronger constraint.
74
+
75
+ Law firms. Default posture: compliance. Pricing anchor: Solo $49 is about one Clio EasyStart seat. Startup $199 is below one CoCounsel seat. Growth $999 is a fraction of one Harvey seat. Outcomes: contract redlined, cap $2.00, model anthropic/claude-sonnet-4-6, tier data_write. Research memo delivered, cap $3.00, model anthropic/claude-opus-4-7, tier read_only. Matter intake closed, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. Deposition pack assembled, cap $5.00, model anthropic/claude-opus-4-7, tier read_only. Brief or motion drafted, cap $7.50, model anthropic/claude-opus-4-7, tier data_write. Compliance citations: ABA Model Rule 1.1 competence, ABA Model Rule 1.6 confidentiality, ABA Formal Opinion 512 on generative AI.
76
+
77
+ Healthcare and dental. Default posture: compliance. Pricing anchor: Solo $49 is below common scribe entry pricing. Startup $199 fits a small multi-provider practice. Growth $999 governs several AI vendors. Outcomes: encounter documented, cap $0.50, model anthropic/claude-haiku-4-5 or BAA-covered Bedrock Anthropic, tier data_write. Claim coded and submitted, cap $0.25, model anthropic/claude-haiku-4-5, tier data_write. Prior auth letter drafted, cap $1.00, model anthropic/claude-sonnet-4-6, tier data_write. Inbox message resolved, cap $0.20, model anthropic/claude-haiku-4-5, tier data_write. Front desk call resolved, cap $0.30, model anthropic/claude-haiku-4-5, tier data_write. Compliance citations: 45 CFR 164.312(b) audit controls, 45 CFR 164.312(c)(1) integrity, 45 CFR 164.314 BAA organizational requirements.
78
+
79
+ Accounting and bookkeeping. Default posture: compliance. Pricing anchor: Solo $49 is about one QuickBooks or low-end practice seat. Startup $199 is below four Karbon Team seats. Growth $999 fits a 10 to 15 staff firm. Outcomes: bookkeeping cycle closed, cap $5.00, model anthropic/claude-haiku-4-5, tier data_write. Tax return drafted, cap $7.50, model openai/gpt-5, tier data_write. IRS or state notice response, cap $3.00, model anthropic/claude-sonnet-4-6, tier data_write. Client email resolved, cap $0.50, model anthropic/claude-haiku-4-5, tier data_write. Workpaper completed, cap $4.00, model openai/gpt-5, tier data_write. Compliance citations: PCAOB AS 1215 audit documentation retention, SOX 802 and 18 U.S.C. 1519 record preservation, GLBA Safeguards Rule 16 CFR Part 314.
80
+
81
+ E-commerce and Shopify. Default posture: standard. Pricing anchor: Solo $49 is around a small-list Klaviyo setup. Startup $199 sits between Shopify Advanced and common analytics apps. Growth $999 is within normal DTC AI overhead. Outcomes: support ticket resolved, cap $0.99, model anthropic/claude-haiku-4-5, tier data_write. Product page published, cap $0.50, model anthropic/claude-sonnet-4-6, tier data_write. Cart recovered, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. Chargeback represented, cap $2.00, model openai/gpt-5, tier read_only. Email send launched, cap $1.00, model anthropic/claude-haiku-4-5, tier data_write. Agentic checkout completed, cap $2.00, model anthropic/claude-haiku-4-5, tier payment_execute. Compliance citations: Visa Compelling Evidence 3.0, PCI DSS 4.0 section 10 logging and monitoring, CAN-SPAM 15 U.S.C. 7704.
82
+
83
+ Real estate and mortgage. Default posture: standard. Pricing anchor: Solo $49 is about Cloud CMA or below Follow Up Boss. Startup $199 fits a 4 to 5 agent team. Growth $999 fits a 20 agent brokerage. Outcomes: listing prepped, cap $1.00, model anthropic/claude-haiku-4-5, tier data_write. Lead qualified, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. CMA delivered, cap $1.00, model anthropic/claude-sonnet-4-6, tier read_only. Showing booked, cap $0.75, model anthropic/claude-haiku-4-5, tier data_write. Transaction file closed, cap $5.00, model openai/gpt-5, tier data_write. Compliance citations: Fair Housing Act 42 U.S.C. 3604, ECOA 15 U.S.C. 1691 with Regulation B 12 CFR 1002, TCPA 47 U.S.C. 227 and 47 CFR 64.1200.`,
69
84
  },
70
85
  {
71
86
  id: 'vertical-encyclopedia-core',
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/advisor/system-prompt.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAQU,QAAA,8BAA8B,GAA2B;IACpE;QACE,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,+WAA+W;KACzX;IACD;QACE,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iPA8BoO;KAC9O;IAED;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE;;;;;;;;6KAQgK;KAC1K;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,KAAK,EAAE,yCAAyC;QAChD,OAAO,EAAE;;;;;;;;;;;;;;;uwBAe0vB;KACpwB;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;qJA4BwI;KAClJ;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE;;;;;;;;;;;;;;;;4HAgB+G;KACzH;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA2BwB;KAClC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,gCAAgC;QACvC,OAAO,EAAE,2nBAA2nB;KACroB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,yeAAye;KACnf;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAG,sCAA8B;KAChE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC;KAC3D,IAAI,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/advisor/system-prompt.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAQU,QAAA,8BAA8B,GAA2B;IACpE;QACE,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,+WAA+W;KACzX;IACD;QACE,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iPA8BoO;KAC9O;IAED;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE;;;;;;;;6KAQgK;KAC1K;IAED;QACE,EAAE,EAAE,8BAA8B;QAClC,KAAK,EAAE,oCAAoC;QAC3C,OAAO,EAAE;;;;;;;;;;ouBAUutB;KACjuB;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,KAAK,EAAE,yCAAyC;QAChD,OAAO,EAAE;;;;;;;;;;;;;;;uwBAe0vB;KACpwB;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;qJA4BwI;KAClJ;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE;;;;;;;;;;;;;;;;4HAgB+G;KACzH;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA2BwB;KAClC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,gCAAgC;QACvC,OAAO,EAAE,2nBAA2nB;KACroB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,yeAAye;KACnf;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAG,sCAA8B;KAChE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC;KAC3D,IAAI,CAAC,MAAM,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ export { SpendGuard, withSpendGuard, AgentGuardBlockedError, type SpendGuardConf
19
19
  export { withSpendGuardAnthropic, type AnthropicBindingOptions } from './bindings/anthropic';
20
20
  export { withSpendGuardBedrock, type BedrockBindingOptions } from './bindings/bedrock';
21
21
  export { DEFAULT_LOCALE, SUPPORTED_LOCALES, TRANSLATIONS, type SupportedLocale, resolveLocale, t, formatBlockedTrace, type BlockedTraceArgs, } from './i18n';
22
- export declare const AGENTGUARD_SPEND_VERSION = "0.4.2";
22
+ export declare const AGENTGUARD_SPEND_VERSION = "0.4.3";
23
23
  /** Patent marking. 35 U.S.C. § 287 constructive notice. */
24
24
  export declare const PATENT_NOTICE: string;
25
25
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -83,7 +83,7 @@ Object.defineProperty(exports, "TRANSLATIONS", { enumerable: true, get: function
83
83
  Object.defineProperty(exports, "resolveLocale", { enumerable: true, get: function () { return i18n_1.resolveLocale; } });
84
84
  Object.defineProperty(exports, "t", { enumerable: true, get: function () { return i18n_1.t; } });
85
85
  Object.defineProperty(exports, "formatBlockedTrace", { enumerable: true, get: function () { return i18n_1.formatBlockedTrace; } });
86
- exports.AGENTGUARD_SPEND_VERSION = '0.4.2';
86
+ exports.AGENTGUARD_SPEND_VERSION = '0.4.3';
87
87
  /** Patent marking. 35 U.S.C. § 287 constructive notice. */
88
88
  exports.PATENT_NOTICE = 'Protected by U.S. patent-pending technology ' +
89
89
  '(App. Nos. 63/983,615; 63/983,621; 63/983,843; 63/984,626; ' +
package/dist/telemetry.js CHANGED
@@ -43,7 +43,7 @@ const https = __importStar(require("https"));
43
43
  const os = __importStar(require("os"));
44
44
  const path = __importStar(require("path"));
45
45
  const crypto_1 = require("crypto");
46
- const AGENTGUARD_SPEND_VERSION = '0.4.1';
46
+ const AGENTGUARD_SPEND_VERSION = '0.4.3';
47
47
  const STATE_DIR = path.join(os.homedir(), '.agentguard');
48
48
  const INSTALL_PATH = path.join(STATE_DIR, 'install.json');
49
49
  const BEACON_URL = 'https://agentguard.run/api/beacon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentguard-run/spend",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Local-runtime spend caps and capability-gated model routing for AI agents. Prompts, API keys, and signing keys stay inside the customer runtime. Zero data plane involvement.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -72,6 +72,22 @@ Compliance: for law, healthcare, dental, accounting, SOX, fintech, and regulated
72
72
 
73
73
  Custom: a Solo tier posture for future Outcome Builder workflows. In this release, tell the user Solo tier is required and choose Velocity, Standard, or Compliance instead.`,
74
74
  },
75
+
76
+ {
77
+ id: 'vertical-outcome-intel-may28',
78
+ title: 'Vertical Outcome Intel May 28 2026',
79
+ content: `When the user selects one of these five verticals, cite the five outcomes, cap, recommended model, three compliance citations, pricing anchor, and default Governance Posture. Use these values unless the user gives a stronger constraint.
80
+
81
+ Law firms. Default posture: compliance. Pricing anchor: Solo $49 is about one Clio EasyStart seat. Startup $199 is below one CoCounsel seat. Growth $999 is a fraction of one Harvey seat. Outcomes: contract redlined, cap $2.00, model anthropic/claude-sonnet-4-6, tier data_write. Research memo delivered, cap $3.00, model anthropic/claude-opus-4-7, tier read_only. Matter intake closed, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. Deposition pack assembled, cap $5.00, model anthropic/claude-opus-4-7, tier read_only. Brief or motion drafted, cap $7.50, model anthropic/claude-opus-4-7, tier data_write. Compliance citations: ABA Model Rule 1.1 competence, ABA Model Rule 1.6 confidentiality, ABA Formal Opinion 512 on generative AI.
82
+
83
+ Healthcare and dental. Default posture: compliance. Pricing anchor: Solo $49 is below common scribe entry pricing. Startup $199 fits a small multi-provider practice. Growth $999 governs several AI vendors. Outcomes: encounter documented, cap $0.50, model anthropic/claude-haiku-4-5 or BAA-covered Bedrock Anthropic, tier data_write. Claim coded and submitted, cap $0.25, model anthropic/claude-haiku-4-5, tier data_write. Prior auth letter drafted, cap $1.00, model anthropic/claude-sonnet-4-6, tier data_write. Inbox message resolved, cap $0.20, model anthropic/claude-haiku-4-5, tier data_write. Front desk call resolved, cap $0.30, model anthropic/claude-haiku-4-5, tier data_write. Compliance citations: 45 CFR 164.312(b) audit controls, 45 CFR 164.312(c)(1) integrity, 45 CFR 164.314 BAA organizational requirements.
84
+
85
+ Accounting and bookkeeping. Default posture: compliance. Pricing anchor: Solo $49 is about one QuickBooks or low-end practice seat. Startup $199 is below four Karbon Team seats. Growth $999 fits a 10 to 15 staff firm. Outcomes: bookkeeping cycle closed, cap $5.00, model anthropic/claude-haiku-4-5, tier data_write. Tax return drafted, cap $7.50, model openai/gpt-5, tier data_write. IRS or state notice response, cap $3.00, model anthropic/claude-sonnet-4-6, tier data_write. Client email resolved, cap $0.50, model anthropic/claude-haiku-4-5, tier data_write. Workpaper completed, cap $4.00, model openai/gpt-5, tier data_write. Compliance citations: PCAOB AS 1215 audit documentation retention, SOX 802 and 18 U.S.C. 1519 record preservation, GLBA Safeguards Rule 16 CFR Part 314.
86
+
87
+ E-commerce and Shopify. Default posture: standard. Pricing anchor: Solo $49 is around a small-list Klaviyo setup. Startup $199 sits between Shopify Advanced and common analytics apps. Growth $999 is within normal DTC AI overhead. Outcomes: support ticket resolved, cap $0.99, model anthropic/claude-haiku-4-5, tier data_write. Product page published, cap $0.50, model anthropic/claude-sonnet-4-6, tier data_write. Cart recovered, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. Chargeback represented, cap $2.00, model openai/gpt-5, tier read_only. Email send launched, cap $1.00, model anthropic/claude-haiku-4-5, tier data_write. Agentic checkout completed, cap $2.00, model anthropic/claude-haiku-4-5, tier payment_execute. Compliance citations: Visa Compelling Evidence 3.0, PCI DSS 4.0 section 10 logging and monitoring, CAN-SPAM 15 U.S.C. 7704.
88
+
89
+ Real estate and mortgage. Default posture: standard. Pricing anchor: Solo $49 is about Cloud CMA or below Follow Up Boss. Startup $199 fits a 4 to 5 agent team. Growth $999 fits a 20 agent brokerage. Outcomes: listing prepped, cap $1.00, model anthropic/claude-haiku-4-5, tier data_write. Lead qualified, cap $1.50, model anthropic/claude-haiku-4-5, tier data_write. CMA delivered, cap $1.00, model anthropic/claude-sonnet-4-6, tier read_only. Showing booked, cap $0.75, model anthropic/claude-haiku-4-5, tier data_write. Transaction file closed, cap $5.00, model openai/gpt-5, tier data_write. Compliance citations: Fair Housing Act 42 U.S.C. 3604, ECOA 15 U.S.C. 1691 with Regulation B 12 CFR 1002, TCPA 47 U.S.C. 227 and 47 CFR 64.1200.`,
90
+ },
75
91
  {
76
92
  id: 'vertical-encyclopedia-core',
77
93
  title: 'Vertical Encyclopedia: Installed Skills',