lane-sdk 0.3.11 → 0.3.12
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/adapters/crewai/index.cjs +12 -14
- package/dist/adapters/crewai/index.d.cts +1 -1
- package/dist/adapters/crewai/index.d.ts +1 -1
- package/dist/adapters/crewai/index.js +12 -14
- package/dist/adapters/langchain/index.cjs +12 -14
- package/dist/adapters/langchain/index.d.cts +1 -1
- package/dist/adapters/langchain/index.d.ts +1 -1
- package/dist/adapters/langchain/index.js +12 -14
- package/dist/adapters/openai/index.cjs +12 -14
- package/dist/adapters/openai/index.d.cts +1 -1
- package/dist/adapters/openai/index.d.ts +1 -1
- package/dist/adapters/openai/index.js +12 -14
- package/dist/adapters/vercel-ai/index.cjs +12 -14
- package/dist/adapters/vercel-ai/index.d.cts +1 -1
- package/dist/adapters/vercel-ai/index.d.ts +1 -1
- package/dist/adapters/vercel-ai/index.js +12 -14
- package/dist/cli/index.js +6 -7
- package/dist/cli/postinstall.js +0 -1
- package/dist/index.cjs +12 -936
- package/dist/index.d.cts +3 -354
- package/dist/index.d.ts +3 -354
- package/dist/index.js +13 -928
- package/dist/{lane-CATn69s2.d.cts → lane-BgdqOeXo.d.cts} +5 -5
- package/dist/{lane-CATn69s2.d.ts → lane-BgdqOeXo.d.ts} +5 -5
- package/dist/server-http.cjs +12 -14
- package/dist/server-http.js +12 -14
- package/dist/server-stdio.cjs +12 -14
- package/dist/server-stdio.js +12 -14
- package/dist/skills/lane.md +5 -5
- package/package.json +5 -2
- package/plugin/skills/commerce-agent/SKILL.md +2 -2
- package/dist/adapters/crewai/index.cjs.map +0 -1
- package/dist/adapters/crewai/index.js.map +0 -1
- package/dist/adapters/langchain/index.cjs.map +0 -1
- package/dist/adapters/langchain/index.js.map +0 -1
- package/dist/adapters/openai/index.cjs.map +0 -1
- package/dist/adapters/openai/index.js.map +0 -1
- package/dist/adapters/vercel-ai/index.cjs.map +0 -1
- package/dist/adapters/vercel-ai/index.js.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/postinstall.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/server-http.cjs.map +0 -1
- package/dist/server-http.js.map +0 -1
- package/dist/server-stdio.cjs.map +0 -1
- package/dist/server-stdio.js.map +0 -1
|
@@ -5193,7 +5193,7 @@ var ConfirmInstructionTool = class extends LaneTool {
|
|
|
5193
5193
|
}
|
|
5194
5194
|
};
|
|
5195
5195
|
var inputSchema27 = zod.z.object({
|
|
5196
|
-
platform: zod.z.
|
|
5196
|
+
platform: zod.z.string().describe("Commerce platform to query. The server resolves available platforms.")
|
|
5197
5197
|
});
|
|
5198
5198
|
var CommerceGetLocationsTool = class extends LaneTool {
|
|
5199
5199
|
get definition() {
|
|
@@ -5208,7 +5208,7 @@ var CommerceGetLocationsTool = class extends LaneTool {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
};
|
|
5210
5210
|
var inputSchema28 = zod.z.object({
|
|
5211
|
-
platform: zod.z.
|
|
5211
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5212
5212
|
locationId: zod.z.string().describe("Location ID to fetch the menu for.")
|
|
5213
5213
|
});
|
|
5214
5214
|
var CommerceGetMenuTool = class extends LaneTool {
|
|
@@ -5224,7 +5224,7 @@ var CommerceGetMenuTool = class extends LaneTool {
|
|
|
5224
5224
|
}
|
|
5225
5225
|
};
|
|
5226
5226
|
var inputSchema29 = zod.z.object({
|
|
5227
|
-
platform: zod.z.
|
|
5227
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5228
5228
|
itemId: zod.z.string().describe("Item ID to fetch modifiers for.")
|
|
5229
5229
|
});
|
|
5230
5230
|
var CommerceGetModifiersTool = class extends LaneTool {
|
|
@@ -5251,7 +5251,7 @@ var inputSchema30 = zod.z.object({
|
|
|
5251
5251
|
text: zod.z.string().optional().describe('Natural language order request (e.g., "4 cold brews for pickup at Equator tomorrow 2pm"). If provided, server auto-resolves item, quantity, location, time, and modifiers.'),
|
|
5252
5252
|
// Option B: structured params (agent already resolved from menu)
|
|
5253
5253
|
description: zod.z.string().optional().describe("Order summary (required if text not provided)."),
|
|
5254
|
-
platform: zod.z.
|
|
5254
|
+
platform: zod.z.string().optional().describe("Auto-detected by the server if omitted."),
|
|
5255
5255
|
merchant: zod.z.string().optional().describe("Merchant name (auto-detected from text if provided)."),
|
|
5256
5256
|
walletId: zod.z.string().default("default").describe("Wallet ID."),
|
|
5257
5257
|
locationId: zod.z.string().optional().describe("Location ID (auto-resolved from text if provided)."),
|
|
@@ -5284,7 +5284,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5284
5284
|
};
|
|
5285
5285
|
}
|
|
5286
5286
|
async run(input) {
|
|
5287
|
-
const platform2 = input.platform ??
|
|
5287
|
+
const platform2 = input.platform ?? "auto";
|
|
5288
5288
|
return this.getLane().commerce.orders.createIntent(platform2, {
|
|
5289
5289
|
...input,
|
|
5290
5290
|
description: input.description ?? input.text ?? "",
|
|
@@ -5295,7 +5295,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
};
|
|
5297
5297
|
var inputSchema31 = zod.z.object({
|
|
5298
|
-
platform: zod.z.
|
|
5298
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5299
5299
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5300
5300
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
5301
5301
|
});
|
|
@@ -5308,7 +5308,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5308
5308
|
};
|
|
5309
5309
|
}
|
|
5310
5310
|
async run(input) {
|
|
5311
|
-
const platform2 = input.platform ?? "
|
|
5311
|
+
const platform2 = input.platform ?? "auto";
|
|
5312
5312
|
return this.getLane().commerce.orders.executeIntent(
|
|
5313
5313
|
platform2,
|
|
5314
5314
|
input.instructionId,
|
|
@@ -5317,7 +5317,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
};
|
|
5319
5319
|
var inputSchema32 = zod.z.object({
|
|
5320
|
-
platform: zod.z.
|
|
5320
|
+
platform: zod.z.string().describe("Commerce platform to connect. The server resolves available platforms."),
|
|
5321
5321
|
walletId: zod.z.string().optional().describe("Wallet ID to associate."),
|
|
5322
5322
|
userEmail: zod.z.string().optional().describe("User email for the platform."),
|
|
5323
5323
|
displayName: zod.z.string().optional().describe("Display name for the connection.")
|
|
@@ -5350,7 +5350,7 @@ var CommerceProviderStatusTool = class extends LaneTool {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
};
|
|
5352
5352
|
var inputSchema34 = zod.z.object({
|
|
5353
|
-
platform: zod.z.
|
|
5353
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5354
5354
|
orderId: zod.z.string().describe("Order ID from the create order step."),
|
|
5355
5355
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5356
5356
|
cardId: zod.z.string().optional().describe("Payment card ID. If omitted, server resolves first saved card."),
|
|
@@ -5366,7 +5366,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5366
5366
|
};
|
|
5367
5367
|
}
|
|
5368
5368
|
async run(input) {
|
|
5369
|
-
const platform2 = input.platform ?? "
|
|
5369
|
+
const platform2 = input.platform ?? "auto";
|
|
5370
5370
|
return this.getLane().commerce.orders.configureCheckout(platform2, input.orderId, {
|
|
5371
5371
|
instructionId: input.instructionId,
|
|
5372
5372
|
cardId: input.cardId,
|
|
@@ -5376,7 +5376,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
};
|
|
5378
5378
|
var inputSchema35 = zod.z.object({
|
|
5379
|
-
platform: zod.z.
|
|
5379
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5380
5380
|
orderId: zod.z.string().describe("Order ID to submit."),
|
|
5381
5381
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5382
5382
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
@@ -5390,7 +5390,7 @@ var CommerceSubmitOrderTool = class extends LaneTool {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
}
|
|
5392
5392
|
async run(input) {
|
|
5393
|
-
const platform2 = input.platform ?? "
|
|
5393
|
+
const platform2 = input.platform ?? "auto";
|
|
5394
5394
|
return this.getLane().commerce.orders.submit(platform2, input.orderId, {
|
|
5395
5395
|
instructionId: input.instructionId,
|
|
5396
5396
|
mandateId: input.mandateId
|
|
@@ -5533,5 +5533,3 @@ function createLaneTools(lane) {
|
|
|
5533
5533
|
}
|
|
5534
5534
|
|
|
5535
5535
|
exports.createLaneTools = createLaneTools;
|
|
5536
|
-
//# sourceMappingURL=index.cjs.map
|
|
5537
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -5181,7 +5181,7 @@ var ConfirmInstructionTool = class extends LaneTool {
|
|
|
5181
5181
|
}
|
|
5182
5182
|
};
|
|
5183
5183
|
var inputSchema27 = z.object({
|
|
5184
|
-
platform: z.
|
|
5184
|
+
platform: z.string().describe("Commerce platform to query. The server resolves available platforms.")
|
|
5185
5185
|
});
|
|
5186
5186
|
var CommerceGetLocationsTool = class extends LaneTool {
|
|
5187
5187
|
get definition() {
|
|
@@ -5196,7 +5196,7 @@ var CommerceGetLocationsTool = class extends LaneTool {
|
|
|
5196
5196
|
}
|
|
5197
5197
|
};
|
|
5198
5198
|
var inputSchema28 = z.object({
|
|
5199
|
-
platform: z.
|
|
5199
|
+
platform: z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5200
5200
|
locationId: z.string().describe("Location ID to fetch the menu for.")
|
|
5201
5201
|
});
|
|
5202
5202
|
var CommerceGetMenuTool = class extends LaneTool {
|
|
@@ -5212,7 +5212,7 @@ var CommerceGetMenuTool = class extends LaneTool {
|
|
|
5212
5212
|
}
|
|
5213
5213
|
};
|
|
5214
5214
|
var inputSchema29 = z.object({
|
|
5215
|
-
platform: z.
|
|
5215
|
+
platform: z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5216
5216
|
itemId: z.string().describe("Item ID to fetch modifiers for.")
|
|
5217
5217
|
});
|
|
5218
5218
|
var CommerceGetModifiersTool = class extends LaneTool {
|
|
@@ -5239,7 +5239,7 @@ var inputSchema30 = z.object({
|
|
|
5239
5239
|
text: z.string().optional().describe('Natural language order request (e.g., "4 cold brews for pickup at Equator tomorrow 2pm"). If provided, server auto-resolves item, quantity, location, time, and modifiers.'),
|
|
5240
5240
|
// Option B: structured params (agent already resolved from menu)
|
|
5241
5241
|
description: z.string().optional().describe("Order summary (required if text not provided)."),
|
|
5242
|
-
platform: z.
|
|
5242
|
+
platform: z.string().optional().describe("Auto-detected by the server if omitted."),
|
|
5243
5243
|
merchant: z.string().optional().describe("Merchant name (auto-detected from text if provided)."),
|
|
5244
5244
|
walletId: z.string().default("default").describe("Wallet ID."),
|
|
5245
5245
|
locationId: z.string().optional().describe("Location ID (auto-resolved from text if provided)."),
|
|
@@ -5272,7 +5272,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5272
5272
|
};
|
|
5273
5273
|
}
|
|
5274
5274
|
async run(input) {
|
|
5275
|
-
const platform2 = input.platform ??
|
|
5275
|
+
const platform2 = input.platform ?? "auto";
|
|
5276
5276
|
return this.getLane().commerce.orders.createIntent(platform2, {
|
|
5277
5277
|
...input,
|
|
5278
5278
|
description: input.description ?? input.text ?? "",
|
|
@@ -5283,7 +5283,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
};
|
|
5285
5285
|
var inputSchema31 = z.object({
|
|
5286
|
-
platform: z.
|
|
5286
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5287
5287
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5288
5288
|
mandateId: z.string().describe("Mandate ID from order intent.")
|
|
5289
5289
|
});
|
|
@@ -5296,7 +5296,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5296
5296
|
};
|
|
5297
5297
|
}
|
|
5298
5298
|
async run(input) {
|
|
5299
|
-
const platform2 = input.platform ?? "
|
|
5299
|
+
const platform2 = input.platform ?? "auto";
|
|
5300
5300
|
return this.getLane().commerce.orders.executeIntent(
|
|
5301
5301
|
platform2,
|
|
5302
5302
|
input.instructionId,
|
|
@@ -5305,7 +5305,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5305
5305
|
}
|
|
5306
5306
|
};
|
|
5307
5307
|
var inputSchema32 = z.object({
|
|
5308
|
-
platform: z.
|
|
5308
|
+
platform: z.string().describe("Commerce platform to connect. The server resolves available platforms."),
|
|
5309
5309
|
walletId: z.string().optional().describe("Wallet ID to associate."),
|
|
5310
5310
|
userEmail: z.string().optional().describe("User email for the platform."),
|
|
5311
5311
|
displayName: z.string().optional().describe("Display name for the connection.")
|
|
@@ -5338,7 +5338,7 @@ var CommerceProviderStatusTool = class extends LaneTool {
|
|
|
5338
5338
|
}
|
|
5339
5339
|
};
|
|
5340
5340
|
var inputSchema34 = z.object({
|
|
5341
|
-
platform: z.
|
|
5341
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5342
5342
|
orderId: z.string().describe("Order ID from the create order step."),
|
|
5343
5343
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5344
5344
|
cardId: z.string().optional().describe("Payment card ID. If omitted, server resolves first saved card."),
|
|
@@ -5354,7 +5354,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5354
5354
|
};
|
|
5355
5355
|
}
|
|
5356
5356
|
async run(input) {
|
|
5357
|
-
const platform2 = input.platform ?? "
|
|
5357
|
+
const platform2 = input.platform ?? "auto";
|
|
5358
5358
|
return this.getLane().commerce.orders.configureCheckout(platform2, input.orderId, {
|
|
5359
5359
|
instructionId: input.instructionId,
|
|
5360
5360
|
cardId: input.cardId,
|
|
@@ -5364,7 +5364,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
};
|
|
5366
5366
|
var inputSchema35 = z.object({
|
|
5367
|
-
platform: z.
|
|
5367
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5368
5368
|
orderId: z.string().describe("Order ID to submit."),
|
|
5369
5369
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5370
5370
|
mandateId: z.string().describe("Mandate ID from order intent.")
|
|
@@ -5378,7 +5378,7 @@ var CommerceSubmitOrderTool = class extends LaneTool {
|
|
|
5378
5378
|
};
|
|
5379
5379
|
}
|
|
5380
5380
|
async run(input) {
|
|
5381
|
-
const platform2 = input.platform ?? "
|
|
5381
|
+
const platform2 = input.platform ?? "auto";
|
|
5382
5382
|
return this.getLane().commerce.orders.submit(platform2, input.orderId, {
|
|
5383
5383
|
instructionId: input.instructionId,
|
|
5384
5384
|
mandateId: input.mandateId
|
|
@@ -5521,5 +5521,3 @@ function createLaneTools(lane) {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
|
|
5523
5523
|
export { createLaneTools };
|
|
5524
|
-
//# sourceMappingURL=index.js.map
|
|
5525
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5140,7 +5140,7 @@ var ConfirmInstructionTool = class extends LaneTool {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
};
|
|
5142
5142
|
var inputSchema27 = zod.z.object({
|
|
5143
|
-
platform: zod.z.
|
|
5143
|
+
platform: zod.z.string().describe("Commerce platform to query. The server resolves available platforms.")
|
|
5144
5144
|
});
|
|
5145
5145
|
var CommerceGetLocationsTool = class extends LaneTool {
|
|
5146
5146
|
get definition() {
|
|
@@ -5155,7 +5155,7 @@ var CommerceGetLocationsTool = class extends LaneTool {
|
|
|
5155
5155
|
}
|
|
5156
5156
|
};
|
|
5157
5157
|
var inputSchema28 = zod.z.object({
|
|
5158
|
-
platform: zod.z.
|
|
5158
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5159
5159
|
locationId: zod.z.string().describe("Location ID to fetch the menu for.")
|
|
5160
5160
|
});
|
|
5161
5161
|
var CommerceGetMenuTool = class extends LaneTool {
|
|
@@ -5171,7 +5171,7 @@ var CommerceGetMenuTool = class extends LaneTool {
|
|
|
5171
5171
|
}
|
|
5172
5172
|
};
|
|
5173
5173
|
var inputSchema29 = zod.z.object({
|
|
5174
|
-
platform: zod.z.
|
|
5174
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5175
5175
|
itemId: zod.z.string().describe("Item ID to fetch modifiers for.")
|
|
5176
5176
|
});
|
|
5177
5177
|
var CommerceGetModifiersTool = class extends LaneTool {
|
|
@@ -5198,7 +5198,7 @@ var inputSchema30 = zod.z.object({
|
|
|
5198
5198
|
text: zod.z.string().optional().describe('Natural language order request (e.g., "4 cold brews for pickup at Equator tomorrow 2pm"). If provided, server auto-resolves item, quantity, location, time, and modifiers.'),
|
|
5199
5199
|
// Option B: structured params (agent already resolved from menu)
|
|
5200
5200
|
description: zod.z.string().optional().describe("Order summary (required if text not provided)."),
|
|
5201
|
-
platform: zod.z.
|
|
5201
|
+
platform: zod.z.string().optional().describe("Auto-detected by the server if omitted."),
|
|
5202
5202
|
merchant: zod.z.string().optional().describe("Merchant name (auto-detected from text if provided)."),
|
|
5203
5203
|
walletId: zod.z.string().default("default").describe("Wallet ID."),
|
|
5204
5204
|
locationId: zod.z.string().optional().describe("Location ID (auto-resolved from text if provided)."),
|
|
@@ -5231,7 +5231,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5231
5231
|
};
|
|
5232
5232
|
}
|
|
5233
5233
|
async run(input) {
|
|
5234
|
-
const platform2 = input.platform ??
|
|
5234
|
+
const platform2 = input.platform ?? "auto";
|
|
5235
5235
|
return this.getLane().commerce.orders.createIntent(platform2, {
|
|
5236
5236
|
...input,
|
|
5237
5237
|
description: input.description ?? input.text ?? "",
|
|
@@ -5242,7 +5242,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5242
5242
|
}
|
|
5243
5243
|
};
|
|
5244
5244
|
var inputSchema31 = zod.z.object({
|
|
5245
|
-
platform: zod.z.
|
|
5245
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5246
5246
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5247
5247
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
5248
5248
|
});
|
|
@@ -5255,7 +5255,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5255
5255
|
};
|
|
5256
5256
|
}
|
|
5257
5257
|
async run(input) {
|
|
5258
|
-
const platform2 = input.platform ?? "
|
|
5258
|
+
const platform2 = input.platform ?? "auto";
|
|
5259
5259
|
return this.getLane().commerce.orders.executeIntent(
|
|
5260
5260
|
platform2,
|
|
5261
5261
|
input.instructionId,
|
|
@@ -5264,7 +5264,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5264
5264
|
}
|
|
5265
5265
|
};
|
|
5266
5266
|
var inputSchema32 = zod.z.object({
|
|
5267
|
-
platform: zod.z.
|
|
5267
|
+
platform: zod.z.string().describe("Commerce platform to connect. The server resolves available platforms."),
|
|
5268
5268
|
walletId: zod.z.string().optional().describe("Wallet ID to associate."),
|
|
5269
5269
|
userEmail: zod.z.string().optional().describe("User email for the platform."),
|
|
5270
5270
|
displayName: zod.z.string().optional().describe("Display name for the connection.")
|
|
@@ -5297,7 +5297,7 @@ var CommerceProviderStatusTool = class extends LaneTool {
|
|
|
5297
5297
|
}
|
|
5298
5298
|
};
|
|
5299
5299
|
var inputSchema34 = zod.z.object({
|
|
5300
|
-
platform: zod.z.
|
|
5300
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5301
5301
|
orderId: zod.z.string().describe("Order ID from the create order step."),
|
|
5302
5302
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5303
5303
|
cardId: zod.z.string().optional().describe("Payment card ID. If omitted, server resolves first saved card."),
|
|
@@ -5313,7 +5313,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5313
5313
|
};
|
|
5314
5314
|
}
|
|
5315
5315
|
async run(input) {
|
|
5316
|
-
const platform2 = input.platform ?? "
|
|
5316
|
+
const platform2 = input.platform ?? "auto";
|
|
5317
5317
|
return this.getLane().commerce.orders.configureCheckout(platform2, input.orderId, {
|
|
5318
5318
|
instructionId: input.instructionId,
|
|
5319
5319
|
cardId: input.cardId,
|
|
@@ -5323,7 +5323,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
};
|
|
5325
5325
|
var inputSchema35 = zod.z.object({
|
|
5326
|
-
platform: zod.z.
|
|
5326
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5327
5327
|
orderId: zod.z.string().describe("Order ID to submit."),
|
|
5328
5328
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5329
5329
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
@@ -5337,7 +5337,7 @@ var CommerceSubmitOrderTool = class extends LaneTool {
|
|
|
5337
5337
|
};
|
|
5338
5338
|
}
|
|
5339
5339
|
async run(input) {
|
|
5340
|
-
const platform2 = input.platform ?? "
|
|
5340
|
+
const platform2 = input.platform ?? "auto";
|
|
5341
5341
|
return this.getLane().commerce.orders.submit(platform2, input.orderId, {
|
|
5342
5342
|
instructionId: input.instructionId,
|
|
5343
5343
|
mandateId: input.mandateId
|
|
@@ -5480,5 +5480,3 @@ function createLaneToolkit(lane) {
|
|
|
5480
5480
|
}
|
|
5481
5481
|
|
|
5482
5482
|
exports.createLaneToolkit = createLaneToolkit;
|
|
5483
|
-
//# sourceMappingURL=index.cjs.map
|
|
5484
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -5128,7 +5128,7 @@ var ConfirmInstructionTool = class extends LaneTool {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
};
|
|
5130
5130
|
var inputSchema27 = z.object({
|
|
5131
|
-
platform: z.
|
|
5131
|
+
platform: z.string().describe("Commerce platform to query. The server resolves available platforms.")
|
|
5132
5132
|
});
|
|
5133
5133
|
var CommerceGetLocationsTool = class extends LaneTool {
|
|
5134
5134
|
get definition() {
|
|
@@ -5143,7 +5143,7 @@ var CommerceGetLocationsTool = class extends LaneTool {
|
|
|
5143
5143
|
}
|
|
5144
5144
|
};
|
|
5145
5145
|
var inputSchema28 = z.object({
|
|
5146
|
-
platform: z.
|
|
5146
|
+
platform: z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5147
5147
|
locationId: z.string().describe("Location ID to fetch the menu for.")
|
|
5148
5148
|
});
|
|
5149
5149
|
var CommerceGetMenuTool = class extends LaneTool {
|
|
@@ -5159,7 +5159,7 @@ var CommerceGetMenuTool = class extends LaneTool {
|
|
|
5159
5159
|
}
|
|
5160
5160
|
};
|
|
5161
5161
|
var inputSchema29 = z.object({
|
|
5162
|
-
platform: z.
|
|
5162
|
+
platform: z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5163
5163
|
itemId: z.string().describe("Item ID to fetch modifiers for.")
|
|
5164
5164
|
});
|
|
5165
5165
|
var CommerceGetModifiersTool = class extends LaneTool {
|
|
@@ -5186,7 +5186,7 @@ var inputSchema30 = z.object({
|
|
|
5186
5186
|
text: z.string().optional().describe('Natural language order request (e.g., "4 cold brews for pickup at Equator tomorrow 2pm"). If provided, server auto-resolves item, quantity, location, time, and modifiers.'),
|
|
5187
5187
|
// Option B: structured params (agent already resolved from menu)
|
|
5188
5188
|
description: z.string().optional().describe("Order summary (required if text not provided)."),
|
|
5189
|
-
platform: z.
|
|
5189
|
+
platform: z.string().optional().describe("Auto-detected by the server if omitted."),
|
|
5190
5190
|
merchant: z.string().optional().describe("Merchant name (auto-detected from text if provided)."),
|
|
5191
5191
|
walletId: z.string().default("default").describe("Wallet ID."),
|
|
5192
5192
|
locationId: z.string().optional().describe("Location ID (auto-resolved from text if provided)."),
|
|
@@ -5219,7 +5219,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5219
5219
|
};
|
|
5220
5220
|
}
|
|
5221
5221
|
async run(input) {
|
|
5222
|
-
const platform2 = input.platform ??
|
|
5222
|
+
const platform2 = input.platform ?? "auto";
|
|
5223
5223
|
return this.getLane().commerce.orders.createIntent(platform2, {
|
|
5224
5224
|
...input,
|
|
5225
5225
|
description: input.description ?? input.text ?? "",
|
|
@@ -5230,7 +5230,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5230
5230
|
}
|
|
5231
5231
|
};
|
|
5232
5232
|
var inputSchema31 = z.object({
|
|
5233
|
-
platform: z.
|
|
5233
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5234
5234
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5235
5235
|
mandateId: z.string().describe("Mandate ID from order intent.")
|
|
5236
5236
|
});
|
|
@@ -5243,7 +5243,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5243
5243
|
};
|
|
5244
5244
|
}
|
|
5245
5245
|
async run(input) {
|
|
5246
|
-
const platform2 = input.platform ?? "
|
|
5246
|
+
const platform2 = input.platform ?? "auto";
|
|
5247
5247
|
return this.getLane().commerce.orders.executeIntent(
|
|
5248
5248
|
platform2,
|
|
5249
5249
|
input.instructionId,
|
|
@@ -5252,7 +5252,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
};
|
|
5254
5254
|
var inputSchema32 = z.object({
|
|
5255
|
-
platform: z.
|
|
5255
|
+
platform: z.string().describe("Commerce platform to connect. The server resolves available platforms."),
|
|
5256
5256
|
walletId: z.string().optional().describe("Wallet ID to associate."),
|
|
5257
5257
|
userEmail: z.string().optional().describe("User email for the platform."),
|
|
5258
5258
|
displayName: z.string().optional().describe("Display name for the connection.")
|
|
@@ -5285,7 +5285,7 @@ var CommerceProviderStatusTool = class extends LaneTool {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
};
|
|
5287
5287
|
var inputSchema34 = z.object({
|
|
5288
|
-
platform: z.
|
|
5288
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5289
5289
|
orderId: z.string().describe("Order ID from the create order step."),
|
|
5290
5290
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5291
5291
|
cardId: z.string().optional().describe("Payment card ID. If omitted, server resolves first saved card."),
|
|
@@ -5301,7 +5301,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5301
5301
|
};
|
|
5302
5302
|
}
|
|
5303
5303
|
async run(input) {
|
|
5304
|
-
const platform2 = input.platform ?? "
|
|
5304
|
+
const platform2 = input.platform ?? "auto";
|
|
5305
5305
|
return this.getLane().commerce.orders.configureCheckout(platform2, input.orderId, {
|
|
5306
5306
|
instructionId: input.instructionId,
|
|
5307
5307
|
cardId: input.cardId,
|
|
@@ -5311,7 +5311,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5311
5311
|
}
|
|
5312
5312
|
};
|
|
5313
5313
|
var inputSchema35 = z.object({
|
|
5314
|
-
platform: z.
|
|
5314
|
+
platform: z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5315
5315
|
orderId: z.string().describe("Order ID to submit."),
|
|
5316
5316
|
instructionId: z.string().describe("Instruction ID from order intent."),
|
|
5317
5317
|
mandateId: z.string().describe("Mandate ID from order intent.")
|
|
@@ -5325,7 +5325,7 @@ var CommerceSubmitOrderTool = class extends LaneTool {
|
|
|
5325
5325
|
};
|
|
5326
5326
|
}
|
|
5327
5327
|
async run(input) {
|
|
5328
|
-
const platform2 = input.platform ?? "
|
|
5328
|
+
const platform2 = input.platform ?? "auto";
|
|
5329
5329
|
return this.getLane().commerce.orders.submit(platform2, input.orderId, {
|
|
5330
5330
|
instructionId: input.instructionId,
|
|
5331
5331
|
mandateId: input.mandateId
|
|
@@ -5468,5 +5468,3 @@ function createLaneToolkit(lane) {
|
|
|
5468
5468
|
}
|
|
5469
5469
|
|
|
5470
5470
|
export { createLaneToolkit };
|
|
5471
|
-
//# sourceMappingURL=index.js.map
|
|
5472
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5193,7 +5193,7 @@ var ConfirmInstructionTool = class extends LaneTool {
|
|
|
5193
5193
|
}
|
|
5194
5194
|
};
|
|
5195
5195
|
var inputSchema27 = zod.z.object({
|
|
5196
|
-
platform: zod.z.
|
|
5196
|
+
platform: zod.z.string().describe("Commerce platform to query. The server resolves available platforms.")
|
|
5197
5197
|
});
|
|
5198
5198
|
var CommerceGetLocationsTool = class extends LaneTool {
|
|
5199
5199
|
get definition() {
|
|
@@ -5208,7 +5208,7 @@ var CommerceGetLocationsTool = class extends LaneTool {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
};
|
|
5210
5210
|
var inputSchema28 = zod.z.object({
|
|
5211
|
-
platform: zod.z.
|
|
5211
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5212
5212
|
locationId: zod.z.string().describe("Location ID to fetch the menu for.")
|
|
5213
5213
|
});
|
|
5214
5214
|
var CommerceGetMenuTool = class extends LaneTool {
|
|
@@ -5224,7 +5224,7 @@ var CommerceGetMenuTool = class extends LaneTool {
|
|
|
5224
5224
|
}
|
|
5225
5225
|
};
|
|
5226
5226
|
var inputSchema29 = zod.z.object({
|
|
5227
|
-
platform: zod.z.
|
|
5227
|
+
platform: zod.z.string().describe("Commerce platform. The server resolves available platforms."),
|
|
5228
5228
|
itemId: zod.z.string().describe("Item ID to fetch modifiers for.")
|
|
5229
5229
|
});
|
|
5230
5230
|
var CommerceGetModifiersTool = class extends LaneTool {
|
|
@@ -5251,7 +5251,7 @@ var inputSchema30 = zod.z.object({
|
|
|
5251
5251
|
text: zod.z.string().optional().describe('Natural language order request (e.g., "4 cold brews for pickup at Equator tomorrow 2pm"). If provided, server auto-resolves item, quantity, location, time, and modifiers.'),
|
|
5252
5252
|
// Option B: structured params (agent already resolved from menu)
|
|
5253
5253
|
description: zod.z.string().optional().describe("Order summary (required if text not provided)."),
|
|
5254
|
-
platform: zod.z.
|
|
5254
|
+
platform: zod.z.string().optional().describe("Auto-detected by the server if omitted."),
|
|
5255
5255
|
merchant: zod.z.string().optional().describe("Merchant name (auto-detected from text if provided)."),
|
|
5256
5256
|
walletId: zod.z.string().default("default").describe("Wallet ID."),
|
|
5257
5257
|
locationId: zod.z.string().optional().describe("Location ID (auto-resolved from text if provided)."),
|
|
@@ -5284,7 +5284,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5284
5284
|
};
|
|
5285
5285
|
}
|
|
5286
5286
|
async run(input) {
|
|
5287
|
-
const platform2 = input.platform ??
|
|
5287
|
+
const platform2 = input.platform ?? "auto";
|
|
5288
5288
|
return this.getLane().commerce.orders.createIntent(platform2, {
|
|
5289
5289
|
...input,
|
|
5290
5290
|
description: input.description ?? input.text ?? "",
|
|
@@ -5295,7 +5295,7 @@ var CommerceOrderIntentTool = class extends LaneTool {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
};
|
|
5297
5297
|
var inputSchema31 = zod.z.object({
|
|
5298
|
-
platform: zod.z.
|
|
5298
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5299
5299
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5300
5300
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
5301
5301
|
});
|
|
@@ -5308,7 +5308,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5308
5308
|
};
|
|
5309
5309
|
}
|
|
5310
5310
|
async run(input) {
|
|
5311
|
-
const platform2 = input.platform ?? "
|
|
5311
|
+
const platform2 = input.platform ?? "auto";
|
|
5312
5312
|
return this.getLane().commerce.orders.executeIntent(
|
|
5313
5313
|
platform2,
|
|
5314
5314
|
input.instructionId,
|
|
@@ -5317,7 +5317,7 @@ var CommerceExecuteOrderTool = class extends LaneTool {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
};
|
|
5319
5319
|
var inputSchema32 = zod.z.object({
|
|
5320
|
-
platform: zod.z.
|
|
5320
|
+
platform: zod.z.string().describe("Commerce platform to connect. The server resolves available platforms."),
|
|
5321
5321
|
walletId: zod.z.string().optional().describe("Wallet ID to associate."),
|
|
5322
5322
|
userEmail: zod.z.string().optional().describe("User email for the platform."),
|
|
5323
5323
|
displayName: zod.z.string().optional().describe("Display name for the connection.")
|
|
@@ -5350,7 +5350,7 @@ var CommerceProviderStatusTool = class extends LaneTool {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
};
|
|
5352
5352
|
var inputSchema34 = zod.z.object({
|
|
5353
|
-
platform: zod.z.
|
|
5353
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5354
5354
|
orderId: zod.z.string().describe("Order ID from the create order step."),
|
|
5355
5355
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5356
5356
|
cardId: zod.z.string().optional().describe("Payment card ID. If omitted, server resolves first saved card."),
|
|
@@ -5366,7 +5366,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5366
5366
|
};
|
|
5367
5367
|
}
|
|
5368
5368
|
async run(input) {
|
|
5369
|
-
const platform2 = input.platform ?? "
|
|
5369
|
+
const platform2 = input.platform ?? "auto";
|
|
5370
5370
|
return this.getLane().commerce.orders.configureCheckout(platform2, input.orderId, {
|
|
5371
5371
|
instructionId: input.instructionId,
|
|
5372
5372
|
cardId: input.cardId,
|
|
@@ -5376,7 +5376,7 @@ var CommerceCheckoutConfigTool = class extends LaneTool {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
};
|
|
5378
5378
|
var inputSchema35 = zod.z.object({
|
|
5379
|
-
platform: zod.z.
|
|
5379
|
+
platform: zod.z.string().optional().describe("Auto-detected from instruction if omitted."),
|
|
5380
5380
|
orderId: zod.z.string().describe("Order ID to submit."),
|
|
5381
5381
|
instructionId: zod.z.string().describe("Instruction ID from order intent."),
|
|
5382
5382
|
mandateId: zod.z.string().describe("Mandate ID from order intent.")
|
|
@@ -5390,7 +5390,7 @@ var CommerceSubmitOrderTool = class extends LaneTool {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
}
|
|
5392
5392
|
async run(input) {
|
|
5393
|
-
const platform2 = input.platform ?? "
|
|
5393
|
+
const platform2 = input.platform ?? "auto";
|
|
5394
5394
|
return this.getLane().commerce.orders.submit(platform2, input.orderId, {
|
|
5395
5395
|
instructionId: input.instructionId,
|
|
5396
5396
|
mandateId: input.mandateId
|
|
@@ -5544,5 +5544,3 @@ async function handleToolCall(lane, toolCall) {
|
|
|
5544
5544
|
|
|
5545
5545
|
exports.createLaneTools = createLaneTools;
|
|
5546
5546
|
exports.handleToolCall = handleToolCall;
|
|
5547
|
-
//# sourceMappingURL=index.cjs.map
|
|
5548
|
-
//# sourceMappingURL=index.cjs.map
|