@app-vitals/agent-lib 1.56.0 → 1.58.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.
Files changed (2) hide show
  1. package/admin-types.ts +12 -6
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -4152,7 +4152,7 @@ export interface paths {
4152
4152
  };
4153
4153
  /**
4154
4154
  * Create or replace an agent template
4155
- * @description Creates the template for the (accountId, specialty) scope, or replaces the items of the existing one (201 / 200). Account callers may only write their own account (403 otherwise); only platform admins write deployment-wide templates. 422 for an unknown specialty, a denylisted env key (per-agent credentials: Slack tokens, GH_TOKEN, Anthropic credentials, task-store URL/token), an invalid item payload, a cron item without a name key, or a duplicate (kind, key). Env values are encrypted at rest; a secret env item sent as `"***"` keeps its stored value.
4155
+ * @description Creates the template for the (accountId, specialty) scope, or replaces the items of the existing one (201 / 200). Account callers may only write their own account (403 otherwise); only platform admins write deployment-wide templates. 422 for an unknown specialty, a denylisted env key (per-agent credentials: Slack tokens, GH_TOKEN, Anthropic credentials, task-store URL/token), an invalid item payload, a cron item without a name key, a marketplace item with an invalid name, source or ref (same messages as POST /agents/:id/marketplaces), or a duplicate (kind, key). Env values are encrypted at rest; a secret env item sent as `"***"` keeps its stored value.
4156
4156
  */
4157
4157
  put: {
4158
4158
  parameters: {
@@ -4851,6 +4851,12 @@ export interface components {
4851
4851
  adopted: number;
4852
4852
  deleted: number;
4853
4853
  };
4854
+ marketplace?: {
4855
+ created: number;
4856
+ updated: number;
4857
+ adopted: number;
4858
+ deleted: number;
4859
+ };
4854
4860
  };
4855
4861
  systemCrons: {
4856
4862
  created: number;
@@ -4859,10 +4865,10 @@ export interface components {
4859
4865
  };
4860
4866
  conflicts: {
4861
4867
  /** @enum {string} */
4862
- kind: "env" | "tool" | "plugin" | "cron";
4868
+ kind: "env" | "tool" | "plugin" | "cron" | "marketplace";
4863
4869
  key: string;
4864
4870
  /** @enum {string} */
4865
- reason: "cron_name_conflict" | "invalid_cron_schedule" | "denylisted_env_key";
4871
+ reason: "cron_name_conflict" | "invalid_cron_schedule" | "denylisted_env_key" | "marketplace_conflict";
4866
4872
  }[];
4867
4873
  toolsEmptyGuarded: boolean;
4868
4874
  };
@@ -4871,7 +4877,7 @@ export interface components {
4871
4877
  };
4872
4878
  ResetTemplateBody: {
4873
4879
  /** @enum {string} */
4874
- kind?: "env" | "tool" | "plugin" | "cron";
4880
+ kind?: "env" | "tool" | "plugin" | "cron" | "marketplace";
4875
4881
  key?: string;
4876
4882
  };
4877
4883
  ReconcileCronResult: {
@@ -6102,7 +6108,7 @@ export interface components {
6102
6108
  updatedAt: string;
6103
6109
  };
6104
6110
  /** @enum {string} */
6105
- TemplateItemKind: "env" | "tool" | "plugin" | "cron";
6111
+ TemplateItemKind: "env" | "tool" | "plugin" | "cron" | "marketplace";
6106
6112
  PutTemplateBody: {
6107
6113
  /** @description Owning account; null or omitted = deployment-wide (platform admins only). Account callers may omit it or send their own account. */
6108
6114
  accountId?: string | null;
@@ -6118,7 +6124,7 @@ export interface components {
6118
6124
  */
6119
6125
  key: string;
6120
6126
  /**
6121
- * @description Kind-specific fields. env: {value, secret?}; tool: {enabled?}; plugin: {version?, enabled?}; cron: {schedule, prompt, channel?, user?, silent?, enabled?, preCheck?}.
6127
+ * @description Kind-specific fields. env: {value, secret?}; tool: {enabled?}; plugin: {version?, enabled?}; cron: {schedule, prompt, channel?, user?, silent?, enabled?, preCheck?}; marketplace: {source, ref?} (key = marketplace name).
6122
6128
  * @example {
6123
6129
  * "value": "lin_abc",
6124
6130
  * "secret": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.56.0",
3
+ "version": "1.58.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",