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
|
@@ -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
|
|
@@ -5531,5 +5531,3 @@ async function handleToolCall(lane, toolCall) {
|
|
|
5531
5531
|
}
|
|
5532
5532
|
|
|
5533
5533
|
export { createLaneTools, handleToolCall };
|
|
5534
|
-
//# sourceMappingURL=index.js.map
|
|
5535
|
-
//# 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
|
|
@@ -5483,5 +5483,3 @@ function createLaneTools(lane) {
|
|
|
5483
5483
|
}
|
|
5484
5484
|
|
|
5485
5485
|
exports.createLaneTools = createLaneTools;
|
|
5486
|
-
//# sourceMappingURL=index.cjs.map
|
|
5487
|
-
//# 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
|
|
@@ -5471,5 +5471,3 @@ function createLaneTools(lane) {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
|
|
5473
5473
|
export { createLaneTools };
|
|
5474
|
-
//# sourceMappingURL=index.js.map
|
|
5475
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cli/index.js
CHANGED
|
@@ -10283,7 +10283,7 @@ var init_log_symbols = __esm({
|
|
|
10283
10283
|
}
|
|
10284
10284
|
});
|
|
10285
10285
|
|
|
10286
|
-
// node_modules/
|
|
10286
|
+
// node_modules/ansi-regex/index.js
|
|
10287
10287
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
10288
10288
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
10289
10289
|
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
@@ -10292,12 +10292,12 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
10292
10292
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
10293
10293
|
}
|
|
10294
10294
|
var init_ansi_regex = __esm({
|
|
10295
|
-
"node_modules/
|
|
10295
|
+
"node_modules/ansi-regex/index.js"() {
|
|
10296
10296
|
"use strict";
|
|
10297
10297
|
}
|
|
10298
10298
|
});
|
|
10299
10299
|
|
|
10300
|
-
// node_modules/
|
|
10300
|
+
// node_modules/strip-ansi/index.js
|
|
10301
10301
|
function stripAnsi2(string) {
|
|
10302
10302
|
if (typeof string !== "string") {
|
|
10303
10303
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
@@ -10309,7 +10309,7 @@ function stripAnsi2(string) {
|
|
|
10309
10309
|
}
|
|
10310
10310
|
var regex;
|
|
10311
10311
|
var init_strip_ansi = __esm({
|
|
10312
|
-
"node_modules/
|
|
10312
|
+
"node_modules/strip-ansi/index.js"() {
|
|
10313
10313
|
"use strict";
|
|
10314
10314
|
init_ansi_regex();
|
|
10315
10315
|
regex = ansiRegex();
|
|
@@ -30774,7 +30774,7 @@ if (isDemoOnly) {
|
|
|
30774
30774
|
process.argv = ["node", "lane", "demo"];
|
|
30775
30775
|
}
|
|
30776
30776
|
if ((isBareInvocation || isHelpRequest) && !terse && !agent) {
|
|
30777
|
-
await showBanner({ version: "0.3.
|
|
30777
|
+
await showBanner({ version: "0.3.12", animate: isBareInvocation });
|
|
30778
30778
|
}
|
|
30779
30779
|
if (isBareInvocation && !terse && !agent) {
|
|
30780
30780
|
const hasConfig = existsSync4(join10(homedir10(), ".lane", "config.json"));
|
|
@@ -30791,7 +30791,7 @@ if ((process.env["LANE_DEMO"] === "true" || rawArgs.includes("--demo")) && !ters
|
|
|
30791
30791
|
console.log();
|
|
30792
30792
|
}
|
|
30793
30793
|
var program2 = new Command();
|
|
30794
|
-
program2.name("lane").description("Add wallets and payments to your AI agents").version("0.3.
|
|
30794
|
+
program2.name("lane").description("Add wallets and payments to your AI agents").version("0.3.12").configureHelp(createLaneHelp()).option("-w, --wallet <id>", "Wallet override (id or label)").option("-f, --format <fmt>", "Output format: table, json, plain").option("--json", "Shorthand for --format json").option("-q, --quiet", "Suppress non-essential output").option("-t, --terse", "Legacy agent mode: key=value stdout, no colors, no banner").option("--agent", "Agent mode: structured JSON envelope output (recommended)").option("--no-input", "Never prompt; fail if input needed").option("-v, --verbose", "Show request/response details").option("--human", "Force human-readable output even when piped").option("--wide", "Show all columns in table output").option("--test", "Force test mode").option("--demo", "Use VIC demo server (no auth required)");
|
|
30795
30795
|
program2.hook("preAction", (thisCommand) => {
|
|
30796
30796
|
const opts = thisCommand.optsWithGlobals();
|
|
30797
30797
|
if (opts.demo) {
|
|
@@ -30976,4 +30976,3 @@ if (isBareInvocation && !terse && !agent) {
|
|
|
30976
30976
|
process.exit(0);
|
|
30977
30977
|
}
|
|
30978
30978
|
program2.parse();
|
|
30979
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cli/postinstall.js
CHANGED