@jacebenson/jsn 5.5.3-dev.180.1 → 5.5.3-dev.181.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacebenson/jsn",
3
- "version": "5.5.3-dev.180.1",
3
+ "version": "5.5.3-dev.181.1",
4
4
  "description": "A command-line interface for ServiceNow that follows the Unix philosophy: simple, composable, and scriptable.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,8 +38,8 @@ export function renderAuthStatus(result, summary, { details = false } = {}) {
38
38
  methods[diagnostics.auth_method] || 'Not configured',
39
39
  states[diagnostics.state] || (profile.authenticated ? 'Available' : 'Missing'),
40
40
  connection,
41
- profile.read_only ? 'Read-only' : 'Read/write',
42
- profile.skip_confirmations ? 'No prompt' : 'Confirm',
41
+ profile.read_only === true ? 'Read-only' : 'Read/write',
42
+ profile.skip_confirmations === true ? 'No prompt' : 'Confirm',
43
43
  profile.include_counts === false ? 'Off' : 'On',
44
44
  ];
45
45
  if (details) {
@@ -60,6 +60,13 @@ export function renderAuthStatus(result, summary, { details = false } = {}) {
60
60
  const formatRow = row => row.map((cell, column) => cell.padEnd(widths[column])).join(' ').trimEnd();
61
61
  const lines = [summary || `${profiles.length} profiles`, '', formatRow(headings), ...rows.map(formatRow)];
62
62
  if (profiles.some(profile => profile.active)) lines.push('', '* selected profile');
63
+ lines.push('', 'Profile protections (ACCESS / DELETES):');
64
+ if (profiles.some(profile => profile.read_only === true)) lines.push(' Read-only: blocks mutation commands, including writes, deletes and raw REST even with GET.');
65
+ if (profiles.some(profile => profile.read_only !== true)) lines.push(' Read/write: permits profile operations, subject to each command\'s guards.');
66
+ if (profiles.some(profile => profile.skip_confirmations !== true)) lines.push(' Confirm: guarded deletes require confirmation; --force bypasses this prompt, not read-only.');
67
+ if (profiles.some(profile => profile.skip_confirmations === true)) lines.push(' No prompt: profile skips standard delete confirmation; command-specific safeguards still apply.');
68
+ lines.push('ACCESS is a JSN profile setting, not ServiceNow ACL authorization.',
69
+ 'CREDENTIALS describes local availability; only CONNECTION Verified confirms the status probe succeeded.');
63
70
  if (profiles.some(profile => profile.diagnostics?.probe?.code === 'not_requested')) lines.push('', 'Connection not checked (--local).');
64
71
  if (notes.length) lines.push('', ...notes);
65
72
  if (!details) lines.push('', 'Show users and instance URLs: jsn auth status --details');