ask-marcel-office-cli 2.2.0 → 2.3.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 +80 -0
- package/dist/cli.js +254 -348
- package/dist/commands.json +70 -717
- package/dist/composition/run-registry-command.d.ts +12 -3
- package/dist/index.js +203 -266
- package/dist/presenter/output.d.ts +2 -2
- package/dist/presenter/render-to-string.d.ts +34 -2
- package/dist/use-cases/commands/command-types.d.ts +1 -20
- package/dist/use-cases/commands/create-forward-draft.d.ts +1 -1
- package/dist/use-cases/commands/create-reply-draft.d.ts +1 -1
- package/dist/use-cases/commands/docs-render.d.ts +0 -1
- package/dist/use-cases/commands/draft-comment-splicer.d.ts +8 -1
- package/dist/use-cases/commands/list-mail-folder-messages-delta.d.ts +10 -2
- package/dist/use-cases/commands/reject-unknown-params.d.ts +16 -0
- package/dist/use-cases/commands/resolve-command.d.ts +7 -9
- package/dist/use-cases/commands/search-onenote-pages.d.ts +1 -1
- package/dist/use-cases/commands/update-mail-draft.d.ts +4 -0
- package/docs/COMMANDS.md +7 -7
- package/package.json +1 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import type { GraphClient } from '../infra/graph-client.js';
|
|
2
2
|
import type { ErrorSource } from '../presenter/error-hints.js';
|
|
3
|
+
import type { RenderSurface, SizeHintContext } from '../presenter/render-to-string.js';
|
|
3
4
|
import type { Command } from '../use-cases/commands/command-types.js';
|
|
4
5
|
import type { OutputDirError, OutputPathError } from '../use-cases/commands/output-path.js';
|
|
5
6
|
import type { Result } from '../domain/result.js';
|
|
6
7
|
import type { FileSystem } from '../use-cases/ports/filesystem.js';
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The facts the oversized-response banner needs to name a remedy this caller
|
|
10
|
+
* can actually use. Derived from the manifest, so a new command gets an honest
|
|
11
|
+
* banner for free. See `SizeHintContext` in the presenter for the why.
|
|
12
|
+
*/
|
|
13
|
+
declare const buildSizeHintContext: (commandName: string, command: Command, surface: RenderSurface) => SizeHintContext;
|
|
14
|
+
declare const formatOutputPathError: (error: OutputPathError, commandName: string, surface: RenderSurface) => string;
|
|
8
15
|
declare const formatOutputDirError: (error: OutputDirError, commandName: string) => string;
|
|
9
16
|
export type RunRegistryCommandDeps = {
|
|
10
17
|
readonly graph: GraphClient;
|
|
@@ -14,10 +21,12 @@ export type RunRegistryCommandRequest = {
|
|
|
14
21
|
/** Canonical registry name — drives the manifest-derived error messages. */
|
|
15
22
|
readonly name: string;
|
|
16
23
|
readonly command: Command;
|
|
17
|
-
/** Raw params,
|
|
24
|
+
/** Raw params, keyed by the canonical camelCase option keys. */
|
|
18
25
|
readonly params: Record<string, string>;
|
|
19
26
|
readonly outputPath?: string;
|
|
20
27
|
readonly outputDir?: string;
|
|
28
|
+
/** Which front end asked. Decides whether a remedy may mention a shell. */
|
|
29
|
+
readonly surface: RenderSurface;
|
|
21
30
|
};
|
|
22
31
|
/**
|
|
23
32
|
* `source` / `code` / `retryAfterSeconds` are optional on purpose: the
|
|
@@ -31,4 +40,4 @@ export type RunRegistryCommandFailure = {
|
|
|
31
40
|
readonly retryAfterSeconds?: number;
|
|
32
41
|
};
|
|
33
42
|
export declare const runRegistryCommand: (deps: RunRegistryCommandDeps, request: RunRegistryCommandRequest) => Promise<Result<unknown, RunRegistryCommandFailure>>;
|
|
34
|
-
export { formatOutputDirError, formatOutputPathError };
|
|
43
|
+
export { buildSizeHintContext, formatOutputDirError, formatOutputPathError };
|