@pipelab/constants 1.0.0-beta.3 → 1.0.0-beta.31

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/.oxfmtrc.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "ignorePatterns": ["dist", "out", "node_modules", "bin"]
2
+ "ignorePatterns": ["dist", "out", "node_modules", "bin", "**/*.d.ts"]
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,173 @@
1
1
  # @pipelab/constants
2
2
 
3
+ ## 1.0.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - sd
8
+
9
+ ## 1.0.0-beta.30
10
+
11
+ ### Patch Changes
12
+
13
+ - sd
14
+
15
+ ## 1.0.0-beta.29
16
+
17
+ ### Patch Changes
18
+
19
+ - sd
20
+
21
+ ## 1.0.0-beta.28
22
+
23
+ ### Patch Changes
24
+
25
+ - sd
26
+
27
+ ## 1.0.0-beta.27
28
+
29
+ ### Patch Changes
30
+
31
+ - sd
32
+
33
+ ## 1.0.0-beta.26
34
+
35
+ ### Patch Changes
36
+
37
+ - sdsd
38
+
39
+ ## 1.0.0-beta.25
40
+
41
+ ### Patch Changes
42
+
43
+ - sd
44
+
45
+ ## 1.0.0-beta.24
46
+
47
+ ### Patch Changes
48
+
49
+ - sd
50
+
51
+ ## 1.0.0-beta.23
52
+
53
+ ### Patch Changes
54
+
55
+ - sd
56
+
57
+ ## 1.0.0-beta.22
58
+
59
+ ### Patch Changes
60
+
61
+ - sd
62
+
63
+ ## 1.0.0-beta.21
64
+
65
+ ### Patch Changes
66
+
67
+ - sd
68
+
69
+ ## 1.0.0-beta.20
70
+
71
+ ### Patch Changes
72
+
73
+ - sd
74
+
75
+ ## 1.0.0-beta.19
76
+
77
+ ### Patch Changes
78
+
79
+ - sd
80
+
81
+ ## 1.0.0-beta.18
82
+
83
+ ### Patch Changes
84
+
85
+ - df
86
+
87
+ ## 1.0.0-beta.17
88
+
89
+ ### Patch Changes
90
+
91
+ - sdsd
92
+
93
+ ## 1.0.0-beta.16
94
+
95
+ ### Patch Changes
96
+
97
+ - sd
98
+
99
+ ## 1.0.0-beta.15
100
+
101
+ ### Patch Changes
102
+
103
+ - sd
104
+
105
+ ## 1.0.0-beta.14
106
+
107
+ ### Patch Changes
108
+
109
+ - qs
110
+
111
+ ## 1.0.0-beta.13
112
+
113
+ ### Patch Changes
114
+
115
+ - sd
116
+
117
+ ## 1.0.0-beta.12
118
+
119
+ ### Patch Changes
120
+
121
+ - s
122
+
123
+ ## 1.0.0-beta.11
124
+
125
+ ### Patch Changes
126
+
127
+ - fg
128
+
129
+ ## 1.0.0-beta.10
130
+
131
+ ### Patch Changes
132
+
133
+ - changes
134
+
135
+ ## 1.0.0-beta.9
136
+
137
+ ### Patch Changes
138
+
139
+ - bump
140
+
141
+ ## 1.0.0-beta.8
142
+
143
+ ### Patch Changes
144
+
145
+ - fixes
146
+
147
+ ## 1.0.0-beta.7
148
+
149
+ ### Patch Changes
150
+
151
+ - Fix beta directory
152
+
153
+ ## 1.0.0-beta.6
154
+
155
+ ### Patch Changes
156
+
157
+ - bump
158
+
159
+ ## 1.0.0-beta.5
160
+
161
+ ### Patch Changes
162
+
163
+ - beta tag
164
+
165
+ ## 1.0.0-beta.4
166
+
167
+ ### Patch Changes
168
+
169
+ - bump
170
+
3
171
  ## 1.0.0-beta.3
4
172
 
5
173
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@
2
2
  declare const name = "Pipelab";
