@agirails/sdk 3.4.1 → 4.0.0-beta.0

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.
Files changed (107) hide show
  1. package/dist/builders/QuoteBuilder.d.ts +9 -3
  2. package/dist/builders/QuoteBuilder.d.ts.map +1 -1
  3. package/dist/builders/QuoteBuilder.js +14 -3
  4. package/dist/builders/QuoteBuilder.js.map +1 -1
  5. package/dist/cli/agirails.d.ts +4 -1
  6. package/dist/cli/agirails.d.ts.map +1 -1
  7. package/dist/cli/agirails.js +34 -2
  8. package/dist/cli/agirails.js.map +1 -1
  9. package/dist/cli/commands/agent.d.ts +22 -0
  10. package/dist/cli/commands/agent.d.ts.map +1 -0
  11. package/dist/cli/commands/agent.js +250 -0
  12. package/dist/cli/commands/agent.js.map +1 -0
  13. package/dist/cli/commands/pay.d.ts +7 -0
  14. package/dist/cli/commands/pay.d.ts.map +1 -1
  15. package/dist/cli/commands/pay.js +34 -1
  16. package/dist/cli/commands/pay.js.map +1 -1
  17. package/dist/cli/commands/request.d.ts +19 -0
  18. package/dist/cli/commands/request.d.ts.map +1 -0
  19. package/dist/cli/commands/request.js +167 -0
  20. package/dist/cli/commands/request.js.map +1 -0
  21. package/dist/cli/commands/serve.d.ts +12 -7
  22. package/dist/cli/commands/serve.d.ts.map +1 -1
  23. package/dist/cli/commands/serve.js +12 -7
  24. package/dist/cli/commands/serve.js.map +1 -1
  25. package/dist/cli/commands/test.d.ts +22 -4
  26. package/dist/cli/commands/test.d.ts.map +1 -1
  27. package/dist/cli/commands/test.js +139 -292
  28. package/dist/cli/commands/test.js.map +1 -1
  29. package/dist/cli/commands/tx.js +13 -0
  30. package/dist/cli/commands/tx.js.map +1 -1
  31. package/dist/cli/index.js +10 -1
  32. package/dist/cli/index.js.map +1 -1
  33. package/dist/cli/lib/resolveAgent.d.ts +67 -0
  34. package/dist/cli/lib/resolveAgent.d.ts.map +1 -0
  35. package/dist/cli/lib/resolveAgent.js +121 -0
  36. package/dist/cli/lib/resolveAgent.js.map +1 -0
  37. package/dist/cli/lib/runRequest.d.ts +114 -0
  38. package/dist/cli/lib/runRequest.d.ts.map +1 -0
  39. package/dist/cli/lib/runRequest.js +324 -0
  40. package/dist/cli/lib/runRequest.js.map +1 -0
  41. package/dist/cli/lib/serviceNameForHash.d.ts +48 -0
  42. package/dist/cli/lib/serviceNameForHash.d.ts.map +1 -0
  43. package/dist/cli/lib/serviceNameForHash.js +62 -0
  44. package/dist/cli/lib/serviceNameForHash.js.map +1 -0
  45. package/dist/config/networks.d.ts.map +1 -1
  46. package/dist/config/networks.js +7 -1
  47. package/dist/config/networks.js.map +1 -1
  48. package/dist/index.d.ts +6 -0
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +12 -2
  51. package/dist/index.js.map +1 -1
  52. package/dist/level0/request.d.ts.map +1 -1
  53. package/dist/level0/request.js +18 -6
  54. package/dist/level0/request.js.map +1 -1
  55. package/dist/level1/Agent.d.ts +72 -8
  56. package/dist/level1/Agent.d.ts.map +1 -1
  57. package/dist/level1/Agent.js +243 -111
  58. package/dist/level1/Agent.js.map +1 -1
  59. package/dist/negotiation/BuyerOrchestrator.d.ts +73 -61
  60. package/dist/negotiation/BuyerOrchestrator.d.ts.map +1 -1
  61. package/dist/negotiation/BuyerOrchestrator.js +421 -381
  62. package/dist/negotiation/BuyerOrchestrator.js.map +1 -1
  63. package/dist/negotiation/MockChannel.d.ts +63 -0
  64. package/dist/negotiation/MockChannel.d.ts.map +1 -0
  65. package/dist/negotiation/MockChannel.js +175 -0
  66. package/dist/negotiation/MockChannel.js.map +1 -0
  67. package/dist/negotiation/NegotiationChannel.d.ts +142 -0
  68. package/dist/negotiation/NegotiationChannel.d.ts.map +1 -0
  69. package/dist/negotiation/NegotiationChannel.js +59 -0
  70. package/dist/negotiation/NegotiationChannel.js.map +1 -0
  71. package/dist/negotiation/ProviderOrchestrator.d.ts +85 -35
  72. package/dist/negotiation/ProviderOrchestrator.d.ts.map +1 -1
  73. package/dist/negotiation/ProviderOrchestrator.js +199 -49
  74. package/dist/negotiation/ProviderOrchestrator.js.map +1 -1
  75. package/dist/negotiation/ProviderPolicy.d.ts +51 -6
  76. package/dist/negotiation/ProviderPolicy.d.ts.map +1 -1
  77. package/dist/negotiation/ProviderPolicy.js +61 -9
  78. package/dist/negotiation/ProviderPolicy.js.map +1 -1
  79. package/dist/negotiation/RelayChannel.d.ts +59 -0
  80. package/dist/negotiation/RelayChannel.d.ts.map +1 -0
  81. package/dist/negotiation/RelayChannel.js +208 -0
  82. package/dist/negotiation/RelayChannel.js.map +1 -0
  83. package/dist/protocol/ACTPKernel.d.ts.map +1 -1
  84. package/dist/protocol/ACTPKernel.js +51 -1
  85. package/dist/protocol/ACTPKernel.js.map +1 -1
  86. package/dist/protocol/EventMonitor.d.ts +26 -1
  87. package/dist/protocol/EventMonitor.d.ts.map +1 -1
  88. package/dist/protocol/EventMonitor.js +18 -4
  89. package/dist/protocol/EventMonitor.js.map +1 -1
  90. package/dist/runtime/BlockchainRuntime.d.ts +73 -0
  91. package/dist/runtime/BlockchainRuntime.d.ts.map +1 -1
  92. package/dist/runtime/BlockchainRuntime.js +131 -3
  93. package/dist/runtime/BlockchainRuntime.js.map +1 -1
  94. package/dist/runtime/IACTPRuntime.d.ts +29 -0
  95. package/dist/runtime/IACTPRuntime.d.ts.map +1 -1
  96. package/dist/runtime/MockRuntime.d.ts.map +1 -1
  97. package/dist/runtime/MockRuntime.js +21 -4
  98. package/dist/runtime/MockRuntime.js.map +1 -1
  99. package/dist/runtime/MockStateManager.d.ts.map +1 -1
  100. package/dist/runtime/MockStateManager.js +18 -0
  101. package/dist/runtime/MockStateManager.js.map +1 -1
  102. package/dist/runtime/types/MockState.d.ts +12 -0
  103. package/dist/runtime/types/MockState.d.ts.map +1 -1
  104. package/dist/runtime/types/MockState.js.map +1 -1
  105. package/dist/types/agent.d.ts +6 -1
  106. package/dist/types/agent.d.ts.map +1 -1
  107. package/package.json +2 -1
