terminal-pilot 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +152 -2
- package/dist/cli.js.map +3 -3
- package/dist/commands/close-session.js +1 -1
- package/dist/commands/close-session.js.map +2 -2
- package/dist/commands/create-session.js +1 -1
- package/dist/commands/create-session.js.map +2 -2
- package/dist/commands/daemon-runtime.js +1 -1
- package/dist/commands/daemon-runtime.js.map +2 -2
- package/dist/commands/fill.js +1 -1
- package/dist/commands/fill.js.map +2 -2
- package/dist/commands/get-session.js +1 -1
- package/dist/commands/get-session.js.map +2 -2
- package/dist/commands/index.js +145 -1
- package/dist/commands/index.js.map +3 -3
- package/dist/commands/install.js +145 -1
- package/dist/commands/install.js.map +3 -3
- package/dist/commands/installer.js +145 -1
- package/dist/commands/installer.js.map +3 -3
- package/dist/commands/list-sessions.js +1 -1
- package/dist/commands/list-sessions.js.map +2 -2
- package/dist/commands/press-key.js +1 -1
- package/dist/commands/press-key.js.map +2 -2
- package/dist/commands/read-history.js +1 -1
- package/dist/commands/read-history.js.map +2 -2
- package/dist/commands/read-screen.js +1 -1
- package/dist/commands/read-screen.js.map +2 -2
- package/dist/commands/resize.js +1 -1
- package/dist/commands/resize.js.map +2 -2
- package/dist/commands/runtime.js +1 -1
- package/dist/commands/runtime.js.map +2 -2
- package/dist/commands/screenshot.js +1 -1
- package/dist/commands/screenshot.js.map +2 -2
- package/dist/commands/send-signal.js +1 -1
- package/dist/commands/send-signal.js.map +2 -2
- package/dist/commands/type.js +1 -1
- package/dist/commands/type.js.map +2 -2
- package/dist/commands/uninstall.js +145 -1
- package/dist/commands/uninstall.js.map +3 -3
- package/dist/commands/wait-for-exit.js +1 -1
- package/dist/commands/wait-for-exit.js.map +2 -2
- package/dist/commands/wait-for.js +1 -1
- package/dist/commands/wait-for.js.map +2 -2
- package/dist/testing/cli-repl.js +152 -2
- package/dist/testing/cli-repl.js.map +3 -3
- package/dist/testing/qa-cli.js +152 -2
- package/dist/testing/qa-cli.js.map +3 -3
- package/node_modules/toolcraft-design/README.md +187 -5
- package/node_modules/toolcraft-design/dist/brand.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/brand.js +1 -0
- package/node_modules/toolcraft-design/dist/brands.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/brands.js +1 -0
- package/node_modules/toolcraft-design/dist/cancel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/color.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/color.js +1 -0
- package/node_modules/toolcraft-design/dist/configure-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/configure-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/confirm-or-cancel.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/confirm-or-cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/confirm.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/confirm.js +1 -0
- package/node_modules/toolcraft-design/dist/create-dashboard.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/create-dashboard.js +1 -0
- package/node_modules/toolcraft-design/dist/create-logger.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/create-logger.js +1 -0
- package/node_modules/toolcraft-design/dist/dark.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/dark.js +1 -0
- package/node_modules/toolcraft-design/dist/format-columns.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-columns.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-list.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-command-list.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found-panel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found-panel.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command-not-found.js +1 -0
- package/node_modules/toolcraft-design/dist/format-command.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-command.js +1 -0
- package/node_modules/toolcraft-design/dist/format-option-list.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/format-option-list.js +1 -0
- package/node_modules/toolcraft-design/dist/format-option.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-option.js +1 -0
- package/node_modules/toolcraft-design/dist/format-usage.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/format-usage.js +1 -0
- package/node_modules/toolcraft-design/dist/get-template-partial-names.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/get-template-partial-names.js +1 -0
- package/node_modules/toolcraft-design/dist/get-theme-config.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/get-theme-config.js +1 -0
- package/node_modules/toolcraft-design/dist/get-theme.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/get-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/help-formatter-plain.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter-plain.js +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/help-formatter.js +1 -0
- package/node_modules/toolcraft-design/dist/index.d.ts +2 -2
- package/node_modules/toolcraft-design/dist/index.js +1 -1
- package/node_modules/toolcraft-design/dist/intro-plain.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/intro-plain.js +1 -0
- package/node_modules/toolcraft-design/dist/intro.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/intro.js +1 -0
- package/node_modules/toolcraft-design/dist/is-cancel.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/is-cancel.js +1 -0
- package/node_modules/toolcraft-design/dist/light.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/light.js +1 -0
- package/node_modules/toolcraft-design/dist/log.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/log.js +1 -0
- package/node_modules/toolcraft-design/dist/logger.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/logger.js +1 -0
- package/node_modules/toolcraft-design/dist/multiselect.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/multiselect.js +1 -0
- package/node_modules/toolcraft-design/dist/note.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/note.js +1 -0
- package/node_modules/toolcraft-design/dist/open-external.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/open-external.js +1 -0
- package/node_modules/toolcraft-design/dist/outro.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/outro.js +1 -0
- package/node_modules/toolcraft-design/dist/parse.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/parse.js +1 -0
- package/node_modules/toolcraft-design/dist/password.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/password.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-cancelled-error.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/prompt-cancelled-error.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-text.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/prompt-text.js +1 -0
- package/node_modules/toolcraft-design/dist/prompt-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/prompt-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/render-catalog.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-catalog.js +1 -0
- package/node_modules/toolcraft-design/dist/render-detail-card.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-detail-card.js +1 -0
- package/node_modules/toolcraft-design/dist/render-html.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-html.js +1 -0
- package/node_modules/toolcraft-design/dist/render-inspector-card.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-inspector-card.js +1 -0
- package/node_modules/toolcraft-design/dist/render-markdown-html.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-markdown-html.js +1 -0
- package/node_modules/toolcraft-design/dist/render-markdown.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-markdown.js +1 -0
- package/node_modules/toolcraft-design/dist/render-menu.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-menu.js +1 -0
- package/node_modules/toolcraft-design/dist/render-resource-browser.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-resource-browser.js +1 -0
- package/node_modules/toolcraft-design/dist/render-spinner-frame.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-spinner-frame.js +1 -0
- package/node_modules/toolcraft-design/dist/render-spinner-stopped.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-spinner-stopped.js +1 -0
- package/node_modules/toolcraft-design/dist/render-table.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-table.js +1 -0
- package/node_modules/toolcraft-design/dist/render-template.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render-template.js +1 -0
- package/node_modules/toolcraft-design/dist/render.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/render.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-output-format-cache.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-output-format-cache.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme-cache.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme-cache.js +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/reset-theme.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-output-format.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/resolve-output-format.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-template-partials.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/resolve-template-partials.js +1 -0
- package/node_modules/toolcraft-design/dist/resolve-theme-name.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/resolve-theme-name.js +1 -0
- package/node_modules/toolcraft-design/dist/run-explorer.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/run-explorer.js +1 -0
- package/node_modules/toolcraft-design/dist/run-two-pane-explorer.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/run-two-pane-explorer.js +1 -0
- package/node_modules/toolcraft-design/dist/select.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/select.js +1 -0
- package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/should-use-interactive-dashboard.js +1 -0
- package/node_modules/toolcraft-design/dist/single-detail.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/single-detail.js +1 -0
- package/node_modules/toolcraft-design/dist/spacing.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/spacing.js +1 -0
- package/node_modules/toolcraft-design/dist/spinner-frames.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/spinner-frames.js +1 -0
- package/node_modules/toolcraft-design/dist/spinner.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/spinner.js +1 -0
- package/node_modules/toolcraft-design/dist/strip-ansi.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/strip-ansi.js +1 -0
- package/node_modules/toolcraft-design/dist/symbols.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/symbols.js +1 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/ast.d.ts +6 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.d.ts +7 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/html-renderer.js +366 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/index.d.ts +5 -1
- package/node_modules/toolcraft-design/dist/terminal-markdown/index.js +6 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.d.ts +4 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/parser/code-highlight.js +1357 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/terminal-markdown/renderer.js +63 -1
- package/node_modules/toolcraft-design/dist/text.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/text.js +1 -0
- package/node_modules/toolcraft-design/dist/typography.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/typography.js +1 -0
- package/node_modules/toolcraft-design/dist/widths.d.ts +1 -0
- package/node_modules/toolcraft-design/dist/widths.js +1 -0
- package/node_modules/toolcraft-design/dist/with-output-format.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/with-output-format.js +1 -0
- package/node_modules/toolcraft-design/dist/with-spinner.d.ts +2 -0
- package/node_modules/toolcraft-design/dist/with-spinner.js +1 -0
- package/node_modules/toolcraft-design/package.json +4 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1834,6 +1834,150 @@ import { LineCounter, parse, parseDocument } from "yaml";
|
|
|
1834
1834
|
// ../frontmatter/src/stringify.ts
|
|
1835
1835
|
import { stringify } from "yaml";
|
|
1836
1836
|
|
|
1837
|
+
// ../toolcraft-design/src/terminal-markdown/parser/code-highlight.ts
|
|
1838
|
+
var codeLanguages = [
|
|
1839
|
+
{
|
|
1840
|
+
id: "javascript",
|
|
1841
|
+
aliases: ["js", "javascript", "mjs", "cjs", "es6"],
|
|
1842
|
+
family: "lexical",
|
|
1843
|
+
spec: "javascript"
|
|
1844
|
+
},
|
|
1845
|
+
{ id: "javascriptreact", aliases: ["jsx"], family: "lexical", spec: "javascript" },
|
|
1846
|
+
{
|
|
1847
|
+
id: "typescript",
|
|
1848
|
+
aliases: ["ts", "typescript", "mts", "cts"],
|
|
1849
|
+
family: "lexical",
|
|
1850
|
+
spec: "typescript"
|
|
1851
|
+
},
|
|
1852
|
+
{ id: "typescriptreact", aliases: ["tsx"], family: "lexical", spec: "typescript" },
|
|
1853
|
+
{ id: "json", aliases: ["json"], family: "data", spec: "json" },
|
|
1854
|
+
{ id: "jsonc", aliases: ["jsonc"], family: "data", spec: "jsonc" },
|
|
1855
|
+
{ id: "jsonl", aliases: ["jsonl"], family: "data", spec: "json" },
|
|
1856
|
+
{ id: "yaml", aliases: ["yaml", "yml"], family: "data", spec: "yaml" },
|
|
1857
|
+
{ id: "css", aliases: ["css"], family: "style", spec: "css" },
|
|
1858
|
+
{ id: "scss", aliases: ["scss"], family: "style", spec: "css" },
|
|
1859
|
+
{ id: "sass", aliases: ["sass"], family: "style", spec: "css" },
|
|
1860
|
+
{ id: "less", aliases: ["less"], family: "style", spec: "css" },
|
|
1861
|
+
{ id: "postcss", aliases: ["postcss"], family: "style", spec: "css" },
|
|
1862
|
+
{ id: "shellscript", aliases: ["sh", "bash", "shell", "shellscript", "zsh", "fish"], family: "lexical", spec: "shell" },
|
|
1863
|
+
{ id: "python", aliases: ["py", "python"], family: "lexical", spec: "python" },
|
|
1864
|
+
{ id: "sql", aliases: ["sql", "ddl", "dml"], family: "lexical", spec: "sql" },
|
|
1865
|
+
{ id: "html", aliases: ["html"], family: "markup", spec: "html" },
|
|
1866
|
+
{ id: "xml", aliases: ["xml", "svg"], family: "markup", spec: "xml" },
|
|
1867
|
+
{ id: "markdown", aliases: ["md", "markdown"], family: "line", spec: "markdown" },
|
|
1868
|
+
{ id: "diff", aliases: ["diff", "patch"], family: "line", spec: "diff" },
|
|
1869
|
+
{ id: "dockerfile", aliases: ["dockerfile", "docker"], family: "line", spec: "dockerfile" },
|
|
1870
|
+
{ id: "ini", aliases: ["ini", "properties"], family: "data", spec: "ini" },
|
|
1871
|
+
{ id: "toml", aliases: ["toml"], family: "data", spec: "toml" },
|
|
1872
|
+
{ id: "plaintext", aliases: ["text", "txt", "plain", "plaintext"], plain: true },
|
|
1873
|
+
{ id: "ruby", aliases: ["rb", "ruby"], family: "lexical", spec: "ruby" },
|
|
1874
|
+
{ id: "go", aliases: ["go", "golang"], family: "lexical", spec: "go" },
|
|
1875
|
+
{ id: "java", aliases: ["java"], family: "lexical", spec: "java" },
|
|
1876
|
+
{ id: "kotlin", aliases: ["kt", "kotlin", "kts"], family: "lexical", spec: "kotlin" },
|
|
1877
|
+
{ id: "swift", aliases: ["swift"], family: "lexical", spec: "swift" },
|
|
1878
|
+
{ id: "dart", aliases: ["dart"], family: "lexical", spec: "dart" },
|
|
1879
|
+
{ id: "scala", aliases: ["scala", "sc"], family: "lexical", spec: "scala" },
|
|
1880
|
+
{ id: "groovy", aliases: ["groovy", "gvy", "gy", "gsp"], family: "lexical", spec: "groovy" },
|
|
1881
|
+
{ id: "c", aliases: ["c"], family: "lexical", spec: "c" },
|
|
1882
|
+
{ id: "cpp", aliases: ["cpp", "c++", "cc", "cxx"], family: "lexical", spec: "cpp" },
|
|
1883
|
+
{ id: "csharp", aliases: ["cs", "csharp", "c#"], family: "lexical", spec: "csharp" },
|
|
1884
|
+
{ id: "objective-c", aliases: ["objc", "objectivec", "objective-c", "m", "mm"], family: "lexical", spec: "objectivec" },
|
|
1885
|
+
{ id: "rust", aliases: ["rs", "rust"], family: "lexical", spec: "rust" },
|
|
1886
|
+
{ id: "php", aliases: ["php"], family: "lexical", spec: "php" },
|
|
1887
|
+
{ id: "lua", aliases: ["lua"], family: "lexical", spec: "lua" },
|
|
1888
|
+
{ id: "perl", aliases: ["pl", "perl", "pm"], family: "lexical", spec: "perl" },
|
|
1889
|
+
{ id: "r", aliases: ["r", "rscript"], family: "lexical", spec: "r" },
|
|
1890
|
+
{ id: "powershell", aliases: ["ps1", "powershell", "pwsh"], family: "lexical", spec: "powershell" },
|
|
1891
|
+
{ id: "elixir", aliases: ["ex", "exs", "elixir"], family: "lexical", spec: "elixir" },
|
|
1892
|
+
{ id: "erlang", aliases: ["erl", "erlang", "hrl"], family: "lexical", spec: "erlang" },
|
|
1893
|
+
{ id: "haskell", aliases: ["hs", "haskell"], family: "lexical", spec: "haskell" },
|
|
1894
|
+
{ id: "clojure", aliases: ["clj", "cljs", "cljc", "clojure"], family: "lexical", spec: "clojure" },
|
|
1895
|
+
{ id: "fsharp", aliases: ["fs", "fsi", "fsx", "fsharp"], family: "lexical", spec: "fsharp" },
|
|
1896
|
+
{ id: "vb", aliases: ["vb", "vbnet"], family: "lexical", spec: "vb" },
|
|
1897
|
+
{ id: "graphql", aliases: ["graphql", "gql"], family: "lexical", spec: "graphql" },
|
|
1898
|
+
{ id: "protobuf", aliases: ["proto", "protobuf"], family: "lexical", spec: "protobuf" },
|
|
1899
|
+
{ id: "hcl", aliases: ["hcl", "tf", "terraform"], family: "lexical", spec: "hcl" },
|
|
1900
|
+
{ id: "nginx", aliases: ["nginx", "nginxconf"], family: "lexical", spec: "nginx" },
|
|
1901
|
+
{ id: "makefile", aliases: ["makefile", "mk"], family: "lexical", spec: "makefile" },
|
|
1902
|
+
{ id: "cmake", aliases: ["cmake"], family: "lexical", spec: "cmake" },
|
|
1903
|
+
{ id: "gradle", aliases: ["gradle"], family: "lexical", spec: "groovy" },
|
|
1904
|
+
{ id: "env", aliases: ["env", "dotenv"], family: "data", spec: "ini" },
|
|
1905
|
+
{ id: "vue", aliases: ["vue"], family: "markup", spec: "html" },
|
|
1906
|
+
{ id: "svelte", aliases: ["svelte"], family: "markup", spec: "html" }
|
|
1907
|
+
];
|
|
1908
|
+
var languageByAlias = /* @__PURE__ */ new Map();
|
|
1909
|
+
for (const language of codeLanguages) {
|
|
1910
|
+
languageByAlias.set(language.id.toLowerCase(), language);
|
|
1911
|
+
for (const alias of language.aliases) {
|
|
1912
|
+
languageByAlias.set(alias.toLowerCase(), language);
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
var jsKeywords = /* @__PURE__ */ new Set([
|
|
1916
|
+
"as",
|
|
1917
|
+
"async",
|
|
1918
|
+
"await",
|
|
1919
|
+
"break",
|
|
1920
|
+
"case",
|
|
1921
|
+
"catch",
|
|
1922
|
+
"class",
|
|
1923
|
+
"const",
|
|
1924
|
+
"continue",
|
|
1925
|
+
"debugger",
|
|
1926
|
+
"default",
|
|
1927
|
+
"delete",
|
|
1928
|
+
"do",
|
|
1929
|
+
"else",
|
|
1930
|
+
"export",
|
|
1931
|
+
"extends",
|
|
1932
|
+
"finally",
|
|
1933
|
+
"for",
|
|
1934
|
+
"from",
|
|
1935
|
+
"function",
|
|
1936
|
+
"get",
|
|
1937
|
+
"if",
|
|
1938
|
+
"import",
|
|
1939
|
+
"in",
|
|
1940
|
+
"instanceof",
|
|
1941
|
+
"let",
|
|
1942
|
+
"new",
|
|
1943
|
+
"of",
|
|
1944
|
+
"return",
|
|
1945
|
+
"set",
|
|
1946
|
+
"static",
|
|
1947
|
+
"super",
|
|
1948
|
+
"switch",
|
|
1949
|
+
"throw",
|
|
1950
|
+
"try",
|
|
1951
|
+
"typeof",
|
|
1952
|
+
"var",
|
|
1953
|
+
"void",
|
|
1954
|
+
"while",
|
|
1955
|
+
"with",
|
|
1956
|
+
"yield"
|
|
1957
|
+
]);
|
|
1958
|
+
var tsKeywords = /* @__PURE__ */ new Set([
|
|
1959
|
+
...jsKeywords,
|
|
1960
|
+
"abstract",
|
|
1961
|
+
"declare",
|
|
1962
|
+
"enum",
|
|
1963
|
+
"implements",
|
|
1964
|
+
"interface",
|
|
1965
|
+
"keyof",
|
|
1966
|
+
"namespace",
|
|
1967
|
+
"private",
|
|
1968
|
+
"protected",
|
|
1969
|
+
"public",
|
|
1970
|
+
"readonly",
|
|
1971
|
+
"satisfies",
|
|
1972
|
+
"type"
|
|
1973
|
+
]);
|
|
1974
|
+
var cKeywords = /* @__PURE__ */ new Set(["auto", "break", "case", "const", "continue", "default", "do", "else", "enum", "extern", "for", "goto", "if", "inline", "register", "restrict", "return", "sizeof", "static", "struct", "switch", "typedef", "union", "volatile", "while"]);
|
|
1975
|
+
var cTypes = /* @__PURE__ */ new Set(["bool", "char", "double", "float", "int", "int16_t", "int32_t", "int64_t", "int8_t", "long", "short", "size_t", "uint16_t", "uint32_t", "uint64_t", "uint8_t", "void"]);
|
|
1976
|
+
var cppKeywords = /* @__PURE__ */ new Set([...cKeywords, "alignas", "alignof", "and", "bitand", "bitor", "catch", "class", "concept", "constexpr", "consteval", "constinit", "decltype", "delete", "explicit", "export", "friend", "mutable", "namespace", "new", "noexcept", "not", "operator", "or", "private", "protected", "public", "requires", "template", "this", "throw", "try", "typename", "using", "virtual", "xor"]);
|
|
1977
|
+
var cppTypes = /* @__PURE__ */ new Set([...cTypes, "auto", "bool", "char16_t", "char32_t", "std", "string", "wstring"]);
|
|
1978
|
+
var objectiveCKeywords = /* @__PURE__ */ new Set([...cKeywords, "@autoreleasepool", "@catch", "@class", "@dynamic", "@end", "@finally", "@implementation", "@import", "@interface", "@optional", "@package", "@private", "@property", "@protected", "@protocol", "@public", "@selector", "@synthesize", "@throw", "@try", "YES", "NO", "nil", "self", "super"]);
|
|
1979
|
+
var objectiveCTypes = /* @__PURE__ */ new Set([...cTypes, "BOOL", "Class", "CGFloat", "NSInteger", "NSObject", "NSString", "NSUInteger", "SEL", "id"]);
|
|
1980
|
+
|
|
1837
1981
|
// ../toolcraft-design/src/dashboard/terminal-width.ts
|
|
1838
1982
|
var graphemeSegmenter3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
1839
1983
|
|
|
@@ -3357,7 +3501,7 @@ function createRuntimeLogger(options = {}) {
|
|
|
3357
3501
|
}
|
|
3358
3502
|
|
|
3359
3503
|
// ../toolcraft/src/package-metadata.ts
|
|
3360
|
-
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
3504
|
+
import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
|
|
3361
3505
|
import path from "node:path";
|
|
3362
3506
|
import { fileURLToPath } from "node:url";
|
|
3363
3507
|
function pathFromInput(from) {
|
|
@@ -3371,8 +3515,14 @@ function pathFromInput(from) {
|
|
|
3371
3515
|
}
|
|
3372
3516
|
function getSearchDirectory(from) {
|
|
3373
3517
|
const resolved = pathFromInput(from);
|
|
3518
|
+
let searchPath = resolved;
|
|
3519
|
+
try {
|
|
3520
|
+
searchPath = realpathSync(resolved);
|
|
3521
|
+
} catch {
|
|
3522
|
+
searchPath = resolved;
|
|
3523
|
+
}
|
|
3374
3524
|
try {
|
|
3375
|
-
return statSync(
|
|
3525
|
+
return statSync(searchPath).isDirectory() ? searchPath : path.dirname(searchPath);
|
|
3376
3526
|
} catch {
|
|
3377
3527
|
return path.dirname(resolved);
|
|
3378
3528
|
}
|