@raidiant/notifai 9.2.0 → 9.2.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/src/skill.test.ts CHANGED
@@ -309,7 +309,14 @@ describe('Notifai agent skill', () => {
309
309
  expect(setup).toMatch(/never tell the\s+user to run a command you could have run/i)
310
310
  expect(setup).toMatch(/browser/i)
311
311
  expect(setup).toMatch(/companion/i)
312
- expect(setup).toContain('notifai init --json')
312
+ const decisions = setup.search(/both user decisions/i)
313
+ const init = setup.indexOf('notifai init --setup-scope')
314
+ expect(decisions).toBeGreaterThan(0)
315
+ expect(init).toBeGreaterThan(decisions)
316
+ expect(setup).toMatch(/setup scope[\s\S]*this project[\s\S]*every project here/i)
317
+ expect(setup).toMatch(/Question Routing[\s\S]*devices[\s\S]*terminal/i)
318
+ expect(setup).toContain('<--hooks|--no-hooks>')
319
+ expect(setup).not.toMatch(/```bash\s+notifai init --json/m)
313
320
  expect(setup).toMatch(/do not follow a successful structured init\s+with doctor/i)
314
321
  expect(setup).toContain('--setup-scope')
315
322
  })
@@ -389,6 +396,8 @@ describe('Notifai agent skill', () => {
389
396
  }
390
397
  // The agent runs what a process can run; the human only does the human part.
391
398
  expect(harnessReference).toMatch(/let init install and assess\s+the hooks/i)
399
+ expect(harnessReference).toContain('--setup-scope <project|global>')
400
+ expect(harnessReference).not.toContain('--setup-scope project')
392
401
  expect(harnessReference).toMatch(/run `notifai login` yourself/i)
393
402
  expect(harnessReference).toMatch(/only the user can approve/i)
394
403
  })