@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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentis-hq/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "agentis": "dist/index.js"