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.
- package/CHANGELOG.md +85 -3
- package/README.md +21 -58
- package/dist/cli.js +1620 -1753
- package/dist/commands.json +385 -277
- package/dist/composition/build-deps.d.ts +7 -8
- package/dist/composition/cli.d.ts +5 -4
- package/dist/domain/iso-datetime.d.ts +1 -1
- package/dist/index.js +1503 -1640
- package/dist/infra/auth.d.ts +6 -20
- package/dist/infra/browser-auth.d.ts +11 -12
- package/dist/infra/graph-client.d.ts +2 -2
- package/dist/presenter/error-hints.d.ts +9 -9
- package/dist/use-cases/commands/build-command.d.ts +1 -1
- package/dist/use-cases/commands/command-types.d.ts +5 -5
- package/dist/use-cases/commands/create-reply-draft.d.ts +14 -0
- package/dist/use-cases/commands/docs.d.ts +1 -1
- package/dist/use-cases/commands/get-schedule.d.ts +11 -0
- package/dist/use-cases/commands/graph-scopes.d.ts +1 -1
- package/dist/use-cases/commands/iso-datetime-schema.d.ts +1 -1
- package/dist/use-cases/commands/markdown-pipeline.d.ts +5 -5
- package/dist/use-cases/commands/option-descriptions.d.ts +1 -1
- package/dist/use-cases/commands/output-path.d.ts +4 -4
- package/dist/use-cases/commands/zip-archive-to-markdown.d.ts +1 -1
- package/dist/use-cases/ports/filesystem.d.ts +1 -1
- package/docs/COMMANDS.md +14 -12
- package/docs/USAGE.md +23 -23
- package/package.json +3 -4
- package/dist/composition/env.d.ts +0 -2
- package/dist/infra/system-browser-auth.d.ts +0 -35
- package/dist/infra/system-browser-loader.d.ts +0 -3
- package/dist/infra/token-callback-server.d.ts +0 -31
- 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
|
|
17
|
-
* command
|
|
18
|
-
*
|
|
19
|
-
* manager — keeping the concrete
|
|
20
|
-
* out of `cli.ts` and the action
|
|
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 = (
|
|
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
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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
|
-
*
|
|
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
|