1/* 2 * Copyright (c) 2022-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import * as fs from 'fs' 17import * as path from 'path' 18 19process.chdir(path.resolve('./')) 20 21const issue_src = fs.readFileSync('../playground/src/playground.cc', { encoding: 'utf8', flag: 'r' }) 22 23const component_src = 24` 25### Component 26 27Plugin API 28 29` 30 31const revision_src = 32` 33### Revision 34 35"@panda/sdk": "1.5.0-dev.9184" 36 37` 38 39const reproduction_src = 40` 41### Reproduction 42 43\`\`\` 44${issue_src} 45\`\`\` 46 47` 48 49// TODO: 50const log = `` 51 52const log_src = 53` 54### Log 55 56\`\`\` 57${log} 58\`\`\` 59` 60 61console.log( 62 component_src + 63 revision_src + 64 reproduction_src + 65 log_src 66) 67