{"_id":"@andares/promptdown","_rev":"20-e26255f4a3207eb00c9b3a906dc3c1d2","name":"@andares/promptdown","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.1":{"name":"@andares/promptdown","version":"0.1.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.1.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js"},"dist":{"shasum":"1971987f38beae0f3ebbf444b444d2a5b9217f65","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.1.1.tgz","fileCount":16,"integrity":"sha512-JrQEYXc3sWwuzw4QjbrdaAg8sRecsq0ULVxcWSNm2lWkq4gYJmlAE2Kx4Tf7thQZkOBzS2b9Ka+R1QoDF6hZNQ==","signatures":[{"sig":"MEQCIAXXptKnBa3/JdbXVbyo+cYpbD5KxBVpP4UNY/aj/FkTAiBjNIDsUVkZ/W3G5BbQcje65OaJE3iVCA1DwrOTOv/5tg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39856},"engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/prompt-down.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","aliases":["prompt-down","PromptDown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"prompt-down Icons"}]},"description":"极简标记语言 prompt-down（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"prompt-down","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2"},"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.1.1_1786392489075_0.3696125787313391","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@andares/promptdown","version":"0.2.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.2.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"53e4aef18e161f7c3fdf962cddd023e0c79a7b8b","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.2.0.tgz","fileCount":33,"integrity":"sha512-9bVBtjzKJBDfidch9rGroXPM+rG59/XbjUcKRSH34LV4uadl12h26i2SZbRYbrVOfnU1A/h4fuxWn+e4AoD+kg==","signatures":[{"sig":"MEUCIB2WbEAzDzeNUfnrEtx0GJeQ1hlHI/+SMu14wDoJSn5kAiEA1KPd+YZuiZJMTbdXeeYThfX/Ow0TXBMNNCEeczewKGo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2308330},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.2.0_1786440976567_0.582785832410629","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@andares/promptdown","version":"0.2.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.2.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"2a294a3396436d93889ba14c132120b73e7cf952","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.2.1.tgz","fileCount":38,"integrity":"sha512-ekenF4rT9AhhcO9Qs3gVOTvrTzuoy3iuqTo4nzVUD92JAEN5Yk+EfDjxaBzvCUC7iTDnGYQMqFvYngj0uHwXng==","signatures":[{"sig":"MEMCH3yRaLbd97LK54orqFRsWXI3GgJeStZ4ilUO4agSeAMCIE7fkRyLDIFs+rfFp1npf3HC6rgmJ4srzjSiXvzwWEhz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2354331},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.2.1_1786443198307_0.9422672965094887","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@andares/promptdown","version":"0.2.2","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.2.2","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"523c356573ecf41b8cdf49f747b901972a015e30","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.2.2.tgz","fileCount":39,"integrity":"sha512-SzOL4Gh49c3Luc2oEh0y7RnxHVjoWgXs8XI7YG62lMPL3TYszJ2rCr9X5mHgbAdmMM3fh0zjWDRjgDqCtSoYcA==","signatures":[{"sig":"MEYCIQCLKtgRAL1av2EsKdZWLlZ5gGYcWHA08uCvoLaRSwYcRQIhAL8AF9XDPZIwHFBsmFNL/FohxSjdn/HbJz3p/XII0P7I","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2354679},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.2.2_1786445979957_0.41297719899764274","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@andares/promptdown","version":"0.2.3","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.2.3","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"817b1d502495fd630d5be0d7df2bc3a700ae58e2","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.2.3.tgz","fileCount":39,"integrity":"sha512-vzt6v3kbEIgIgIu2q4I5fXFI8+BrDnsWsSiCr/yRRY28L7OuhqEGB9YKWJaZXHnv79p/EcUuUKZQ62eYAkhS4Q==","signatures":[{"sig":"MEQCID8e3D6K7+j3R1hbz9W/njlEd4Xnko2dKpxQlpcVoO8ZAiBe5IBsnrPbixTXsgZu+/kiv10fOTqWtzBDCQqYdTX7zw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2354679},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.2.3_1786446076809_0.2730305023152346","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@andares/promptdown","version":"0.3.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.3.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"955ea9d0d9b3f5451e17bc2bfb0d88e2c51069e3","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.3.0.tgz","fileCount":42,"integrity":"sha512-0P9gzO5AiD3iBFZJ0Yv9C6qIDnvk+jUH25OVxe+8cD5Gy0dalUKmae8sSRnMA/rFbeBMw/yNK8IS52JAuV0l9Q==","signatures":[{"sig":"MEUCIQDKLiwurOZpLPpRDHivdKlSssAUnOeYyt9gEzj8p8k5CQIgFwvMGhOMueoVY/TWiS9mXEjXVWm5ItcdZZjyON/ztpM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2392911},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.3.0_1786459663402_0.5612232319895316","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@andares/promptdown","version":"0.3.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.3.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"bc5cb2fc7bbd6f4d7d973e752b5ab377d952f6dd","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.3.1.tgz","fileCount":42,"integrity":"sha512-osD5aXBcanyE2orhv70enMEsnpjC6mLAEZTIykGgsuYxGr7Sxwgs/9ZSpMcOg8dwZ+8IsqCzsr6EsPkSTQhQtA==","signatures":[{"sig":"MEUCIQCkXwVoCb19czNabxlRPO3vOy1t/X7hMHIPAqFu848oPQIgBTFd65T3NTF4XgOEf94G7O6OJ0B1gNPrXvQMl+7viws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2393238},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd"}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}]},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.3.1_1786465156158_0.6009800276274992","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@andares/promptdown","version":"0.4.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.4.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"956d2bf55198056c8e9bf70603a580465f252117","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.4.0.tgz","fileCount":41,"integrity":"sha512-X0y49f+mtTdS+DkrDsNJixbVjlJ/scXbFPt+3ygoO99r+zlaEsZ6S5Zi5GtbtTN7q5xyMfshOMPJhah1PKvssQ==","signatures":[{"sig":"MEQCIAF/W0xowrmGElZET84wr5/eeULUtwznzlkGhMz8GTK5AiBHJpDfqkIOoBqjZDU8UUrx2NR4zTbrQ2mh7X4bHrqgig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2384377},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.4.0_1786505055510_0.3644070305112619","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@andares/promptdown","version":"0.5.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.5.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js"},"dist":{"shasum":"ebeb1bc156aa8f6875799fd01cb4987e0a54c9a7","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.5.0.tgz","fileCount":53,"integrity":"sha512-IZ9EicxULuTKAQqfe1CK5may4dbVE/bFgcJ+tKpdz+Hm3AXuVgzhHRl4cpbgJmC6GZ20HK6zuFwdsU0uhdVFIQ==","signatures":[{"sig":"MEQCIAVbXWjZ1KVCKt2bBtILyy4a7sXRG2tx7gwn9lKrOxnGAiBxr0iH244TBwdzXa3P0XQ6FuGOEyU/CyMPVUTtKrttug==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2441465},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"pd2json: 将当前 PD 文档解析为 JSON（新开 Untitled 文件）","command":"promptdown.pd2json"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:promptdown.pd2json"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.5.0_1786520985233_0.11821012681060883","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@andares/promptdown","version":"0.5.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.5.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"56d30c0e83bd74623fb22d6d700390d5967bdded","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.5.1.tgz","fileCount":56,"integrity":"sha512-28Q+3jgaO5HO4fWr9tChKnnCbX36zAqxMu5KHTbhzHUA7iJRVBRNIKLKQfNYFJH8FjxGvuL8RVm26PLiDfoz9g==","signatures":[{"sig":"MEUCIQDuTXBmoEcD1C28B36+gSvApvzADJM7li5Z9fZtuAJ4CQIgGnRChzdvO4P03KZXenC04NVCscd7n2GyAdh7N4cBaY8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2459099},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"pd2json: 将当前 PD 文档解析为 JSON（新开 Untitled 文件）","command":"promptdown.pd2json"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:promptdown.pd2json"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.5.1_1786545215779_0.8811598035320938","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@andares/promptdown","version":"0.6.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.6.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"68a289ba4deec4e7d236c9c1676f3d54fc60b5cd","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.6.0.tgz","fileCount":56,"integrity":"sha512-4z9SxO0mW1gFo9PnYiUP0ZDygNbGQpVaqGhuc3xY2Sjcvb2WApyVFPK1oo0qAJogcRdJNNt2Hkx1nFUTn9sooA==","signatures":[{"sig":"MEUCIQCSzV7eCJpy4AapJ35IosApqsbLHhuRvjTn4jQpbjNJrQIgTQBQBS+KDRzjU7mm8TGTwVGkzetMXrjCXnBoCUxaItM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2459676},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"pd2json: 将当前 PD 文档解析为 JSON（新开 Untitled 文件）","command":"promptdown.pd2json"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:promptdown.pd2json"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.6.0_1786553842910_0.49148220806424314","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@andares/promptdown","version":"0.6.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.6.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"59ef4e15aaf69fd52988bdb4690c4a7b5830a241","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.6.1.tgz","fileCount":57,"integrity":"sha512-ekgANzUUe5qNLiHBzSeNA9iPJnPk2vndBTIdjzABQKJSqlLqu3SIQxjWesBAkGrL18nyR6Oz2bXWhAbkfA6Ckg==","signatures":[{"sig":"MEUCIQCSvD/f+YT4R3Rau4CxgHMUgGwtK63ccBbVwzgAoD0caQIgHxSEmmSZy6L270Qc4nHS+tdGlk4KNUzCDp8+bhcTWvQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2463436},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"pd2json: 将当前 PD 文档解析为 JSON（新开 Untitled 文件）","command":"promptdown.pd2json"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:promptdown.pd2json","onCommand:promptdown.tab"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.6.1_1786601076121_0.42227359935448994","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@andares/promptdown","version":"0.6.2","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.6.2","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pd2json":"./dist/cli.js","pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"95751bd5e1958405b6539792647aa85d56fcce2b","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.6.2.tgz","fileCount":57,"integrity":"sha512-WTWiN6IAyCDSYlxGeLXssv5G+ArmUFRRhr/eLucR0ctKekm7Nfu21zdPomPauKQzl7OFEfvNfcCo1qVJMH9GWA==","signatures":[{"sig":"MEQCIFUNn32hIkgAGCy8xoqoHD963e6GiATJb9k3QUO31/TuAiA33Oaou8uSVy52GtGqUDFVydLXcU31V6LR1y9LJiUG2g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2466116},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"pd2json: 将当前 PD 文档解析为 JSON（新开 Untitled 文件）","command":"promptdown.pd2json"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可转 JSON，提供 VSCode 语法高亮与 pd2json CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:promptdown.pd2json","onCommand:promptdown.tab"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.6.2_1786604663190_0.7926522984766842","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@andares/promptdown","version":"0.7.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.7.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"6427233db667def73d666a3b4d9fec38493860bf","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.7.0.tgz","fileCount":60,"integrity":"sha512-9Yf3jGmaZhi5IKo295IkigkyzYMKpSlerA88cAOtJarIzOvhJYwZmfMS3RMWhaeUT5bsribo1FHIXuOS0wt3tg==","signatures":[{"sig":"MEQCICneXhKKQzBO/cFb/HnuGD4HI7uZx8VdvG9K7CNAxBGIAiAKUe1ZogWf1hcCs6r/gsvC4ih7YEh6Ox401AYCxtdvbQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2495596},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON，提供 VSCode 语法高亮与 pdtransform CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:pdtransform","onCommand:promptdown.tab"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.7.0_1786814049303_0.43364626582329335","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@andares/promptdown","version":"0.8.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.8.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","pdcompile":"./dist/compile-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"00550c4a41b14d814ccde70b2e643075c8d14518","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.8.0.tgz","fileCount":61,"integrity":"sha512-wdlPw3nrrVueiY/PU30We76ee98BOAR1eZvgIuy2NSvGw7nyMERvh2Ikb9Mdw8SjeyaP/vrP1rPjdbvfLUt3jg==","signatures":[{"sig":"MEUCIFJNfUzHEp6meBvSgnQ5+m5IjL3hsj1AXLa46Emri/gbAiEA5EhkdQGQinPTMEZrWjSnzaS5chhuQLMfGkmBDJr/nZs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2529004},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"},{"title":"%pdcompile.title%","command":"pdcompile"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段，提供 VSCode 语法高亮与 pdtransform/pdcompile CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:pdtransform","onCommand:pdcompile","onCommand:promptdown.tab"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.8.0_1786824492121_0.9149296069318842","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@andares/promptdown","version":"0.8.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.8.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","pdcompile":"./dist/compile-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"ee1f3618e20ef946929646b726f4082044580715","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.8.1.tgz","fileCount":62,"integrity":"sha512-5I9M8rt9N71ya7F1RgbbbcglKotN/sWF4gyMcS71gyeB2gDTk8GjVx6Y2F+sk5wMO0MP+/JgZQRKAJpDyxZDnQ==","signatures":[{"sig":"MEUCIEM3MBOYFbv9KEZ+WP8cA78lfiOnxq9gw8blOPOv1Xy0AiEAlQvEOik9nyWjJAOCdCdG6bxri5gwGdcb0qDbMRsIlOU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2539893},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"perf":"tsx perf/bench.ts","test":"tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","perf:gen":"tsx perf/gen-suite.ts","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"},{"title":"%pdcompile.title%","command":"pdcompile"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段，提供 VSCode 语法高亮与 pdtransform/pdcompile CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onDidOpenTextDocument","onDidChangeTextDocument","onCommand:pdtransform","onCommand:pdcompile","onCommand:promptdown.tab"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.8.1_1786852326638_0.8040885357727563","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@andares/promptdown","version":"0.9.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.9.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","pdcompile":"./dist/compile-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"8ea5047f139e70fa0196dbec3970c85fefe6537c","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.9.0.tgz","fileCount":57,"integrity":"sha512-jrHSPZiFeUKtL3i2gxr1TnjnacjbVx9aRr+UY1iYwIPkPqFA4nimZraAlw/KpzQlUiuoKSOQFE52DlT0b5EDWA==","signatures":[{"sig":"MEYCIQDxSvNbv5Ex3viS/MioHwufaoV9XtDxvtJjFiy1gp2d7QIhANx53AxanG8Epf5sjGc1TlU9aJpZEzwGx3egkIM93up0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2531487},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"perf":"tsx perf/bench.ts","test":"tsx --test test/*.test.ts","build":"pnpm --filter @andares/pdfoundation build && rm -rf dist && tsc -p tsconfig.json && node scripts/bundle-extension.mjs","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","release":"node ./scripts/publish.mjs","perf:gen":"tsx perf/gen-suite.ts","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs all","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs","release-editor":"node ./scripts/publish-editor.mjs","release-foundation":"node ./scripts/publish-foundation.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"},{"title":"%pdcompile.title%","command":"pdcompile"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段，提供 VSCode 语法高亮与 pdtransform/pdcompile CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","dependencies":{"@andares/pdfoundation":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","esbuild":"^0.28.2","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onStartupFinished"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.9.0_1787231078382_0.36404525590123704","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"@andares/promptdown","version":"0.9.1","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.9.1","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","pdcompile":"./dist/compile-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"4c9ed9b4b317a5bc0e57eae93ad5ed2821a4ec5b","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.9.1.tgz","fileCount":57,"integrity":"sha512-bLdsDNX/Hp4wD2GhlUi21NLumHiBTjIFSyGGPOVC/xR44sUCGeRmaqgamxLIhJv/K8L8monObhLYK6TSkRSK2w==","signatures":[{"sig":"MEUCIE6FaZ4ROofYZwElEAx2eF/ZMykJ40uqATwxnR0N2LNUAiEAjBOpRVWh18T3mOUcG8wtVilweLHFHQ4xML3IpbEcgdw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2527202},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"perf":"tsx perf/bench.ts","test":"tsx --test test/*.test.ts","build":"pnpm --filter @andares/pdfoundation build && rm -rf dist && tsc -p tsconfig.json && node scripts/bundle-extension.mjs","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","perf:gen":"tsx perf/gen-suite.ts","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs","release-editor":"node ./scripts/publish-editor.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"},{"title":"%pdcompile.title%","command":"pdcompile"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段，提供 VSCode 语法高亮与 pdtransform/pdcompile CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","dependencies":{"@andares/pdfoundation":"^0.9.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","esbuild":"^0.28.2","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onStartupFinished"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.9.1_1787232947422_0.5213257477281685","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"name":"@andares/promptdown","version":"0.10.0","keywords":["markdown","prompt","markup","json","language"],"license":"MIT","_id":"@andares/promptdown@0.10.0","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"bin":{"pdformat":"./dist/format-cli.js","pdcompile":"./dist/compile-cli.js","hx-install":"./scripts/hx-install.mjs","pdtransform":"./dist/cli.js","wsl-install":"./scripts/wsl-install.mjs"},"dist":{"shasum":"482fc8a508dd6d78bfee952ed5f22c2a22838803","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-0.10.0.tgz","fileCount":58,"integrity":"sha512-4tdiPgITBF9CwSExE31vn0UDiRvmvxg4be5yfdUV582++uuZwSgtsP9lstrkynsEB0MXGXZZE32mN0tGLox0EA==","signatures":[{"sig":"MEYCIQCE5P4jefC6a1hZeVCv+jO1I8N5b8zmemBA5DGVjFhA3AIhANW+ijvlqbgujCxFtTB5KQmpJ0j38mrzxyVXQPWUJdpM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2532255},"icon":"icons/pd-icon.png","main":"./dist/extension.js","engines":{"vscode":"^1.90.0"},"scripts":{"perf":"tsx perf/bench.ts","test":"tsx --test test/*.test.ts","build":"pnpm --filter @andares/pdfoundation build && rm -rf dist && tsc -p tsconfig.json && node scripts/bundle-extension.mjs","watch":"tsc -w -p tsconfig.json","package":"vsce package --no-dependencies","perf:gen":"tsx perf/gen-suite.ts","typecheck":"tsc --noEmit","hx-install":"node ./scripts/hx-install.mjs","release-all":"node ./scripts/publish.mjs","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs","release-editor":"node ./scripts/publish-editor.mjs"},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"publisher":"andares","categories":["Programming Languages","Formatters"],"repository":{"url":"https://github.com/andares/promptdown.git","type":"git"},"contributes":{"commands":[{"title":"%pdtransform.title%","command":"pdtransform"},{"title":"%pdcompile.title%","command":"pdcompile"}],"grammars":[{"path":"./syntaxes/pd.tmLanguage.json","language":"promptdown","scopeName":"source.pd","embeddedLanguages":{"source.cs":"csharp","source.go":"go","source.js":"javascript","source.ts":"typescript","source.cpp":"cpp","source.css":"css","source.php":"php","source.sql":"sql","source.fish":"fish","source.json":"json","source.rust":"rust","source.wgsl":"wgsl","source.yaml":"yaml","source.gleam":"gleam","source.scala":"scala","source.shell":"shellscript","source.elixir":"elixir","source.python":"python","source.moonbit":"moonbit","source.rescript":"rescript","source.json.comments":"jsonc","text.html.derivative":"html"}}],"languages":[{"id":"promptdown","icon":{"dark":"./icons/pd-icon.png","light":"./icons/pd-icon.png"},"aliases":["promptdown","Promptdown"],"extensions":[".pd"],"configuration":"./language-configuration.json"}],"iconThemes":[{"id":"promptdown-icons","path":"./theme/pd-icon-theme.json","label":"promptdown Icons"}],"keybindings":[{"key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions","command":"promptdown.tab"},{"key":"enter","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions && !editorHoverVisible && !renameInputVisible","command":"promptdown.enter"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段，提供 VSCode 语法高亮与 pdtransform/pdcompile CLI","directories":{},"displayName":"promptdown","_nodeVersion":"26.0.0","dependencies":{"@andares/pdfoundation":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.12","esbuild":"^0.28.2","typescript":"^5.9.3","@types/node":"^24.13.3","@vscode/vsce":"^3.9.2","@types/vscode":"^1.90.0"},"activationEvents":["onLanguage:promptdown","onStartupFinished"],"_npmOperationalInternal":{"tmp":"tmp/promptdown_0.10.0_1788749160489_0.5937437716640688","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@andares/promptdown","displayName":"promptdown","description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段、格式化；VSCode 扩展 + pdtransform/pdcompile/pdformat CLI（语义核心 @andares/pdfoundation，API 自 1.0 起冻结）","version":"1.0.0","publisher":"andares","license":"MIT","dependencies":{"@andares/pdfoundation":"^1.0.0"},"icon":"icons/pd-icon.png","main":"./dist/extension.js","activationEvents":["onLanguage:promptdown","onStartupFinished"],"repository":{"type":"git","url":"https://github.com/andares/promptdown.git"},"engines":{"vscode":"^1.90.0"},"categories":["Programming Languages","Formatters"],"keywords":["markdown","prompt","markup","json","language"],"bin":{"pdtransform":"./dist/cli.js","pdcompile":"./dist/compile-cli.js","pdformat":"./dist/format-cli.js","hx-install":"./scripts/hx-install.mjs","wsl-install":"./scripts/wsl-install.mjs"},"contributes":{"commands":[{"command":"pdtransform","title":"%pdtransform.title%"},{"command":"pdcompile","title":"%pdcompile.title%"}],"keybindings":[{"command":"promptdown.tab","key":"tab","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions"},{"command":"promptdown.enter","key":"enter","when":"editorTextFocus && editorLangId == promptdown && !editorReadonly && !suggestWidgetVisible && !inSnippets && !inlineSuggestionVisible && !hasOtherSuggestions && !editorHoverVisible && !renameInputVisible"}],"languages":[{"id":"promptdown","aliases":["promptdown","Promptdown"],"extensions":[".pd"],"icon":{"light":"./icons/pd-icon.png","dark":"./icons/pd-icon.png"},"configuration":"./language-configuration.json"}],"grammars":[{"language":"promptdown","scopeName":"source.pd","path":"./syntaxes/pd.tmLanguage.json","embeddedLanguages":{"source.js":"javascript","source.ts":"typescript","source.json":"json","source.json.comments":"jsonc","source.python":"python","source.shell":"shellscript","text.html.derivative":"html","source.css":"css","source.yaml":"yaml","source.sql":"sql","source.go":"go","source.php":"php","source.elixir":"elixir","source.fish":"fish","source.cs":"csharp","source.rescript":"rescript","source.wgsl":"wgsl","source.rust":"rust","source.scala":"scala","source.gleam":"gleam","source.cpp":"cpp","source.moonbit":"moonbit"}}],"iconThemes":[{"id":"promptdown-icons","label":"promptdown Icons","path":"./theme/pd-icon-theme.json"}],"configuration":{"title":"promptdown","properties":{"promptdown.autoDetect":{"type":"boolean","default":true,"description":"untitled / 未知扩展名等弱语法文件中出现 //!pd 段标记行时，自动把文档语言切换为 promptdown（获得高亮与格式化）。有自身语法的文件（md/js 等）不受影响。"}}}},"devDependencies":{"esbuild":"^0.28.2","tsx":"^4.23.12","@types/node":"^24.13.3","@types/vscode":"^1.90.0","typescript":"^5.9.3","@vscode/vsce":"^3.9.2"},"publishConfig":{"access":"public"},"scripts":{"build":"pnpm --filter @andares/pdfoundation build && rm -rf dist && tsc -p tsconfig.json && node scripts/bundle-extension.mjs","watch":"tsc -w -p tsconfig.json","typecheck":"tsc --noEmit","test":"tsx --test test/*.test.ts","package":"vsce package --no-dependencies","release-all":"node ./scripts/publish.mjs","tag-current":"node ./scripts/tag-current.mjs","wsl-install":"node ./scripts/wsl-install.mjs","hx-install":"node ./scripts/hx-install.mjs","perf":"tsx perf/bench.ts","perf:gen":"tsx perf/gen-suite.ts","release-editor":"node ./scripts/publish-editor.mjs"},"_id":"@andares/promptdown@1.0.0","dist":{"integrity":"sha512-mf/IkJvF+N6kokvAdBPGNc4yvhiGkrBXtzO6QAgrKPe6NcdHL5YACPQPJY4m9QCHo4xDHxvfmCn9LRfANWmhdQ==","shasum":"e2caa11ac225d3695249f5f4d4901e076f783baa","tarball":"https://registry.npmjs.org/@andares/promptdown/-/promptdown-1.0.0.tgz","fileCount":60,"unpackedSize":2547154,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFrizpv5nJ+qzaFYBkJxvBvUNXaHrWB8sxpCKe9sOO1rAiEAsrlTEwt+CzffLrRbxH6EhWgC6ers8umrkgNKXLtRhOI="}]},"_npmUser":{"name":"andares","email":"andares@outlook.com"},"directories":{},"maintainers":[{"name":"andares","email":"andares@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/promptdown_1.0.0_1789380094363_0.38110797010086506"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-10T20:08:08.930Z","modified":"2026-09-14T10:01:34.746Z","0.1.1":"2026-08-10T20:08:09.243Z","0.2.0":"2026-08-11T09:36:16.830Z","0.2.1":"2026-08-11T10:13:18.549Z","0.2.2":"2026-08-11T10:59:40.154Z","0.2.3":"2026-08-11T11:01:17.045Z","0.3.0":"2026-08-11T14:47:43.624Z","0.3.1":"2026-08-11T16:19:16.416Z","0.4.0":"2026-08-12T03:24:15.704Z","0.5.0":"2026-08-12T07:49:45.429Z","0.5.1":"2026-08-12T14:33:35.996Z","0.6.0":"2026-08-12T16:57:23.121Z","0.6.1":"2026-08-13T06:04:36.348Z","0.6.2":"2026-08-13T07:04:23.425Z","0.7.0":"2026-08-15T17:14:09.522Z","0.8.0":"2026-08-15T20:08:12.380Z","0.8.1":"2026-08-16T03:52:06.863Z","0.9.0":"2026-08-20T13:04:38.611Z","0.9.1":"2026-08-20T13:35:47.632Z","0.10.0":"2026-09-07T02:46:00.679Z","1.0.0":"2026-09-14T10:01:34.558Z"},"license":"MIT","keywords":["markdown","prompt","markup","json","language"],"repository":{"type":"git","url":"https://github.com/andares/promptdown.git"},"description":"极简标记语言 promptdown（.pd）：兼容 markdown 风格，可双向转换 JSON、编译多段、格式化；VSCode 扩展 + pdtransform/pdcompile/pdformat CLI（语义核心 @andares/pdfoundation，API 自 1.0 起冻结）","maintainers":[{"name":"andares","email":"andares@outlook.com"}],"readme":"<div align=\"center\">\n\n<img src=\"icons/pd-icon.png\" alt=\"promptdown icon\" width=\"128\" height=\"128\">\n\n# promptdown\n\n**极简标记语言 · 兼容 Markdown 风格 · PD ↔ JSON 双向转换**\n\n为提示词（prompt）组织而生的 `.pd` 格式 —— 只用一个 `:` 和一个 `-`，\n就能写出结构清晰、AI 友好、可直接转 JSON 的文本。\n\n[![npm version](https://img.shields.io/npm/v/@andares/promptdown?color=4fc08d&label=npm)](https://www.npmjs.com/package/@andares/promptdown)\n[![license](https://img.shields.io/npm/l/@andares/promptdown?color=orange)](./LICENSE)\n[![vscode](https://img.shields.io/badge/VSCode-Extension-007acc?logo=visualstudiocode&logoColor=white)](https://github.com/andares/promptdown)\n[![AI skill](https://img.shields.io/badge/AI-Skill-8b5cf6)](./skill/promptdown/SKILL.md)\n\n</div>\n\n---\n\n## ✨ 特性\n\n| | |\n| --- | --- |\n| 🪶 **极简** | 核心符号只有 `:`（键值/引用）与 `-`（序列标记），没有标题层级、没有复杂语法 |\n| 📦 **PD ↔ JSON 双向** | `pdtransform` CLI 自动识别输入类型：`.pd` → JSON，`.json` → pd；输出稳定、可机读 |\n| 🔗 **嵌套引用** | `:refname` / `:%序号` 编译期内联展开（序号引用匿名段也可用），多段 `//!pd <name>` 混排复用 |\n| 🧩 **多段编译** | `pdcompile` 跨文件合并段列表：段名 / `%序号` 寻址，隐式段 = 文件主名，引用跨文件展开编译为单份完整 pd |\n| 🎨 **VSCode 高亮** | TextMate grammar 纯声明式扩展，**无需 LSP**，零红线 |\n| ✨ **自动格式化** | CLI `pdformat` + VSCode 格式化程序，首个/后续冒号判定与顶层缩进一键规范 |\n| ⚡ **编辑器命令** | 命令面板搜 `pdtransform`（`PD格式转换`）/ `pdcompile`（`PD编译分段`）：pd→JSON 新开 Untitled、JSON→pd 直接变更当前文档（可撤销）、编译新开 Untitled；`-` 列表自动续行（空子项行回车一键清标记回顶层），序列项行按 Tab 整体缩进 |\n| 🔍 **自动检测** | untitled / 纯文本出现 `//!pd` 段标记即自动切换 pd 语言（高亮 + 格式化，可关） |\n| 🤖 **AI 友好** | 内置 skill：看到 `//!pd` 即按 pd 格式解析 |\n| 📝 **兼容 Markdown** | 内联 `**粗体**`、`` `代码` `` 等保留原文，混输无压力 |\n\n## ❓ Why\n\n提示词越写越多，如何\"自然地结构化\"就成了问题——简单场景用自然语言就够了，复杂需求（开发、媒体制作）下，现成方案都不太合适：\n\n- **JSON/YAML 等数据格式**：为机器精确表意而设计，书写繁琐或过于严格\n- **Markdown**：偏\"格式化\"（加粗、链接，目标是渲染成 HTML），不是单纯表意\n- **新兴 AI 格式**：要么基于 YAML 堆特性显得厚重，要么为省 token 牺牲可读性\n\n`promptdown` 追求符合人类与 AI 直觉的表达：无论 `.pd` 原文还是转换后的 JSON，AI 无需额外提示即可理解。同时语法对空行与书写极度宽容，不会因结构要求过严而在 VSCode 里到处冒黄线。\n\n## 🚀 快速开始\n\n```bash\nnpm install -g @andares/promptdown\npdtransform your-prompt.pd        # pd → JSON（输出到 stdout）\npdtransform output.json           # JSON → pd（输出到 stdout）\n```\n\n写一个 `.pd` 文件——比如给影视 AI 描述一段分镜：\n\n```pd\n分镜:\n- 镜头1:\n  - 场景: 雨夜小巷\n  - 运镜: 低角度跟拍\n  - 时长: 5秒\n- 镜头2:\n  - 场景: 天台\n  - 运镜: 无人机环绕\n  - 时长: 8秒\n```\n\n转出来的 JSON：\n\n```json\n{\n  \"分镜\": {\n    \"镜头1\": {\n      \"场景\": \"雨夜小巷\",\n      \"运镜\": \"低角度跟拍\",\n      \"时长\": \"5秒\"\n    },\n    \"镜头2\": {\n      \"场景\": \"天台\",\n      \"运镜\": \"无人机环绕\",\n      \"时长\": \"8秒\"\n    }\n  }\n}\n```\n\n## 📖 语法一览\n\n### 行类型\n\n| 写法 | 含义 |\n| --- | --- |\n| `//!pd <name>` | 段标记（可省略）：声明 pd 内容开始；多段混排实现引用 |\n| `---` | 分隔线：块边界，指针回根 |\n| `key: content` | 裸键值：严格判定（键名不以空白结尾、冒号后跟空白或行尾；`a : b`、`a:b` 均不是键值）；仅第一个冒号分隔键和值；在根创建键，独立成父亲 |\n| `- key: content` | 带 `-` 键值：同裸键值的严格判定；按缩进找爸爸嵌套 |\n| `- content` / `content` | 内容行：按缩进找爸爸，压入 Info 数组 |\n| ` :refname ` / ` :%序号 ` | 引用：前后必须带空格，编译期内联展开（`%N` 序号引用匿名段也可用） |\n| `:-` / `：-` | 普通冒号标记：整行不识别键值，标记本身也不是引用 |\n\n### 核心规则\n\n| 规则 | 说明 |\n| --- | --- |\n| 🔑 **折叠** | 键内只有单条字串 → `\"key\": \"value\"`；多行或混排 → `{ \"Info1\": [...] }` |\n| `:` **首个分隔** | 严格键值判定：键名不以空白结尾、冒号后跟空白或行尾；每行仅第一个冒号有键值语义；后续冒号不会再开启键值，` :ref ` 仍按引用规则处理 |\n| `:-` **普通冒号** | 行内出现 `:-` 或 `：-` 时整行不含键值，但不影响后续引用 |\n| 📋 **Info** | 无 key 内容归默认键 `Info`（数组），编号每层独立（Info1/Info2...） |\n| 🗂️ **Subject** | 顶层无 key 内容进匿名根 `Subject1/Subject2...` |\n| 🌳 **找爸爸** | 裸键值行不找爸爸；带 `-` 行与内容行按缩进找爸爸；同缩进 → 平级 |\n| 🔄 **引用** | 纯文字内联嵌入（保留前后空格）；带语法标记则断开转 `-` 项 + 块嵌入 |\n| ⏳ **空行无视** | 没有 `---` 时空多少行都继续找爸爸 |\n\n> 📚 完整语法规范见 [`docs/SPEC.md`](docs/SPEC.md)（唯一事实来源）\n> 🍳 新手教程见 [`docs/TUTORIAL.md`](docs/TUTORIAL.md)（从纯文本到引用/代码块，喂饭式示例，复制即跑）\n\n## 🔗 引用示例（多段混排）\n\n以编程任务为例：`任务` 段引用 `基础设定` 段（引用名支持中文），编译期自动内联展开——\n\n```pd\n//!pd 基础设定\n- 语言: TypeScript\n- 目标: 实现一个带防抖的搜索框\n\n//!pd 任务\n任务:\n- 技术栈: React\n- 参考: :基础设定\n- 额外要求: 防抖延迟 300ms\n```\n\n```bash\npdtransform file.pd 任务\n```\n\n```json\n{\n  \"任务\": {\n    \"技术栈\": \"React\",\n    \"参考\": {\n      \"语言\": \"TypeScript\",\n      \"目标\": \"实现一个带防抖的搜索框\"\n    },\n    \"额外要求\": \"防抖延迟 300ms\"\n  }\n}\n```\n\n## 🖥️ CLI\n\n```bash\npdtransform <file> [段名|%序号]\npdcompile <section> <file>[...<file>]\n```\n\n自动识别输入类型（扩展名 → 内容探针）：\n\n- **`.pd` 文件 → JSON**：单段文件可省略段名；多段必须指定——按**段名**，或 **1-based 序号**（`pdtransform file.pd %2` = 第 2 块，未命名段也能选；裸数字 `2` 是字符模式，匹配命名 `2` 的段）；段不存在/序号越界会报错退出\n- **`.json` 文件 → pd**：JSON 必须是对象；不符合 pd 规则的条目——非文本标量（数字/布尔/null）自动转文本，结构性不符合的丢弃，**逐条黄字警告**（stderr）；内容项（仅 InfoN 数组内字串）第一个冒号转义（半角 `:` → `:-`、全角 `：` → `：-`，冒号后字符保留，行内代码内不转），转回后仍是文本不是键值\n- **其他扩展名**按内容探测：含 `//!pd` 段标记 → pd；可解析为 JSON → json；都不是 → 报错退出\n- 引用（`:refname` 或 `:%序号`）在编译期内联展开，支持嵌套与循环检测；``` 围栏内与 `` ` `` 行内代码内的引用不展开\n- 语法错误（如顶层 `-` 缩进）会带行号报错退出\n\n**`pdcompile` 多段编译为单份完整 pd**（section 必填，输出到 stdout）：多个文件按\"文件参数顺序 → 文件内段顺序\"合并为全局段列表（从 1 编号）；无 `//!pd` 的文件 = 隐式段，段名 = 文件主名；`%` 开头的段名转义为 `%%`；跨文件重名段先到先得（后出现的同名段自动匿名，只能 `%序号` 访问）：\n\n```bash\npdcompile %1 first.pd                    # 编译第 1 个 section\npdcompile first first.pd second.pd       # 编译 first.pd 的隐式段（段名 = 文件主名）\npdcompile 任务 tasks.pd base.pd          # 按段名选段，跨文件引用内联展开\n```\n\nJSON → pd 的**空行规则**（已移入 format，pdformat / VSCode 格式化 / compile 输出统一生效）：默认无空行；唯一例外——顶层**带子域键值**后跟下一个顶层条目（键值/文本块/代码块）时，中间空一行：\n\n```pd\nname1:\n- value1\n- value2\n\nname2:\n- value3\n- value4\n```\n\n> 文本块/代码块（匿名 Subject）前还会输出 `---` 分隔线——pd 语法里只有 `---` 能把内容从上一个键块中分离出来。\n\n### ✨ 格式化\n\n```bash\npdformat <file.pd> [-w|--write]   # 默认输出 stdout；-w 写回原文件\n```\n\n格式化规则：\n\n- 首个全角冒号不论两侧空格均格式化为 `:`；无空格的首个半角冒号补右侧空格\n- 后续全角冒号仅在左侧有空格时转半角；后续半角冒号不处理\n- `:-` / `：-` 所在行不识别键值，但后续引用仍有效\n- 顶层 `-` 缩进自动修正\n- 行尾空白清理\n- `` ` `` 行内代码整体原样（内部冒号/全角冒号不处理）；``` 围栏内完全原样\n- 空行规则：顶层带子域键值后跟下一个顶层条目时空一行（多段按段应用，幂等）\n- 连续空行合并：2 个及以上连续空行压缩为 1 个（围栏内原样；最后一步执行）\n\n## 🎨 VSCode 扩展\n\n安装 `.vsix` 后，`.pd` 文件自动获得完整的编辑体验——**纯声明式扩展（无 LSP）**，不会产生任何诊断红线：\n\n```bash\ncode --install-extension promptdown-<version>.vsix\n```\n\n### 🏷️ 语法高亮\n\n- 🏷️ 段标记 `//!pd <name>`\n- ➖ 分隔线 `---`\n- 🔑 键值 `key:` / `- key:` 与 Info 默认键\n- 🔗 引用 `:refname` / `:%序号` / `:%序号`\n- 📋 `-` 序列项\n\n扩展详情页、扩展列表和 `.pd` 语言均使用 `icons/pd-icon.png` 作为品牌图标。\n\n### 🔍 `//!pd` 自动检测\n\n在 **untitled / 未知扩展名等弱语法文件**（默认 plaintext，如 `.txt`、`.log`）中，出现 `//!pd` 段标记行时自动切换为 promptdown 语言，立即获得高亮与格式化：\n\n- **打开时**：扫描前 50 行，发现段标记即切换\n- **输入时**：逐键分层预筛（行首 `//` 特征 → 段标记判定，几乎零开销），敲完 `//!pd` 即刻切换\n- 每文档每会话最多切换一次；**不覆盖用户显式选择的语言**（`.md`/`.js` 等有自身语法的文件不受影响）\n- 可用设置关闭：`\"promptdown.autoDetect\": false`\n\n### ✨ 格式化程序\n\n扩展内置文档格式化程序（`DocumentFormattingEditProvider`）：\n\n- 按默认格式化热键 **`Shift+Alt+F`**（或你自定义的 keybinding）即可格式化当前 `.pd` 文件\n- 也可右键 → **Format Document**\n- 想保存时自动格式化：设置 `\"editor.formatOnSave\": true`（或仅对 pd：`\"[promptdown]\": { \"editor.formatOnSave\": true }`）\n\n格式化规则与 `pdformat` CLI 一致（首个键值冒号、后续全角冒号、`:-` 普通冒号标记、顶层 `-` 缩进、行尾空白、行内代码/围栏保护、空行规则、连续空行合并）。\n\n### 📦 pdtransform 命令\n\n`Ctrl+Shift+P` 打开命令面板，输入 **`pdtransform`**（面板条目：`PD格式转换` / 灰色注释 `PD Transform to/from JSON`）回车，即可把当前文档在 PD 与 JSON 之间转换：\n\n> 🌐 **多语言**：命令名走 VSCode nls 本地化（`package.nls*.json`）——中文界面显示 `PD格式转换` + 灰色英文注释；英文界面自动显示 `PD Transform to/from JSON`。\n\n- **PD 文档 → JSON**：多段文件（多个 `//!pd` 段）会弹出 QuickPick 让你选择要转换的段，显示 `%序号 <段名>`（如 `%1 aaa`、`%2`；无 `//!pd` 的文档 = 隐式段，显示 `%1 <文件名>`）；**单段文档不弹窗直接转换**；结果**新开 untitled JSON 文件**（侧边预览打开），原文档不动\n- **JSON 文档 → pd**：**直接变更当前文档**（WorkspaceEdit 可撤销，保存由你控制），语言自动切到 promptdown 获得正确高亮；不符合规则的条目（标量转文本 / 结构性丢弃）在转换结束后弹一次错误消息窗逐条提示\n- 文档类型判断宽松：语言为 promptdown/json、文件名 `.pd`/`.json`、或内容探针（`//!pd` 段标记 / 可解析 JSON）均可\n- 无活动编辑器 / 无法识别类型 / 语法错误都会用 VSCode 通知提示，无副作用\n- **无默认快捷键**（命令面板搜 `pdtransform` 即可调出）\n\n### 🧩 pdcompile 命令\n\n命令面板搜 **`pdcompile`**（`PD编译分段` / 英文 `PD Compile Sections`）——把当前文档的选中段**编译为单份完整 pd**（引用内联展开 + 统一 format）：\n\n- 多段文档弹出 QuickPick 选段（显示规则与 pdtransform 相同：`%序号 <段名>`）\n- 单段文档不弹窗直接编译；无 `//!pd` 的文档段名 = 文件主名\n- 结果新开 untitled pd 文件（不覆盖原文）\n\n### ⌨️ 列表续行\n\n在 `-` 序列条目行尾按回车，新行自动补上 `-`（保持原行缩进，与 Markdown 习惯一致）：\n\n| 场景 | 行为 |\n| --- | --- |\n| `- foo` 行尾回车 | 新行补 `-`，缩进与原行一致 |\n| `- key: value` 行尾回车 | 同上（带-键值也是序列条目） |\n| `- `（空条目，带空格）行尾回车 | 清掉原行标记（含缩进）回到顶层：原行变空行，新行落行首，光标定新行 col 0 |\n| `-`（裸空条目，无空格）回车 | 退出列表（新行无标记） |\n| `---`（分隔线）回车 | 不续行 |\n\n> 连按两次回车即可从子项层级脱身直接写顶层项：第一次由续行规则生成 `<缩进>- `，第二次清掉标记回到行首（严格匹配 `/\\s*-\\s/` 场景，裸 `-` 不清行）。\n\n> 生效条件：`editor.autoIndent` 开启（默认开启）。\n\n### ⇥ Tab 缩进\n\n在序列项行（行首为 `-`，`-` 后可有可无空白，可带缩进）按 **Tab**，整行向右缩进一个 tab —— 快速调整嵌套层级（pd 的缩进即父子关系），而不是在光标处插入 tab 字符。缩进时若 `-` 后不是单个半角空格（裸 `-`、`-   x` 等多空白），会自动规范化为 `- x`：\n\n| 场景 | Tab 行为 |\n| --- | --- |\n| 光标在 `- foo`、裸 `-`、`-   x` 等序列项行上 | 整行右缩进一个 tab，并把 `-` 后规范化为单个半角空格 |\n| 其他行（键值行、内容行等） | 还原默认：插入 tab（遵循 `editor.insertSpaces` / `editor.indentSize` / `editor.tabSize`） |\n| 跨行多选 | 所有选中行整体右缩进（序列项行同样规范化） |\n| 补全列表 / 行内联补全（ghost text）/ 片段导航中 | 不拦截，保持 VSCode 原生行为 |\n\n### 📁 文件图标\n\n扩展附带图标主题 **promptdown Icons**（继承 Seti，只替换 `.pd` 图标）：\n\n- `Ctrl+Shift+P` → **File Icon Theme** → 选 `promptdown Icons`\n- 或 settings.json 里设 `\"workbench.iconTheme\": \"promptdown-icons\"`\n\n> 注：VSCode 不允许扩展强制覆盖用户的图标主题，需要在设置里手动切换一次。\n> 因为继承了 Seti，其他文件图标保持不变，只有 `.pd` 显示 `icons/pd-icon.png`。扩展也提供了语言图标回退，但最终是否展示仍由当前文件图标主题决定；选择 `promptdown Icons` 可确保资源管理器与编辑器标签页显示专属图标。\n\n### ⚙️ 设置一览\n\n| 设置 | 默认 | 说明 |\n| --- | --- | --- |\n| `promptdown.autoDetect` | `true` | 弱语法文件（untitled/txt/log 等）中出现 `//!pd` 段标记时，自动切换文档语言为 promptdown（获得高亮与格式化） |\n\n## 🦀 Helix 支持\n\nhelix 语法高亮只用 tree-sitter（无 TextMate），项目附带一份 `tree-sitter-promptdown/` grammar（**helix / neovim 通用**）。\n\n**一键安装**（repo 或 npm 全局包均可）：\n\n```bash\npnpm hx-install        # repo 内：检测 hx → 写 languages.toml → 装 queries → hx --grammar build\nhx-install             # npm 全局包（@andares/promptdown）自带此命令，用法相同\n```\n\n脚本自动：检测 hx → 写/合并 `~/.config/helix/languages.toml`（`source.path` 指向**当前来源**的 grammar——repo 装链 repo，npm 装链包内，来源切换自动更新）→ 拷 queries → `hx --grammar build`。验证：`hx --health promptdown`。\n\n**高亮配色**（`queries/highlights.scm`，值不设色与正文同色）：\n\n| 元素 | 颜色 |\n| --- | --- |\n| 键（含冒号） | 紫 `@keyword` |\n| 引用 `:refname` | 橙 `@constant`（value 内拆分，URL 不误拆） |\n| `---` 分隔线 / `-` 前缀 | 蓝 `@operator` |\n| `//!pd` 段标记 | 标题色粗体 `@markup.heading` |\n| ```` ``` ```` 围栏行 | 代码块底色 `@markup.raw.block` |\n| 值 / 普通文本 | 默认前景（无 capture） |\n\n**缩进继承**（`queries/indents.scm`）：列表项内回车自动缩进到内容列（`- 模块A:` 后新行列 2，嵌套逐级继承）；顶层键值行回车回列 0。helix 无法自动补 `-` 前缀（平台限制，换行只输出空白），回车后手动输入即可。\n\n**写提示词工作流**（config.toml 建议，脚本会输出）：\n\n```toml\n[editor]\nclipboard-provider = \"wayland\"   # WSLg 默认已自动检测；显式声明更稳\n\n[keys.normal]\nF5 = \":set-language promptdown\"   # 一键激活 pd 语言（空 buffer / 未存盘场景）\nF6 = [\"select_all\", \"yank\"]       # 一键全选复制全文到系统剪贴板（WSLg → Windows 剪贴板）\n```\n\n- `hx 提示词.pd`：`.pd` 后缀自动识别，直接写（不 `:w` 即不落盘）\n- 写完 `F6` 复制全文 → Windows 端 `Ctrl+V` 粘贴（WSLg 与系统剪贴板同步，已实测）\n- 手动安装：`languages.toml` 加 `[[language]]` + `[[grammar]]`（`source.path` 指向 grammar 目录）→ `hx --grammar build` → 拷 `queries/*.scm` 到 `~/.config/helix/runtime/queries/promptdown/`（⚠️ grammar 配置不管 queries，必须手动拷）\n- 限制：围栏只高亮 ```` ``` ```` 行本身（围栏内行按普通文本）；键名不能以 `-` 开头（`-` 前缀归列表项）\n\n## 🧩 多端一致性（语法规则同步状态）\n\npd 语法在四端实现，语义以 **TS 核心**（`packages/pdfoundation/` 共享包 @andares/pdfoundation，解析/转换/格式化的唯一事实）为准，其余各端为**显示层**：\n\n| 规则 | TS 核心 | VSCode（TextMate） | Helix（tree-sitter） |\n| --- | --- | --- | --- |\n| 严格键值判定（`a : b`/`a:b` 非键值） | ✅ | ✅ | ✅ |\n| `:-`/`：-` 整行转义 | ✅ | ✅ | ✅ |\n| 行内代码内冒号不参与键值/转义判定 | ✅ | ✅ | ✅（0.8 同步） |\n| 行内代码整体漂色 | ✅（语义） | ✅ | ⚠️ 仅语义豁免，无漂色 |\n| `:-` 行内代码内不触发整行转义 | ✅ | ⚠️ 保守（代码内 `:-` 也整行不识别键值） | ✅ |\n| SECTION 整行锚定（`//!pd 名 字` 非段标记） | ✅ | ✅ | ⚠️ 降级：前缀匹配 |\n| SEPARATOR 整行锚定（`---x` 非分隔线） | ✅ | ✅ | ⚠️ 降级：`---` 前缀即匹配 |\n| 引用前后空格约束（` :name `） | ✅ | ✅ | ⚠️ 降级：tree-sitter 正则无 lookahead |\n| 未闭合反引号按普通字符 | ✅ | ✅ | ⚠️ 降级：近似处理 |\n| ``` 围栏内原样/不切段/不展开引用 | ✅ | ✅（高亮） | ✅ |\n| 寻址/引用解析（%N、%% 转义、先到先得） | ✅ | —（无寻址概念） | — |\n\n**降级说明**（tree-sitter 外部 scanner 无法回退已消费字符 + 正则引擎不支持 lookahead，严格判定的失败分支会导致行内容丢失/误判；宽容前缀匹配在显示层更安全）：\n\n- `//!pd 名 字`、`---x` 在 Helix 中会按段标记/分隔线高亮（TS 核心按普通文本解析）\n- `` ` `` 行内代码在 Helix 中无整体漂色（仅内部冒号不参与键值判定）；`` `a: b` `` 这类行内代码内冒号不会误高亮为键值\n- 未闭合反引号行（`` `a: b ``）在 Helix 按非键值显示（TS 核心按普通文本，可作键名）\n\n> 以上差异均为**高亮显示层**差异，不影响解析/转换结果（语义以 TS 核心为准）。\n\n## 🔒 API 与稳定性（1.0 起冻结）\n\npromptdown 由三个 npm 包组成，1.0 后以下公共面**冻结**（不可删除 / 改名 / 改签名；破坏性变更一律 2.0）：\n\n| 包 | 公共面 |\n| --- | --- |\n| `@andares/promptdown` | CLI 行为（`pdtransform` / `pdcompile` / `pdformat` / `--version`）、VSCode 贡献点（命令、语言 id `promptdown`、配置 `promptdown.autoDetect`、格式化程序、Tab/回车编辑行为）。**不导出 JS 语义 API**（已移至 foundation） |\n| `@andares/pdfoundation` | 语义 API：`format` / `pdToJsonText` / `jsonToPdText` / `compilePdText` / `compileSections` / `detectTransformKind` / `splitSections` / `nameSections` / `resolveSection` 等（完整清单见 [1.0 规划](docs/ROADMAP-1.0.md)） |\n| `@andares/pdeditor` | 组件 API：`createPdEditor` 与 `PdEditorOptions` 全部键；`/pd` 入口另含 `highlightPd`；两入口 re-export 语义 API |\n\n- **语法规范**：`docs/SPEC.md` 冻结——行类型、section 寻址、引用（含循环静默擦除）、格式化与转义/豁免矩阵；1.0 后只做非破坏性补充\n- **版本策略**：语义化版本；`@andares/pdfoundation` 与主包**同号绑定**（每次 `release-all` 一起发）；`@andares/pdeditor` 独立版本线\n\n## 🤖 AI Skill\n\n两个 skill，按需安装：\n\n**① 解析版 [`skill/promptdown/SKILL.md`](skill/promptdown/SKILL.md)** —— 提供 pd 语法知识（读）：\n\n- 输入中出现 **`//!pd`** → 后续内容按 pd 格式解析\n- 处理 `.pd` 文件、转 JSON、语法纠错\n\n**② 作者版 [`skill/pd-author/SKILL.md`](skill/pd-author/SKILL.md)** —— 教 AI **写**结构化提示词（默认 pd，不用 markdown）：\n\n- 结构化 prompt（角色/目标/约束/步骤/示例…）→ 默认输出 pd 结构，键替代 `#` 标题\n- 含通用 prompt 骨架模板、领域范例、作者视角避坑清单\n- 触发词：写提示词、组织提示词、提示词结构、用 pd 写\n\n安装到 AI 的 skill 目录即可（如 `~/.pi/agent/skills/` 或项目 `.agents/skills/`，`pd-author/` 目录整体复制为独立 skill）。\n\n## 🛠️ 开发\n\n- **Web 输入框组件**：[packages/editor/](https://github.com/andares/promptdown/tree/master/packages/editor)（npm 包 @andares/pdeditor）——headless 提示词输入框（pd/md/xml/json/yaml 高亮），基于 Yace；含 pd-only 精简入口（`@andares/pdeditor/pd`，不含 Prism，~17 kB），该入口另 re-export 共享语义包（`format` / `jsonToPdText` / `pdToJsonText` / `highlightPd`）；`pnpm --filter @andares/pdeditor dev` 起 demo\n- **性能基准**：`pnpm perf`（10 副本样本 2099 行/150 段全链路基准）；`pnpm perf:gen [份数]` 重新生成样本（`perf/generated/` 不入库）\n- **1.0 路线**：见 [`docs/ROADMAP-1.0.md`](docs/ROADMAP-1.0.md)（API 冻结声明 + 全端对齐确认 + 发布节奏）\n\n```bash\npnpm install\npnpm typecheck   # 类型检查\npnpm test        # node:test（壳层 + CLI 集成；语义规则 178 用例在 packages/pdfoundation）\npnpm build       # tsc → dist/\npnpm package     # 以 --no-dependencies 打包 .vsix\n```\n\n### 发布\n\n```bash\npnpm release-all patch     # 唯一主包发布入口：foundation（同号）→ npm → push/tag → vsce\npnpm release-editor patch  # editor 独立发布（纯 npm）\npnpm release-all patch -- --dry-run  # 预览计划（不改动任何东西；旧 release 命令已移除）\npnpm tag-current          # 给当前版本打本地 tag vX.Y.Z（已存在则跳过，不推送）\n```\n\n- `pnpm release-all`（唯一主包入口）：sync（未提交改动自动 commit、本地领先自动 push、本地落后中止、没有则跳过）→ 门禁（含 foundation）→ 主包 + foundation **同号 bump** → `git commit + tag vX.Y.Z` → **先发 foundation 再发主包**（`workspace:^` 发布时自动改写为实际版本）→ push 分支 + tags → 创建 GitHub Release → vsce package + publish。npm 失败中止，vsce 失败降级为只发 npm。\n- `pnpm release` / `pnpm release-foundation` 已移除（并入 release-all）：误敲会被拦截提示。\n\n## 📁 项目结构\n\n```text\npromptdown/\n├── icons/pd-icon.png   # 扩展品牌图标 + .pd 文件图标\n├── src/cli.ts           # pdtransform CLI（自动识别 pd/json 双向转换）\n├── src/compile-cli.ts   # pdcompile CLI（多段编译为单份完整 pd）\n├── src/format-cli.ts    # pdformat CLI（格式化）\n├── src/extension.ts     # VSCode 扩展（命令 + 格式化 + 回车/Tab 行为）\n├── src/tab.ts           # Tab 缩进逻辑（扩展专用）\n├── src/enter.ts         # 回车清子项标记（扩展专用）\n├── src/version.ts       # CLI 通用 --version\n├── packages/pdfoundation/  # ⭐ 共享语义核心 @andares/pdfoundation（parser/format/转换 + 语义测试与 fixtures）\n├── packages/editor/     # headless 输入框组件 @andares/pdeditor\n├── syntaxes/            # TextMate 语法高亮\n├── docs/SPEC.md         # ⭐ 语法规范（唯一事实来源）\n├── skill/               # AI skill（容器：promptdown/ 解析版 + pd-author/ 作者版）\n└── test/                # 主包测试（CLI 集成 / tab 行为）\n```\n\n## 📄 License\n\n[MIT](./LICENSE)\n","readmeFilename":""}