@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/CHANGELOG.md +7 -0
- package/README.md +5 -3
- package/dist/commands-auth.js +3 -2
- package/dist/commands-auth.js.map +1 -1
- package/dist/commands-devices.js +5 -1
- package/dist/commands-devices.js.map +1 -1
- package/dist/commands-hooks.d.ts +2 -0
- package/dist/commands-hooks.js +10 -4
- package/dist/commands-hooks.js.map +1 -1
- package/dist/commands-init.js +18 -13
- package/dist/commands-init.js.map +1 -1
- package/package.json +1 -1
- package/src/commands-auth.ts +3 -2
- package/src/commands-devices.test.ts +15 -0
- package/src/commands-devices.ts +5 -1
- package/src/commands-hooks.ts +12 -6
- package/src/commands-init.ts +24 -14
- package/src/commands.test.ts +89 -26
- package/src/onboarding-docs.test.ts +25 -0
- package/src/skill.test.ts +10 -1
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
|
-
|
|
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
|
})
|