@quadient/skillshare 1.18.1 → 1.19.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.
package/README.md CHANGED
@@ -100,7 +100,7 @@ skillshare teams login
100
100
  skillshare teams status
101
101
  skillshare teams test
102
102
  skillshare teams watch
103
- skillshare teams access fullAccess
103
+ skillshare teams access limitedAccess # allow writes except editing/deleting messages
104
104
  skillshare teams upload ./report.pdf
105
105
  skillshare teams download '<file-webUrl-or-download-link>' --output ./report.pdf
106
106
  skillshare teams access readOnly
@@ -5,7 +5,7 @@ import { homedir, tmpdir } from 'node:os';
5
5
  import { dirname, join, resolve } from 'node:path';
6
6
  import { startAgentProcess } from './agents-process.js';
7
7
  import { nativeForm, nativeFormResponse } from './agents-forms.js';
8
- import { CLAUDE_SANDBOX_TOOLS, DEFAULT, SANDBOX_NOTE, clip, isSandboxed, mcpServerName, mcpTokenEnvironment, oneLine, shadowedMcpServers, boundedSessionRequest, sessionWorkdir, validateSessionWorkdir, } from './agents-session.js';
8
+ import { CLAUDE_LOCKDOWN_DENIED_TOOLS, CLAUDE_SANDBOX_TOOLS, DEFAULT, LOCKDOWN_NOTE, SANDBOX_NOTE, clip, isLockedDown, isSandboxed, mcpServerName, mcpTokenEnvironment, oneLine, shadowedMcpServers, boundedSessionRequest, sessionWorkdir, validateSessionWorkdir, } from './agents-session.js';
9
9
  /**
10
10
  * Claude Code in print mode with stream-json in both directions: the same protocol the Agent SDK speaks, but against the
11
11
  * user's own claude install, so their login and settings apply. MCP config and the session's instructions are passed per
@@ -27,12 +27,15 @@ export function claudeContent(message) {
27
27
  }
28
28
  /** The session's instructions for Claude Code's system prompt; they go in a file, because newlines do not survive cmd.exe on Windows. */
29
29
  export function claudeInstructions(context) {
30
- return [context.start.instructions?.trim(), isSandboxed(context.start.configuration) ? SANDBOX_NOTE : undefined].filter(Boolean).join('\n\n');
30
+ const note = isLockedDown(context.start) ? LOCKDOWN_NOTE : isSandboxed(context.start.configuration) ? SANDBOX_NOTE : undefined;
31
+ return [context.start.instructions?.trim(), note].filter(Boolean).join('\n\n');
31
32
  }
