@integrity-labs/agt-cli 0.28.184 → 0.28.185

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.
@@ -21154,6 +21154,10 @@ var SupportClient = class _SupportClient {
21154
21154
  fileFeatureRequest(args) {
21155
21155
  return this.post("/host/support/file_feature_request", args, true);
21156
21156
  }
21157
+ /** Report a KB gap (redacted + deduped + classified server-side). */
21158
+ requestKbArticle(args) {
21159
+ return this.post("/host/support/request_kb_article", args, true);
21160
+ }
21157
21161
  /** Propose creating an agent in the caller's OWN org (HITL-gated server-side). */
21158
21162
  createAgent(args) {
21159
21163
  return this.post("/host/support/create_agent", args, true);
@@ -21176,6 +21180,23 @@ var searchKbSchema = external_exports.object({
21176
21180
  var readKbSchema = external_exports.object({
21177
21181
  slug: external_exports.string().trim().min(1).describe("The kebab-case article slug returned by search_knowledge_base.")
21178
21182
  });
21183
+ var requestKbArticleSchema = external_exports.object({
21184
+ question: external_exports.string().trim().min(1).describe("The user question the knowledge base could not answer. Plain text; do NOT paste the conversation."),
21185
+ reason_codes: external_exports.array(
21186
+ external_exports.enum([
21187
+ "no_results",
21188
+ "low_relevance",
21189
+ "partial_answer",
21190
+ "outdated",
21191
+ "ambiguous_question",
21192
+ "out_of_scope"
21193
+ ])
21194
+ ).optional().describe("Why the KB fell short (one or more): no_results, low_relevance, partial_answer, outdated, ambiguous_question, out_of_scope."),
21195
+ tsquery: external_exports.string().trim().optional().describe("The search terms you actually queried (so curation can see what was tried)."),
21196
+ rejected_slugs: external_exports.array(
21197
+ external_exports.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "must be a kebab-case article slug")
21198
+ ).optional().describe("Slugs (kebab-case) of articles you looked at but that did not answer the question.")
21199
+ });
21179
21200
  var createAgentSchema = external_exports.object({
21180
21201
  code_name: external_exports.string().regex(
21181
21202
  /^[a-z0-9]+(?:-[a-z0-9]+)*$/,
@@ -21382,6 +21403,18 @@ server.tool(
21382
21403
  }
21383
21404
  }
21384
21405
  );
21406
+ server.tool(
21407
+ "request_kb_article",
21408
+ 'Report a knowledge-base GAP after search_knowledge_base did not answer the user. Call this at most once per distinct question, AFTER searching \u2014 the server may tell you the question is already covered (status:"answerable" with a slug to read instead), needs clarifying (status:"needs_clarification" with a question to ask the user), was filed (status:"filed"), matched a known gap (status:"duplicate"), or that your org hit its daily gap limit (status:"rate_limited" with retry_after_seconds \u2014 stop filing and tell the user to try later). Provide structured context, NOT a transcript: { question, reason_codes?, tsquery? (the terms you searched), rejected_slugs? (articles that did not fit) }. Carries no scope \u2014 your org is server-derived and never stored in clear. Returns { ok, status, message }.',
21409
+ requestKbArticleSchema.shape,
21410
+ async (args) => {
21411
+ try {
21412
+ return ok(await client.requestKbArticle(args));
21413
+ } catch (err) {
21414
+ return fail(err);
21415
+ }
21416
+ }
21417
+ );
21385
21418
  server.tool(
21386
21419
  "support_create_agent",
21387
21420
  'PROPOSE creating a new agent in YOUR organization. This does NOT create the agent directly - it files a request that a human owner approves via a server-rendered diff in Slack; the agent is created (as a draft) only after approval. Use it to set up a new agent a user asked for. Returns a structured envelope: `status:"proposed"` (with request_id + expires_at - tell the user it was sent for approval and when it expires), `status:"feature_disabled"` (self-remediation writes are off for this org - tell the user to ask their operator to enable them), `status:"no_approver"` (no approval channel is configured - relay the setup hint), or `status:"rate_limited"` (too many pending - relay retry_after_seconds). Org/team are set server-side from your host - you cannot create an agent in another org. Pass { code_name (kebab-case), display_name, description?, role?, host_id?, reason? }.',
@@ -34,8 +34,8 @@ import {
34
34
  writeDirectChatSessionState,
35
35
  writeEgressAllowlist,
36
36
  writePersistentClaudeWrapper
37
- } from "./chunk-RLDZLSML.js";
38
- import "./chunk-K2N44EUC.js";
37
+ } from "./chunk-ORO4YLTN.js";
38
+ import "./chunk-ERHHYBVS.js";
39
39
  import "./chunk-XWVM4KPK.js";
40
40
  export {
41
41
  EGRESS_BASELINE_DOMAINS,
@@ -74,4 +74,4 @@ export {
74
74
  writeEgressAllowlist,
75
75
  writePersistentClaudeWrapper
76
76
  };
77
- //# sourceMappingURL=persistent-session-KBZFQ7SX.js.map
77
+ //# sourceMappingURL=persistent-session-SNLNY2VB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-RLDZLSML.js";
4
- import "./chunk-K2N44EUC.js";
3
+ } from "./chunk-ORO4YLTN.js";
4
+ import "./chunk-ERHHYBVS.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -304,4 +304,4 @@ export {
304
304
  readAndResetChannelDeflections,
305
305
  readAndResetChannelLaneClassifications
306
306
  };
307
- //# sourceMappingURL=responsiveness-probe-O4F7H7IB.js.map
307
+ //# sourceMappingURL=responsiveness-probe-6HC3PENG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.184",
3
+ "version": "0.28.185",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {