@integrity-labs/agt-cli 0.28.141 → 0.28.143

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-T436PVUP.js";
40
+ } from "../chunk-FY33N3N7.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -64,7 +64,7 @@ import {
64
64
  renderTemplate,
65
65
  resolveChannels,
66
66
  serializeManifestForSlackCli
67
- } from "../chunk-HKKV7NJD.js";
67
+ } from "../chunk-AEU5FDZW.js";
68
68
 
69
69
  // src/bin/agt.ts
70
70
  import { join as join22 } from "path";
@@ -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.141" : "dev";
4780
+ var cliVersion = true ? "0.28.143" : "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.141" : "dev";
5794
+ var cliVersion2 = true ? "0.28.143" : "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) => {
@@ -1247,6 +1247,12 @@ var FLAG_REGISTRY = [
1247
1247
  defaultValue: false,
1248
1248
  envVar: "AGT_CHANNEL_BUSY_ACK_ENABLED"
1249
1249
  },
1250
+ {
1251
+ key: "live-page-comments",
1252
+ description: "Text-selection commenting on public Augmented Live pages for authenticated team members (ENG-6788). When on, a member viewing live.augmented.team/{slug} can select text and send a comment to the agent via the relay bridge; evaluated per-org in GET /artifacts/:slug/comment-access. Additive feature, not an enforcement control. Boolean gate; ships dark.",
1253
+ flagType: "boolean",
1254
+ defaultValue: false
1255
+ },
1250
1256
  {
1251
1257
  key: "admin-live-pane",
1252
1258
  description: "Live agent pane streaming on the platform-admin surfaces (ENG-6588): the agent Diagnostics tab and the /admin embed poll GET /admin/agents/:id/pane (tmux capture-pane over SSM) ~every 3s for a bounded window. Boolean gate; ships dark; when OFF the route returns feature_disabled and the UI falls back to the 30s static diagnostics snapshot. It is the no-deploy kill switch bounding the shared-SSM blast radius (SSM SendCommand throttles account-wide, shared with incident-response runbooks).",
@@ -3580,6 +3586,37 @@ var ajv2 = new Ajv20202({ allErrors: true, strict: false });
3580
3586
  addFormats2(ajv2);
3581
3587
  var compiledMetaSchema = ajv2.compile(context_meta_schema_default);
3582
3588
 
3589
+ // ../../packages/core/dist/integrations/augmented-live/markup.js
3590
+ var MARKUP_MARKER = "__augmentedLiveMarkup";
3591
+ var MARKUP_BRIDGE_SCRIPT = `<script>(function(){
3592
+ function post(m){ try { parent.postMessage(Object.assign({${MARKUP_MARKER}:true}, m), '*'); } catch(e){} }
3593
+ // Nearest ancestor carrying a stable anchor, as a CSS selector. Prefer
3594
+ // data-al-id (the durable convention) over an incidental id. '' if none.
3595
+ // Values are run through CSS.escape so a value with quotes/colons/brackets
3596
+ // can't produce a broken or injected selector.
3597
+ function esc(v){ try { return (self.CSS && self.CSS.escape) ? self.CSS.escape(v) : v; } catch(e){ return v; } }
3598
+ function anchorFor(range){
3599
+ try {
3600
+ var node = range.commonAncestorContainer;
3601
+ var el = (node && node.nodeType === 1) ? node : (node ? node.parentElement : null);
3602
+ var hit = (el && el.closest) ? el.closest('[data-al-id],[id]') : null;
3603
+ if(!hit) return '';
3604
+ var dal = hit.getAttribute('data-al-id');
3605
+ if(dal) return '[data-al-id="' + esc(dal) + '"]';
3606
+ return hit.id ? ('#' + esc(hit.id)) : '';
3607
+ } catch(e){ return ''; }
3608
+ }
3609
+ document.addEventListener('mouseup', function(){
3610
+ var sel = document.getSelection();
3611
+ var text = sel ? String(sel).trim() : '';
3612
+ if(!text || sel.rangeCount === 0){ post({type:'clear'}); return; }
3613
+ var range = sel.getRangeAt(0);
3614
+ var r = range.getBoundingClientRect();
3615
+ post({type:'selection', text:text, target:anchorFor(range), rect:{top:r.top,left:r.left,bottom:r.bottom,right:r.right,width:r.width,height:r.height}});
3616
+ });
3617
+ document.addEventListener('scroll', function(){ post({type:'clear'}); }, true);
3618
+ })();</script>`;
3619
+
3583
3620
  // ../../packages/core/dist/integrations/augmented-live/asset.js
3584
3621
  var MB = 1024 * 1024;
3585
3622
  var ASSET_TYPES = {
@@ -5833,4 +5870,4 @@ export {
5833
5870
  parseEnvIntegrations,
5834
5871
  probeMcpEnvSubstitution
5835
5872
  };
5836
- //# sourceMappingURL=chunk-HKKV7NJD.js.map
5873
+ //# sourceMappingURL=chunk-AEU5FDZW.js.map