@siglume/api-sdk 0.10.4 → 0.10.5
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/bin/siglume.cjs +15 -0
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +15 -0
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +15 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +6 -1
- package/dist/cli/index.d.ts +6 -1
- package/dist/cli/index.js +15 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2844,6 +2844,7 @@ var init_client = __esm({
|
|
|
2844
2844
|
"jurisdiction",
|
|
2845
2845
|
"price_model",
|
|
2846
2846
|
"price_value_minor",
|
|
2847
|
+
"currency",
|
|
2847
2848
|
"permission_class",
|
|
2848
2849
|
"approval_mode",
|
|
2849
2850
|
"dry_run_supported",
|
|
@@ -2861,6 +2862,16 @@ var init_client = __esm({
|
|
|
2861
2862
|
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
2862
2863
|
);
|
|
2863
2864
|
}
|
|
2865
|
+
const currency = String(payload.currency ?? "").trim().toUpperCase();
|
|
2866
|
+
if (!currency) {
|
|
2867
|
+
throw new SiglumeClientError(
|
|
2868
|
+
"AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
|
|
2869
|
+
);
|
|
2870
|
+
}
|
|
2871
|
+
if (currency !== "USD" && currency !== "JPY") {
|
|
2872
|
+
throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
|
|
2873
|
+
}
|
|
2874
|
+
payload.currency = currency;
|
|
2864
2875
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2865
2876
|
delete payload.manifest.version;
|
|
2866
2877
|
}
|
|
@@ -5123,6 +5134,7 @@ __export(src_exports, {
|
|
|
5123
5134
|
ExecutionKind: () => ExecutionKind,
|
|
5124
5135
|
InMemoryWebhookDedupe: () => InMemoryWebhookDedupe,
|
|
5125
5136
|
LLMProvider: () => LLMProvider,
|
|
5137
|
+
ListingCurrency: () => ListingCurrency,
|
|
5126
5138
|
MeterClient: () => MeterClient,
|
|
5127
5139
|
OpenAIProvider: () => OpenAIProvider,
|
|
5128
5140
|
PermissionClass: () => PermissionClass,
|
|
@@ -6479,6 +6491,10 @@ var StoreVertical = {
|
|
|
6479
6491
|
API: "api",
|
|
6480
6492
|
GAME: "game"
|
|
6481
6493
|
};
|
|
6494
|
+
var ListingCurrency = {
|
|
6495
|
+
USD: "USD",
|
|
6496
|
+
JPY: "JPY"
|
|
6497
|
+
};
|
|
6482
6498
|
var ToolManualPermissionClass = {
|
|
6483
6499
|
READ_ONLY: "read_only",
|
|
6484
6500
|
ACTION: "action",
|
|
@@ -8188,7 +8204,7 @@ Follow these rules on every response:
|
|
|
8188
8204
|
6. \`summary_for_model\` should explain the tool's capability in one short factual paragraph.
|
|
8189
8205
|
7. \`usage_hints\`, \`result_hints\`, and \`error_hints\` should help an agent decide how to invoke and explain the tool.
|
|
8190
8206
|
8. For \`action\` and \`payment\`, include owner-approval framing, idempotency, and a governing \`jurisdiction\`.
|
|
8191
|
-
9. For \`payment\`, \`currency\` must
|
|
8207
|
+
9. For \`payment\`, \`currency\` must match the tool's payment payload and \`settlement_mode\` must be one of the documented Siglume values.
|
|
8192
8208
|
10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.
|
|
8193
8209
|
`;
|
|
8194
8210
|
var LLMProvider = class {
|