ask-marcel-office-cli 1.5.1 → 2.0.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +85 -3
  2. package/README.md +21 -58
  3. package/dist/cli.js +1620 -1753
  4. package/dist/commands.json +385 -277
  5. package/dist/composition/build-deps.d.ts +7 -8
  6. package/dist/composition/cli.d.ts +5 -4
  7. package/dist/domain/iso-datetime.d.ts +1 -1
  8. package/dist/index.js +1503 -1640
  9. package/dist/infra/auth.d.ts +6 -20
  10. package/dist/infra/browser-auth.d.ts +11 -12
  11. package/dist/infra/graph-client.d.ts +2 -2
  12. package/dist/presenter/error-hints.d.ts +9 -9
  13. package/dist/use-cases/commands/build-command.d.ts +1 -1
  14. package/dist/use-cases/commands/command-types.d.ts +5 -5
  15. package/dist/use-cases/commands/create-reply-draft.d.ts +14 -0
  16. package/dist/use-cases/commands/docs.d.ts +1 -1
  17. package/dist/use-cases/commands/get-schedule.d.ts +11 -0
  18. package/dist/use-cases/commands/graph-scopes.d.ts +1 -1
  19. package/dist/use-cases/commands/iso-datetime-schema.d.ts +1 -1
  20. package/dist/use-cases/commands/markdown-pipeline.d.ts +5 -5
  21. package/dist/use-cases/commands/option-descriptions.d.ts +1 -1
  22. package/dist/use-cases/commands/output-path.d.ts +4 -4
  23. package/dist/use-cases/commands/zip-archive-to-markdown.d.ts +1 -1
  24. package/dist/use-cases/ports/filesystem.d.ts +1 -1
  25. package/docs/COMMANDS.md +14 -12
  26. package/docs/USAGE.md +23 -23
  27. package/package.json +3 -4
  28. package/dist/composition/env.d.ts +0 -2
  29. package/dist/infra/system-browser-auth.d.ts +0 -35
  30. package/dist/infra/system-browser-loader.d.ts +0 -3
  31. package/dist/infra/token-callback-server.d.ts +0 -31
  32. package/docs/commands.json +0 -7677
@@ -13,15 +13,14 @@ export type BuildDepsConfig = {
13
13
  readonly createAuth?: typeof createAuthManager;
14
14
  };
15
15
  /**
16
- * Builds an AuthManager configured for an interactive `login` run. The login
17
- * command varies the browser strategy at runtime (`--use-extension`), so the
18
- * composition root hands the CLI a factory rather than a single pre-built
19
- * manager — keeping the concrete `createAuthManager` wiring (cache path, env)
20
- * out of `cli.ts` and the action testable with an injected fake.
16
+ * Builds an AuthManager configured for an interactive `login` run unlike
17
+ * the command-path manager it may recapture the secondary (elevated /
18
+ * chatsvcagg / ic3) tokens via the browser. The composition root hands the
19
+ * CLI a factory rather than a single pre-built manager — keeping the concrete
20
+ * `createAuthManager` wiring (cache path, env) out of `cli.ts` and the action
21
+ * testable with an injected fake.
21
22
  */
22
- export type LoginAuthFactory = (opts: {
23
- readonly useExtension: boolean;
24
- }) => AuthManager;
23
+ export type LoginAuthFactory = () => AuthManager;
25
24
  export type BuiltDeps = Readonly<{
26
25
  logger: Logger;
27
26
  auth: AuthManager;
@@ -15,10 +15,11 @@ type BuildCliDeps = {
15
15
  readonly packageManager?: 'npm' | 'bun';
16
16
  readonly onCommandError?: () => void;
17
17
  /**
18
- * Builds the AuthManager for an interactive `login` run from the `--use-extension`
19
- * flag. Supplied by the composition root (`build-deps.ts`); when omitted (tests),
20
- * the login action falls back to the injected `auth`, so a single fake drives both
21
- * `login.execute` and `getLastElevatedOutcome`.
18
+ * Builds the AuthManager for an interactive `login` run (it may recapture
19
+ * secondary tokens via the browser, unlike the command-path `auth`).
20
+ * Supplied by the composition root (`build-deps.ts`); when omitted (tests),
21
+ * the login action falls back to the injected `auth`, so a single fake
22
+ * drives both `login.execute` and `getLastElevatedOutcome`.
22
23
  */
23
24
  readonly makeLoginAuth?: LoginAuthFactory;
24
25
  };
@@ -5,7 +5,7 @@ import type { Result } from './result.js';
5
5
  * built from a calendar-window parameter accepts this type so an unvalidated
6
6
  * `string` can't slip through.
7
7
  *
8
- * Audit Jane-session §C: the previous calendar commands accepted any
8
+ * the previous calendar commands accepted any
9
9
  * `z.string().min(1)`, so the LLM had to compute "last week" → ISO by hand.
10
10
  * `parseIsoDateTime` turns "7d" / "monday" / "today" / "2026-04-01" / a strict
11
11
  * ISO timestamp into the canonical ISO form, so the URL builders stay