ticketlens 0.38.9 → 0.38.11

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.
@@ -262,11 +262,13 @@ switch (command) {
262
262
  if (cmdArgs.includes('--help') || cmdArgs.includes('-h')) { printLicenseHelp(); break; }
263
263
  const s = createStyler({ isTTY: process.stdout.isTTY });
264
264
  const status = checkLicense();
265
+ const hasLicense = Boolean(status.key);
265
266
  const daysSinceVal = status.validatedAt
266
267
  ? (Date.now() - new Date(status.validatedAt)) / 86400000
267
268
  : Infinity;
268
- // Grace period: treat as inactive if not revalidated within 30 days
269
- const graceExpired = daysSinceVal > 30;
269
+ // Grace period: treat as inactive if not revalidated within 30 days — only applies
270
+ // once a license has actually been activated (never conflate "never had one" with "lapsed").
271
+ const graceExpired = hasLicense && daysSinceVal > 30;
270
272
  process.stdout.write('\n');
271
273
  if (status.active && !graceExpired) {
272
274
  process.stdout.write(` ${s.green('●')} ${s.bold('License active')}\n\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ticketlens",
3
- "version": "0.38.9",
3
+ "version": "0.38.11",
4
4
  "description": "Jira CLI for developers — fetch ticket context, triage your queue, and stop tab-switching. Zero dependencies, all local.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -224,7 +224,11 @@ function requireTicketKey(cmdArgs, usage, stream) {
224
224
  */
225
225
  function resolveTicketAdapter(ticketKey, cmdArgs, { configDir, resolveConnectionFn, resolveAdapterFn, stream }) {
226
226
  const profileName = parseFlag(cmdArgs, 'profile');
227
- const conn = resolveConnectionFn(ticketKey, { configDir, profileName });
227
+ const conn = resolveConnectionFn(ticketKey, {
228
+ configDir,
229
+ profileName,
230
+ onWarning: (msg) => stream.write(` ⚠ ${msg}\n`),
231
+ });
228
232
  if (!conn.baseUrl) {
229
233
  stream.write(ticketKey
230
234
  ? ` No connection configured for ${ticketKey}. Run \`ticketlens init\`.\n`