@mediaproc/core 1.8.0 → 1.10.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/dist/explain/constants/commonPhrases.d.ts +2 -1
- package/dist/explain/constants/commonPhrases.d.ts.map +1 -1
- package/dist/explain/constants/commonPhrases.js +75 -50
- package/dist/explain/constants/commonPhrases.js.map +1 -1
- package/dist/explain/explainFlag.d.ts.map +1 -1
- package/dist/explain/explainFlag.js +88 -62
- package/dist/explain/explainFlag.js.map +1 -1
- package/dist/explain/formatters/explainFormatter.d.ts.map +1 -0
- package/dist/explain/{formatter → formatters}/explainFormatter.js +10 -2
- package/dist/explain/formatters/explainFormatter.js.map +1 -0
- package/dist/explain/index.d.ts +2 -2
- package/dist/explain/index.d.ts.map +1 -1
- package/dist/explain/index.js +2 -2
- package/dist/explain/index.js.map +1 -1
- package/dist/explain/phrases/{phrases.d.ts → basePhrases.d.ts} +1 -1
- package/dist/explain/phrases/basePhrases.d.ts.map +1 -0
- package/dist/explain/phrases/{phrases.js → basePhrases.js} +1 -1
- package/dist/explain/phrases/basePhrases.js.map +1 -0
- package/dist/explain/phrases/explainSentences.d.ts +20 -29
- package/dist/explain/phrases/explainSentences.d.ts.map +1 -1
- package/dist/explain/phrases/explainSentences.js +43 -58
- package/dist/explain/phrases/explainSentences.js.map +1 -1
- package/dist/explain/templates/explainAuditTemplate.d.ts +2 -0
- package/dist/explain/templates/explainAuditTemplate.d.ts.map +1 -0
- package/dist/explain/templates/explainAuditTemplate.js +6 -0
- package/dist/explain/templates/explainAuditTemplate.js.map +1 -0
- package/dist/explain/templates/explainDebugTemplate.d.ts +2 -0
- package/dist/explain/templates/explainDebugTemplate.d.ts.map +1 -0
- package/dist/explain/templates/explainDebugTemplate.js +6 -0
- package/dist/explain/templates/explainDebugTemplate.js.map +1 -0
- package/dist/explain/templates/explainDetailsTemplate.d.ts.map +1 -1
- package/dist/explain/templates/explainDetailsTemplate.js +49 -145
- package/dist/explain/templates/explainDetailsTemplate.js.map +1 -1
- package/dist/explain/templates/explainHumanTemplate.d.ts.map +1 -1
- package/dist/explain/templates/explainHumanTemplate.js +48 -146
- package/dist/explain/templates/explainHumanTemplate.js.map +1 -1
- package/dist/types/explainTypes.d.ts +124 -60
- package/dist/types/explainTypes.d.ts.map +1 -1
- package/dist/types/explainTypes.js +3 -0
- package/dist/types/explainTypes.js.map +1 -1
- package/dist/utils/file/fileDetection.d.ts +1 -1
- package/dist/utils/file/fileDetection.d.ts.map +1 -1
- package/dist/utils/file/fileDetection.js +5 -5
- package/dist/utils/file/fileDetection.js.map +1 -1
- package/package.json +1 -1
- package/dist/explain/formatter/explainFormatter.d.ts.map +0 -1
- package/dist/explain/formatter/explainFormatter.js.map +0 -1
- package/dist/explain/phrases/phrases.d.ts.map +0 -1
- package/dist/explain/phrases/phrases.js.map +0 -1
- /package/dist/explain/{formatter → formatters}/explainFormatter.d.ts +0 -0
|
@@ -2,26 +2,25 @@ export declare const explainSentences: {
|
|
|
2
2
|
header: () => string;
|
|
3
3
|
detailsHeader: () => string;
|
|
4
4
|
summaryHeader: () => string;
|
|
5
|
-
commandType: () => string;
|
|
6
|
-
commandCategory: () => string;
|
|
5
|
+
commandType: () => string | undefined;
|
|
6
|
+
commandCategory: () => string | undefined;
|
|
7
7
|
commandPurpose: () => string;
|
|
8
8
|
commandInputs: () => string;
|
|
9
9
|
commandOutputs: () => string;
|
|
10
|
-
commandFlags: () => string;
|
|
10
|
+
commandFlags: () => string | undefined;
|
|
11
11
|
commandOptions: () => string;
|
|
12
|
-
commandPerformance: () => string;
|
|
13
|
-
commandSecurity: () => string;
|
|
14
|
-
commandDependencies: () => string;
|
|
15
|
-
commandSideEffects: () => string;
|
|
16
|
-
commandWarnings: () => string;
|
|
17
|
-
commandLimitations: () => string;
|
|
18
|
-
commandExamples: () => string;
|
|
19
|
-
commandDocs: () => string;
|
|
20
|
-
commandAuthor: () => string;
|
|
21
|
-
commandVersion: () => string;
|
|
22
|
-
commandLastModified: () => string;
|
|
23
|
-
commandRelated: () => string;
|
|
24
|
-
explainOnly: () => string;
|
|
12
|
+
commandPerformance: () => string | undefined;
|
|
13
|
+
commandSecurity: () => string | undefined;
|
|
14
|
+
commandDependencies: () => string | undefined;
|
|
15
|
+
commandSideEffects: () => string | undefined;
|
|
16
|
+
commandWarnings: () => string | undefined;
|
|
17
|
+
commandLimitations: () => string | undefined;
|
|
18
|
+
commandExamples: () => string | undefined;
|
|
19
|
+
commandDocs: () => string | undefined;
|
|
20
|
+
commandAuthor: () => string | undefined;
|
|
21
|
+
commandVersion: () => string | undefined;
|
|
22
|
+
commandLastModified: () => string | undefined;
|
|
23
|
+
commandRelated: () => string | undefined;
|
|
25
24
|
contextEnrichmentPrefix: () => string;
|
|
26
25
|
user: () => string;
|
|
27
26
|
platform: () => string;
|
|
@@ -59,6 +58,8 @@ export declare const explainSentences: {
|
|
|
59
58
|
streamProcessing: (context: any) => string;
|
|
60
59
|
pipelineExecution: (context: any) => string;
|
|
61
60
|
pluginAction: (context: any) => string;
|
|
61
|
+
detectedInputFiles: (context: any) => string;
|
|
62
|
+
detectedOutputFiles: (context: any) => string;
|
|
62
63
|
errorHandling: () => string;
|
|
63
64
|
validation: () => string;
|
|
64
65
|
outputPreview: () => string;
|
|
@@ -69,21 +70,11 @@ export declare const explainSentences: {
|
|
|
69
70
|
summaryPartial: () => string;
|
|
70
71
|
warningDeprecated: (flag: string) => string;
|
|
71
72
|
warningIgnored: (flag: string) => string;
|
|
73
|
+
explainOnlySummary: () => string;
|
|
74
|
+
explainOnlySummaryWithWarnings: () => string;
|
|
75
|
+
explainOnlySummaryWithErrors: () => string;
|
|
72
76
|
tipDetails: () => string;
|
|
73
77
|
tipJson: () => string;
|
|
74
78
|
tipHuman: () => string | undefined;
|
|
75
|
-
inputContext: (inputPath: string, fileCount: number, fileType: string) => string;
|
|
76
|
-
actions: (actions: string[]) => string;
|
|
77
|
-
technicalDetails: (details: string[]) => string;
|
|
78
|
-
executionWorkflow: (steps: string[]) => string;
|
|
79
|
-
flagsResolved: (flags: {
|
|
80
|
-
name: string;
|
|
81
|
-
value: string;
|
|
82
|
-
source: string;
|
|
83
|
-
}[]) => string;
|
|
84
|
-
technicalContext: (engine: string, mode: string, count: number, fileType: string) => string;
|
|
85
|
-
batchProcessing: (isBatch: boolean) => "" | "Batch mode: Each input will be processed independently. Errors in one will not stop others.";
|
|
86
|
-
safeguards: (safeguards: string[]) => string;
|
|
87
|
-
summary: (count: number, fileType: string, operation: string, outputPath: string) => string;
|
|
88
79
|
};
|
|
89
80
|
//# sourceMappingURL=explainSentences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainSentences.d.ts","sourceRoot":"","sources":["../../../src/explain/phrases/explainSentences.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"explainSentences.d.ts","sourceRoot":"","sources":["../../../src/explain/phrases/explainSentences.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA4BN,MAAM;;;;uBAIR,MAAM;qBACR,MAAM;uBACJ,MAAM;;;;;;;;;;yBAWJ,GAAG;2BACD,GAAG;;;;;4BAKF,GAAG;gCACC,GAAG;gCACH,GAAG;6BACN,GAAG;;+BAED,GAAG;+BACH,GAAG;kCACA,GAAG;gCACL,GAAG;iCACF,GAAG;4BACR,GAAG;kCACG,GAAG;mCACF,GAAG;;;;;;;;;8BAUR,MAAM;2BACT,MAAM;;;;;;;CAS9B,CAAC"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { COMMON_PHRASES } from '../constants/commonPhrases.js';
|
|
2
2
|
export const explainSentences = {
|
|
3
|
-
// Section headers and static text
|
|
3
|
+
// Section headers and static text (now always full sentences)
|
|
4
4
|
header: () => COMMON_PHRASES.header,
|
|
5
5
|
detailsHeader: () => COMMON_PHRASES.detailsHeader,
|
|
6
6
|
summaryHeader: () => COMMON_PHRASES.summaryHeader,
|
|
7
|
-
commandType: () => COMMON_PHRASES.
|
|
8
|
-
commandCategory: () => COMMON_PHRASES.
|
|
9
|
-
commandPurpose: () => COMMON_PHRASES.
|
|
10
|
-
commandInputs: () => COMMON_PHRASES.
|
|
11
|
-
commandOutputs: () => COMMON_PHRASES.
|
|
12
|
-
commandFlags: () => COMMON_PHRASES.
|
|
13
|
-
commandOptions: () => COMMON_PHRASES.
|
|
14
|
-
commandPerformance: () => COMMON_PHRASES.
|
|
15
|
-
commandSecurity: () => COMMON_PHRASES.
|
|
16
|
-
commandDependencies: () => COMMON_PHRASES.
|
|
17
|
-
commandSideEffects: () => COMMON_PHRASES.
|
|
18
|
-
commandWarnings: () => COMMON_PHRASES.
|
|
19
|
-
commandLimitations: () => COMMON_PHRASES.
|
|
20
|
-
commandExamples: () => COMMON_PHRASES.
|
|
21
|
-
commandDocs: () => COMMON_PHRASES.
|
|
22
|
-
commandAuthor: () => COMMON_PHRASES.
|
|
23
|
-
commandVersion: () => COMMON_PHRASES.
|
|
24
|
-
commandLastModified: () => COMMON_PHRASES.
|
|
25
|
-
commandRelated: () => COMMON_PHRASES.
|
|
26
|
-
explainOnly: () => COMMON_PHRASES.explainOnly,
|
|
7
|
+
commandType: () => COMMON_PHRASES.commandRelatedOptions.type,
|
|
8
|
+
commandCategory: () => COMMON_PHRASES.commandRelatedOptions.category,
|
|
9
|
+
commandPurpose: () => COMMON_PHRASES.commandRelatedOptions.purpose,
|
|
10
|
+
commandInputs: () => COMMON_PHRASES.commandRelatedOptions.inputs,
|
|
11
|
+
commandOutputs: () => COMMON_PHRASES.commandRelatedOptions.outputs,
|
|
12
|
+
commandFlags: () => COMMON_PHRASES.commandRelatedOptions.flags,
|
|
13
|
+
commandOptions: () => COMMON_PHRASES.commandRelatedOptions.options,
|
|
14
|
+
commandPerformance: () => COMMON_PHRASES.commandRelatedOptions.performance,
|
|
15
|
+
commandSecurity: () => COMMON_PHRASES.commandRelatedOptions.security,
|
|
16
|
+
commandDependencies: () => COMMON_PHRASES.commandRelatedOptions.dependencies,
|
|
17
|
+
commandSideEffects: () => COMMON_PHRASES.commandRelatedOptions.sideEffects,
|
|
18
|
+
commandWarnings: () => COMMON_PHRASES.commandRelatedOptions.warnings,
|
|
19
|
+
commandLimitations: () => COMMON_PHRASES.commandRelatedOptions.limitations,
|
|
20
|
+
commandExamples: () => COMMON_PHRASES.commandRelatedOptions.examples,
|
|
21
|
+
commandDocs: () => COMMON_PHRASES.commandRelatedOptions.docs,
|
|
22
|
+
commandAuthor: () => COMMON_PHRASES.commandRelatedOptions.author,
|
|
23
|
+
commandVersion: () => COMMON_PHRASES.commandRelatedOptions.version,
|
|
24
|
+
commandLastModified: () => COMMON_PHRASES.commandRelatedOptions.lastModified,
|
|
25
|
+
commandRelated: () => COMMON_PHRASES.commandRelatedOptions.relatedCommands,
|
|
27
26
|
contextEnrichmentPrefix: () => COMMON_PHRASES.contextEnrichmentPrefix,
|
|
28
27
|
user: () => COMMON_PHRASES.user,
|
|
29
28
|
platform: () => COMMON_PHRASES.platform,
|
|
30
29
|
mode: () => COMMON_PHRASES.mode,
|
|
31
|
-
pluginInfo: (plugin) =>
|
|
30
|
+
pluginInfo: (plugin) => `This command uses the "${plugin}" plugin.`,
|
|
32
31
|
whatWillHappenHeader: () => COMMON_PHRASES.whatWillHappenHeader,
|
|
33
32
|
whyChoicesHeader: () => COMMON_PHRASES.whyChoicesHeader,
|
|
34
33
|
resultHeader: () => COMMON_PHRASES.resultHeader,
|
|
35
|
-
schemaVersion: (v) =>
|
|
36
|
-
exitCode: (code) =>
|
|
37
|
-
confidence: (conf) =>
|
|
34
|
+
schemaVersion: (v) => `Schema version: ${v}.`,
|
|
35
|
+
exitCode: (code) => `The process exited with code ${code}.`,
|
|
36
|
+
confidence: (conf) => `Confidence: ${conf}.`,
|
|
38
37
|
whatWillNotHappenHeader: () => COMMON_PHRASES.whatWillNotHappenHeader,
|
|
39
38
|
inputsOutputsHeader: () => COMMON_PHRASES.inputsOutputsHeader,
|
|
40
39
|
effectsHeader: () => COMMON_PHRASES.effectsHeader,
|
|
@@ -44,58 +43,44 @@ export const explainSentences = {
|
|
|
44
43
|
warningsHeader: () => COMMON_PHRASES.warningsHeader,
|
|
45
44
|
technicalDetailsHeader: () => COMMON_PHRASES.technicalDetailsHeader,
|
|
46
45
|
environmentHeader: () => COMMON_PHRASES.environmentHeader,
|
|
47
|
-
// Dynamic effect phrases
|
|
46
|
+
// Dynamic effect phrases (always return full sentences)
|
|
48
47
|
inputRead: (context) => COMMON_PHRASES.inputRead({ context }),
|
|
49
48
|
outputWrite: (context) => COMMON_PHRASES.outputWrite({ context }),
|
|
50
|
-
noNetwork: COMMON_PHRASES.noNetwork,
|
|
51
|
-
noOriginalModification: COMMON_PHRASES.noOriginalModification,
|
|
52
|
-
dataLocalOnly: COMMON_PHRASES.dataLocalOnly,
|
|
53
|
-
noBackgroundTasks: COMMON_PHRASES.noBackgroundTasks,
|
|
49
|
+
noNetwork: () => COMMON_PHRASES.noNetwork(),
|
|
50
|
+
noOriginalModification: () => COMMON_PHRASES.noOriginalModification(),
|
|
51
|
+
dataLocalOnly: () => COMMON_PHRASES.dataLocalOnly(),
|
|
52
|
+
noBackgroundTasks: () => COMMON_PHRASES.noBackgroundTasks(),
|
|
54
53
|
externalTool: (context) => COMMON_PHRASES.externalTool({ context }),
|
|
55
54
|
dimensionsChange: (context) => COMMON_PHRASES.dimensionsChange({ context }),
|
|
56
55
|
formatConversion: (context) => COMMON_PHRASES.formatConversion({ context }),
|
|
57
56
|
qualityChange: (context) => COMMON_PHRASES.qualityChange({ context }),
|
|
58
|
-
metadataPreserved: COMMON_PHRASES.metadataPreserved,
|
|
57
|
+
metadataPreserved: () => COMMON_PHRASES.metadataPreserved(),
|
|
59
58
|
audioProcessing: (context) => COMMON_PHRASES.audioProcessing({ context }),
|
|
60
59
|
videoProcessing: (context) => COMMON_PHRASES.videoProcessing({ context }),
|
|
61
60
|
documentProcessing: (context) => COMMON_PHRASES.documentProcessing({ context }),
|
|
62
61
|
streamProcessing: (context) => COMMON_PHRASES.streamProcessing({ context }),
|
|
63
62
|
pipelineExecution: (context) => COMMON_PHRASES.pipelineExecution({ context }),
|
|
64
63
|
pluginAction: (context) => COMMON_PHRASES.pluginAction({ context }),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
detectedInputFiles: (context) => COMMON_PHRASES.detectedInputFiles ? COMMON_PHRASES.detectedInputFiles({ context }) : '',
|
|
65
|
+
detectedOutputFiles: (context) => COMMON_PHRASES.detectedOutputFiles ? COMMON_PHRASES.detectedOutputFiles({ context }) : '',
|
|
66
|
+
errorHandling: () => COMMON_PHRASES.errorHandling(),
|
|
67
|
+
validation: () => COMMON_PHRASES.validation(),
|
|
68
|
+
outputPreview: () => COMMON_PHRASES.outputPreview(),
|
|
69
|
+
logging: () => COMMON_PHRASES.logging(),
|
|
70
|
+
cleanup: () => COMMON_PHRASES.cleanup(),
|
|
71
|
+
// Summary and warnings (full sentences)
|
|
71
72
|
summarySuccess: () => COMMON_PHRASES.summarySuccess,
|
|
72
73
|
summaryFailure: () => COMMON_PHRASES.summaryFailure,
|
|
73
74
|
summaryPartial: () => COMMON_PHRASES.summaryPartial,
|
|
74
75
|
warningDeprecated: (flag) => COMMON_PHRASES.warningDeprecated(flag),
|
|
75
76
|
warningIgnored: (flag) => COMMON_PHRASES.warningIgnored(flag),
|
|
76
|
-
//
|
|
77
|
+
// Explain-only summaries and warnings
|
|
78
|
+
explainOnlySummary: () => COMMON_PHRASES.explainOnlySummary,
|
|
79
|
+
explainOnlySummaryWithWarnings: () => COMMON_PHRASES.explainOnlySummaryWithWarnings,
|
|
80
|
+
explainOnlySummaryWithErrors: () => COMMON_PHRASES.explainOnlySummaryWithErrors,
|
|
81
|
+
// Tips (full sentences)
|
|
77
82
|
tipDetails: () => COMMON_PHRASES.tipDetails,
|
|
78
83
|
tipJson: () => COMMON_PHRASES.tipJson,
|
|
79
84
|
tipHuman: () => COMMON_PHRASES.tipHuman,
|
|
80
|
-
// Section logic using phrases
|
|
81
|
-
inputContext: (inputPath, fileCount, fileType) => `${COMMON_PHRASES.commandInputs} ${fileCount} ${fileType}${fileCount === 1 ? '' : 's'} from ${inputPath} will be processed.`,
|
|
82
|
-
actions: (actions) => actions.length > 0
|
|
83
|
-
? actions.map(a => `• ${a}`).join("\n")
|
|
84
|
-
: COMMON_PHRASES.commandPurpose,
|
|
85
|
-
technicalDetails: (details) => details.length > 0 ? details.join(", ") + '.' : '',
|
|
86
|
-
executionWorkflow: (steps) => steps.length > 0
|
|
87
|
-
? steps.map((s, i) => ` ${i + 1}. ${s}`).join("\n")
|
|
88
|
-
: COMMON_PHRASES.commandPurpose,
|
|
89
|
-
flagsResolved: (flags) => flags.length > 0
|
|
90
|
-
? flags.map(f => `• ${f.name}: ${f.value} (from ${f.source})`).join("\n")
|
|
91
|
-
: '',
|
|
92
|
-
technicalContext: (engine, mode, count, fileType) => `Engine: ${engine}, Mode: ${mode}, Inputs: ${count} ${fileType}${count === 1 ? '' : 's'}.`,
|
|
93
|
-
batchProcessing: (isBatch) => isBatch
|
|
94
|
-
? `Batch mode: Each input will be processed independently. Errors in one will not stop others.`
|
|
95
|
-
: '',
|
|
96
|
-
safeguards: (safeguards) => safeguards.length > 0
|
|
97
|
-
? safeguards.map(s => `• ${s}`).join("\n")
|
|
98
|
-
: '',
|
|
99
|
-
summary: (count, fileType, operation, outputPath) => `${count} ${fileType}${count === 1 ? '' : 's'} will be ${operation} and saved to ${outputPath}.`
|
|
100
85
|
};
|
|
101
86
|
//# sourceMappingURL=explainSentences.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainSentences.js","sourceRoot":"","sources":["../../../src/explain/phrases/explainSentences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,CAAC,MAAM,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ACnD,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE;IACvC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE;IACvC,wCAAwC;IACxC,cAAc,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,cAAc;IACnD,cAAc,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,cAAc;IACnD,cAAc,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,cAAc;IACnD,iBAAiB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC;IAC3E,cAAc,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC;IACrE,sCAAsC;IACtC,kBAAkB,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,kBAAkB;IAC3D,8BAA8B,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,8BAA8B;IACnF,4BAA4B,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,4BAA4B;IAC/E,wBAAwB;IACxB,UAAU,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,UAAU;IAC3C,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO;IACrC,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,QAAQ;CACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explainAuditTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainAuditTemplate.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,WAEnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explainAuditTemplate.js","sourceRoot":"","sources":["../../../src/explain/templates/explainAuditTemplate.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,wCAAwC;AAExC,MAAM,UAAU,oBAAoB,EAAC,kBAAkB;IACrD,OAAO,mEAAmE,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explainDebugTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainDebugTemplate.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,WAEnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explainDebugTemplate.js","sourceRoot":"","sources":["../../../src/explain/templates/explainDebugTemplate.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,wCAAwC;AAExC,MAAM,UAAU,oBAAoB,EAAC,kBAAkB;IACrD,OAAO,mEAAmE,CAAC;AAC7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainDetailsTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainDetailsTemplate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"explainDetailsTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainDetailsTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAgB7D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CA0CtE"}
|
|
@@ -1,155 +1,59 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import boxen from 'boxen';
|
|
3
|
-
|
|
3
|
+
import { explainSentences } from '../phrases/explainSentences.js';
|
|
4
|
+
const SECTION_STYLES = {
|
|
5
|
+
'SUMMARY': txt => chalk.bold.bgCyan.black(` ${txt} `),
|
|
6
|
+
'WHAT WILL HAPPEN': txt => chalk.bold.bgGreen.black(` ${txt} `),
|
|
7
|
+
'OUTPUTS': txt => chalk.bold.bgMagenta.black(` ${txt} `),
|
|
8
|
+
'FLAGS': txt => chalk.bold.bgYellow.black(` ${txt} `),
|
|
9
|
+
'WHAT WILL NOT HAPPEN': txt => chalk.bold.bgRed.white(` ${txt} `),
|
|
10
|
+
'PROCESSING FLOW': txt => chalk.bold.bgWhite.black(` ${txt} `),
|
|
11
|
+
'OUTCOME': txt => chalk.bold.bgRedBright.white(` ${txt} `),
|
|
12
|
+
'TECHNICAL DETAILS': txt => chalk.bold.bgGray.white(` ${txt} `),
|
|
13
|
+
};
|
|
4
14
|
export function explainDetailsTemplate(context) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.join('\n'));
|
|
42
|
-
const techEffects = context.effects
|
|
43
|
-
.filter(eff => typeof eff === 'string' && !eff.match(/effectNamespace|schemaVersion|processingScope/))
|
|
44
|
-
.map(val => displayValue(val));
|
|
45
|
-
if (techEffects.length > 0) {
|
|
46
|
-
lines.push(chalk.gray('Technical Effects: ' + techEffects.join(', ')));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// === INPUTS ===
|
|
50
|
-
if (context.inputs && (context.inputs.inputPath || context.inputs.filesDetected)) {
|
|
51
|
-
lines.push('');
|
|
52
|
-
lines.push(chalk.bold.bgBlue.black(' INPUTS '));
|
|
53
|
-
if (context.inputs.inputPath) {
|
|
54
|
-
lines.push(chalk.cyan('• Input path: ') + chalk.white(displayValue(context.inputs.inputPath, 'None')));
|
|
55
|
-
}
|
|
56
|
-
if (context.inputs.filesDetected) {
|
|
57
|
-
lines.push(chalk.cyan('• Files detected: ') + chalk.white(displayValue(context.inputs.filesDetected, 'None')));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
// === OUTPUTS ===
|
|
61
|
-
if (context.outputs && Object.keys(context.outputs).length > 0) {
|
|
62
|
-
lines.push('');
|
|
63
|
-
lines.push(chalk.bold.bgMagenta.black(' OUTPUTS '));
|
|
64
|
-
for (const [k, v] of Object.entries(context.outputs)) {
|
|
65
|
-
lines.push(chalk.magenta('• ' + k + ': ') + chalk.white(displayValue(v, 'None')));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
// === FLAGS ===
|
|
69
|
-
if (context.usedFlags && Object.keys(context.usedFlags).length > 0) {
|
|
70
|
-
lines.push('');
|
|
71
|
-
lines.push(chalk.bold.bgYellow.black(' FLAGS '));
|
|
72
|
-
const userFlags = Object.entries(context.usedFlags)
|
|
73
|
-
.filter(([_, v]) => v.source === 'user')
|
|
74
|
-
.map(([name, v]) => chalk.yellow('• ' + name + ': ') + chalk.white(displayValue(v.value)));
|
|
75
|
-
const defaultFlags = Object.entries(context.usedFlags)
|
|
76
|
-
.filter(([_, v]) => v.source !== 'user')
|
|
77
|
-
.map(([name, v]) => chalk.gray('• ' + name + ': ') + chalk.white(displayValue(v.value)));
|
|
78
|
-
if (userFlags.length > 0) {
|
|
79
|
-
lines.push(chalk.yellow('User Flags:'));
|
|
80
|
-
lines.push(userFlags.join('\n'));
|
|
81
|
-
}
|
|
82
|
-
if (defaultFlags.length > 0) {
|
|
83
|
-
lines.push(chalk.gray('Default Flags:'));
|
|
84
|
-
lines.push(defaultFlags.join('\n'));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// === SAFETY ===
|
|
88
|
-
lines.push('');
|
|
89
|
-
lines.push(chalk.bold.bgRed.white(' SAFETY '));
|
|
90
|
-
lines.push(chalk.green('No network access. All processing is local. No telemetry is collected.'));
|
|
91
|
-
// === PROCESSING FLOW ===
|
|
92
|
-
if (context.executionSteps && context.executionSteps.length > 0) {
|
|
93
|
-
lines.push('');
|
|
94
|
-
lines.push(chalk.bold.bgWhite.black(' PROCESSING FLOW '));
|
|
95
|
-
for (const step of context.executionSteps) {
|
|
96
|
-
const s = typeof step === 'string' ? step.trim() : '';
|
|
97
|
-
const actionStep = /^[A-Z]/.test(s) ? s : s.charAt(0).toUpperCase() + s.slice(1);
|
|
98
|
-
lines.push(chalk.white('→ ') + chalk.cyan(actionStep));
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// === OUTCOME ===
|
|
102
|
-
if (context.outcome &&
|
|
103
|
-
((Array.isArray(context.outcome.errors) && context.outcome.errors.length > 0) ||
|
|
104
|
-
(Array.isArray(context.outcome.warnings) && context.outcome.warnings.length > 0))) {
|
|
105
|
-
lines.push('');
|
|
106
|
-
lines.push(chalk.bold.bgRedBright.white(' OUTCOME '));
|
|
107
|
-
if (Array.isArray(context.outcome.errors) && context.outcome.errors.length > 0) {
|
|
108
|
-
lines.push(chalk.red('Errors:'));
|
|
109
|
-
for (const err of context.outcome.errors) {
|
|
110
|
-
lines.push(chalk.red('• ' + displayValue(err, 'None')));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (Array.isArray(context.outcome.warnings) && context.outcome.warnings.length > 0) {
|
|
114
|
-
lines.push(chalk.yellow('Warnings:'));
|
|
115
|
-
for (const warn of context.outcome.warnings) {
|
|
116
|
-
lines.push(chalk.yellow('• ' + displayValue(warn, 'None')));
|
|
15
|
+
const lines = [];
|
|
16
|
+
const sentences = [];
|
|
17
|
+
// Details mode: plugin-agnostic, detailed, relevant sentences only
|
|
18
|
+
if (explainSentences.summaryHeader)
|
|
19
|
+
sentences.push(explainSentences.summaryHeader());
|
|
20
|
+
if (explainSentences.inputRead)
|
|
21
|
+
sentences.push(explainSentences.inputRead(context));
|
|
22
|
+
if (explainSentences.whatWillHappenHeader)
|
|
23
|
+
sentences.push(explainSentences.whatWillHappenHeader());
|
|
24
|
+
if (explainSentences.outputWrite)
|
|
25
|
+
sentences.push(explainSentences.outputWrite(context));
|
|
26
|
+
if (explainSentences.flagsUsedHeader)
|
|
27
|
+
sentences.push(explainSentences.flagsUsedHeader());
|
|
28
|
+
if (explainSentences.whatWillNotHappenHeader)
|
|
29
|
+
sentences.push(explainSentences.whatWillNotHappenHeader());
|
|
30
|
+
// Group the original plugin-agnostic phrases for this section
|
|
31
|
+
const notHappen = [
|
|
32
|
+
explainSentences.noNetwork(),
|
|
33
|
+
explainSentences.noBackgroundTasks(),
|
|
34
|
+
explainSentences.noOriginalModification(),
|
|
35
|
+
explainSentences.dataLocalOnly()
|
|
36
|
+
].join(' ');
|
|
37
|
+
sentences.push(notHappen);
|
|
38
|
+
if (explainSentences.technicalDetailsHeader)
|
|
39
|
+
sentences.push(explainSentences.technicalDetailsHeader());
|
|
40
|
+
if (explainSentences.summarySuccess)
|
|
41
|
+
sentences.push(explainSentences.summarySuccess());
|
|
42
|
+
for (const sentence of sentences) {
|
|
43
|
+
if (typeof sentence === 'string') {
|
|
44
|
+
// Detect section headers (e.g., 'SUMMARY:', 'WHAT WILL HAPPEN:', 'WHAT WILL NOT HAPPEN:')
|
|
45
|
+
const match = sentence.match(/^(SUMMARY|WHAT WILL HAPPEN|WHAT WILL NOT HAPPEN|OUTPUTS|FLAGS|SAFETY|PROCESSING FLOW|OUTCOME|TECHNICAL DETAILS):\s*(.*)$/);
|
|
46
|
+
if (match) {
|
|
47
|
+
const [, section, rest] = match;
|
|
48
|
+
lines.push(SECTION_STYLES[section] ? SECTION_STYLES[section](section) : section);
|
|
49
|
+
if (rest && rest.trim())
|
|
50
|
+
lines.push(rest.trim());
|
|
117
51
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
// === TECHNICAL DETAILS ===
|
|
122
|
-
if (context.technical && typeof context.technical === 'object' && Object.keys(context.technical).length > 0) {
|
|
123
|
-
lines.push('');
|
|
124
|
-
lines.push(chalk.bold.bgGray.white(' TECHNICAL DETAILS '));
|
|
125
|
-
const detailsArr = Object.entries(context.technical)
|
|
126
|
-
.filter(([, v]) => v !== undefined && v !== null && v !== '' && v !== 'unknown')
|
|
127
|
-
.map(([k, v]) => chalk.gray('• ' + k + ': ') + chalk.white(displayValue(v)));
|
|
128
|
-
if (detailsArr.length > 0) {
|
|
129
|
-
lines.push(detailsArr.join('\n'));
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
// Custom plugin sections
|
|
133
|
-
if (context.customSections && Array.isArray(context.customSections)) {
|
|
134
|
-
for (const section of context.customSections) {
|
|
135
|
-
if (section.items && section.items.length > 0) {
|
|
136
|
-
lines.push('');
|
|
137
|
-
lines.push(chalk.bold.bgMagenta.white(` ${section.title.toUpperCase()} `));
|
|
138
|
-
for (const item of section.items) {
|
|
139
|
-
let safeItem = (typeof item === 'function') ? '[function]' : displayValue(item);
|
|
140
|
-
lines.push(chalk.magentaBright('• ' + safeItem));
|
|
141
|
-
}
|
|
52
|
+
else {
|
|
53
|
+
lines.push(sentence);
|
|
142
54
|
}
|
|
143
55
|
}
|
|
144
56
|
}
|
|
145
|
-
// Tips
|
|
146
|
-
lines.push('');
|
|
147
|
-
lines.push(chalk.bgWhiteBright.black('Tip: ') + chalk.gray('Use --json for machine-readable output.'));
|
|
148
|
-
lines.push(chalk.bgWhiteBright.black('Tip: ') + chalk.gray('See the documentation for more details.'));
|
|
149
|
-
// Always print the summary/result phrase at the end
|
|
150
|
-
lines.push('');
|
|
151
|
-
lines.push(chalk.bold.bgGreen.black('✔ Operation explained successfully.'));
|
|
152
|
-
// Wrap all in a single box with a subtle border and modern look
|
|
153
57
|
return boxen(lines.join('\n'), {
|
|
154
58
|
padding: 1,
|
|
155
59
|
borderColor: 'gray',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainDetailsTemplate.js","sourceRoot":"","sources":["../../../src/explain/templates/explainDetailsTemplate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"explainDetailsTemplate.js","sourceRoot":"","sources":["../../../src/explain/templates/explainDetailsTem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C,0FAA0F;YAC1F,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,0HAA0H,CAAC,CAAC;YACzJ,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC;gBAChC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;gBACjF,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;oBAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,OAAO;QACpB,eAAe,EAAE,OAAO;KACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainHumanTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainHumanTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"explainHumanTemplate.d.ts","sourceRoot":"","sources":["../../../src/explain/templates/explainHumanTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAiB7D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CA2CpE"}
|