3
3
  declare const appIdentifier = "pipelab";
4
4
  declare const getAppBundleId: (version: string) => "app.pipelab.desktop.beta" | "app.pipelab.desktop";
5
- declare const getProductName: (version: string) => "Pipelab" | "Pipelab-Beta";
5
+ declare const getProductName: (version: string) => "Pipelab" | "PipelabBeta";
6
6
  declare const getProtocolName: (version: string) => "pipelab" | "pipelab-beta";
7
7
  declare const outFolderName: (binName: string, platform: string, arch: string) => string;
8
8
  /**
@@ -17,6 +17,17 @@ declare const uiDevPort = 5173;
17
17
  declare const uiDevServerInstruction = "pnpm dev --filter=@pipelab/ui";
18
18
  declare const getUiDevServerFatalError: (port: number) => string;
19
19
  declare const getUiDevServerMissingWarning: () => string;
20
+ declare const SandboxFolder: {
21
+ readonly Packages: "packages";
22
+ readonly ThirdParty: "thirdparty";
23
+ readonly Config: "config";
24
+ readonly Temp: "temp";
25
+ readonly Cache: "cache";
26
+ readonly Pnpm: "pnpm";
27
+ };
28
+ type SandboxFolder = (typeof SandboxFolder)[keyof typeof SandboxFolder];
29
+ declare const DEFAULT_NODE_VERSION = "24.14.1";
30
+ declare const DEFAULT_PNPM_VERSION = "10.12.0";
20
31
  //#endregion
21
- export { appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
32
+ export { DEFAULT_NODE_VERSION, DEFAULT_PNPM_VERSION, SandboxFolder, appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
22
33
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";cAAa,IAAA;AAAA,cACA,aAAA;AAAA,cAEA,cAAA,GAAkB,OAAA;AAAA,cAGlB,cAAA,GAAkB,OAAA;AAAA,cAGlB,eAAA,GAAmB,OAAA;AAAA,cAGnB,aAAA,GAAiB,OAAA,UAAiB,QAAA,UAAkB,IAAA;AAXjE;;;;;AAEA;AAFA,cAgDa,UAAA,GAAc,IAAA,UAAc,QAAA;AAAA,cAW5B,aAAA;AAAA,cACA,SAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,wBAAA,GAA4B,IAAA;AAAA,cAO5B,4BAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";cAAa,IAAA;AAAA,cACA,aAAA;AAAA,cAEA,cAAA,GAAkB,OAAA;AAAA,cAGlB,cAAA,GAAkB,OAAA;AAAA,cAGlB,eAAA,GAAmB,OAAA;AAAA,cAGnB,aAAA,GAAiB,OAAA,UAAiB,QAAA,UAAkB,IAAA;AAXjE;;;;;AAEA;AAFA,cAgDa,UAAA,GAAc,IAAA,UAAc,QAAA;AAAA,cAW5B,aAAA;AAAA,cACA,SAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,wBAAA,GAA4B,IAAA;AAAA,cAO5B,4BAAA;AAAA,cAQA,aAAA;EAAA;;;;;;;KASD,aAAA,WAAwB,aAAA,eAA4B,aAAA;AAAA,cAEnD,oBAAA;AAAA,cACA,oBAAA"}
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const name = "Pipelab";
3
3
  const appIdentifier = "pipelab";
4
4
  const getAppBundleId = (version) => version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
5
- const getProductName = (version) => version.includes("beta") ? "Pipelab-Beta" : "Pipelab";
5
+ const getProductName = (version) => version.includes("beta") ? "PipelabBeta" : "Pipelab";
6
6
  const getProtocolName = (version) => version.includes("beta") ? "pipelab-beta" : "pipelab";
7
7
  const outFolderName = (binName, platform, arch) => {
8
8
  let platformName = "";
@@ -47,7 +47,17 @@ const getUiDevServerMissingWarning = () => `
47
47
  Please ensure the UI dev server is running:
48
48
  '${uiDevServerInstruction}'
49
49
  --------------------------------------------------------------------------------`;
50
+ const SandboxFolder = {
51
+ Packages: "packages",
52
+ ThirdParty: "thirdparty",
53
+ Config: "config",
54
+ Temp: "temp",
55
+ Cache: "cache",
56
+ Pnpm: "pnpm"
57
+ };
58
+ const DEFAULT_NODE_VERSION = "24.14.1";
59
+ const DEFAULT_PNPM_VERSION = "10.12.0";
50
60
  //#endregion
51
- export { appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
61
+ export { DEFAULT_NODE_VERSION, DEFAULT_PNPM_VERSION, SandboxFolder, appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
52
62
 
53
63
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const name = \"Pipelab\";\nexport const appIdentifier = \"pipelab\";\n\nexport const getAppBundleId = (version: string) =>\n version.includes(\"beta\") ? \"app.pipelab.desktop.beta\" : \"app.pipelab.desktop\";\n\nexport const getProductName = (version: string) =>\n version.includes(\"beta\") ? \"Pipelab-Beta\" : \"Pipelab\";\n\nexport const getProtocolName = (version: string) =>\n version.includes(\"beta\") ? \"pipelab-beta\" : \"pipelab\";\n\nexport const outFolderName = (binName: string, platform: string, arch: string) => {\n let platformName = \"\";\n let archName = \"\";\n\n console.log(\"platform\", platform);\n\n if (platform === \"linux\") {\n platformName = \"linux\";\n } else if (platform === \"win32\") {\n platformName = \"win32\";\n } else if (platform === \"darwin\") {\n platformName = \"darwin\";\n } else {\n throw new Error(\"Unsupported platform\");\n }\n\n if (arch === \"x64\") {\n archName = \"x64\";\n } else if (arch === \"arm\") {\n archName = \"arm\";\n } else if (arch === \"arm64\") {\n archName = \"arm64\";\n } else if (arch === \"ia32\") {\n archName = \"ia32\";\n } else {\n throw new Error(\"Unsupported architecture\");\n }\n\n return `${binName}-${platformName}-${archName}`;\n};\n\n/**\n * Get the binary name for a given platform\n * @param name\n * @param platform If not provided, it will try to use process.platform (Node.js only)\n * @returns\n */\nexport const getBinName = (name: string, platform?: string) => {\n const p = platform || (typeof process !== \"undefined\" ? process.platform : \"unknown\");\n if (p === \"win32\") {\n return `${name}.exe`;\n }\n if (p === \"darwin\") {\n return `${name}.app/Contents/MacOS/${name}`;\n }\n return name;\n};\n\nexport const websocketPort = 33753;\nexport const uiDevPort = 5173;\n\nexport const uiDevServerInstruction = \"pnpm dev --filter=@pipelab/ui\";\n\nexport const getUiDevServerFatalError = (port: number) => `\n--------------------------------------------------------------------------------\n [FATAL ERROR] UI dev server is NOT running on port ${port}\n Please start it manually before running the desktop app:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n\nexport const getUiDevServerMissingWarning = () => `\n--------------------------------------------------------------------------------\n [DEVELOPMENT MODE] CLI server started (API/WebSocket).\n NOTE: The UI is NOT served from this process in development.\n Please ensure the UI dev server is running:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,gBAAgB;AAE7B,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,6BAA6B;AAE1D,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,iBAAiB;AAE9C,MAAa,mBAAmB,YAC9B,QAAQ,SAAS,OAAO,GAAG,iBAAiB;AAE9C,MAAa,iBAAiB,SAAiB,UAAkB,SAAiB;CAChF,IAAI,eAAe;CACnB,IAAI,WAAW;AAEf,SAAQ,IAAI,YAAY,SAAS;AAEjC,KAAI,aAAa,QACf,gBAAe;UACN,aAAa,QACtB,gBAAe;UACN,aAAa,SACtB,gBAAe;KAEf,OAAM,IAAI,MAAM,uBAAuB;AAGzC,KAAI,SAAS,MACX,YAAW;UACF,SAAS,MAClB,YAAW;UACF,SAAS,QAClB,YAAW;UACF,SAAS,OAClB,YAAW;KAEX,OAAM,IAAI,MAAM,2BAA2B;AAG7C,QAAO,GAAG,QAAQ,GAAG,aAAa,GAAG;;;;;;;;AASvC,MAAa,cAAc,MAAc,aAAsB;CAC7D,MAAM,IAAI,aAAa,OAAO,YAAY,cAAc,QAAQ,WAAW;AAC3E,KAAI,MAAM,QACR,QAAO,GAAG,KAAK;AAEjB,KAAI,MAAM,SACR,QAAO,GAAG,KAAK,sBAAsB;AAEvC,QAAO;;AAGT,MAAa,gBAAgB;AAC7B,MAAa,YAAY;AAEzB,MAAa,yBAAyB;AAEtC,MAAa,4BAA4B,SAAiB;;uDAEH,KAAK;;OAErD,uBAAuB;;AAG9B,MAAa,qCAAqC;;;;;OAK3C,uBAAuB"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const name = \"Pipelab\";\nexport const appIdentifier = \"pipelab\";\n\nexport const getAppBundleId = (version: string) =>\n version.includes(\"beta\") ? \"app.pipelab.desktop.beta\" : \"app.pipelab.desktop\";\n\nexport const getProductName = (version: string) =>\n version.includes(\"beta\") ? \"PipelabBeta\" : \"Pipelab\";\n\nexport const getProtocolName = (version: string) =>\n version.includes(\"beta\") ? \"pipelab-beta\" : \"pipelab\";\n\nexport const outFolderName = (binName: string, platform: string, arch: string) => {\n let platformName = \"\";\n let archName = \"\";\n\n console.log(\"platform\", platform);\n\n if (platform === \"linux\") {\n platformName = \"linux\";\n } else if (platform === \"win32\") {\n platformName = \"win32\";\n } else if (platform === \"darwin\") {\n platformName = \"darwin\";\n } else {\n throw new Error(\"Unsupported platform\");\n }\n\n if (arch === \"x64\") {\n archName = \"x64\";\n } else if (arch === \"arm\") {\n archName = \"arm\";\n } else if (arch === \"arm64\") {\n archName = \"arm64\";\n } else if (arch === \"ia32\") {\n archName = \"ia32\";\n } else {\n throw new Error(\"Unsupported architecture\");\n }\n\n return `${binName}-${platformName}-${archName}`;\n};\n\n/**\n * Get the binary name for a given platform\n * @param name\n * @param platform If not provided, it will try to use process.platform (Node.js only)\n * @returns\n */\nexport const getBinName = (name: string, platform?: string) => {\n const p = platform || (typeof process !== \"undefined\" ? process.platform : \"unknown\");\n if (p === \"win32\") {\n return `${name}.exe`;\n }\n if (p === \"darwin\") {\n return `${name}.app/Contents/MacOS/${name}`;\n }\n return name;\n};\n\nexport const websocketPort = 33753;\nexport const uiDevPort = 5173;\n\nexport const uiDevServerInstruction = \"pnpm dev --filter=@pipelab/ui\";\n\nexport const getUiDevServerFatalError = (port: number) => `\n--------------------------------------------------------------------------------\n [FATAL ERROR] UI dev server is NOT running on port ${port}\n Please start it manually before running the desktop app:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n\nexport const getUiDevServerMissingWarning = () => `\n--------------------------------------------------------------------------------\n [DEVELOPMENT MODE] CLI server started (API/WebSocket).\n NOTE: The UI is NOT served from this process in development.\n Please ensure the UI dev server is running:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n\nexport const SandboxFolder = {\n Packages: \"packages\",\n ThirdParty: \"thirdparty\",\n Config: \"config\",\n Temp: \"temp\",\n Cache: \"cache\",\n Pnpm: \"pnpm\",\n} as const;\n\nexport type SandboxFolder = (typeof SandboxFolder)[keyof typeof SandboxFolder];\n\nexport const DEFAULT_NODE_VERSION = \"24.14.1\";\nexport const DEFAULT_PNPM_VERSION = \"10.12.0\";\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,gBAAgB;AAE7B,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,6BAA6B;AAE1D,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,gBAAgB;AAE7C,MAAa,mBAAmB,YAC9B,QAAQ,SAAS,OAAO,GAAG,iBAAiB;AAE9C,MAAa,iBAAiB,SAAiB,UAAkB,SAAiB;CAChF,IAAI,eAAe;CACnB,IAAI,WAAW;AAEf,SAAQ,IAAI,YAAY,SAAS;AAEjC,KAAI,aAAa,QACf,gBAAe;UACN,aAAa,QACtB,gBAAe;UACN,aAAa,SACtB,gBAAe;KAEf,OAAM,IAAI,MAAM,uBAAuB;AAGzC,KAAI,SAAS,MACX,YAAW;UACF,SAAS,MAClB,YAAW;UACF,SAAS,QAClB,YAAW;UACF,SAAS,OAClB,YAAW;KAEX,OAAM,IAAI,MAAM,2BAA2B;AAG7C,QAAO,GAAG,QAAQ,GAAG,aAAa,GAAG;;;;;;;;AASvC,MAAa,cAAc,MAAc,aAAsB;CAC7D,MAAM,IAAI,aAAa,OAAO,YAAY,cAAc,QAAQ,WAAW;AAC3E,KAAI,MAAM,QACR,QAAO,GAAG,KAAK;AAEjB,KAAI,MAAM,SACR,QAAO,GAAG,KAAK,sBAAsB;AAEvC,QAAO;;AAGT,MAAa,gBAAgB;AAC7B,MAAa,YAAY;AAEzB,MAAa,yBAAyB;AAEtC,MAAa,4BAA4B,SAAiB;;uDAEH,KAAK;;OAErD,uBAAuB;;AAG9B,MAAa,qCAAqC;;;;;OAK3C,uBAAuB;;AAG9B,MAAa,gBAAgB;CAC3B,UAAU;CACV,YAAY;CACZ,QAAQ;CACR,MAAM;CACN,OAAO;CACP,MAAM;CACP;AAID,MAAa,uBAAuB;AACpC,MAAa,uBAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/constants",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.31",
4
4
  "private": false,
5
5
  "description": "Shared constants for the Pipelab ecosystem",
6
6
  "license": "FSL-1.1-MIT",
@@ -31,11 +31,12 @@
31
31
  "devDependencies": {
32
32
  "tsdown": "0.21.2",
33
33
  "typescript": "^5.0.0",
34
- "@pipelab/tsconfig": "1.0.0-beta.2"
34
+ "@pipelab/tsconfig": "1.0.0-beta.29"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsdown",
38
38
  "format": "oxfmt .",
39
- "lint": "oxlint ."
39
+ "lint": "oxlint .",
40
+ "typecheck": "tsc -b"
40
41
  }
41
42
  }
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ export const getAppBundleId = (version: string) =>
5
5
  version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
6
6
 
7
7
  export const getProductName = (version: string) =>
8
- version.includes("beta") ? "Pipelab-Beta" : "Pipelab";
8
+ version.includes("beta") ? "PipelabBeta" : "Pipelab";
9
9
 
10
10
  export const getProtocolName = (version: string) =>
11
11
  version.includes("beta") ? "pipelab-beta" : "pipelab";
@@ -77,3 +77,17 @@ export const getUiDevServerMissingWarning = () => `
77
77
  Please ensure the UI dev server is running:
78
78
  '${uiDevServerInstruction}'
79
79
  --------------------------------------------------------------------------------`;
80
+
81
+ export const SandboxFolder = {
82
+ Packages: "packages",
83
+ ThirdParty: "thirdparty",
84
+ Config: "config",
85
+ Temp: "temp",
86
+ Cache: "cache",
87
+ Pnpm: "pnpm",
88
+ } as const;
89
+
90
+ export type SandboxFolder = (typeof SandboxFolder)[keyof typeof SandboxFolder];
91
+
92
+ export const DEFAULT_NODE_VERSION = "24.14.1";
93
+ export const DEFAULT_PNPM_VERSION = "10.12.0";