@quadient/skillshare 1.20.3 → 1.22.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.
@@ -0,0 +1,284 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { mkdir, readFile, rm, writeFile } from 'node:fs/promises';
3
+ import { homedir } from 'node:os';
4
+ import { dirname, join } from 'node:path';
5
+ import { runCommand } from './agents-update.js';
6
+ export function defaultServiceEnvironment(appDir) {
7
+ const platform = process.platform;
8
+ if (platform !== 'darwin' && platform !== 'linux' && platform !== 'win32')
9
+ throw new Error(`Background services are not supported on ${platform}.`);
10
+ return {
11
+ appDir, platform, home: homedir(), configHome: process.env.XDG_CONFIG_HOME, run: runCommand, uid: process.getuid?.(),
12
+ windowsUser: process.env.USERDOMAIN ? `${process.env.USERDOMAIN}\\${process.env.USERNAME}` : process.env.USERNAME,
13
+ };
14
+ }
15
+ export function servicePaths(appDir, kind = 'agents') {
16
+ return {
17
+ config: join(appDir, `${kind}-service.json`),
18
+ detection: join(appDir, `${kind}-service-detection.json`),
19
+ launcher: join(appDir, `${kind}-service.mjs`),
20
+ log: join(appDir, 'logs', `${kind}.log`),
21
+ output: join(appDir, 'logs', `${kind}-service.out`),
22
+ windowsTask: join(appDir, `${kind}-service-task.xml`),
23
+ };
24
+ }
25
+ const launchdLabel = (kind) => `com.quadient.skillshare.${kind}`;
26
+ const systemdUnitName = (kind) => `skillshare-${kind}.service`;
27
+ const windowsTaskName = (kind) => kind === 'agents' ? 'Skillshare Agents' : 'Skillshare Teams';
28
+ const description = (kind) => kind === 'agents' ? 'Skillshare agents listener' : 'Skillshare Teams session renewal';
29
+ /** Where the service manager keeps the service definition. */
30
+ export function definitionPath(environment, kind = 'agents') {
31
+ switch (environment.platform) {
32
+ case 'darwin': return join(environment.home, 'Library', 'LaunchAgents', `${launchdLabel(kind)}.plist`);
33
+ case 'linux': return join(environment.configHome ?? join(environment.home, '.config'), 'systemd', 'user', systemdUnitName(kind));
34
+ case 'win32': return servicePaths(environment.appDir, kind).windowsTask;
35
+ }
36
+ }
37
+ function xml(value) {
38
+ return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
39
+ }
40
+ /** A launchd agent in the user's login session, so agents reach the keychain and the browser; started again if it fails. */
41
+ export function launchdPlist(node, appDir, kind = 'agents') {
42
+ const paths = servicePaths(appDir, kind);
43
+ return `<?xml version="1.0" encoding="UTF-8"?>
44
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
45
+ <plist version="1.0">
46
+ <dict>
47
+ <key>Label</key>
48
+ <string>${launchdLabel(kind)}</string>
49
+ <key>ProgramArguments</key>
50
+ <array>
51
+ <string>${xml(node)}</string>
52
+ <string>${xml(paths.launcher)}</string>
53
+ </array>
54
+ <key>WorkingDirectory</key>
55
+ <string>${xml(appDir)}</string>
56
+ <key>RunAtLoad</key>
57
+ <true/>
58
+ <key>KeepAlive</key>
59
+ <dict>
60
+ <key>SuccessfulExit</key>
61
+ <false/>
62
+ </dict>
63
+ <key>ThrottleInterval</key>
64
+ <integer>30</integer>
65
+ <key>ProcessType</key>
66
+ <string>Interactive</string>
67
+ <key>StandardOutPath</key>
68
+ <string>${xml(paths.output)}</string>
69
+ <key>StandardErrorPath</key>
70
+ <string>${xml(paths.output)}</string>
71
+ </dict>
72
+ </plist>
73
+ `;
74
+ }
75
+ function systemdQuote(value) {
76
+ return `"${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/%/g, '%%')}"`;
77
+ }
78
+ /** A systemd user service, started with the user's session and again whenever it fails. */
79
+ export function systemdUnit(node, appDir, kind = 'agents') {
80
+ const paths = servicePaths(appDir, kind);
81
+ // WorkingDirectory takes a literal path (including spaces), not a quoted command argument.
82
+ const workingDirectory = appDir.replace(/%/g, '%%');
83
+ return `[Unit]
84
+ Description=${description(kind)}
85
+ After=network-online.target
86
+
87
+ [Service]
88
+ Type=simple
89
+ ExecStart=${systemdQuote(node)} ${systemdQuote(paths.launcher)}
90
+ WorkingDirectory=${workingDirectory}
91
+ Restart=on-failure
92
+ RestartSec=30
93
+ StandardOutput=append:${paths.output.replace(/%/g, '%%')}
94
+ StandardError=append:${paths.output.replace(/%/g, '%%')}
95
+
96
+ [Install]
97
+ WantedBy=default.target
98
+ `;
99
+ }
100
+ /**
101
+ * A scheduled task that starts at logon in the user's session, without a time limit and also on battery. conhost
102
+ * --headless runs Node without a console window.
103
+ */
104
+ export function windowsTaskXml(node, appDir, user, kind = 'agents') {
105
+ const paths = servicePaths(appDir, kind);
106
+ return `<?xml version="1.0" encoding="UTF-16"?>
107
+ <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
108
+ <RegistrationInfo>
109
+ <Description>${description(kind)}</Description>
110
+ </RegistrationInfo>
111
+ <Triggers>
112
+ <LogonTrigger>
113
+ <Enabled>true</Enabled>
114
+ <UserId>${xml(user)}</UserId>
115
+ </LogonTrigger>
116
+ </Triggers>
117
+ <Principals>
118
+ <Principal id="Author">
119
+ <UserId>${xml(user)}</UserId>
120
+ <LogonType>InteractiveToken</LogonType>
121
+ <RunLevel>LeastPrivilege</RunLevel>
122
+ </Principal>
123
+ </Principals>
124
+ <Settings>
125
+ <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
126
+ <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
127
+ <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
128
+ <AllowHardTerminate>true</AllowHardTerminate>
129
+ <StartWhenAvailable>true</StartWhenAvailable>
130
+ <AllowStartOnDemand>true</AllowStartOnDemand>
131
+ <Enabled>true</Enabled>
132
+ <Hidden>false</Hidden>
133
+ <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
134
+ <RestartOnFailure>
135
+ <Interval>PT1M</Interval>
136
+ <Count>999</Count>
137
+ </RestartOnFailure>
138
+ </Settings>
139
+ <Actions Context="Author">
140
+ <Exec>
141
+ <Command>conhost.exe</Command>
142
+ <Arguments>--headless "${xml(node)}" "${xml(paths.launcher)}"</Arguments>
143
+ <WorkingDirectory>${xml(appDir)}</WorkingDirectory>
144
+ </Exec>
145
+ </Actions>
146
+ </Task>
147
+ `;
148
+ }
149
+ async function must(environment, command, args, what) {
150
+ const result = await environment.run(command, args);
151
+ if (result.code !== 0)
152
+ throw new Error(`${what} failed: ${(result.stderr || result.stdout).trim() || `exit code ${result.code}`}`);
153
+ return result;
154
+ }
155
+ export async function registerService(environment, kind, node) {
156
+ const definition = definitionPath(environment, kind);
157
+ await mkdir(dirname(definition), { recursive: true });
158
+ switch (environment.platform) {
159
+ case 'darwin': {
160
+ const domain = `gui/${environment.uid}`;
161
+ await environment.run('launchctl', ['bootout', `${domain}/${launchdLabel(kind)}`]);
162
+ await writeFile(definition, launchdPlist(node, environment.appDir, kind));
163
+ await must(environment, 'launchctl', ['bootstrap', domain, definition], 'launchctl bootstrap');
164
+ break;
165
+ }
166
+ case 'linux':
167
+ await writeFile(definition, systemdUnit(node, environment.appDir, kind));
168
+ await must(environment, 'systemctl', ['--user', 'daemon-reload'], 'systemctl daemon-reload');
169
+ await must(environment, 'systemctl', ['--user', 'enable', systemdUnitName(kind)], 'systemctl enable');
170
+ await must(environment, 'systemctl', ['--user', 'restart', systemdUnitName(kind)], 'systemctl restart');
171
+ break;
172
+ case 'win32':
173
+ // Reinstalling a watcher must stop the previous Node process as well as conhost.
174
+ if (kind === 'teams' && existsSync(definition))
175
+ await stopWindowsServiceProcesses(environment, kind);
176
+ // schtasks reads task definitions as UTF-16.
177
+ await writeFile(definition, Buffer.concat([Buffer.from([0xff, 0xfe]), Buffer.from(windowsTaskXml(node, environment.appDir, environment.windowsUser ?? '', kind), 'utf16le')]));
178
+ await environment.run('schtasks', ['/End', '/TN', windowsTaskName(kind)]);
179
+ await must(environment, 'schtasks', ['/Create', '/TN', windowsTaskName(kind), '/XML', definition, '/F'], 'schtasks /Create');
180
+ await must(environment, 'schtasks', ['/Run', '/TN', windowsTaskName(kind)], 'schtasks /Run');
181
+ break;
182
+ }
183
+ }
184
+ /** Match the launcher argument, not a substring belonging to another installation. */
185
+ export function windowsStopServiceScript(appDir, kind = 'agents') {
186
+ const launcher = servicePaths(appDir, kind).launcher.replace(/'/g, "''");
187
+ return `
188
+ $ErrorActionPreference = 'Stop'
189
+ $launcher = '${launcher}'
190
+ $pattern = '^\\s*(?:"[^"\\r\\n]+"|[^\\s"]+)\\s+(?:"' + [regex]::Escape($launcher) + '"|' + [regex]::Escape($launcher) + ')(?:\\s|$)'
191
+ $all = @(Get-CimInstance Win32_Process)
192
+ $tree = [System.Collections.Generic.List[object]]::new()
193
+ foreach ($p in $all) {
194
+ if ($p.Name -ieq 'node.exe' -and $p.CommandLine -match $pattern) { $tree.Add($p) }
195
+ }
196
+ # Snapshot descendants before stopping their parents, which otherwise loses the tree.
197
+ for ($i = 0; $i -lt $tree.Count; $i++) {
198
+ foreach ($p in $all) {
199
+ if ($p.ParentProcessId -eq $tree[$i].ProcessId -and $p.ProcessId -notin $tree.ProcessId) { $tree.Add($p) }
200
+ }
201
+ }
202
+ # Parent first prevents the supervisor from restarting a listener during teardown.
203
+ foreach ($p in $tree) {
204
+ $live = Get-CimInstance Win32_Process -Filter ("ProcessId = " + $p.ProcessId)
205
+ if ($null -ne $live -and $live.CreationDate -eq $p.CreationDate) {
206
+ Stop-Process -Id $p.ProcessId -Force -ErrorAction Stop
207
+ if (Get-Process -Id $p.ProcessId -ErrorAction SilentlyContinue) {
208
+ Wait-Process -Id $p.ProcessId -Timeout 10 -ErrorAction Stop
209
+ }
210
+ }
211
+ }
212
+ `;
213
+ }
214
+ async function stopWindowsServiceProcesses(environment, kind) {
215
+ await must(environment, 'powershell.exe', ['-NoProfile', '-NonInteractive', '-EncodedCommand',
216
+ Buffer.from(windowsStopServiceScript(environment.appDir, kind), 'utf16le').toString('base64')], `Stop ${kind} service processes`);
217
+ }
218
+ /** Stops the service and removes it; downloaded CLI versions and logs stay. */
219
+ export async function unregisterService(environment, kind) {
220
+ const definition = definitionPath(environment, kind);
221
+ switch (environment.platform) {
222
+ case 'darwin': {
223
+ const target = `gui/${environment.uid}/${launchdLabel(kind)}`;
224
+ const result = await environment.run('launchctl', ['bootout', target]);
225
+ if (result.code !== 0 && (await environment.run('launchctl', ['print', target])).code === 0)
226
+ throw new Error(`Could not stop ${target}: ${result.stderr.trim()}`);
227
+ break;
228
+ }
229
+ case 'linux':
230
+ if (existsSync(definition) || await serviceIsRunning(environment, kind))
231
+ await must(environment, 'systemctl', ['--user', 'disable', '--now', systemdUnitName(kind)], 'systemctl disable');
232
+ break;
233
+ case 'win32': {
234
+ const task = await environment.run('schtasks', ['/Query', '/TN', windowsTaskName(kind)]);
235
+ if (task.code === 0) {
236
+ await must(environment, 'schtasks', ['/Change', '/TN', windowsTaskName(kind), '/DISABLE'], `Disable ${kind} task`);
237
+ }
238
+ // /End only stops conhost on some Windows versions, leaving Node and its worker alive.
239
+ // Discover by launcher path even after a previous uninstall removed the config and task.
240
+ await stopWindowsServiceProcesses(environment, kind);
241
+ if (task.code === 0) {
242
+ await environment.run('schtasks', ['/End', '/TN', windowsTaskName(kind)]);
243
+ await must(environment, 'schtasks', ['/Delete', '/TN', windowsTaskName(kind), '/F'], `Delete ${kind} task`);
244
+ }
245
+ break;
246
+ }
247
+ }
248
+ const existed = existsSync(definition) || existsSync(servicePaths(environment.appDir, kind).config);
249
+ const paths = servicePaths(environment.appDir, kind);
250
+ for (const path of [definition, paths.config, paths.launcher])
251
+ await rm(path, { force: true });
252
+ if (environment.platform === 'linux')
253
+ await environment.run('systemctl', ['--user', 'daemon-reload']);
254
+ return existed;
255
+ }
256
+ /** The end of the listener's log, and of the service manager's output when the listener could not start. */
257
+ export async function serviceLogs(appDir, lines, kind = 'agents') {
258
+ const paths = servicePaths(appDir, kind);
259
+ const tail = async (path) => {
260
+ try {
261
+ return (await readFile(path, 'utf8')).trimEnd().split('\n').slice(-lines).join('\n');
262
+ }
263
+ catch {
264
+ return '';
265
+ }
266
+ };
267
+ const [log, output] = [await tail(paths.log), await tail(paths.output)];
268
+ return [log, output ? `--- ${paths.output}\n${output}` : ''].filter(Boolean).join('\n') || `The ${kind} service has not written a log yet.`;
269
+ }
270
+ export async function serviceIsRunning(environment, kind) {
271
+ switch (environment.platform) {
272
+ case 'darwin': {
273
+ const result = await environment.run('launchctl', ['print', `gui/${environment.uid}/${launchdLabel(kind)}`]);
274
+ return result.code === 0 && /^\s*state = running$/m.test(result.stdout);
275
+ }
276
+ case 'linux':
277
+ return (await environment.run('systemctl', ['--user', 'is-active', systemdUnitName(kind)])).code === 0;
278
+ case 'win32': {
279
+ const result = await environment.run('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command',
280
+ `(Get-ScheduledTask -TaskPath '\\' -TaskName '${windowsTaskName(kind)}' -ErrorAction Stop).State.ToString()`]);
281
+ return result.code === 0 && result.stdout.trim() === 'Running';
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,74 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { mkdir, rename, rm, writeFile } from 'node:fs/promises';
3
+ import { dirname, join, resolve } from 'node:path';
4
+ import { pathToFileURL } from 'node:url';
5
+ import { installVersion, versionEntry } from './agents-update.js';
6
+ import { readCliVersion } from './help.js';
7
+ import { definitionPath, registerService, serviceIsRunning, serviceLogs, servicePaths, unregisterService } from './service-manager.js';
8
+ export const TEAMS_SERVICE_ENV = 'SKILLSHARE_TEAMS_SERVICE';
9
+ export async function installTeamsService(env, server, flags, install = installVersion) {
10
+ const args = ['teams', 'watch', '--server', server];
11
+ if (flags.browser) {
12
+ if (!['chrome', 'msedge', 'chromium'].includes(flags.browser))
13
+ throw new Error('--browser must be chrome, msedge or chromium.');
14
+ args.push('--browser', flags.browser);
15
+ }
16
+ if (flags['browser-profile'])
17
+ args.push('--browser-profile', resolve(flags['browser-profile']));
18
+ if (flags.headless !== undefined) {
19
+ if (flags.headless !== 'true' && flags.headless !== 'false')
20
+ throw new Error('--headless must be true or false.');
21
+ args.push(`--headless=${flags.headless}`);
22
+ }
23
+ // The listener prunes its own CLI versions after an update. Keep the watcher's runtime independent.
24
+ const runtime = join(env.appDir, 'teams-service');
25
+ const version = readCliVersion();
26
+ await install(runtime, version);
27
+ const entry = versionEntry(runtime, version);
28
+ const paths = servicePaths(env.appDir, 'teams');
29
+ await mkdir(dirname(paths.output), { recursive: true, mode: 0o700 });
30
+ await writeFile(paths.output, '', { flag: 'a', mode: 0o600 });
31
+ const launcher = `// Written by skillshare teams service install.
32
+ process.env.${TEAMS_SERVICE_ENV} = '1'
33
+ process.argv = [process.execPath, ...${JSON.stringify([entry, ...args])}]
34
+ await import(${JSON.stringify(pathToFileURL(entry).href)})
35
+ `;
36
+ const temporary = `${paths.launcher}.${process.pid}.tmp`;
37
+ try {
38
+ await writeFile(temporary, launcher, { mode: 0o600 });
39
+ await rename(temporary, paths.launcher);
40
+ }
41
+ finally {
42
+ await rm(temporary, { force: true });
43
+ }
44
+ await registerService(env, 'teams', process.execPath);
45
+ }
46
+ export async function runTeamsServiceCommand(env, action, flags, server) {
47
+ switch (action) {
48
+ case 'install':
49
+ if (!server)
50
+ throw new Error('teams service install needs a Skillshare server.');
51
+ await installTeamsService(env, server, flags);
52
+ console.log('Installed Teams session renewal. It starts now and at every login. Check it with skillshare teams service status.');
53
+ return;
54
+ case 'status':
55
+ if (!existsSync(definitionPath(env, 'teams')))
56
+ console.log('The Teams service is not installed.');
57
+ else
58
+ console.log(await serviceIsRunning(env, 'teams') ? 'The Teams service is running.'
59
+ : 'The Teams service is installed but not running. See skillshare teams service logs.');
60
+ return;
61
+ case 'logs': {
62
+ const lines = Number(flags.lines ?? 50);
63
+ if (!Number.isInteger(lines) || lines < 1)
64
+ throw new Error('--lines must be a positive number.');
65
+ console.log(await serviceLogs(env.appDir, lines, 'teams'));
66
+ return;
67
+ }
68
+ case 'uninstall':
69
+ console.log(await unregisterService(env, 'teams') ? 'The Teams service was removed.' : 'The Teams service was not installed.');
70
+ return;
71
+ default:
72
+ throw new Error('teams service requires install, status, logs or uninstall.');
73
+ }
74
+ }
@@ -9,10 +9,14 @@ export async function watchTeamsConnection(options) {
9
9
  try {
10
10
  const status = await options.readStatus();
11
11
  if (!status.connectionId) {
12
- options.onProgress?.('Teams is disconnected. Watch stopped; run skillshare teams login before starting it again.');
13
- return;
12
+ if (!options.waitForConnection) {
13
+ options.onProgress?.('Teams is disconnected. Watch stopped; run skillshare teams login before starting it again.');
14
+ return;
15
+ }
16
+ retryAt = 0;
17
+ warned = false;
14
18
  }
15
- if (status.requiresReconnect && now() >= retryAt) {
19
+ else if (status.requiresReconnect && now() >= retryAt) {
16
20
  options.onProgress?.('Microsoft needs a new Teams session. Renewing it through local browser SSO.');
17
21
  // Conditional import prevents a disconnect or another login during capture from being overwritten.
18
22
  await options.reconnect(status.connectionId);
package/dist/teams.js CHANGED
@@ -67,7 +67,7 @@ export async function watchTeamsInBackground(client, flags, appDirectory, signal
67
67
  await watchTeamsConnection({ readStatus: () => client.get(`${root}/settings`),
68
68
  reconnect: teamsConnector(client, flags, appDirectory, user, objectId, true, signal, log), signal, onProgress: log });
69
69
  }
70
- export async function runTeamsCommand(client, args, flags, appDirectory) {
70
+ export async function runTeamsCommand(client, args, flags, appDirectory, serviceLog) {
71
71
  // Browser credentials may be uploaded only over HTTPS, with HTTP reserved for loopback development.
72
72
  assertCredentialDestination(client.baseUrl);
73
73
  const action = args[0];
@@ -77,7 +77,7 @@ export async function runTeamsCommand(client, args, flags, appDirectory) {
77
77
  if (!resolvedObjectId)
78
78
  throw new Error(UNLINKED_ACCOUNT_MESSAGE);
79
79
  const abort = new AbortController();
80
- const connect = teamsConnector(client, flags, appDirectory, user, resolvedObjectId, action === 'watch', abort.signal, console.log);
80
+ const connect = teamsConnector(client, flags, appDirectory, user, resolvedObjectId, action === 'watch', abort.signal, serviceLog ?? console.log);
81
81
  if (action === 'login') {
82
82
  await connect();
83
83
  console.log(`Teams connected. Skillshare refreshes tokens automatically. Use skillshare teams watch for renewed browser SSO after session expiry.`);
@@ -88,9 +88,12 @@ export async function runTeamsCommand(client, args, flags, appDirectory) {
88
88
  process.once('SIGINT', stop);
89
89
  process.once('SIGTERM', stop);
90
90
  try {
91
- console.log('Watching Teams session. Server refreshes access tokens; this process renews expired grants through local SSO. Press Ctrl+C to stop.');
91
+ if (serviceLog)
92
+ serviceLog('Watching Teams session for renewal through local browser SSO.');
93
+ else
94
+ console.log('Watching Teams session. Server refreshes access tokens; this process renews expired grants through local SSO. Press Ctrl+C to stop.');
92
95
  await watchTeamsConnection({ readStatus: () => client.get(`${root}/settings`), reconnect: connect,
93
- signal: abort.signal, onProgress: console.log });
96
+ signal: abort.signal, waitForConnection: !!serviceLog, onProgress: serviceLog ?? console.log });
94
97
  }
95
98
  finally {
96
99
  process.removeListener('SIGINT', stop);
@@ -179,7 +182,7 @@ export async function runTeamsCommand(client, args, flags, appDirectory) {
179
182
  console.log(`Downloaded to ${path}`);
180
183
  return;
181
184
  }
182
- throw new Error('teams requires login, watch, logout, status, test, access, upload or download.');
185
+ throw new Error('teams requires login, watch, service, logout, status, test, access, upload or download.');
183
186
  }
184
187
  export function assertCredentialDestination(value) {
185
188
  const url = new URL(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadient/skillshare",
3
- "version": "1.20.3",
3
+ "version": "1.22.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-runtime.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-process.test.ts agents-probe.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"
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-runtime.test.ts pages-backups.test.ts pages-comments.test.ts news.test.ts pages-dev.test.ts teams-auth.test.ts teams-watch.test.ts teams-service.test.ts teams-browser.test.ts salesforce.test.ts agents.test.ts agents-detection.test.ts agents-process.test.ts agents-probe.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"