@agentis-hq/cli 0.3.1 → 0.3.2
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -890,7 +890,7 @@ async function policySet(nameOrId, args2) {
|
|
|
890
890
|
const hosted = token ? await findHostedAgent2(nameOrId, token) : null;
|
|
891
891
|
if (hosted && token) {
|
|
892
892
|
const policy = applyPolicyFlags(hosted.policy, args2);
|
|
893
|
-
const res = await apiFetch(`/agents/${hosted.id}`, {
|
|
893
|
+
const res = await apiFetch(`/agents/${hosted.id}/policy`, {
|
|
894
894
|
method: "PATCH",
|
|
895
895
|
body: JSON.stringify({ policy })
|
|
896
896
|
}, token);
|