@@ -15,14 +15,12 @@
15
15
  *
16
16
  * Accepts ACTPClient for on-chain operations. Caller manages lifecycle.
17
17
  */
18
- import type { Signer } from 'ethers';
18
+ import { type Signer } from 'ethers';
19
19
  import { DiscoverParams } from '../api/agirailsApp';
20
20
  import { BuyerPolicy } from './PolicyEngine';
21
21
  import { IACTPRuntime } from '../runtime/IACTPRuntime';
22
- import { QuoteMessage } from '../builders/QuoteBuilder';
23
- import { CounterAcceptMessage } from '../builders/CounterAcceptBuilder';
24
- import { QuoteChannelClient } from '../transport/QuoteChannel';
25
22
  import { NonceManager } from '../utils/NonceManager';
23
+ import { NegotiationChannel } from './NegotiationChannel';
26
24
  export interface NegotiationResult {
27
25
  success: boolean;
28
26
  commerce_session_id: string;
@@ -84,10 +82,15 @@ export type ProgressEvent = {
84
82
  reason: string;
85
83
  };
86
84
  /**
87
- * AIP-2.1 extrasall optional so existing constructor call sites
88
- * keep working unchanged. Wire them in when the caller wants real
89
- * negotiation (counter-offers). Without them the orchestrator still
90
- * runs the fixed-price flow.
85
+ * AIP-2.1 negotiation context wires the orchestrator into the
86
+ * NegotiationChannel transport. All fields optional: without them the
87
+ * orchestrator runs the legacy fixed-price flow only (no counters).
88
+ *
89
+ * To enable multi-round negotiation, supply ALL of:
90
+ * - signer (signs CounterOfferMessages)
91
+ * - kernelAddress (EIP-712 domain)
92
+ * - chainId
93
+ * - negotiationChannel (transport — RelayChannel default, MockChannel for tests)
91
94
  */
92
95
  export interface BuyerNegotiationContext {
93
96
  /** Buyer's EOA signer — signs CounterOfferMessages. */
@@ -98,8 +101,13 @@ export interface BuyerNegotiationContext {
98
101
  chainId?: number;
99
102
  /** Nonce manager for counter messages. Defaults to an in-memory one. */
100
103
  nonceManager?: NonceManager;
101
- /** Off-chain transport used to POST counter-offers. */
102
- channel?: QuoteChannelClient;
104
+ /**
105
+ * Transport for receiving quotes / acceptances + sending counters.
106
+ * Required for any negotiation feature; without it the orchestrator
107
+ * is fixed-price only. Use RelayChannel in production, MockChannel
108
+ * in tests.
109
+ */
110
+ negotiationChannel?: NegotiationChannel;
103
111
  }
104
112
  export declare class BuyerOrchestrator {
105
113
  private policy;
@@ -110,77 +118,81 @@ export declare class BuyerOrchestrator {
110
118
  private requesterAddress;
111
119
  private negotiation;
112
120
  private counterBuilder?;
113
- /** Quotes pushed in by the caller's quote-channel handler, keyed by txId. */
114
- private receivedQuotes;
115
- /** Provider-acceptance-of-counter signal, keyed by txId. */
116
- private counterAccepted;
117
- /** Resolvers waiting on counter acceptance — woken by setCounterAccepted. */
118
- private counterWaiters;
119
121
  /**
120
- * Counters this orchestrator sent (one per round, last write wins),
121
- * keyed by txId. Stored so `setCounterAccepted` can cryptographically
122
- * bind a provider's acceptance message to the exact counter we sent
123
- * (acceptedAmount === counter.counterAmount, inReplyTo === counterHash).
122
+ * Per-txId inbound message queue. Channel callbacks push here; the
123
+ * orchestrator's negotiation loop drains via `_waitForNextMessage`.
124
+ * Bounded implicitly by `_cleanupTxState` at terminal outcomes.
125
+ */
126
+ private inboundQueues;
127
+ /**
128
+ * Per-txId resolver for the orchestrator's "wait for next message"
129
+ * await. When a message arrives and a resolver is set, the message
130
+ * is delivered immediately instead of queued.
131
+ */
132
+ private inboundResolvers;
133
+ /**
134
+ * Active subscriptions opened by `negotiate()`. Closed at end of
135
+ * each negotiation. Multiple concurrent calls are supported.
124
136
  */
125
- private sentCounters;
137
+ private activeSubscriptions;
126
138
  constructor(policy: BuyerPolicy, runtime: IACTPRuntime, requesterAddress: string, actpDir?: string, negotiation?: BuyerNegotiationContext);
127
139
  /**
128
- * Push a verified QuoteMessage into the orchestrator. Callers wire
129
- * this from their QuoteChannel handler so the negotiation loop can
130
- * pick it up on the next poll tick.
140
+ * Channel delivered a verified message for `txId`. If a round is
141
+ * awaiting the next message, hand it directly; otherwise queue.
131
142
  *
132
- * Caller is responsible for validating the signature before pushing
133
- * (the QuoteChannel handler already does this); the orchestrator
134
- * layers on top by cross-referencing against on-chain hash (with
135
- * legacy fallback, §3.6).
143
+ * NOTE: the channel has already verified EIP-712 signature + chainId
144
+ * before invoking us. This handler is concerned only with routing.
136
145
  */
137
- setReceivedQuote(txId: string, quote: QuoteMessage, opts?: {
138
- providerEndpoint?: string;
139
- providerAddress?: string;
140
- actualEscrow?: string;
141
- }): void;
146
+ private _onChannelMessage;
142
147
  /**
143
- * Signal that the provider has accepted our counter-offer off-chain.
144
- * Callers wire this from their quote-channel handler when an
145
- * `agirails.counteraccept.v1` notification arrives.
148
+ * Await the next inbound message matching one of `acceptedTypes`.
149
+ * Returns null on timeout (caller decides how to handle: cancel,
150
+ * accept-if-affordable, etc).
146
151
  *
147
- * Verifies the acceptance is cryptographically bound to the counter
148
- * THIS orchestrator sent for THIS txId:
149
- * 1. EIP-712 signature recovers to provider DID
150
- * 2. `acceptMessage.txId === txId`
151
- * 3. `acceptMessage.inReplyTo === keccak(stored counter)`
152
- * 4. `acceptMessage.acceptedAmount === storedCounter.counterAmount`
153
- *
154
- * Throws on any mismatch. Without these checks a malicious peer could
155
- * pose as the provider and trick the buyer into committing at any
156
- * price, since the previous (string-only) API trusted the caller.
157
- *
158
- * Wakes any negotiation round waiting on counter acceptance for this txId.
152
+ * Drains the queue first so messages buffered while we were busy
153
+ * processing the previous round are picked up immediately.
159
154
  */
160
- setCounterAccepted(txId: string, acceptMessage: CounterAcceptMessage): Promise<void>;
155
+ private _waitForNextMessage;
161
156
  /**
162
157
  * Execute the full negotiation flow.
163
158
  */
164
159
  negotiate(config?: OrchestratorConfig): Promise<NegotiationResult>;
165
160
  private _negotiate;
166
161
  /**
167
- * Run a negotiation decision for a single incoming provider quote.
168
- * Called ONLY when the caller has pushed in a signed QuoteMessage via
169
- * setReceivedQuote and the tx has reached QUOTED on-chain.
162
+ * Run the multi-round AIP-2.1 negotiation flow for one provider/txId.
163
+ *
164
+ * Channel-driven: this method never reads `setReceivedQuote` state;
165
+ * all inbound messages flow through the orchestrator's NegotiationChannel
166
+ * subscription (opened in `_negotiate` after createTransaction).
167
+ *
168
+ * Inner loop walks up to `policy.negotiation.rounds_per_provider`
169
+ * counter exchanges:
170
170
  *
171
- * Returns `{ done: true, success: bool, reason }` when a terminal
172
- * decision is reached (accept landed COMMITTED, or candidate rejected).
173
- * Returns `{ done: false }` when the caller should fall through to the
174
- * existing fixed-price flow (verification failed, missing negotiation
175
- * context, etc).
171
+ * await first quote (channel)
172
+ * for round in 0..rounds_per_provider:
173
+ * evaluate(currentQuote, roundsUsedSoFar = round)
174
+ * accept → on-chain acceptQuote+linkEscrow, return success
175
+ * reject → on-chain CANCELLED, return failure
176
+ * counter → channel.post(counter), await NEXT message:
177
+ * counteraccept → bind to last counter, on-chain accept+link, return success
178
+ * new quote → currentQuote = new quote, loop
179
+ * timeout → on-chain CANCELLED, return failure
180
+ *
181
+ * Returns `{done: false}` when the channel has no quote but the tx
182
+ * reached QUOTED via raw transitionState (legacy flow caller wants
183
+ * to fall through to fixed-price). Returns `{done: true, success?,
184
+ * reason?}` for any terminal outcome.
176
185
  */
177
186
  private _runNegotiationRound;
178
- /** Resolve when setCounterAccepted(txId, …) is called, or on timeout. */
179
- private _waitForCounterAcceptance;
187
+ /**
188
+ * Shared accept+linkEscrow with atomic rollback. Used by both the
189
+ * "accept the quote" and "accept the counter" terminal branches.
190
+ */
191
+ private _commitAtAmount;
180
192
  /**
181
193
  * Free per-tx negotiation state at terminal outcomes (accept commits,
182
- * reject CANCELLED, timeout). Long-running daemon-style runners would
183
- * otherwise leak both maps unbounded as txIds accumulate.
194
+ * reject CANCELLED, timeout). Closes the channel subscription too so
195
+ * long-running daemon callers don't leak inbound-message resolvers.
184
196
  *
185
197
  * Idempotent — safe to call from multiple cleanup sites.
186
198
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BuyerOrchestrator.d.ts","sourceRoot":"","sources":["../../src/negotiation/BuyerOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,C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