@bigstrider/transcodes-cli 0.7.0 → 0.8.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/dist/index.js +29 -33
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -619,7 +619,7 @@ var CLI_VERSION = pkg.version;
619
619
  // src/dashboard.ts
620
620
  var DEFAULT_PORT = 3847;
621
621
  var HOST = "127.0.0.1";
622
- var GUIDELINE_MUX_PLAYBACK_ID = "01Q02da00mR6xobESjn2KHOz31eGX3OUS01xoc025RKQxsR4";
622
+ var GUIDELINE_MUX_PLAYBACK_ID = "h1vOCPmFDA02fGhcout01FZWD4lpKNTzLFk7vybxvrc3M";
623
623
  function fingerprint(token) {
624
624
  return createHash("sha256").update(token).digest("hex").slice(0, 12);
625
625
  }
@@ -958,6 +958,12 @@ function dashboardHtml() {
958
958
  color: var(--muted);
959
959
  margin: 0 0 16px;
960
960
  }
961
+ .section-sub a {
962
+ color: var(--accent);
963
+ font-weight: 600;
964
+ text-decoration: none;
965
+ }
966
+ .section-sub a:hover { text-decoration: underline; }
961
967
  .cli-map-row {
962
968
  display: flex;
963
969
  align-items: center;
@@ -1849,38 +1855,17 @@ function dashboardHtml() {
1849
1855
  <li class="guide-step">
1850
1856
  <span class="guide-step-num">1</span>
1851
1857
  <div class="guide-step-body">
1852
- <p class="guide-step-title">Create a project</p>
1853
- <p class="guide-step-desc">Create a new project for your app</p>
1858
+ <p class="guide-step-title">Set up project, auth cluster &amp; member</p>
1859
+ <p class="guide-step-desc">Create a project, add an authentication cluster for how members sign in, then invite or add a member so they can be issued an access token</p>
1854
1860
  </div>
1855
1861
  </li>
1856
1862
  <li class="guide-step">
1857
1863
  <span class="guide-step-num">2</span>
1858
- <div class="guide-step-body">
1859
- <p class="guide-step-title">Create an authentication cluster</p>
1860
- <p class="guide-step-desc">Add an authentication cluster to define how members sign in and authenticate</p>
1861
- </div>
1862
- </li>
1863
- <li class="guide-step">
1864
- <span class="guide-step-num">3</span>
1865
- <div class="guide-step-body">
1866
- <p class="guide-step-title">Add a member</p>
1867
- <p class="guide-step-desc">Invite or add a member so they can be issued an access token</p>
1868
- </div>
1869
- </li>
1870
- <li class="guide-step">
1871
- <span class="guide-step-num">4</span>
1872
1864
  <div class="guide-step-body">
1873
1865
  <p class="guide-step-title">Issue an access token</p>
1874
1866
  <p class="guide-step-desc">Open the member detail page and issue a Member Access Token (MAT) for the agent</p>
1875
1867
  </div>
1876
1868
  </li>
1877
- <li class="guide-step">
1878
- <span class="guide-step-num">5</span>
1879
- <div class="guide-step-body">
1880
- <p class="guide-step-title">Configure RBAC</p>
1881
- <p class="guide-step-desc">In Role Management, add resources (key, name, description), create roles, and set the permission matrix \u2014 0 deny \xB7 1 allow \xB7 2 step-up MFA</p>
1882
- </div>
1883
- </li>
1884
1869
  </ol>
1885
1870
  </section>
1886
1871
 
@@ -1888,17 +1873,17 @@ function dashboardHtml() {
1888
1873
  <p class="guide-group-label">This CLI panel</p>
1889
1874
  <ol class="guide-steps">
1890
1875
  <li class="guide-step">
1891
- <span class="guide-step-num">6</span>
1876
+ <span class="guide-step-num">3</span>
1892
1877
  <div class="guide-step-body">
1893
1878
  <p class="guide-step-title">Save the token</p>
1894
1879
  <p class="guide-step-desc">Paste the token in the Tokens tab with a label (e.g. <code>transcodes-myapp-dev</code>) \u2014 the plugin reads it from <code>{{HOME_DIR}}/.transcodes/config.json</code></p>
1895
1880
  </div>
1896
1881
  </li>
1897
1882
  <li class="guide-step">
1898
- <span class="guide-step-num">7</span>
1883
+ <span class="guide-step-num">4</span>
1899
1884
  <div class="guide-step-body">
1900
- <p class="guide-step-title">View RBAC (read-only)</p>
1901
- <p class="guide-step-desc">Open the RBAC tab to inspect resources and role permission matrices. Create, update, and delete stay in the Transcodes app \u2014 click the logo or Transcodes at the top</p>
1885
+ <p class="guide-step-title">Configure &amp; view RBAC</p>
1886
+ <p class="guide-step-desc">In the Transcodes app Role Management, add resources (key, name, description), create roles, and set the permission matrix \u2014 0 deny \xB7 1 allow \xB7 2 step-up MFA. Then open the RBAC tab here to inspect them read-only \u2014 create, update, and delete stay in the app (logo or Transcodes at the top)</p>
1902
1887
  </div>
1903
1888
  </li>
1904
1889
  </ol>
@@ -1908,7 +1893,7 @@ function dashboardHtml() {
1908
1893
  <a class="guide-group-label" href="${TRANSCODES_GUARD_REPO_URL}" target="_blank" rel="noopener noreferrer">LLM Agent or Admin Back Office<span class="guide-group-link-icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg></span></a>
1909
1894
  <ol class="guide-steps">
1910
1895
  <li class="guide-step">
1911
- <span class="guide-step-num">8</span>
1896
+ <span class="guide-step-num">5</span>
1912
1897
  <div class="guide-step-body">
1913
1898
  <p class="guide-step-title">Add the transcodes-guard plugin</p>
1914
1899
  <p class="guide-step-desc">Install the transcodes-guard plugin on Claude, Codex, Cursor (beta), and Antigravity (beta). For more plugins info, visit the repository</p>
@@ -1921,10 +1906,21 @@ function dashboardHtml() {
1921
1906
  </div>
1922
1907
  </li>
1923
1908
  <li class="guide-step">
1924
- <span class="guide-step-num">9</span>
1909
+ <span class="guide-step-num">6</span>
1925
1910
  <div class="guide-step-body">
1926
1911
  <p class="guide-step-title">Prompt-driven permissions</p>
1927
- <p class="guide-step-desc">Once installed, Transcodes AI interprets the prompts you send using the role, resource, and action settings you configured and enforces permissions accordingly</p>
1912
+ <p class="guide-step-desc">Once installed, when you give the agent a command, Transcodes AI interprets the prompt using the role, resource, and action settings you configured and determines the permission \u2014 deny, allow, or step-up MFA</p>
1913
+ </div>
1914
+ </li>
1915
+ <li class="guide-step">
1916
+ <span class="guide-step-num">7</span>
1917
+ <div class="guide-step-body">
1918
+ <p class="guide-step-title">Ask the agent for log history</p>
1919
+ <p class="guide-step-desc">After setup, ask your installed AI agent \u2014 such as Claude, ChatGPT, or Antigravity \u2014 to pull member audit / security log history. Transcodes AI maps the prompt to the right resource and enforces RBAC</p>
1920
+ <div class="guide-help-examples">
1921
+ <code class="cli-cmd">/transcodes show log history for the past 2 weeks</code>
1922
+ <code class="cli-cmd">/transcodes summarize member audit logs for the past 2 weeks</code>
1923
+ </div>
1928
1924
  </div>
1929
1925
  </li>
1930
1926
  </ol>
@@ -2002,7 +1998,7 @@ function dashboardHtml() {
2002
1998
  <button type="button" class="tab" data-rbac="roles" role="tab">Roles</button>
2003
1999
  </div>
2004
2000
  <div class="rbac-pane active" id="rbac-pane-resources">
2005
- <p class="section-sub">Configure resources, roles, and permissions directly in the Transcodes app. Click the logo or Transcodes at the top.</p>
2001
+ <p class="section-sub">Configure resources, roles, and permissions. <a href="https://app.transcodes.io/" target="_blank" rel="noopener noreferrer">Edit RBAC permissions</a></p>
2006
2002
  <div class="rbac-table-wrap">
2007
2003
  <table class="rbac-table" id="resources-table">
2008
2004
  <thead><tr><th>Resource</th><th>Description</th></tr></thead>
@@ -2011,7 +2007,7 @@ function dashboardHtml() {
2011
2007
  </div>
2012
2008
  </div>
2013
2009
  <div class="rbac-pane" id="rbac-pane-roles">
2014
- <p class="section-sub">Select a role to view its permission matrix</p>
2010
+ <p class="section-sub">Select a role to view its permission matrix \xB7 <a href="https://app.transcodes.io/" target="_blank" rel="noopener noreferrer">Configure RBAC permissions</a></p>
2015
2011
  <div class="role-picker" id="role-picker"></div>
2016
2012
  <div id="matrix-wrap" hidden>
2017
2013
  <p class="list-label" id="matrix-role-label"></p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigstrider/transcodes-cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Transcodes CLI — manage transcodes-guard member tokens and the step-up gate (set/reset/status/tokens, enable/disable, dashboard).",
5
5
  "type": "module",
6
6
  "bin": {