32
33
  export function claudeArgs(context, mcpConfigPath, instructionsPath, settingsPath) {
33
34
  const { start } = context;
34
35
  const sandbox = isSandboxed(start.configuration);
35
36
  const servers = start.mcpServers ?? [];
37
+ if (isLockedDown(start))
38
+ return claudeLockdownArgs(start, servers, mcpConfigPath, instructionsPath);
36
39
  // Replayed user messages tell when Claude Code took a message, which is how a steered message is known to have joined the turn.
37
40
  const args = ['-p', '--input-format', 'stream-json', '--output-format', 'stream-json', '--verbose', '--include-partial-messages', '--replay-user-messages',
38
41
  ...(sandbox
@@ -59,6 +62,27 @@ export function claudeArgs(context, mcpConfigPath, instructionsPath, settingsPat
59
62
  args.push('--permission-prompt-tool', 'stdio');
60
63
  return [...args, ...(context.profile?.args ?? [])];
61
64
  }
65
+ /**
66
+ * Only the session's MCP servers (--strict-mcp-config ignores the user's own) and only their tools: dontAsk denies everything else
67
+ * without asking, and the built-in tools are denied by name as well. Local profiles and user settings files are not applied.
68
+ */
69
+ function claudeLockdownArgs(start, servers, mcpConfigPath, instructionsPath) {
70
+ const args = ['-p', '--input-format', 'stream-json', '--output-format', 'stream-json', '--verbose', '--include-partial-messages', '--replay-user-messages',
71
+ '--permission-mode', 'dontAsk', '--strict-mcp-config',
72
+ '--allowedTools', ...servers.map((server, index) => `mcp__${mcpServerName(server, index)}`),
73
+ '--disallowedTools', ...CLAUDE_LOCKDOWN_DENIED_TOOLS];
74
+ if (start.configuration.model !== DEFAULT)
75
+ args.push('--model', start.configuration.model);
76
+ if (start.configuration.reasoning !== DEFAULT)
77
+ args.push('--effort', start.configuration.reasoning);
78
+ if (mcpConfigPath)
79
+ args.push('--mcp-config', mcpConfigPath);
80
+ if (instructionsPath)
81
+ args.push('--append-system-prompt-file', instructionsPath);
82
+ if (start.resumeThreadId)
83
+ args.push('--resume', start.resumeThreadId);
84
+ return args;
85
+ }
62
86
  export function claudeMcpConfig(servers) {
63
87
  return JSON.stringify({
64
88
  mcpServers: Object.fromEntries(servers.map((server, index) => [mcpServerName(server, index),
@@ -158,7 +182,7 @@ class ClaudeDriver {
158
182
  let instructionsFile;
159
183
  let settingsFile;
160
184
  const workdir = sessionWorkdir(this.context);
161
- const shadowed = servers.length > 0 ? shadowedMcpServers(claudeConfiguredMcpServers(workdir), servers) : [];
185
+ const shadowed = servers.length > 0 && !isLockedDown(this.context.start) ? shadowedMcpServers(claudeConfiguredMcpServers(workdir), servers) : [];
162
186
  if (servers.length > 0 || instructions)
163
187
  this.directory = await mkdtemp(join(tmpdir(), 'skillshare-session-'));
164
188
  if (servers.length > 0) {
@@ -182,7 +206,7 @@ class ClaudeDriver {
182
206
  // Claude Code holds suggestions back when the account nears a rate limit; the user can still turn them off with this variable.
183
207
  CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION: process.env.CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION ?? 'true',
184
208
  // Claude Code lets auto-memory write to its own folder even under the read-only allowlist; a sandboxed session writes nothing.
185
- ...(isSandboxed(this.context.start.configuration) ? { CLAUDE_CODE_DISABLE_AUTO_MEMORY: '1' } : {}),
209
+ ...(isSandboxed(this.context.start.configuration) || isLockedDown(this.context.start) ? { CLAUDE_CODE_DISABLE_AUTO_MEMORY: '1' } : {}),
186
210
  },
187
211
  spawnAgent: this.options.spawnAgent,
188
212
  onLine: line => this.receive(line),
@@ -1,7 +1,7 @@
1
1
  import { startAgentProcess } from './agents-process.js';
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import { nativeForm, nativeFormResponse } from './agents-forms.js';
4
- import { DEFAULT, SANDBOX_NOTE, clip, isSandboxed, mcpServerName, mcpTokenEnvironment, oneLine, shadowedMcpServers, boundedSessionRequest, sessionWorkdir, validateSessionWorkdir, } from './agents-session.js';
4
+ import { DEFAULT, LOCKDOWN_NOTE, SANDBOX_NOTE, clip, isLockedDown, isSandboxed, mcpServerName, mcpTokenEnvironment, oneLine, shadowedMcpServers, boundedSessionRequest, sessionWorkdir, validateSessionWorkdir, } from './agents-session.js';
5
5
  /** Profile arguments that make sense for a long-running app-server; anything else belongs to codex exec only. */
6
6
  export function codexConfigArgs(args) {
7
7
  const kept = [];
@@ -48,6 +48,18 @@ export function codexThreadParams(context, shadowed) {
48
48
  const { start } = context;
49
49
  const sandbox = isSandboxed(start.configuration);
50
50
  const servers = start.mcpServers ?? [];
51
+ if (isLockedDown(start)) {
52
+ // Read-only and never asking; the session's servers replace the user's MCP table, and web search is off.
53
+ const instructions = [start.instructions?.trim(), LOCKDOWN_NOTE].filter(Boolean).join('\n\n');
54
+ return {
55
+ cwd: sessionWorkdir(context),
56
+ ...(start.configuration.model !== DEFAULT ? { model: start.configuration.model } : {}),
57
+ approvalPolicy: 'never',
58
+ sandbox: 'read-only',
59
+ developerInstructions: instructions,
60
+ config: { 'tools.web_search': false, 'tools.view_image': false, ...codexMcpConfig(servers, undefined) },
61
+ };
62
+ }
51
63
  const instructions = [start.instructions?.trim(), sandbox ? SANDBOX_NOTE : undefined].filter(Boolean).join('\n\n');
52
64
  return {
53
65
  cwd: sessionWorkdir(context),
@@ -139,7 +151,7 @@ class CodexDriver {
139
151
  const servers = start.mcpServers ?? [];
140
152
  this.process = startAgentProcess({
141
153
  command: this.options.command ?? 'codex',
142
- args: ['app-server', ...codexConfigArgs(this.context.profile?.args ?? [])],
154
+ args: ['app-server', ...(isLockedDown(start) ? [] : codexConfigArgs(this.context.profile?.args ?? []))],
143
155
  cwd: sessionWorkdir(this.context),
144
156
  env: { ...mcpTokenEnvironment(servers), SKILLSHARE_SESSION_ID: this.context.sessionId },
145
157
  spawnAgent: this.options.spawnAgent,
@@ -152,7 +164,7 @@ class CodexDriver {
152
164
  capabilities: { experimentalApi: true, optOutNotificationMethods: ['turn/diff/updated', 'mcpServer/startupStatus/updated'] },
153
165
  });
154
166
  this.notify('initialized');
155
- const params = codexThreadParams(this.context, await this.shadowedServers(servers));
167
+ const params = codexThreadParams(this.context, isLockedDown(start) ? undefined : await this.shadowedServers(servers));
156
168
  const result = start.resumeThreadId
157
169
  ? await this.request('thread/resume', { threadId: start.resumeThreadId, ...params })
158
170
  : await this.request('thread/start', params);
@@ -20,7 +20,18 @@ export async function detectAgents(options = {}) {
20
20
  const read = options.read ?? readOptional;
21
21
  const agents = [];
22
22
  const problems = [];
23
- const version = options.version ?? (command => commandVersion(command, env, problem => problems.push(problem)));
23
+ const detectionFailures = [];
24
+ const version = async (kind) => {
25
+ let failure;
26
+ const output = options.version ? await options.version(kind) : await commandVersion(kind, env, problem => {
27
+ failure = problem;
28
+ problems.push(problem);
29
+ });
30
+ // Send only our bounded diagnostic, never stderr, the environment or the full local PATH.
31
+ if (output === null)
32
+ detectionFailures.push({ kind, message: failure ?? `${kind} --version could not be run. Check the executable and PATH.` });
33
+ return output;
34
+ };
24
35
  const claudeVersion = await version('claude');
25
36
  if (claudeVersion !== null) {
26
37
  const settings = parseJson(await read(join(env.CLAUDE_CONFIG_DIR ?? join(home, '.claude'), 'settings.json')));
@@ -60,7 +71,7 @@ export async function detectAgents(options = {}) {
60
71
  if (agents.length === 0)
61
72
  problems.push(`Could not run claude --version or codex --version. Check that an agent is installed and runnable on PATH: ${env.PATH ?? env.Path ?? ''}. For a service, check skillshare agents service status and reinstall from a fresh terminal if needed.`);
62
73
  return {
63
- capabilities: { agents, ...(settings.approvalMode ? { defaultApprovalMode: settings.approvalMode } : {}),
74
+ capabilities: { agents, ...(detectionFailures.length ? { detectionFailures } : {}), ...(settings.approvalMode ? { defaultApprovalMode: settings.approvalMode } : {}),
64
75
  profiles: profiles.map(p => ({ name: p.name, agent: p.agent, model: p.model, reasoning: p.reasoning,
65
76
  workdir: p.workdir ? basename(p.workdir) : undefined, ...(p.defaultApprovalMode ? { defaultApprovalMode: p.defaultApprovalMode } : {}) })) },
66
77
  profiles,
@@ -33,9 +33,17 @@ export async function validateSessionWorkdir(context) {
33
33
  export const CLAUDE_SANDBOX_TOOLS = ['Read', 'Grep', 'Glob', 'WebSearch', 'WebFetch'];
34
34
  export const SANDBOX_NOTE = 'This session is sandboxed: you can read files, search and use the provided MCP tools, but you cannot change files or ' +
35
35
  'run commands that modify anything.';
36
+ export const LOCKDOWN_NOTE = 'This session is locked down: you have no files, shell, web access or other tools, only the tools of the ' +
37
+ 'provided MCP servers. Everything you need is in the instructions and the message.';
38
+ /** Claude Code built-in tools a locked-down session must never use; dontAsk already denies them, this states it explicitly. */
39
+ export const CLAUDE_LOCKDOWN_DENIED_TOOLS = ['Bash', 'BashOutput', 'KillShell', 'Edit', 'MultiEdit', 'Write', 'NotebookEdit', 'Read', 'Grep', 'Glob',
40
+ 'LS', 'WebFetch', 'WebSearch', 'Task', 'TodoWrite', 'SlashCommand', 'Skill', 'ExitPlanMode'];
36
41
  export const DEFAULT = 'default';
37
42
  const MAX_TEXT = 50_000;
38
43
  const MAX_SUGGESTION = 2_000;
44
+ export function isLockedDown(start) {
45
+ return start.lockdown === true;
46
+ }
39
47
  /** Only frozen permissions of an already-created session may enforce the legacy read-only restriction. */
40
48
  export function isSandboxed(configuration) {
41
49
  return configuration.sandbox === true;
package/dist/agents.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createHash, randomBytes } from 'node:crypto';
2
+ import { mkdirSync } from 'node:fs';
2
3
  import { mkdir, readFile, readdir, rm, stat, writeFile } from 'node:fs/promises';
3
4
  import { hostname, homedir, platform, tmpdir } from 'node:os';
4
5
  import { dirname, isAbsolute, join } from 'node:path';
@@ -287,7 +288,7 @@ export async function listen(options) {
287
288
  log(`! Could not download Skillshare CLI ${version} (${error instanceof Error ? error.message : String(error)}). Trying again in 30 minutes.`);
288
289
  }).finally(() => { updating = null; });
289
290
  }
290
- const capabilities = () => ({ ...detected.capabilities, sessionApprovals: true });
291
+ const capabilities = () => ({ ...detected.capabilities, sessionApprovals: true, lockdown: true });
291
292
  async function register() {
292
293
  const fingerprint = JSON.stringify(capabilities());
293
294
  const requiresApprovalDefaults = Boolean(capabilities().defaultApprovalMode || capabilities().profiles.some(profile => profile.defaultApprovalMode));
@@ -334,13 +335,20 @@ export async function listen(options) {
334
335
  const previous = sessions.get(command.sessionId);
335
336
  if (previous)
336
337
  void previous.stop();
337
- const profile = command.start.configuration.profile ? detected.profiles.find(p => p.name === command.start.configuration.profile) : undefined;
338
+ // A locked-down session gets an empty folder of its own and none of the local profile's arguments or approval settings.
339
+ const lockdown = command.start.lockdown === true;
340
+ const lockdownDir = lockdown ? join(tmpdir(), `skillshare-lockdown-${command.sessionId}-${randomBytes(6).toString('hex')}`) : undefined;
341
+ if (lockdown)
342
+ command.start = { ...command.start, configuration: { ...command.start.configuration, profile: undefined, approvalMode: undefined, sandbox: false, workdir: lockdownDir } };
343
+ const profile = !lockdown && command.start.configuration.profile ? detected.profiles.find(p => p.name === command.start.configuration.profile) : undefined;
338
344
  const mode = command.start.configuration.approvalMode;
339
345
  const supported = detected.capabilities.agents.find(agent => agent.kind === command.start.configuration.agent)?.approvalModes;
340
346
  if (mode && !supported?.includes(mode)) {
341
347
  void uploader(command.sessionId, command.leaseToken)([{ type: 'closed', error: `The installed ${command.start.configuration.agent} does not advertise support for approval mode ${mode}. Update the agent and let the listener refresh its capabilities.` }]);
342
348
  return;
343
349
  }
350
+ if (lockdownDir)
351
+ mkdirSync(lockdownDir, { recursive: true, mode: 0o700 });
344
352
  const runner = new SessionRunner({
345
353
  sessionId: command.sessionId, leaseToken: command.leaseToken, start: command.start, workdir: options.workdir, profile, sandbox: false,
346
354
  driver: driver(command.start), upload: uploader(command.sessionId, command.leaseToken), idleMs: options.idleMs, flushIntervalMs: options.flushIntervalMs,
@@ -361,6 +369,8 @@ export async function listen(options) {
361
369
  deliveries.delete(command.sessionId);
362
370
  await rm(join(imageRoot, command.sessionId), { recursive: true, force: true }).catch(() => { });
363
371
  }
372
+ if (lockdownDir)
373
+ await rm(lockdownDir, { recursive: true, force: true }).catch(() => { });
364
374
  log(`Closed session ${command.sessionId}.`);
365
375
  });
366
376
  deliver(runner, command.messages ?? []);
package/dist/help.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  export const GLOBAL_FLAGS = ['token', 'server', 'help'];
3
- export const BOOLEAN_FLAGS = new Set(['dry-run', 'force', 'headless', 'help', 'json', 'no-teams-watch', 'no-update', 'resolved', 'sandbox']);
3
+ export const BOOLEAN_FLAGS = new Set(['all', 'digest', 'disabled', 'dry-run', 'force', 'headless', 'help', 'json', 'keep-unread', 'no-teams-watch', 'no-update', 'notify-again', 'original', 'owners-only', 'resolved', 'review', 'sandbox', 'unread']);
4
4
  export const COMMANDS = [
5
5
  {
6
6
  name: 'login',
@@ -110,7 +110,7 @@ export const COMMANDS = [
110
110
  'teams watch [local] [--browser chrome|msedge|chromium]',
111
111
  'teams status | test [--json]',
112
112
  'teams logout',
113
- 'teams access readOnly|fullAccess',
113
+ 'teams access readOnly|limitedAccess|fullAccess',
114
114
  'teams upload <file>',
115
115
  'teams download <url> --output <new-file>',
116
116
  ],
@@ -141,6 +141,43 @@ export const COMMANDS = [
141
141
  examples: ['skillshare agents status', 'skillshare agents listen --workdir ~/Research', 'skillshare agents service install --workdir ~/Research'],
142
142
  flags: ['name', 'workdir', 'max-concurrency', 'no-teams-watch', 'no-update', 'log-file', 'lines', 'browser', 'headless', 'browser-profile', 'json'],
143
143
  },
144
+ {
145
+ name: 'news',
146
+ summary: 'Read, write and follow news',
147
+ usage: [
148
+ 'news [list] [--tag <slug>] [--importance <level>] [--unread] [--all] [--search <text>] [--limit <n>] [--before <cursor>] [--json]',
149
+ 'news show <id> [--keep-unread] [--json]',
150
+ 'news read <id>... | news read --all [--tag <slug>] [--importance <level>]',
151
+ 'news unread <id>...',
152
+ 'news post --title <title> --tags <slug>[,<slug>...] [--importance <level>] [--date <date>] [--lang <locale>] [--file <path> | <text> | -]',
153
+ 'news edit <id> [--title <title>] [--tags <slugs>] [--importance <level>] [--date <date>] [--file <path> | <text> | -] [--notify-again]',
154
+ 'news delete <id>',
155
+ 'news tags [<search>] [--json]',
156
+ 'news tag show <slug> | news tag create <slug> [--name <name>] [--description <text>] [--owners-only] [--lang <locale>]',
157
+ 'news tag edit <slug> [--name <name>] [--description <text>] [--owners-only true|false] [--owners <userId>,...]',
158
+ 'news subscribe <slug> [--importance important|normal|cosmetic]',
159
+ 'news unsubscribe <slug> | news subscriptions',
160
+ 'news show <id> [--lang <locale>] [--original]',
161
+ 'news notify on|off',
162
+ 'news review <tag> | news publish <draft id>',
163
+ 'news repos | news branches <repository> [--branches <regex>]',
164
+ 'news feeds <tag>',
165
+ 'news feed create <tag> --repo <alias> --branches <regex> [--digest] [--review] [--agent <listener>[:claude|codex[/<model>]]] [--backfill <days>]',
166
+ 'news feed edit <feed id> --tag <tag> [--repo …] [--branches …] [--digest true|false] [--review true|false] [--agent …|auto] [--disabled true|false]',
167
+ 'news feed run|preview|delete <feed id>',
168
+ ],
169
+ description: 'Without --all, list shows your feed: news from the tags you follow, at or above the importance you chose for each. --all lists everything (with --tag, one tag whether or not you follow it). Levels are important, normal and cosmetic; following with cosmetic shows everything. show marks the item read like opening it in the browser. read --all marks the whole feed (or one tag / importance) read and prints the command to undo it. post reads the Markdown text from --file, the arguments or stdin, and is written in your language: --lang, otherwise the language you last chose in the web app. A future --date schedules the item. Creating a tag makes you its owner and follower. News is shown in your language (--lang, else the one you chose in the web app); a missing translation is made by the agent of the author or a tag owner, locked down, and the original is shown meanwhile (--original always shows it). Repo feeds turn merged pull requests and commits of branches matching a regex into news of a tag: the connected agent of the feed owner, locked down, classifies each change as important, normal or cosmetic and writes it in all four languages. --review keeps that news as drafts for news review/publish; --digest writes one item a day; feed preview lets the agent write from recent changes without publishing. news branches shows which branches a regex follows. notify on sends browser notifications for important news in your feed.',
170
+ examples: [
171
+ 'skillshare news --unread',
172
+ 'skillshare news show 42',
173
+ 'skillshare news read --all --tag platform',
174
+ 'skillshare news post --title "Release 2.0" --tags platform,web --importance important --file notes.md',
175
+ 'skillshare news subscribe platform --importance important',
176
+ ],
177
+ flags: ['tag', 'importance', 'unread', 'all', 'search', 'limit', 'before', 'keep-unread', 'title', 'tags', 'date', 'lang', 'file',
178
+ 'notify-again', 'name', 'description', 'owners-only', 'owners', 'original', 'repo', 'branches', 'digest', 'review', 'agent', 'backfill',
179
+ 'disabled', 'json'],
180
+ },
144
181
  {
145
182
  name: 'git',
146
183
  summary: 'Register Skillshare in Git Credential Manager',
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { refreshSession, withSessionLock, writeSessionAtomically } from './session-auth.js';
2
2
  import { configurePageLinks } from './page-links.js';
3
3
  import { runSalesforceCommand } from './salesforce.js';
4
+ import { runNewsCommand } from './news.js';
4
5
  import { assertCredentialDestination, resolveTeamsObjectId, runTeamsCommand, watchTeamsInBackground } from './teams.js';
5
6
  import { runAgentsCommand, runServiceCommand } from './agents.js';
6
7
  import { SERVICE_ENV } from './agents-update.js';
@@ -159,6 +160,14 @@ async function main() {
159
160
  await runSalesforceCommand(await createClient(baseUrl, options.token), options.positionals, options.flags, openBrowser);
160
161
  return;
161
162
  }
163
+ case 'news': {
164
+ const baseUrl = options.flags.server ?? await resolveActiveBaseUrl();
165
+ assertCredentialDestination(baseUrl);
166
+ if (!options.token && !await loadSession(baseUrl))
167
+ await login(baseUrl);
168
+ await runNewsCommand(await createClient(baseUrl, options.token), options.positionals, options.flags, print);
169
+ return;
170
+ }
162
171
  case 'agents': {
163
172
  // Managing the background service needs no server, except to install it.
164
173
  if (options.positionals[0] === 'service' && options.positionals[1] !== 'install') {
package/dist/news.js ADDED
@@ -0,0 +1,409 @@
1
+ import { readFile } from 'node:fs/promises';
2
+ import { formatDateTime, formatTable } from './output.js';
3
+ const ACTIONS = ['list', 'show', 'read', 'unread', 'post', 'edit', 'delete', 'tags', 'tag', 'subscribe', 'unsubscribe', 'subscriptions', 'feeds', 'feed',
4
+ 'review', 'publish', 'repos', 'branches', 'notify'];
5
+ const IMPORTANCE = ['cosmetic', 'normal', 'important'];
6
+ const LOCALES = ['en_us', 'fr_fr', 'cs_cz', 'uk_ua'];
7
+ const LEVEL = { important: 'important only', normal: 'normal and up', cosmetic: 'everything' };
8
+ const TRANSLATION = {
9
+ translated: 'translated from', stale: 'translation updating, from', pending: 'translating from', waiting: 'waiting for a translator agent, in',
10
+ failed: 'translation failed, in', original: 'original in',
11
+ };
12
+ export function newsLink(baseUrl, id) {
13
+ return baseUrl ? `${baseUrl.replace(/\/+$/, '')}/news/${id}` : `/news/${id}`;
14
+ }
15
+ export function renderNewsList(page, baseUrl) {
16
+ if (page.items.length === 0)
17
+ return page.unreadCount === 0 ? 'No news. You are all caught up.' : 'No news matches these filters.';
18
+ const rows = page.items.map((item) => [
19
+ item.unread ? '●' : ' ',
20
+ String(item.id),
21
+ item.importance === 'normal' ? '' : item.importance,
22
+ formatDateTime(item.publishedAt) + (item.scheduled ? ' (scheduled)' : ''),
23
+ item.tags.map((tag) => `#${tag.slug}`).join(' '),
24
+ item.title,
25
+ ]);
26
+ const lines = [formatTable(['', 'ID', 'IMPORTANCE', 'DATE', 'TAGS', 'TITLE'], rows)];
27
+ lines.push('', `${page.unreadCount} unread. Open one with: skillshare news show <id>${baseUrl ? ` or ${baseUrl.replace(/\/+$/, '')}/news/<id>` : ''}`);
28
+ if (page.nextCursor)
29
+ lines.push(`More: add --before ${page.nextCursor}`);
30
+ return lines.join('\n');
31
+ }
32
+ export function renderNewsItem(item, baseUrl) {
33
+ const meta = [
34
+ item.importance === 'normal' ? null : item.importance.toUpperCase(),
35
+ item.tags.map((tag) => `#${tag.slug}`).join(' '),
36
+ item.author ? `by ${item.author.name}` : null,
37
+ formatDateTime(item.publishedAt) + (item.scheduled ? ' (scheduled)' : ''),
38
+ item.editedAt ? `edited ${formatDateTime(item.editedAt)}` : null,
39
+ item.feed ? `AI summary from ${item.feed.repository}` : null,
40
+ item.translation ? `${TRANSLATION[item.translation.status] ?? item.translation.status} ${item.translation.sourceLocale}` : `written in ${item.sourceLocale}`,
41
+ ].filter(Boolean);
42
+ const sources = (item.sources ?? []).map((source) => ` ${source.label} ${source.url}`);
43
+ return [`#${item.id}${item.draft ? ' [draft]' : ''} ${item.title}`, meta.join(' · '), '', (item.body ?? item.excerpt).trim(),
44
+ ...(sources.length ? ['', 'Changes:', ...sources] : []), '', newsLink(baseUrl, item.id)].join('\n');
45
+ }
46
+ export function renderNewsTags(tags) {
47
+ if (tags.length === 0)
48
+ return 'No tags yet. Create one with: skillshare news tag create <slug> --name <name>';
49
+ return formatTable(['TAG', 'NAME', 'NEWS', 'FOLLOWERS', 'YOU FOLLOW', 'UNREAD', 'POSTING'], tags.map((tag) => [
50
+ `#${tag.slug}`, tag.name, String(tag.itemCount), String(tag.subscriberCount),
51
+ tag.subscription ? LEVEL[tag.subscription] : '—', tag.subscription ? String(tag.unreadCount) : '',
52
+ tag.ownersOnly ? 'owners only' : 'everyone',
53
+ ]));
54
+ }
55
+ export function renderNewsTag(tag) {
56
+ return [
57
+ `#${tag.slug} ${tag.name !== tag.slug ? tag.name : ''}`.trimEnd(),
58
+ tag.description || '(no description)',
59
+ '',
60
+ `Owners: ${tag.owners.map((owner) => `${owner.name} (${owner.id})`).join(', ')}`,
61
+ `Posting: ${tag.ownersOnly ? 'owners only' : 'everyone'}${tag.canPost ? '' : ' (you cannot post here)'}`,
62
+ `News: ${tag.itemCount} · Followers: ${tag.subscriberCount}${tag.lastPublishedAt ? ` · Last news ${formatDateTime(tag.lastPublishedAt)}` : ''}`,
63
+ `You follow: ${tag.subscription ? `${LEVEL[tag.subscription]} (${tag.unreadCount} unread)` : `no — skillshare news subscribe ${tag.slug}`}`,
64
+ ].join('\n');
65
+ }
66
+ export function renderNewsFeeds(feeds) {
67
+ if (feeds.length === 0)
68
+ return 'No repo feeds. Add one with: skillshare news feed create <tag> --repo <alias> --branches <regex>';
69
+ return feeds.map((feed) => [
70
+ `Feed ${feed.id}: ${feed.repository} ${feed.branchPattern} [${feed.enabled ? feed.status : 'paused'}]`,
71
+ ` ${feed.grouping === 'daily' ? 'daily digest' : 'news per change'}, ${feed.publishing === 'review' ? 'review first' : 'published automatically'}` +
72
+ `${feed.owner ? `, agent of ${feed.owner.name}` : ''}${feed.agentTarget ? ` on ${feed.agentTarget.listenerId} (${feed.agentTarget.configurationId})` : ''}`,
73
+ feed.branches.length ? ` following ${feed.branches.join(', ')}` : '',
74
+ feed.lastPolledAt ? ` checked ${formatDateTime(feed.lastPolledAt)}` : '',
75
+ feed.lastError ? ` problem: ${feed.lastError}` : '',
76
+ ...feed.jobs.slice(0, 5).map((job) => ` job ${job.id}: ${job.status}${job.dryRun ? ' (preview)' : ''}, ${job.changes.length} changes, ${formatDateTime(job.createdAt)}` +
77
+ `${job.itemIds.length ? `, news ${job.itemIds.map((id) => '#' + id).join(' ')}` : ''}${job.error && job.status !== 'done' ? ` — ${job.error}` : ''}` +
78
+ (job.preview ? '\n' + job.preview.map((item) => ` [${item.importance}] ${item.title.en_us}`).join('\n') : '')),
79
+ ].filter(Boolean).join('\n')).join('\n\n');
80
+ }
81
+ export function renderNewsSubscriptions(subscriptions) {
82
+ if (subscriptions.length === 0)
83
+ return 'You follow no tags. List them with: skillshare news tags';
84
+ return formatTable(['TAG', 'SHOWS', 'UNREAD', 'SINCE'], subscriptions.map((subscription) => [
85
+ `#${subscription.tag.slug}`, LEVEL[subscription.minImportance], String(subscription.unreadCount), formatDateTime(subscription.created),
86
+ ]));
87
+ }
88
+ /**
89
+ * Reads, writes and follows news. Showing an item marks it read, as opening it in the browser does,
90
+ * unless --keep-unread is passed.
91
+ */
92
+ export async function runNewsCommand(client, positionals, flags, print, readText = readStdin) {
93
+ const [action = 'list', ...rest] = positionals;
94
+ if (!ACTIONS.includes(action))
95
+ throw new Error(`Unknown news command '${action}'. Use ${ACTIONS.join(', ')}.`);
96
+ const call = (path, method = 'GET', body) => send(client, path, method, body);
97
+ if (action === 'list') {
98
+ const query = new URLSearchParams();
99
+ if (flags.tag)
100
+ query.set('tag', flags.tag.replace(/^#/, ''));
101
+ if (flags.importance)
102
+ query.set('importance', importance(flags.importance));
103
+ if (flags.unread === 'true')
104
+ query.set('unread', 'true');
105
+ if (flags.search)
106
+ query.set('q', flags.search);
107
+ if (flags.before)
108
+ query.set('before', flags.before);
109
+ if (flags.limit)
110
+ query.set('limit', String(positiveInteger(flags.limit, '--limit')));
111
+ if (flags.lang)
112
+ query.set('lang', locale(flags.lang));
113
+ const page = await call(`${flags.all === 'true' ? '/items' : '/feed'}${query.size ? `?${query}` : ''}`);
114
+ print(page, () => renderNewsList(page, client.baseUrl));
115
+ return;
116
+ }
117
+ if (action === 'show') {
118
+ const id = itemId(rest[0], 'show');
119
+ const query = new URLSearchParams();
120
+ if (flags.lang)
121
+ query.set('lang', locale(flags.lang));
122
+ if (flags.original === 'true')
123
+ query.set('original', 'true');
124
+ const item = await call(`/items/${id}${query.size ? `?${query}` : ''}`);
125
+ if (item.unread && flags['keep-unread'] !== 'true')
126
+ await call('/read', 'POST', { itemIds: [id], read: true });
127
+ print({ ...item, link: newsLink(client.baseUrl, id) }, () => renderNewsItem(item, client.baseUrl));
128
+ return;
129
+ }
130
+ if (action === 'read' || action === 'unread') {
131
+ if (action === 'read' && flags.all === 'true') {
132
+ const result = await call('/read-all', 'POST', {
133
+ tag: flags.tag?.replace(/^#/, '') || null, importance: flags.importance ? importance(flags.importance) : null,
134
+ });
135
+ const count = result.itemIds?.length ?? 0;
136
+ print(result, () => count === 0 ? 'Everything was already read.'
137
+ : `Marked ${count} as read. Undo with: skillshare news unread ${result.itemIds.join(' ')}`);
138
+ return;
139
+ }
140
+ if (rest.length === 0)
141
+ throw new Error(`news ${action} requires one or more item ids${action === 'read' ? ', or --all' : ''}`);
142
+ const ids = rest.map((value) => itemId(value, action));
143
+ const result = await call('/read', 'POST', { itemIds: ids, read: action === 'read' });
144
+ print(result, () => `Marked ${result.itemIds?.length ?? ids.length} as ${action}.`);
145
+ return;
146
+ }
147
+ if (action === 'post' || action === 'edit') {
148
+ const id = action === 'edit' ? itemId(rest[0], 'edit') : 0;
149
+ const words = action === 'edit' ? rest.slice(1) : rest;
150
+ const existing = id ? await call(`/items/${id}?original=true`) : null;
151
+ const bodyText = flags.file ? await readFile(flags.file, 'utf8') : words.length > 0 && words.join(' ') !== '-' ? words.join(' ') : await readText();
152
+ const body = bodyText.trim() || existing?.body || '';
153
+ const title = flags.title ?? existing?.title;
154
+ const tags = flags.tags !== undefined ? tagList(flags.tags) : existing?.tags.map((tag) => tag.slug) ?? [];
155
+ if (!title)
156
+ throw new Error('news post requires --title "…"');
157
+ if (!body)
158
+ throw new Error('The text is empty. Pass it as arguments, with --file <path>, or pipe it to stdin.');
159
+ if (tags.length === 0)
160
+ throw new Error('news post requires --tags <slug>[,<slug>…]');
161
+ if (flags.lang && !LOCALES.includes(flags.lang))
162
+ throw new Error(`--lang must be one of ${LOCALES.join(', ')}`);
163
+ const input = {
164
+ title, body, tags,
165
+ importance: flags.importance ? importance(flags.importance) : existing?.importance ?? 'normal',
166
+ publishedAt: flags.date ? date(flags.date) : existing?.publishedAt ?? null,
167
+ // Without --lang the server uses the language you last chose in the web app, then English.
168
+ locale: flags.lang ?? existing?.sourceLocale ?? null,
169
+ notifyAgain: flags['notify-again'] === 'true',
170
+ };
171
+ const result = await call(id ? `/items/${id}` : '/items', id ? 'PUT' : 'POST', input);
172
+ const scheduled = input.publishedAt !== null && new Date(input.publishedAt).getTime() > Date.now();
173
+ print({ ...result, link: newsLink(client.baseUrl, result.id) }, () => `${id ? 'Updated' : scheduled ? 'Scheduled' : 'Published'} #${result.id}: ${newsLink(client.baseUrl, result.id)}`);
174
+ return;
175
+ }
176
+ if (action === 'delete') {
177
+ const id = itemId(rest[0], 'delete');
178
+ await call(`/items/${id}`, 'DELETE');
179
+ print({ deleted: id }, () => `Deleted #${id}.`);
180
+ return;
181
+ }
182
+ if (action === 'tags') {
183
+ const search = flags.search ?? rest.join(' ');
184
+ const tags = await call(`/tags${search ? `?q=${encodeURIComponent(search)}` : ''}`);
185
+ print(tags, () => renderNewsTags(tags));
186
+ return;
187
+ }
188
+ if (action === 'tag') {
189
+ const [sub, rawSlug] = rest;
190
+ const slug = rawSlug?.replace(/^#/, '');
191
+ if (!sub || !['show', 'create', 'edit'].includes(sub) || !slug)
192
+ throw new Error('Use news tag show|create|edit <slug>.');
193
+ if (sub === 'show') {
194
+ const tag = await call(`/tags/${encodeURIComponent(slug)}`);
195
+ print(tag, () => renderNewsTag(tag));
196
+ return;
197
+ }
198
+ if (flags.lang && !LOCALES.includes(flags.lang))
199
+ throw new Error(`--lang must be one of ${LOCALES.join(', ')}`);
200
+ const existing = sub === 'edit' ? await call(`/tags/${encodeURIComponent(slug)}`) : null;
201
+ const input = {
202
+ slug,
203
+ name: flags.name ?? existing?.name ?? slug,
204
+ description: flags.description ?? existing?.description ?? '',
205
+ ownersOnly: flags['owners-only'] !== undefined ? flags['owners-only'] === 'true' : existing?.ownersOnly ?? false,
206
+ ownerUserIds: flags.owners !== undefined ? flags.owners.split(',').map((value) => positiveInteger(value.trim(), '--owners')) : undefined,
207
+ locale: flags.lang ?? null,
208
+ };
209
+ if (sub === 'create') {
210
+ await call('/tags', 'POST', input);
211
+ print({ created: slug }, () => `Created #${slug}. You follow everything in it.`);
212
+ }
213
+ else {
214
+ await call(`/tags/${encodeURIComponent(slug)}`, 'PUT', input);
215
+ print({ updated: slug }, () => `Updated #${slug}.`);
216
+ }
217
+ return;
218
+ }
219
+ if (action === 'subscribe' || action === 'unsubscribe') {
220
+ const slug = rest[0]?.replace(/^#/, '');
221
+ if (!slug)
222
+ throw new Error(`news ${action} requires <tag>`);
223
+ const path = `/subscriptions/${encodeURIComponent(slug)}`;
224
+ if (action === 'unsubscribe') {
225
+ await call(path, 'DELETE');
226
+ print({ unsubscribed: slug }, () => `You no longer follow #${slug}.`);
227
+ return;
228
+ }
229
+ const level = flags.importance ? importance(flags.importance) : 'normal';
230
+ await call(path, 'PUT', { minImportance: level });
231
+ print({ subscribed: slug, minImportance: level }, () => `Following #${slug}: ${LEVEL[level]}.`);
232
+ return;
233
+ }
234
+ if (action === 'subscriptions') {
235
+ const subscriptions = await call('/subscriptions');
236
+ print(subscriptions, () => renderNewsSubscriptions(subscriptions));
237
+ return;
238
+ }
239
+ if (action === 'review') {
240
+ const slug = tagSlug(rest[0], 'review');
241
+ const page = await call(`/items?tag=${encodeURIComponent(slug)}&drafts=true&limit=100`);
242
+ print(page, () => page.items.length === 0 ? `No drafts wait for review in #${slug}.`
243
+ : renderNewsList(page, client.baseUrl).split('\n\n')[0] + `\n\nPublish one with: skillshare news publish <id>`);
244
+ return;
245
+ }
246
+ if (action === 'publish') {
247
+ const id = itemId(rest[0], 'publish');
248
+ await call(`/items/${id}/publish`, 'POST');
249
+ print({ published: id }, () => `Published #${id}: ${newsLink(client.baseUrl, id)}`);
250
+ return;
251
+ }
252
+ if (action === 'repos') {
253
+ const repositories = await call('/repositories');
254
+ print(repositories, () => repositories.length ? repositories.join('\n') : 'You have no repositories in Git Sources.');
255
+ return;
256
+ }
257
+ if (action === 'branches') {
258
+ const repository = rest[0];
259
+ if (!repository)
260
+ throw new Error('news branches requires <repository alias>');
261
+ const result = await call(`/repositories/branches?repository=${encodeURIComponent(repository)}&pattern=${encodeURIComponent(flags.branches ?? '')}`);
262
+ print(result, () => {
263
+ if (result.error)
264
+ return result.error;
265
+ const matching = result.branches.filter((branch) => branch.matches);
266
+ return flags.branches
267
+ ? [`${matching.length} of ${result.branches.length} branches match ${flags.branches}:`, ...matching.map((branch) => ` ${branch.name}`)].join('\n')
268
+ : result.branches.map((branch) => branch.name).join('\n');
269
+ });
270
+ return;
271
+ }
272
+ if (action === 'notify') {
273
+ const state = rest[0];
274
+ if (state !== 'on' && state !== 'off')
275
+ throw new Error('Use news notify on|off.');
276
+ await call('/me', 'PUT', { notifyImportant: state === 'on' });
277
+ print({ notifyImportant: state === 'on' }, () => state === 'on'
278
+ ? 'Important news in your feed now notifies the browsers you registered for notifications in Skillshare.'
279
+ : 'News notifications are off.');
280
+ return;
281
+ }
282
+ if (action === 'feeds') {
283
+ const slug = tagSlug(rest[0], 'feeds');
284
+ const feeds = await call(`/tags/${encodeURIComponent(slug)}/feeds`);
285
+ print(feeds, () => renderNewsFeeds(feeds));
286
+ return;
287
+ }
288
+ const [sub, target] = rest;
289
+ if (!sub || !['create', 'edit', 'run', 'preview', 'delete'].includes(sub) || !target)
290
+ throw new Error('Use news feed create <tag> | edit|run|preview|delete <feed id>.');
291
+ if (sub === 'run' || sub === 'preview') {
292
+ const id = itemId(target, `feed ${sub}`);
293
+ await call(`/feeds/${id}/run`, 'POST', { dryRun: sub === 'preview' });
294
+ print({ feed: id, dryRun: sub === 'preview' }, () => sub === 'preview'
295
+ ? `The agent writes a preview from recent changes; nothing is published. See it with: skillshare news feeds <tag>`
296
+ : `Checking feed ${id} for new changes now.`);
297
+ return;
298
+ }
299
+ if (sub === 'delete') {
300
+ const id = itemId(target, 'feed delete');
301
+ await call(`/feeds/${id}`, 'DELETE');
302
+ print({ deleted: id }, () => `Deleted feed ${id}. Its news stays.`);
303
+ return;
304
+ }
305
+ const agent = flags.agent ? agentTarget(flags.agent) : undefined;
306
+ const body = (existing) => ({
307
+ repository: flags.repo ?? existing?.repository,
308
+ branchPattern: flags.branches ?? existing?.branchPattern,
309
+ grouping: flags.digest !== undefined ? (flags.digest === 'true' ? 'daily' : 'pullRequest') : existing?.grouping ?? 'pullRequest',
310
+ publishing: flags.review !== undefined ? (flags.review === 'true' ? 'review' : 'auto') : existing?.publishing ?? 'auto',
311
+ agentTarget: agent !== undefined ? agent : existing?.agentTarget ?? null,
312
+ enabled: flags.disabled !== undefined ? flags.disabled !== 'true' : existing?.enabled ?? true,
313
+ backfillDays: flags.backfill ? Number(flags.backfill) : 0,
314
+ });
315
+ if (sub === 'create') {
316
+ const slug = tagSlug(target, 'feed create');
317
+ const input = body();
318
+ if (!input.repository || !input.branchPattern)
319
+ throw new Error('news feed create requires --repo <alias> and --branches <regex>');
320
+ const result = await call(`/tags/${encodeURIComponent(slug)}/feeds`, 'POST', input);
321
+ print(result, () => `Feed ${result.id} follows ${input.repository} ${input.branchPattern} for #${slug}. Try it with: skillshare news feed preview ${result.id}`);
322
+ return;
323
+ }
324
+ const id = itemId(target, 'feed edit');
325
+ if (!flags.tag)
326
+ throw new Error('news feed edit needs --tag <slug> to find the feed.');
327
+ const feeds = await call(`/tags/${encodeURIComponent(flags.tag.replace(/^#/, ''))}/feeds`);
328
+ const existing = feeds.find((feed) => feed.id === id);
329
+ if (!existing)
330
+ throw new Error(`Feed ${id} is not on #${flags.tag}.`);
331
+ await call(`/feeds/${id}`, 'PUT', body(existing));
332
+ print({ updated: id }, () => `Updated feed ${id}.`);
333
+ }
334
+ function tagSlug(value, action) {
335
+ const slug = value?.replace(/^#/, '');
336
+ if (!slug)
337
+ throw new Error(`news ${action} requires <tag>`);
338
+ return slug;
339
+ }
340
+ function locale(value) {
341
+ if (!LOCALES.includes(value))
342
+ throw new Error(`--lang must be one of ${LOCALES.join(', ')}`);
343
+ return value;
344
+ }
345
+ /** --agent <listener id>[:<agent>[/<model>]], for example laptop:claude/haiku; "auto" clears it. */
346
+ function agentTarget(value) {
347
+ if (value === 'auto')
348
+ return null;
349
+ const [listenerId, configuration = 'claude'] = value.split(':');
350
+ const [agent, model = 'default'] = configuration.split('/');
351
+ if (!listenerId || !['claude', 'codex'].includes(agent))
352
+ throw new Error('--agent must be <listener id>[:claude|codex[/<model>]] or auto');
353
+ return { listenerId, configurationId: `${agent}/${model}/default` };
354
+ }
355
+ function importance(value) {
356
+ const normalized = value.trim().toLowerCase();
357
+ const level = normalized === 'all' || normalized === 'everything' ? 'cosmetic' : normalized;
358
+ if (!IMPORTANCE.includes(level))
359
+ throw new Error('--importance must be important, normal or cosmetic (everything).');
360
+ return level;
361
+ }
362
+ function tagList(value) {
363
+ return value.split(',').map((tag) => tag.trim().replace(/^#/, '')).filter(Boolean);
364
+ }
365
+ function itemId(value, action) {
366
+ const id = Number(value);
367
+ if (!value || !Number.isSafeInteger(id) || id <= 0)
368
+ throw new Error(`news ${action} requires a news item id`);
369
+ return id;
370
+ }
371
+ function positiveInteger(value, name) {
372
+ const number = Number(value);
373
+ if (!Number.isSafeInteger(number) || number <= 0)
374
+ throw new Error(`${name} must be a positive whole number`);
375
+ return number;
376
+ }
377
+ function date(value) {
378
+ const parsed = new Date(value);
379
+ if (Number.isNaN(parsed.getTime()))
380
+ throw new Error('--date must be a date such as 2026-11-01 or 2026-11-01T09:00');
381
+ return parsed.toISOString();
382
+ }
383
+ async function send(client, path, method, body) {
384
+ const response = await client.request(`/api/news${path}`, body === undefined
385
+ ? { method }
386
+ : { method, headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) });
387
+ if (response.ok)
388
+ return (response.status === 204 ? undefined : await response.json());
389
+ let error = {};
390
+ try {
391
+ error = await response.json();
392
+ }
393
+ catch { }
394
+ if (error.error)
395
+ throw new Error(error.error);
396
+ if (response.status === 404)
397
+ throw new Error('Not found. Check the news id or tag.');
398
+ if (response.status === 403)
399
+ throw new Error('You are not allowed to do that.');
400
+ throw new Error(`Skillshare returned HTTP ${response.status} for news.`);
401
+ }
402
+ async function readStdin() {
403
+ if (process.stdin.isTTY)
404
+ return '';
405
+ const chunks = [];
406
+ for await (const chunk of process.stdin)
407
+ chunks.push(Buffer.from(chunk));
408
+ return Buffer.concat(chunks).toString('utf8');
409
+ }
package/dist/teams.js CHANGED
@@ -118,8 +118,8 @@ export async function runTeamsCommand(client, args, flags, appDirectory) {
118
118
  }
119
119
  if (action === 'access') {
120
120
  const mode = args[1];
121
- if (mode !== 'readOnly' && mode !== 'fullAccess')
122
- throw new Error('Use teams access readOnly or teams access fullAccess.');
121
+ if (mode !== 'readOnly' && mode !== 'limitedAccess' && mode !== 'fullAccess')
122
+ throw new Error('Use teams access readOnly, teams access limitedAccess or teams access fullAccess.');
123
123
  const response = await client.request(`${root}/access-mode`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ accessMode: mode }) });
124
124
  await expectOk(response);
125
125
  console.log(`Teams access mode: ${mode}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadient/skillshare",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "Skillshare CLI for installing and publishing Quadient skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "build": "rm -rf dist && tsc -p tsconfig.build.json && node -e \"require('node:fs').copyFileSync('page-browser-client.js', 'dist/page-browser-client.js')\"",
17
17
  "start": "node ./dist/index.js",
18
18
  "prepublishOnly": "npm run build",
19
- "test": "tsx --test session-auth.test.ts cli-args.test.ts install-files.test.ts removed-skills.test.ts output.test.ts pages.test.ts page-links.test.ts pages-secrets.test.ts pages-comments.test.ts pages-dev.test.ts teams-auth.test.ts teams-watch.test.ts teams-browser.test.ts salesforce.test.ts agents.test.ts agents-approvals.test.ts agents-native-forms.test.ts agents-delivery.test.ts agents-request-upload.test.ts agents-update.test.ts login-callback.test.ts"
19
+ "test": "tsx --test session-auth.test.ts cli-args.test.ts install-files.test.ts removed-skills.test.ts output.test.ts pages.test.ts page-links.test.ts pages-secrets.test.ts pages-comments.test.ts news.test.ts pages-dev.test.ts teams-auth.test.ts teams-watch.test.ts teams-browser.test.ts salesforce.test.ts agents.test.ts agents-detection.test.ts agents-lockdown.test.ts agents-approvals.test.ts agents-native-forms.test.ts agents-delivery.test.ts agents-request-upload.test.ts agents-update.test.ts login-callback.test.ts"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"