@codeyam/codeyam-cli 0.1.0-bleeding-edge.8afd3ee → 0.1.0-staging.09652b8
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/analyzer-template/.build-info.json +7 -7
- package/analyzer-template/log.txt +3 -3
- package/analyzer-template/package.json +1 -1
- package/analyzer-template/packages/ai/index.ts +0 -1
- package/analyzer-template/packages/ai/scripts/ai-test-matrix.mjs +424 -0
- package/analyzer-template/packages/ai/src/lib/astScopes/astScopeAnalyzer.ts +6 -16
- package/analyzer-template/packages/ai/src/lib/astScopes/methodSemantics.ts +197 -0
- package/analyzer-template/packages/ai/src/lib/astScopes/paths.ts +28 -2
- package/analyzer-template/packages/ai/src/lib/astScopes/processExpression.ts +113 -4
- package/analyzer-template/packages/ai/src/lib/checkAllAttributes.ts +1 -3
- package/analyzer-template/packages/ai/src/lib/dataStructure/ScopeDataStructure.ts +430 -7
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.ts +12 -6
- package/analyzer-template/packages/ai/src/lib/generateChangesEntityDocumentation.ts +20 -2
- package/analyzer-template/packages/ai/src/lib/generateChangesEntityScenarioData.ts +56 -160
- package/analyzer-template/packages/ai/src/lib/generateChangesEntityScenarios.ts +79 -265
- package/analyzer-template/packages/ai/src/lib/generateEntityDocumentation.ts +16 -2
- package/analyzer-template/packages/ai/src/lib/generateEntityScenarioData.ts +53 -154
- package/analyzer-template/packages/ai/src/lib/generateEntityScenarios.ts +84 -254
- package/analyzer-template/packages/ai/src/lib/generateStatementAnalysis.ts +48 -71
- package/analyzer-template/packages/ai/src/lib/getLLMCallStats.ts +0 -14
- package/analyzer-template/packages/ai/src/lib/modelInfo.ts +15 -0
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateChangesEntityDocumentationGenerator.ts +8 -33
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateChangesEntityScenarioDataGenerator.ts +54 -62
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateChangesEntityScenariosGenerator.ts +93 -109
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateEntityDocumentationGenerator.ts +8 -27
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateEntityScenarioDataGenerator.ts +33 -38
- package/analyzer-template/packages/ai/src/lib/promptGenerators/generateEntityScenariosGenerator.ts +30 -30
- package/analyzer-template/packages/ai/src/lib/types/index.ts +2 -0
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.ts +15 -7
- package/analyzer-template/packages/generate/src/lib/componentScenarioPage/componentScenarioPageNext.ts +28 -21
- package/analyzer-template/packages/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.ts +18 -11
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageNext.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageNext.js +28 -21
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageNext.js.map +1 -1
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.js +18 -11
- package/analyzer-template/packages/github/dist/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/index.d.ts +1 -0
- package/analyzer-template/packages/github/dist/utils/index.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/index.js +1 -0
- package/analyzer-template/packages/github/dist/utils/index.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.js +2 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.js +2 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.d.ts +12 -0
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.d.ts.map +1 -0
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.js +32 -0
- package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.js.map +1 -0
- package/analyzer-template/packages/ui-components/src/scenario-editor/components/DataItemEditor.tsx +1 -1
- package/analyzer-template/packages/utils/dist/utils/index.d.ts +1 -0
- package/analyzer-template/packages/utils/dist/utils/index.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/index.js +1 -0
- package/analyzer-template/packages/utils/dist/utils/index.js.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.js +2 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.js +2 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/nextRouteFileNameToRoute.js.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.d.ts +12 -0
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.d.ts.map +1 -0
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.js +32 -0
- package/analyzer-template/packages/utils/dist/utils/src/lib/frameworks/sanitizeNextRouteSegments.js.map +1 -0
- package/analyzer-template/packages/utils/index.ts +1 -0
- package/analyzer-template/packages/utils/src/lib/frameworks/getNextRoutePath.ts +2 -1
- package/analyzer-template/packages/utils/src/lib/frameworks/nextRouteFileNameToRoute.ts +2 -1
- package/analyzer-template/packages/utils/src/lib/frameworks/sanitizeNextRouteSegments.ts +33 -0
- package/analyzer-template/project/startScenarioCapture.ts +24 -0
- package/analyzer-template/project/trackGeneratedFiles.ts +41 -0
- package/analyzer-template/project/writeMockDataTsx.ts +94 -4
- package/analyzer-template/project/writeScenarioComponents.ts +35 -27
- package/background/src/lib/virtualized/project/startScenarioCapture.js +18 -0
- package/background/src/lib/virtualized/project/startScenarioCapture.js.map +1 -1
- package/background/src/lib/virtualized/project/trackGeneratedFiles.js +30 -0
- package/background/src/lib/virtualized/project/trackGeneratedFiles.js.map +1 -0
- package/background/src/lib/virtualized/project/writeMockDataTsx.js +71 -3
- package/background/src/lib/virtualized/project/writeMockDataTsx.js.map +1 -1
- package/background/src/lib/virtualized/project/writeScenarioComponents.js +15 -11
- package/background/src/lib/virtualized/project/writeScenarioComponents.js.map +1 -1
- package/codeyam-cli/src/commands/init.js +4 -23
- package/codeyam-cli/src/commands/init.js.map +1 -1
- package/codeyam-cli/src/utils/webappDetection.js +2 -1
- package/codeyam-cli/src/utils/webappDetection.js.map +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/EntityTypeIcon-B9Sf8e9w.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{InteractivePreview-B0oiPem-.js → InteractivePreview-CDnfNKKQ.js} +3 -3
- package/codeyam-cli/src/webserver/build/client/assets/LibraryFunctionPreview-DUS-3h7I.js +3 -0
- package/codeyam-cli/src/webserver/build/client/assets/{LogViewer-BKKG1s2B.js → LogViewer-TJzDQku1.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/SafeScreenshot-BgdlWM6p.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-Bl6GY-OE.js +6 -0
- package/codeyam-cli/src/webserver/build/client/assets/{ScenarioViewer-DmjXUj6m.js → ScenarioViewer-BDq8RX50.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/_index-Bh3y3Wsl.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-tq7Bl6-t.js +10 -0
- package/codeyam-cli/src/webserver/build/client/assets/{chart-column-VXBS6qOn.js → chart-column-q9_nHfwv.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/chunk-WWGJGFF6-DvL0YqDJ.js +26 -0
- package/codeyam-cli/src/webserver/build/client/assets/{circle-alert-n5GUC2AS.js → circle-alert-CKMpA1v_.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{clock-DKqtX8js.js → clock-Wnfog8Qw.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/dev.empty-C_ixaqqh.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha._-BHiWkb_W.js → entity._sha._-3bYjyojg.js} +10 -10
- package/codeyam-cli/src/webserver/build/client/assets/entity._sha_.create-scenario-DtfwpN9J.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/entity._sha_.edit._scenarioId-QecTs_sq.js +5 -0
- package/codeyam-cli/src/webserver/build/client/assets/entry.client-hnkEgHrC.js +5 -0
- package/codeyam-cli/src/webserver/build/client/assets/file-text-CvCVdKLW.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/files-DgUCYhbd.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/git-WoKohOtW.js +12 -0
- package/codeyam-cli/src/webserver/build/client/assets/globals-DZfbt0u5.css +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/index-Vvbl94Xc.js +8 -0
- package/codeyam-cli/src/webserver/build/client/assets/{loader-circle-v3c6DFp4.js → loader-circle-Bxm63UxG.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-c90b8608.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/root-DrVZQamX.js +16 -0
- package/codeyam-cli/src/webserver/build/client/assets/{search-DA14wXpu.js → search-CJkk16Ct.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{settings-COJUrwGu.js → settings-ConzHeiL.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/settings-LuiJ1UIm.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/simulations-B9LRwAej.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{useLastLogLine-Lumm1t01.js → useLastLogLine-CpUcCv1V.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/useToast-DOxmMaSg.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{zap-BvukH0eN.js → zap-D5R1FAcH.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/index-DzbqTxoN.js +1 -0
- package/codeyam-cli/src/webserver/build/server/assets/server-build-DGGis3OZ.js +166 -0
- package/codeyam-cli/src/webserver/build/server/index.js +1 -1
- package/codeyam-cli/src/webserver/build-info.json +5 -5
- package/codeyam-cli/src/webserver/server.js +1 -1
- package/codeyam-cli/src/webserver/server.js.map +1 -1
- package/codeyam-cli/templates/codeyam-setup-skill.md +5 -0
- package/package.json +7 -7
- package/packages/ai/index.js +0 -1
- package/packages/ai/index.js.map +1 -1
- package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js +6 -15
- package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js.map +1 -1
- package/packages/ai/src/lib/astScopes/methodSemantics.js +134 -0
- package/packages/ai/src/lib/astScopes/methodSemantics.js.map +1 -1
- package/packages/ai/src/lib/astScopes/paths.js +28 -3
- package/packages/ai/src/lib/astScopes/paths.js.map +1 -1
- package/packages/ai/src/lib/astScopes/processExpression.js +99 -3
- package/packages/ai/src/lib/astScopes/processExpression.js.map +1 -1
- package/packages/ai/src/lib/checkAllAttributes.js +1 -3
- package/packages/ai/src/lib/checkAllAttributes.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js +308 -2
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js +12 -6
- package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js.map +1 -1
- package/packages/ai/src/lib/generateChangesEntityDocumentation.js +19 -1
- package/packages/ai/src/lib/generateChangesEntityDocumentation.js.map +1 -1
- package/packages/ai/src/lib/generateChangesEntityScenarioData.js +55 -156
- package/packages/ai/src/lib/generateChangesEntityScenarioData.js.map +1 -1
- package/packages/ai/src/lib/generateChangesEntityScenarios.js +79 -262
- package/packages/ai/src/lib/generateChangesEntityScenarios.js.map +1 -1
- package/packages/ai/src/lib/generateEntityDocumentation.js +15 -1
- package/packages/ai/src/lib/generateEntityDocumentation.js.map +1 -1
- package/packages/ai/src/lib/generateEntityScenarioData.js +52 -152
- package/packages/ai/src/lib/generateEntityScenarioData.js.map +1 -1
- package/packages/ai/src/lib/generateEntityScenarios.js +88 -258
- package/packages/ai/src/lib/generateEntityScenarios.js.map +1 -1
- package/packages/ai/src/lib/generateStatementAnalysis.js +46 -71
- package/packages/ai/src/lib/generateStatementAnalysis.js.map +1 -1
- package/packages/ai/src/lib/getLLMCallStats.js +0 -14
- package/packages/ai/src/lib/getLLMCallStats.js.map +1 -1
- package/packages/ai/src/lib/modelInfo.js +15 -0
- package/packages/ai/src/lib/modelInfo.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityDocumentationGenerator.js +8 -33
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityDocumentationGenerator.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityScenarioDataGenerator.js +35 -41
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityScenarioDataGenerator.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityScenariosGenerator.js +59 -72
- package/packages/ai/src/lib/promptGenerators/generateChangesEntityScenariosGenerator.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateEntityDocumentationGenerator.js +8 -27
- package/packages/ai/src/lib/promptGenerators/generateEntityDocumentationGenerator.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateEntityScenarioDataGenerator.js +24 -27
- package/packages/ai/src/lib/promptGenerators/generateEntityScenarioDataGenerator.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/generateEntityScenariosGenerator.js +21 -22
- package/packages/ai/src/lib/promptGenerators/generateEntityScenariosGenerator.js.map +1 -1
- package/packages/ai/src/lib/types/index.js +2 -0
- package/packages/ai/src/lib/types/index.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js +16 -7
- package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js.map +1 -1
- package/packages/generate/src/lib/componentScenarioPage/componentScenarioPageNext.js +28 -21
- package/packages/generate/src/lib/componentScenarioPage/componentScenarioPageNext.js.map +1 -1
- package/packages/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.js +18 -11
- package/packages/generate/src/lib/componentScenarioPage/componentScenarioPageRemix.js.map +1 -1
- package/packages/utils/index.js +1 -0
- package/packages/utils/index.js.map +1 -1
- package/packages/utils/src/lib/frameworks/getNextRoutePath.js +2 -1
- package/packages/utils/src/lib/frameworks/getNextRoutePath.js.map +1 -1
- package/packages/utils/src/lib/frameworks/nextRouteFileNameToRoute.js +2 -1
- package/packages/utils/src/lib/frameworks/nextRouteFileNameToRoute.js.map +1 -1
- package/packages/utils/src/lib/frameworks/sanitizeNextRouteSegments.js +32 -0
- package/packages/utils/src/lib/frameworks/sanitizeNextRouteSegments.js.map +1 -0
- package/analyzer-template/packages/ai/src/lib/generateEntityDataMap.ts +0 -375
- package/codeyam-cli/src/webserver/build/client/assets/EntityTypeIcon-rqv54FUY.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/LibraryFunctionPreview-DqXXjAJ7.js +0 -3
- package/codeyam-cli/src/webserver/build/client/assets/SafeScreenshot-DU_jxCPD.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-5DY-YIxu.js +0 -6
- package/codeyam-cli/src/webserver/build/client/assets/_index-DvSrcxsk.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-CsaMd9mb.js +0 -10
- package/codeyam-cli/src/webserver/build/client/assets/components-Dj-Ggnl2.js +0 -40
- package/codeyam-cli/src/webserver/build/client/assets/dev.empty-BbR3FwNc.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/entity._sha_.create-scenario-L7M9Vr5z.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/entity._sha_.edit._scenarioId-C9w-q7P3.js +0 -5
- package/codeyam-cli/src/webserver/build/client/assets/entry.client-CdGoUs8A.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/file-text-B6Er7j5k.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/files-KcDVw1FY.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/git-B9uZ8eSJ.js +0 -12
- package/codeyam-cli/src/webserver/build/client/assets/globals-B0f88RTV.css +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-fca08d7e.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/root-Cf8VBqIb.js +0 -16
- package/codeyam-cli/src/webserver/build/client/assets/settings-NU_ZquhK.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/simulations-CNaMJ-nR.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/useToast-BRShB17p.js +0 -1
- package/codeyam-cli/src/webserver/build/client/cy-logo-cli.svg +0 -13
- package/codeyam-cli/src/webserver/build/client/favicon.svg +0 -13
- package/codeyam-cli/src/webserver/build/server/assets/index-DHr4rT4u.js +0 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-Bi1mj14J.js +0 -166
- package/codeyam-cli/src/webserver/public/cy-logo-cli.svg +0 -13
- package/codeyam-cli/src/webserver/public/favicon.svg +0 -13
- package/packages/ai/src/lib/generateEntityDataMap.js +0 -335
- package/packages/ai/src/lib/generateEntityDataMap.js.map +0 -1
- package/packages/ai/src/lib/promptGenerators/generateEntityDataMapGenerator.js +0 -17
- package/packages/ai/src/lib/promptGenerators/generateEntityDataMapGenerator.js.map +0 -1
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
import { Entity } from '~codeyam/types';
|
|
2
2
|
|
|
3
3
|
export default function generateEntityDocumentationGenerator(entity: Entity) {
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
"""
|
|
7
|
-
${entity.code}
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
What does this code do? Please create documentation for this code.
|
|
11
|
-
|
|
12
|
-
- Start with an overview that describes the overall intent of the code. Be concise in your language. Immediately start with the intent of the code. Here is an example Overview:
|
|
4
|
+
return `## Task
|
|
5
|
+
Document the following code.
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
## Code
|
|
8
|
+
\`\`\`typescript
|
|
9
|
+
${entity.code}
|
|
16
10
|
\`\`\`
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- Next, specify the inputs (with details about types, how the input is used, and examples) and expected outputs (with details about types and examples).
|
|
21
|
-
|
|
22
|
-
- Finally, provide examples of how the code can be used with clear inputs and outputs for each example. Provide diverse examples (there's no need to include repetitive examples).
|
|
23
|
-
|
|
24
|
-
Write the documentation as markdown. Be concise. Use bullets when possible. No one wants to read long paragraphs of text.
|
|
25
|
-
|
|
26
|
-
Provide no other text than the documentation in proper markdown using the headers below.
|
|
27
|
-
|
|
28
|
-
## Overview
|
|
29
|
-
|
|
30
|
-
## Inputs
|
|
31
|
-
|
|
32
|
-
## Output
|
|
12
|
+
## Overview Example
|
|
13
|
+
Good: "Displays details about a specific Git commit. Shows the commit message, author, date, and provides a link to GitHub. Users can copy the commit SHA to clipboard."
|
|
33
14
|
|
|
34
|
-
|
|
15
|
+
Bad: "The CommitDetails function takes a commit object..." (mentions the function name)`;
|
|
35
16
|
}
|
|
@@ -11,50 +11,45 @@ export default function generateEntityScenarioDataGenerator(
|
|
|
11
11
|
return incompleteResponse;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const scenarioJson = JSON.stringify(
|
|
15
|
+
{
|
|
16
|
+
name: scenario.name,
|
|
17
|
+
description: scenario.description,
|
|
18
|
+
keyAttributeInstructions: scenario.metadata.keyAttributeInstructions,
|
|
19
|
+
},
|
|
20
|
+
null,
|
|
21
|
+
2,
|
|
22
|
+
);
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
\`\`\`
|
|
18
|
-
${JSON.stringify(
|
|
19
|
-
{
|
|
20
|
-
name: scenario.name,
|
|
21
|
-
description: scenario.description,
|
|
22
|
-
keyAttributeInstructions: scenario.metadata.keyAttributeInstructions,
|
|
23
|
-
},
|
|
24
|
-
null,
|
|
25
|
-
2,
|
|
26
|
-
)}
|
|
27
|
-
\`\`\`
|
|
28
|
-
${
|
|
29
|
-
defaultScenarioData
|
|
24
|
+
const defaultDataSection = defaultScenarioData
|
|
30
25
|
? `
|
|
31
|
-
## Default Scenario Data
|
|
32
|
-
|
|
33
|
-
Here is the Default Scenario data. The data generated for this scenario will be merged into this Default Scenario data.
|
|
34
|
-
\`\`\`
|
|
26
|
+
## Default Scenario Data (merge base)
|
|
27
|
+
\`\`\`json
|
|
35
28
|
${JSON.stringify(defaultScenarioData.data, null, 2)}
|
|
36
29
|
\`\`\`
|
|
37
|
-
|
|
38
30
|
`
|
|
39
|
-
: ''
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
\`\`\`
|
|
31
|
+
: '';
|
|
32
|
+
|
|
33
|
+
const mockDataSection = structure.dataForMocks
|
|
34
|
+
? `## mockData Structure
|
|
35
|
+
\`\`\`json
|
|
45
36
|
${JSON.stringify(noErrorAttributes(structure.dataForMocks), null, 2)}
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
structure.arguments
|
|
53
|
-
? `The argumentsData structure (for the default scenario provide robust values for the entire structure, excluding error attributes unless specifically requested):
|
|
54
|
-
\`\`\`
|
|
37
|
+
\`\`\``
|
|
38
|
+
: '## mockData Structure\nNone—return `{}` for mockData.';
|
|
39
|
+
|
|
40
|
+
const argumentsSection = structure.arguments
|
|
41
|
+
? `## argumentsData Structure
|
|
42
|
+
\`\`\`json
|
|
55
43
|
${JSON.stringify(noErrorAttributes(structure.arguments), null, 2)}
|
|
44
|
+
\`\`\``
|
|
45
|
+
: '## argumentsData Structure\nNone—return `[]` for argumentsData.';
|
|
46
|
+
|
|
47
|
+
return `## Scenario
|
|
48
|
+
\`\`\`json
|
|
49
|
+
${scenarioJson}
|
|
56
50
|
\`\`\`
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
${defaultDataSection}
|
|
52
|
+
${mockDataSection}
|
|
53
|
+
|
|
54
|
+
${argumentsSection}`;
|
|
60
55
|
}
|
package/analyzer-template/packages/ai/src/lib/promptGenerators/generateEntityScenariosGenerator.ts
CHANGED
|
@@ -19,36 +19,28 @@ export default function generateEntityScenariosGenerator({
|
|
|
19
19
|
(ka) => ka.dependentEntityName,
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
null,
|
|
33
|
-
2,
|
|
34
|
-
)}
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
Code:
|
|
38
|
-
\`\`\`
|
|
39
|
-
${entity.code}
|
|
40
|
-
\`\`\`
|
|
22
|
+
const keyAttrsJson = JSON.stringify(
|
|
23
|
+
thisEntityKeyAttributes.map((ka) => ({
|
|
24
|
+
dataStructurePath: ka.dataStructurePath,
|
|
25
|
+
localVariable: ka.internalPath,
|
|
26
|
+
description: ka.description,
|
|
27
|
+
validValueOptions: ka.validValueOptions,
|
|
28
|
+
})),
|
|
29
|
+
null,
|
|
30
|
+
2,
|
|
31
|
+
);
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
const dependencySection =
|
|
34
|
+
!error &&
|
|
35
|
+
relevantDependentKeyAttributes &&
|
|
36
|
+
relevantDependentKeyAttributes.length > 0
|
|
37
|
+
? `
|
|
38
|
+
## Dependency Key Attributes
|
|
39
|
+
\`\`\`json
|
|
48
40
|
${JSON.stringify(
|
|
49
41
|
relevantDependentKeyAttributes.map((ka) => ({
|
|
50
|
-
dataStructurePath: ka.dataStructurePath,
|
|
51
|
-
localVariable: ka.internalPath,
|
|
42
|
+
dataStructurePath: ka.dataStructurePath,
|
|
43
|
+
localVariable: ka.internalPath,
|
|
52
44
|
forDependency: ka.dependentEntityName,
|
|
53
45
|
description: ka.description,
|
|
54
46
|
validValueOptions: ka.validValueOptions,
|
|
@@ -57,7 +49,15 @@ ${JSON.stringify(
|
|
|
57
49
|
2,
|
|
58
50
|
)}
|
|
59
51
|
\`\`\``
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
: '';
|
|
53
|
+
|
|
54
|
+
return `## Key Attributes
|
|
55
|
+
\`\`\`json
|
|
56
|
+
${keyAttrsJson}
|
|
57
|
+
\`\`\`
|
|
58
|
+
|
|
59
|
+
## Code
|
|
60
|
+
\`\`\`typescript
|
|
61
|
+
${entity.code}
|
|
62
|
+
\`\`\`${dependencySection}`;
|
|
63
63
|
}
|
|
@@ -55,6 +55,7 @@ export namespace AI {
|
|
|
55
55
|
*/
|
|
56
56
|
export enum Model {
|
|
57
57
|
// OpenAI
|
|
58
|
+
OPENAI_GPT5_1 = 'openai/gpt-5.1',
|
|
58
59
|
OPENAI_GPT5 = 'openai/gpt-5',
|
|
59
60
|
OPENAI_GPT5_MINI = 'openai/gpt-5-mini',
|
|
60
61
|
OPENAI_GPT5_NANO = 'openai/gpt-5-nano',
|
|
@@ -83,6 +84,7 @@ export namespace AI {
|
|
|
83
84
|
// Anthropic
|
|
84
85
|
ANTHROPIC_CLAUDE_4_5_HAIKU = 'anthropic/claude-4.5-haiku',
|
|
85
86
|
ANTHROPIC_CLAUDE_4_5_SONNET = 'anthropic/claude-4.5-sonnet',
|
|
87
|
+
ANTHROPIC_CLAUDE_4_5_OPUS = 'anthropic/claude-4.5-opus',
|
|
86
88
|
|
|
87
89
|
// Deprecated models (kept for backward compatibility)
|
|
88
90
|
PHIND_CODELLAMA = 'phind/codellama',
|
package/analyzer-template/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.ts
CHANGED
|
@@ -696,13 +696,23 @@ export default function mergeInDependentDataStructure({
|
|
|
696
696
|
});
|
|
697
697
|
|
|
698
698
|
// First, normalize any returnValue. paths that were written by equivalency processing
|
|
699
|
-
// to the standard functionName().functionCallReturnValue. format
|
|
699
|
+
// to the standard functionName().functionCallReturnValue. format.
|
|
700
|
+
// Also delete returnValue[] artifact paths that don't represent actual array structure.
|
|
700
701
|
const pathsToNormalize: [string, string][] = [];
|
|
702
|
+
const pathsToDelete: string[] = [];
|
|
701
703
|
for (const path in depSchema.returnValueSchema) {
|
|
702
704
|
if (path === 'returnValue' || path.startsWith('returnValue.')) {
|
|
703
705
|
pathsToNormalize.push([path, depSchema.returnValueSchema[path]]);
|
|
706
|
+
} else if (path.match(/^returnValue\[\d*\]/)) {
|
|
707
|
+
// Delete returnValue[] and returnValue[n] paths - these are artifacts from
|
|
708
|
+
// equivalency processing and don't represent the actual structure of mocked dependencies.
|
|
709
|
+
// The correct structure comes from srcSchema (dependencySchemas).
|
|
710
|
+
pathsToDelete.push(path);
|
|
704
711
|
}
|
|
705
712
|
}
|
|
713
|
+
for (const path of pathsToDelete) {
|
|
714
|
+
delete depSchema.returnValueSchema[path];
|
|
715
|
+
}
|
|
706
716
|
for (const [path, value] of pathsToNormalize) {
|
|
707
717
|
delete depSchema.returnValueSchema[path];
|
|
708
718
|
const normalizedPath =
|
|
@@ -734,9 +744,8 @@ export default function mergeInDependentDataStructure({
|
|
|
734
744
|
`${dependency.name}().functionCallReturnValue.`,
|
|
735
745
|
);
|
|
736
746
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
747
|
+
// Always write srcSchema values - they take precedence over equivalency-derived values
|
|
748
|
+
depSchema.returnValueSchema[normalizedPath] = value;
|
|
740
749
|
continue;
|
|
741
750
|
}
|
|
742
751
|
|
|
@@ -744,9 +753,8 @@ export default function mergeInDependentDataStructure({
|
|
|
744
753
|
// These are needed for constructMockCode to build the proper mock data hierarchy
|
|
745
754
|
// Example: supabase.auth.getSession().functionCallReturnValue.data.session
|
|
746
755
|
if (path.includes('.functionCallReturnValue')) {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
756
|
+
// Always write srcSchema values - they take precedence over equivalency-derived values
|
|
757
|
+
depSchema.returnValueSchema[path] = value;
|
|
750
758
|
continue;
|
|
751
759
|
}
|
|
752
760
|
|
|
@@ -39,7 +39,6 @@ export default function componentScenarioPageNext({
|
|
|
39
39
|
type ReactNode,
|
|
40
40
|
type ChangeEvent
|
|
41
41
|
} from 'react';
|
|
42
|
-
import Head from 'next/head';
|
|
43
42
|
${analysis.scenarios?.length > 0 && `import { scenarios } from "${relativeMocksDir}/MockData_${safeFileName(scenario.name)}";`}
|
|
44
43
|
${getComponentImportStatement({
|
|
45
44
|
file,
|
|
@@ -58,17 +57,7 @@ ${getComponentImportStatement({
|
|
|
58
57
|
// Inject image interception code at module level to run before any rendering
|
|
59
58
|
${getImageReplacementCode()}
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
const NextHead = () => {
|
|
63
|
-
return (
|
|
64
|
-
<Head>
|
|
65
|
-
<title>${fileName}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}</title>
|
|
66
|
-
<meta name="description" content="This is a demo of the ${fileName} component" />
|
|
67
|
-
</Head>
|
|
68
|
-
)
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
function Scenario({ name, width, children }: { name: string, width: string, children: ReactNode }) {
|
|
60
|
+
function Scenario({ name, width, height, children }: { name: string, width: string, height: string, children: ReactNode }) {
|
|
72
61
|
|
|
73
62
|
useEffect(() => {
|
|
74
63
|
if (typeof window === 'undefined') return;
|
|
@@ -89,14 +78,14 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
89
78
|
return Math.max(100, bodyHeight, htmlHeight, scrollHeight);
|
|
90
79
|
}
|
|
91
80
|
|
|
92
|
-
const
|
|
93
|
-
parent.postMessage({ type: 'codeyam-resize', name, height }, '*');
|
|
81
|
+
const calculatedHeight = calculateHeight();
|
|
82
|
+
parent.postMessage({ type: 'codeyam-resize', name, height: calculatedHeight }, '*');
|
|
94
83
|
|
|
95
84
|
const eventListener = (event) => {
|
|
96
85
|
if (event.data.name === name) {
|
|
97
86
|
if (event.data.type === 'codeyam-respond') {
|
|
98
|
-
const
|
|
99
|
-
parent.postMessage({ type: 'codeyam-resize', name, height }, '*');
|
|
87
|
+
const calculatedHeight = calculateHeight();
|
|
88
|
+
parent.postMessage({ type: 'codeyam-resize', name, height: calculatedHeight }, '*');
|
|
100
89
|
}
|
|
101
90
|
}
|
|
102
91
|
};
|
|
@@ -108,9 +97,9 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
108
97
|
return (
|
|
109
98
|
<div className='w-full flex items-center justify-center'>
|
|
110
99
|
<div id='component' style={{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
minWidth: width !== 'auto' ? \`min(\${width}, 100vw)\` : undefined,
|
|
101
|
+
height: height !== 'auto' ? height : undefined,
|
|
102
|
+
minHeight: height !== 'auto' ? height : undefined,
|
|
114
103
|
display: 'block',
|
|
115
104
|
padding: '6px'
|
|
116
105
|
}}>
|
|
@@ -121,13 +110,31 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
121
110
|
}
|
|
122
111
|
|
|
123
112
|
export default function Index() {
|
|
113
|
+
const [searchParams] = useState(() =>
|
|
114
|
+
typeof window !== 'undefined'
|
|
115
|
+
? new URLSearchParams(window.location.search)
|
|
116
|
+
: new URLSearchParams()
|
|
117
|
+
);
|
|
118
|
+
const widthOverride = searchParams.get('width');
|
|
119
|
+
const heightOverride = searchParams.get('height') || 'auto';
|
|
120
|
+
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
document.title = "${fileName}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}";
|
|
123
|
+
let metaDesc = document.querySelector('meta[name="description"]');
|
|
124
|
+
if (!metaDesc) {
|
|
125
|
+
metaDesc = document.createElement('meta');
|
|
126
|
+
metaDesc.setAttribute('name', 'description');
|
|
127
|
+
document.head.appendChild(metaDesc);
|
|
128
|
+
}
|
|
129
|
+
metaDesc.setAttribute('content', "This is a demo of the ${fileName} component");
|
|
130
|
+
}, []);
|
|
131
|
+
|
|
124
132
|
${getIFrameMessageListenerCode({ scenarioName: scenario.name })}
|
|
125
133
|
${getNextJsErrorClosingCode()}
|
|
126
134
|
|
|
127
135
|
return (
|
|
128
136
|
<div className='flex flex-col justify-center items-center h-screen' data-version={version}>
|
|
129
|
-
|
|
130
|
-
${scenarioComponent(entity, analysis, scenario)}
|
|
137
|
+
${scenarioComponent(entity, analysis, scenario, { useOverrides: true })}
|
|
131
138
|
</div>
|
|
132
139
|
);
|
|
133
140
|
}`;
|
|
@@ -18,8 +18,6 @@ export default function componentScenarioPageRemix(
|
|
|
18
18
|
mocksDir: string,
|
|
19
19
|
) {
|
|
20
20
|
return `import { ReactNode, useEffect, useCallback, useState } from 'react';
|
|
21
|
-
import type { MetaFunction } from "@remix-run/node";
|
|
22
|
-
import { useSearchParams } from "@remix-run/react";
|
|
23
21
|
${analysis.scenarios?.length > 0 && `import { scenarios } from "${mocksDir}/MockData_${safeFileName(scenario.name)}";`}
|
|
24
22
|
${getComponentImportStatement({
|
|
25
23
|
file,
|
|
@@ -38,13 +36,6 @@ ${getComponentImportStatement({
|
|
|
38
36
|
// Inject image interception code at module level to run before any rendering
|
|
39
37
|
${getImageReplacementCode()}
|
|
40
38
|
|
|
41
|
-
export const meta: MetaFunction = () => {
|
|
42
|
-
return [
|
|
43
|
-
{ title: "${file.name}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}" },
|
|
44
|
-
{ name: "description", content: "This is a demo of the ${file.name} component under the scenario: ${escapeQuotes(scenario.description)}" },
|
|
45
|
-
];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
39
|
function Scenario({ name, width, height, children }: { name: string, width: string, height: string, children: ReactNode }) {
|
|
49
40
|
|
|
50
41
|
useEffect(() => {
|
|
@@ -85,7 +76,7 @@ function Scenario({ name, width, height, children }: { name: string, width: stri
|
|
|
85
76
|
return (
|
|
86
77
|
<div className='w-full flex items-center justify-center'>
|
|
87
78
|
<div id='component' style={{
|
|
88
|
-
minWidth: \`min(\${width}, 100vw)
|
|
79
|
+
minWidth: width !== 'auto' ? \`min(\${width}, 100vw)\` : undefined,
|
|
89
80
|
height: height !== 'auto' ? height : undefined,
|
|
90
81
|
minHeight: height !== 'auto' ? height : undefined,
|
|
91
82
|
display: 'block',
|
|
@@ -98,9 +89,25 @@ function Scenario({ name, width, height, children }: { name: string, width: stri
|
|
|
98
89
|
}
|
|
99
90
|
|
|
100
91
|
export default function Index() {
|
|
101
|
-
const [searchParams] =
|
|
92
|
+
const [searchParams] = useState(() =>
|
|
93
|
+
typeof window !== 'undefined'
|
|
94
|
+
? new URLSearchParams(window.location.search)
|
|
95
|
+
: new URLSearchParams()
|
|
96
|
+
);
|
|
102
97
|
const widthOverride = searchParams.get('width');
|
|
103
98
|
const heightOverride = searchParams.get('height') || 'auto';
|
|
99
|
+
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
document.title = "${file.name}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}";
|
|
102
|
+
let metaDesc = document.querySelector('meta[name="description"]');
|
|
103
|
+
if (!metaDesc) {
|
|
104
|
+
metaDesc = document.createElement('meta');
|
|
105
|
+
metaDesc.setAttribute('name', 'description');
|
|
106
|
+
document.head.appendChild(metaDesc);
|
|
107
|
+
}
|
|
108
|
+
metaDesc.setAttribute('content', "This is a demo of the ${file.name} component under the scenario: ${escapeQuotes(scenario.description)}");
|
|
109
|
+
}, []);
|
|
110
|
+
|
|
104
111
|
${getIFrameMessageListenerCode({ scenarioName: scenario.name })}
|
|
105
112
|
|
|
106
113
|
return (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentScenarioPageNext.d.ts","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageNext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAW5E,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,gBAAgB,GACjB,EAAE;IACD,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,
|
|
1
|
+
{"version":3,"file":"componentScenarioPageNext.d.ts","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageNext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAW5E,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,gBAAgB,GACjB,EAAE;IACD,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,UAiHA"}
|
|
@@ -19,7 +19,6 @@ export default function componentScenarioPageNext({ file, entity, analysis, curr
|
|
|
19
19
|
type ReactNode,
|
|
20
20
|
type ChangeEvent
|
|
21
21
|
} from 'react';
|
|
22
|
-
import Head from 'next/head';
|
|
23
22
|
${analysis.scenarios?.length > 0 && `import { scenarios } from "${relativeMocksDir}/MockData_${safeFileName(scenario.name)}";`}
|
|
24
23
|
${getComponentImportStatement({
|
|
25
24
|
file,
|
|
@@ -37,17 +36,7 @@ ${getComponentImportStatement({
|
|
|
37
36
|
// Inject image interception code at module level to run before any rendering
|
|
38
37
|
${getImageReplacementCode()}
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
const NextHead = () => {
|
|
42
|
-
return (
|
|
43
|
-
<Head>
|
|
44
|
-
<title>${fileName}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}</title>
|
|
45
|
-
<meta name="description" content="This is a demo of the ${fileName} component" />
|
|
46
|
-
</Head>
|
|
47
|
-
)
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
function Scenario({ name, width, children }: { name: string, width: string, children: ReactNode }) {
|
|
39
|
+
function Scenario({ name, width, height, children }: { name: string, width: string, height: string, children: ReactNode }) {
|
|
51
40
|
|
|
52
41
|
useEffect(() => {
|
|
53
42
|
if (typeof window === 'undefined') return;
|
|
@@ -68,14 +57,14 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
68
57
|
return Math.max(100, bodyHeight, htmlHeight, scrollHeight);
|
|
69
58
|
}
|
|
70
59
|
|
|
71
|
-
const
|
|
72
|
-
parent.postMessage({ type: 'codeyam-resize', name, height }, '*');
|
|
60
|
+
const calculatedHeight = calculateHeight();
|
|
61
|
+
parent.postMessage({ type: 'codeyam-resize', name, height: calculatedHeight }, '*');
|
|
73
62
|
|
|
74
63
|
const eventListener = (event) => {
|
|
75
64
|
if (event.data.name === name) {
|
|
76
65
|
if (event.data.type === 'codeyam-respond') {
|
|
77
|
-
const
|
|
78
|
-
parent.postMessage({ type: 'codeyam-resize', name, height }, '*');
|
|
66
|
+
const calculatedHeight = calculateHeight();
|
|
67
|
+
parent.postMessage({ type: 'codeyam-resize', name, height: calculatedHeight }, '*');
|
|
79
68
|
}
|
|
80
69
|
}
|
|
81
70
|
};
|
|
@@ -87,9 +76,9 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
87
76
|
return (
|
|
88
77
|
<div className='w-full flex items-center justify-center'>
|
|
89
78
|
<div id='component' style={{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
minWidth: width !== 'auto' ? \`min(\${width}, 100vw)\` : undefined,
|
|
80
|
+
height: height !== 'auto' ? height : undefined,
|
|
81
|
+
minHeight: height !== 'auto' ? height : undefined,
|
|
93
82
|
display: 'block',
|
|
94
83
|
padding: '6px'
|
|
95
84
|
}}>
|
|
@@ -100,13 +89,31 @@ function Scenario({ name, width, children }: { name: string, width: string, chil
|
|
|
100
89
|
}
|
|
101
90
|
|
|
102
91
|
export default function Index() {
|
|
92
|
+
const [searchParams] = useState(() =>
|
|
93
|
+
typeof window !== 'undefined'
|
|
94
|
+
? new URLSearchParams(window.location.search)
|
|
95
|
+
: new URLSearchParams()
|
|
96
|
+
);
|
|
97
|
+
const widthOverride = searchParams.get('width');
|
|
98
|
+
const heightOverride = searchParams.get('height') || 'auto';
|
|
99
|
+
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
document.title = "${fileName}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}";
|
|
102
|
+
let metaDesc = document.querySelector('meta[name="description"]');
|
|
103
|
+
if (!metaDesc) {
|
|
104
|
+
metaDesc = document.createElement('meta');
|
|
105
|
+
metaDesc.setAttribute('name', 'description');
|
|
106
|
+
document.head.appendChild(metaDesc);
|
|
107
|
+
}
|
|
108
|
+
metaDesc.setAttribute('content', "This is a demo of the ${fileName} component");
|
|
109
|
+
}, []);
|
|
110
|
+
|
|
103
111
|
${getIFrameMessageListenerCode({ scenarioName: scenario.name })}
|
|
104
112
|
${getNextJsErrorClosingCode()}
|
|
105
113
|
|
|
106
114
|
return (
|
|
107
115
|
<div className='flex flex-col justify-center items-center h-screen' data-version={version}>
|
|
108
|
-
|
|
109
|
-
${scenarioComponent(entity, analysis, scenario)}
|
|
116
|
+
${scenarioComponent(entity, analysis, scenario, { useOverrides: true })}
|
|
110
117
|
</div>
|
|
111
118
|
);
|
|
112
119
|
}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentScenarioPageNext.js","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageNext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,gBAAgB,GASjB;IACC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO
|
|
1
|
+
{"version":3,"file":"componentScenarioPageNext.js","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageNext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,gBAAgB,GASjB;IACC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO;;;;;;;;;;;EAWP,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,IAAI,8BAA8B,gBAAgB,aAAa,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI;EAC5H,2BAA2B,CAAC;QAC5B,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,WAAW;QACX,OAAO;QACP,QAAQ;QACR,OAAO,EAAE,IAAI;QACb,WAAW,EACT,MAAM,CAAC,IAAI,KAAK,SAAS;YACzB,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,IAAI,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC;YAC7D,MAAM,CAAC,UAAU,KAAK,SAAS;KAClC,CAAC;;;EAGA,uBAAuB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgEH,QAAQ,KAAK,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,OAAO;;;;;;;8DAO3B,QAAQ;;;IAGlE,4BAA4B,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC7D,yBAAyB,EAAE;;;;QAIvB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;;EAG3E,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentScenarioPageRemix.d.ts","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageRemix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU5E,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"componentScenarioPageRemix.d.ts","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageRemix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU5E,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,UAqGjB"}
|
|
@@ -7,8 +7,6 @@ import getImageReplacementCode from './getImageReplacementCode';
|
|
|
7
7
|
const VERSION = '0.5.1';
|
|
8
8
|
export default function componentScenarioPageRemix(file, entity, analysis, currentPath, appPath, scenario, mocksDir) {
|
|
9
9
|
return `import { ReactNode, useEffect, useCallback, useState } from 'react';
|
|
10
|
-
import type { MetaFunction } from "@remix-run/node";
|
|
11
|
-
import { useSearchParams } from "@remix-run/react";
|
|
12
10
|
${analysis.scenarios?.length > 0 && `import { scenarios } from "${mocksDir}/MockData_${safeFileName(scenario.name)}";`}
|
|
13
11
|
${getComponentImportStatement({
|
|
14
12
|
file,
|
|
@@ -26,13 +24,6 @@ ${getComponentImportStatement({
|
|
|
26
24
|
// Inject image interception code at module level to run before any rendering
|
|
27
25
|
${getImageReplacementCode()}
|
|
28
26
|
|
|
29
|
-
export const meta: MetaFunction = () => {
|
|
30
|
-
return [
|
|
31
|
-
{ title: "${file.name}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}" },
|
|
32
|
-
{ name: "description", content: "This is a demo of the ${file.name} component under the scenario: ${escapeQuotes(scenario.description)}" },
|
|
33
|
-
];
|
|
34
|
-
};
|
|
35
|
-
|
|
36
27
|
function Scenario({ name, width, height, children }: { name: string, width: string, height: string, children: ReactNode }) {
|
|
37
28
|
|
|
38
29
|
useEffect(() => {
|
|
@@ -73,7 +64,7 @@ function Scenario({ name, width, height, children }: { name: string, width: stri
|
|
|
73
64
|
return (
|
|
74
65
|
<div className='w-full flex items-center justify-center'>
|
|
75
66
|
<div id='component' style={{
|
|
76
|
-
minWidth: \`min(\${width}, 100vw)
|
|
67
|
+
minWidth: width !== 'auto' ? \`min(\${width}, 100vw)\` : undefined,
|
|
77
68
|
height: height !== 'auto' ? height : undefined,
|
|
78
69
|
minHeight: height !== 'auto' ? height : undefined,
|
|
79
70
|
display: 'block',
|
|
@@ -86,9 +77,25 @@ function Scenario({ name, width, height, children }: { name: string, width: stri
|
|
|
86
77
|
}
|
|
87
78
|
|
|
88
79
|
export default function Index() {
|
|
89
|
-
const [searchParams] =
|
|
80
|
+
const [searchParams] = useState(() =>
|
|
81
|
+
typeof window !== 'undefined'
|
|
82
|
+
? new URLSearchParams(window.location.search)
|
|
83
|
+
: new URLSearchParams()
|
|
84
|
+
);
|
|
90
85
|
const widthOverride = searchParams.get('width');
|
|
91
86
|
const heightOverride = searchParams.get('height') || 'auto';
|
|
87
|
+
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
document.title = "${file.name}: ${escapeQuotes(scenario.name)} CodeYam Demo v${VERSION}";
|
|
90
|
+
let metaDesc = document.querySelector('meta[name="description"]');
|
|
91
|
+
if (!metaDesc) {
|
|
92
|
+
metaDesc = document.createElement('meta');
|
|
93
|
+
metaDesc.setAttribute('name', 'description');
|
|
94
|
+
document.head.appendChild(metaDesc);
|
|
95
|
+
}
|
|
96
|
+
metaDesc.setAttribute('content', "This is a demo of the ${file.name} component under the scenario: ${escapeQuotes(scenario.description)}");
|
|
97
|
+
}, []);
|
|
98
|
+
|
|
92
99
|
${getIFrameMessageListenerCode({ scenarioName: scenario.name })}
|
|
93
100
|
|
|
94
101
|
return (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentScenarioPageRemix.js","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageRemix.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,IAAU,EACV,MAAc,EACd,QAAkB,EAClB,WAAmB,EACnB,OAAe,EACf,QAAkB,EAClB,QAAgB;IAEhB,OAAO
|
|
1
|
+
{"version":3,"file":"componentScenarioPageRemix.js","sourceRoot":"","sources":["../../../../../../generate/src/lib/componentScenarioPage/componentScenarioPageRemix.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,IAAU,EACV,MAAc,EACd,QAAkB,EAClB,WAAmB,EACnB,OAAe,EACf,QAAkB,EAClB,QAAgB;IAEhB,OAAO;EACP,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,IAAI,8BAA8B,QAAQ,aAAa,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI;EACpH,2BAA2B,CAAC;QAC5B,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,QAAQ;QACR,WAAW;QACX,OAAO;QACP,OAAO,EAAE,IAAI;QACb,WAAW,EACT,MAAM,CAAC,IAAI,KAAK,SAAS;YACzB,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,IAAI,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC;YAC7D,MAAM,CAAC,UAAU,KAAK,SAAS;KAClC,CAAC;;;EAGA,uBAAuB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgEH,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,OAAO;;;;;;;8DAO5B,IAAI,CAAC,IAAI,kCAAkC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC;;;IAGvI,4BAA4B,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;;;;QAIzD,iBAAiB,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;;EAG3E,CAAC;AACH,CAAC"}
|
|
@@ -7,6 +7,7 @@ export { default as frameworkRouteFileNameToRoute } from './src/lib/frameworks/f
|
|
|
7
7
|
export { default as getRemixRoutePath } from './src/lib/frameworks/getRemixRoutePath';
|
|
8
8
|
export { default as getNextRoutePath } from './src/lib/frameworks/getNextRoutePath';
|
|
9
9
|
export { default as getFrameworkRoutePath } from './src/lib/frameworks/getFrameworkRoutePath';
|
|
10
|
+
export { default as sanitizeNextRouteSegments } from './src/lib/frameworks/sanitizeNextRouteSegments';
|
|
10
11
|
export { default as safeFileName } from './src/lib/safeFileName';
|
|
11
12
|
export { default as normalizeKey } from './src/lib/normalizeKey';
|
|
12
13
|
export { default as awsLog, awsLogDebugLevel, setThreadContext, } from './src/lib/awsLog';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAOpF,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAGlD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,GAC/B,MAAM,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAOpF,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAGlD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,GAC/B,MAAM,+BAA+B,CAAC"}
|
|
@@ -7,6 +7,7 @@ export { default as frameworkRouteFileNameToRoute } from './src/lib/frameworks/f
|
|
|
7
7
|
export { default as getRemixRoutePath } from './src/lib/frameworks/getRemixRoutePath';
|
|
8
8
|
export { default as getNextRoutePath } from './src/lib/frameworks/getNextRoutePath';
|
|
9
9
|
export { default as getFrameworkRoutePath } from './src/lib/frameworks/getFrameworkRoutePath';
|
|
10
|
+
export { default as sanitizeNextRouteSegments } from './src/lib/frameworks/sanitizeNextRouteSegments';
|
|
10
11
|
export { default as safeFileName } from './src/lib/safeFileName';
|
|
11
12
|
export { default as normalizeKey } from './src/lib/normalizeKey';
|
|
12
13
|
export { default as awsLog, awsLogDebugLevel, setThreadContext, } from './src/lib/awsLog';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,4EAA4E;AAC5E,iDAAiD;AACjD,2EAA2E;AAC3E,qGAAqG;AAErG,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AACjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD,iDAAiD;AACjD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,GAEvB,MAAM,sCAAsC,CAAC;AAE9C,8BAA8B;AAC9B,OAAO,EACL,mBAAmB,GAIpB,MAAM,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,4EAA4E;AAC5E,iDAAiD;AACjD,2EAA2E;AAC3E,qGAAqG;AAErG,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AACjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD,iDAAiD;AACjD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,GAEvB,MAAM,sCAAsC,CAAC;AAE9C,8BAA8B;AAC9B,OAAO,EACL,mBAAmB,GAIpB,MAAM,+BAA+B,CAAC"}
|
package/analyzer-template/packages/github/dist/utils/src/lib/frameworks/getNextRoutePath.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextRoutePath.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/lib/frameworks/getNextRoutePath.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,OAAO,EACP,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getNextRoutePath.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/lib/frameworks/getNextRoutePath.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,OAAO,EACP,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,EAAE,QAAQ,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7B,UA2BA"}
|