@integrity-labs/agt-cli 0.28.85 → 0.28.86

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/bin/agt.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-4YHL5PJ5.js";
40
+ } from "../chunk-3EZHAJGB.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.85" : "dev";
4780
+ var cliVersion = true ? "0.28.86" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.85" : "dev";
5794
+ var cliVersion2 = true ? "0.28.86" : "dev";
5795
5795
  var program = new Command();
5796
5796
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7531,7 +7531,7 @@ function requireHost() {
7531
7531
  }
7532
7532
 
7533
7533
  // src/lib/api-client.ts
7534
- var agtCliVersion = true ? "0.28.85" : "dev";
7534
+ var agtCliVersion = true ? "0.28.86" : "dev";
7535
7535
  var lastConfigHash = null;
7536
7536
  function setConfigHash(hash) {
7537
7537
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8828,4 +8828,4 @@ export {
8828
8828
  managerInstallSystemUnitCommand,
8829
8829
  managerUninstallSystemUnitCommand
8830
8830
  };
8831
- //# sourceMappingURL=chunk-4YHL5PJ5.js.map
8831
+ //# sourceMappingURL=chunk-3EZHAJGB.js.map
@@ -28,7 +28,7 @@ import {
28
28
  requireHost,
29
29
  safeWriteJsonAtomic,
30
30
  setConfigHash
31
- } from "../chunk-4YHL5PJ5.js";
31
+ } from "../chunk-3EZHAJGB.js";
32
32
  import {
33
33
  getProjectDir as getProjectDir2,
34
34
  getReadyTasks,
@@ -6886,7 +6886,7 @@ var cachedMaintenanceWindow = null;
6886
6886
  var lastVersionCheckAt = 0;
6887
6887
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6888
6888
  var lastResponsivenessProbeAt = 0;
6889
- var agtCliVersion = true ? "0.28.85" : "dev";
6889
+ var agtCliVersion = true ? "0.28.86" : "dev";
6890
6890
  function resolveBrewPath(execFileSync4) {
6891
6891
  try {
6892
6892
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -21078,6 +21078,30 @@ function writeAgentRestartFlag(codeName, reason, nowMs) {
21078
21078
  return path;
21079
21079
  }
21080
21080
 
21081
+ // src/feature-request.ts
21082
+ var FEATURE_REQUEST_TYPES = [
21083
+ "integration",
21084
+ "tool",
21085
+ "channel",
21086
+ "capability",
21087
+ "bug",
21088
+ "other"
21089
+ ];
21090
+ function describeFeatureRequestResult(resp) {
21091
+ if (resp.status === "created") {
21092
+ const ref = resp.identifier ? ` (${resp.identifier})` : "";
21093
+ const link = resp.url ? ` ${resp.url}` : "";
21094
+ return {
21095
+ text: `Feature request submitted to Augmented Team support${ref}.${link}`,
21096
+ isError: false
21097
+ };
21098
+ }
21099
+ return {
21100
+ text: `Could not submit the feature request${resp.message ? `: ${resp.message}` : ""}. Tell your operator what you need and don't keep retrying.`,
21101
+ isError: true
21102
+ };
21103
+ }
21104
+
21081
21105
  // src/approval-tools.ts
21082
21106
  function statusToOutcome(status) {
21083
21107
  switch (status) {
@@ -21762,6 +21786,52 @@ server.tool(
21762
21786
  };
21763
21787
  }
21764
21788
  );
21789
+ server.tool(
21790
+ "request_feature",
21791
+ 'Send a feature request to Augmented Team support \u2014 most often to ask for a NEW third-party integration that is not in your toolkit yet (set feature_type="integration" and put the service name in provider). Also accepts general product feedback (other feature_type values). Use this when a user needs a capability you do not have and that you cannot configure yourself. Do not use it for things you can already do or set up.',
21792
+ {
21793
+ feature_type: external_exports.enum(FEATURE_REQUEST_TYPES).describe(
21794
+ 'What kind of request this is. Use "integration" to ask for a new third-party integration/toolkit; otherwise: tool, channel, capability, bug, or other.'
21795
+ ),
21796
+ title: external_exports.string().min(1).max(200).describe('Short, specific summary of the request (e.g. "Add Notion integration").'),
21797
+ description: external_exports.string().min(1).max(4e3).describe(
21798
+ "What you need and why \u2014 the use case, what the user was trying to do, and any specifics. The more concrete, the faster support can act."
21799
+ ),
21800
+ provider: external_exports.string().max(120).optional().describe(
21801
+ 'For feature_type="integration": the name of the service/provider requested (e.g. "Notion", "QuickBooks"). Omit for other types.'
21802
+ )
21803
+ },
21804
+ async (params) => {
21805
+ if (!AGT_AGENT_CODE_NAME) {
21806
+ return {
21807
+ content: [{ type: "text", text: "Error: AGT_AGENT_CODE_NAME not configured." }],
21808
+ isError: true
21809
+ };
21810
+ }
21811
+ let resp;
21812
+ try {
21813
+ resp = await apiPost("/host/request-feature", {
21814
+ agent_code_name: AGT_AGENT_CODE_NAME,
21815
+ feature_type: params.feature_type,
21816
+ title: params.title,
21817
+ description: params.description,
21818
+ ...params.provider ? { provider: params.provider } : {}
21819
+ });
21820
+ } catch (err) {
21821
+ return {
21822
+ content: [
21823
+ {
21824
+ type: "text",
21825
+ text: `Could not reach the feature-request service (${err instanceof Error ? err.message : String(err)}). Tell your operator what you need.`
21826
+ }
21827
+ ],
21828
+ isError: true
21829
+ };
21830
+ }
21831
+ const { text, isError } = describeFeatureRequestResult(resp);
21832
+ return { content: [{ type: "text", text }], ...isError ? { isError: true } : {} };
21833
+ }
21834
+ );
21765
21835
  server.tool(
21766
21836
  "drift_report",
21767
21837
  "Report configuration drift detected in local agent files (CHARTER.md, TOOLS.md, etc.). Compares local file hashes against API-side versions and reports any differences.",
@@ -22651,7 +22721,11 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
22651
22721
  // AGT_AGENT_SELF_RESTART_ENABLED), but the lockstep guard parses the
22652
22722
  // server.tool('request_restart', …) call statically, so it lives here too.
22653
22723
  // No API tool shares this name, so the forwarding-skip effect is a no-op.
22654
- "request_restart"
22724
+ "request_restart",
22725
+ // ENG-6577: feature-request intake (always registered). No API tool shares
22726
+ // this name, so the forwarding-skip is a no-op; listed here to keep the
22727
+ // lockstep guard green.
22728
+ "request_feature"
22655
22729
  ]);
22656
22730
  async function registerForwardedApiTools() {
22657
22731
  const apiTools = await discoverApiTools();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.85",
3
+ "version": "0.28.86",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {