@eide/foir-cli 0.7.0 → 0.8.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.
- package/dist/cli.js +6 -6
- package/dist/lib/config-helpers.d.ts +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2955,7 +2955,7 @@ function createOperationsMethods(client) {
|
|
|
2955
2955
|
allowedRoles: params.allowedRoles ?? [],
|
|
2956
2956
|
precondition: params.precondition,
|
|
2957
2957
|
configId: params.configId,
|
|
2958
|
-
|
|
2958
|
+
supportsAsync: params.supportsAsync,
|
|
2959
2959
|
callbackTtlSeconds: params.callbackTtlSeconds
|
|
2960
2960
|
})
|
|
2961
2961
|
);
|
|
@@ -2976,7 +2976,7 @@ function createOperationsMethods(client) {
|
|
|
2976
2976
|
callbackTimeoutRetryPolicy: params.callbackTimeoutRetryPolicy,
|
|
2977
2977
|
precondition: params.precondition,
|
|
2978
2978
|
isActive: params.isActive,
|
|
2979
|
-
|
|
2979
|
+
supportsAsync: params.supportsAsync,
|
|
2980
2980
|
callbackTtlSeconds: params.callbackTtlSeconds
|
|
2981
2981
|
})
|
|
2982
2982
|
);
|
|
@@ -4973,8 +4973,8 @@ async function reconcileOperations(client, configId, operations, operationBaseUr
|
|
|
4973
4973
|
}
|
|
4974
4974
|
const ex = existingByKey.get(op.key);
|
|
4975
4975
|
const endpoint = resolveEndpoint(op.endpoint, operationBaseUrl);
|
|
4976
|
-
const
|
|
4977
|
-
if (
|
|
4976
|
+
const supportsAsync = op.mode === "async";
|
|
4977
|
+
if (supportsAsync && op.timeoutMs && op.timeoutMs > 1e4) {
|
|
4978
4978
|
console.warn(
|
|
4979
4979
|
`\u26A0 operation "${op.key}": mode=async but timeoutMs=${op.timeoutMs} \u2014 ack should return in <10s; long timeouts mask slow extensions`
|
|
4980
4980
|
);
|
|
@@ -4994,7 +4994,7 @@ async function reconcileOperations(client, configId, operations, operationBaseUr
|
|
|
4994
4994
|
callbackTimeoutRetryPolicy: op.callbackTimeoutRetryPolicy ?? empty,
|
|
4995
4995
|
precondition: op.precondition ?? empty,
|
|
4996
4996
|
isActive: op.isActive,
|
|
4997
|
-
|
|
4997
|
+
supportsAsync,
|
|
4998
4998
|
callbackTtlSeconds: op.callbackTtlSeconds
|
|
4999
4999
|
});
|
|
5000
5000
|
summary.operations.updated++;
|
|
@@ -5015,7 +5015,7 @@ async function reconcileOperations(client, configId, operations, operationBaseUr
|
|
|
5015
5015
|
allowedRoles: op.allowedRoles,
|
|
5016
5016
|
precondition: op.precondition,
|
|
5017
5017
|
configId,
|
|
5018
|
-
|
|
5018
|
+
supportsAsync,
|
|
5019
5019
|
callbackTtlSeconds: op.callbackTtlSeconds
|
|
5020
5020
|
});
|
|
5021
5021
|
summary.operations.created++;
|
|
@@ -112,7 +112,7 @@ interface ApplyConfigOperationInput {
|
|
|
112
112
|
* in 2026-04 — every ASYNC dispatch now carries a scoped callback token
|
|
113
113
|
* and the platform tracks the execution to terminal state.
|
|
114
114
|
*
|
|
115
|
-
* Default: `sync`. The CLI maps this to `
|
|
115
|
+
* Default: `sync`. The CLI maps this to `supportsAsync` on the
|
|
116
116
|
* platform Operation row — the operation can still be dispatched in SYNC
|
|
117
117
|
* mode at runtime when callers want a blocking call.
|
|
118
118
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Universal platform CLI for Foir platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@bufbuild/protovalidate": "^1.1.1",
|
|
51
51
|
"@connectrpc/connect": "^2.0.0",
|
|
52
52
|
"@connectrpc/connect-node": "^2.0.0",
|
|
53
|
-
"@eide/foir-proto-ts": "^0.
|
|
53
|
+
"@eide/foir-proto-ts": "^0.17.0",
|
|
54
54
|
"chalk": "^5.3.0",
|
|
55
55
|
"commander": "^12.1.0",
|
|
56
56
|
"dotenv": "^16.4.5",
|