@pipelab/constants 1.0.0-beta.0 → 1.0.0-beta.3
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 +3 -0
- package/CHANGELOG.md +18 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -0
package/.oxfmtrc.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @pipelab/constants
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix ci
|
|
8
|
+
|
|
9
|
+
## 1.0.0-beta.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- update
|
|
14
|
+
|
|
15
|
+
## 1.0.0-beta.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- general improvements
|
|
20
|
+
|
|
3
21
|
## 1.0.0-beta.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
//#region src/index.d.ts
|
|
2
2
|
declare const name = "Pipelab";
|
|
3
3
|
declare const appIdentifier = "pipelab";
|
|
4
|
+
declare const getAppBundleId: (version: string) => "app.pipelab.desktop.beta" | "app.pipelab.desktop";
|
|
5
|
+
declare const getProductName: (version: string) => "Pipelab" | "Pipelab-Beta";
|
|
6
|
+
declare const getProtocolName: (version: string) => "pipelab" | "pipelab-beta";
|
|
4
7
|
declare const outFolderName: (binName: string, platform: string, arch: string) => string;
|
|
5
8
|
/**
|
|
6
9
|
* Get the binary name for a given platform
|
|
@@ -15,5 +18,5 @@ declare const uiDevServerInstruction = "pnpm dev --filter=@pipelab/ui";
|
|
|
15
18
|
declare const getUiDevServerFatalError: (port: number) => string;
|
|
16
19
|
declare const getUiDevServerMissingWarning: () => string;
|
|
17
20
|
//#endregion
|
|
18
|
-
export { appIdentifier, getBinName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
|
|
21
|
+
export { appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
|
|
19
22
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";cAAa,IAAA;AAAA,cACA,aAAA;AAAA,cAEA,aAAA,GAAiB,OAAA,UAAiB,QAAA,UAAkB,IAAA
|
|
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"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
//#region src/index.ts
|
|
2
2
|
const name = "Pipelab";
|
|
3
3
|
const appIdentifier = "pipelab";
|
|
4
|
+
const getAppBundleId = (version) => version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
|
|
5
|
+
const getProductName = (version) => version.includes("beta") ? "Pipelab-Beta" : "Pipelab";
|
|
6
|
+
const getProtocolName = (version) => version.includes("beta") ? "pipelab-beta" : "pipelab";
|
|
4
7
|
const outFolderName = (binName, platform, arch) => {
|
|
5
8
|
let platformName = "";
|
|
6
9
|
let archName = "";
|
|
@@ -45,6 +48,6 @@ const getUiDevServerMissingWarning = () => `
|
|
|
45
48
|
'${uiDevServerInstruction}'
|
|
46
49
|
--------------------------------------------------------------------------------`;
|
|
47
50
|
//#endregion
|
|
48
|
-
export { appIdentifier, getBinName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
|
|
51
|
+
export { appIdentifier, getAppBundleId, getBinName, getProductName, getProtocolName, getUiDevServerFatalError, getUiDevServerMissingWarning, name, outFolderName, uiDevPort, uiDevServerInstruction, websocketPort };
|
|
49
52
|
|
|
50
53
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -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 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,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\") ? \"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipelab/constants",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared constants for the Pipelab ecosystem",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"tsdown": "0.21.2",
|
|
33
33
|
"typescript": "^5.0.0",
|
|
34
|
-
"@pipelab/tsconfig": "1.0.0-beta.
|
|
34
|
+
"@pipelab/tsconfig": "1.0.0-beta.2"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsdown",
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export const name = "Pipelab";
|
|
2
2
|
export const appIdentifier = "pipelab";
|
|
3
3
|
|
|
4
|
+
export const getAppBundleId = (version: string) =>
|
|
5
|
+
version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
|
|
6
|
+
|
|
7
|
+
export const getProductName = (version: string) =>
|
|
8
|
+
version.includes("beta") ? "Pipelab-Beta" : "Pipelab";
|
|
9
|
+
|
|
10
|
+
export const getProtocolName = (version: string) =>
|
|
11
|
+
version.includes("beta") ? "pipelab-beta" : "pipelab";
|
|
12
|
+
|
|
4
13
|
export const outFolderName = (binName: string, platform: string, arch: string) => {
|
|
5
14
|
let platformName = "";
|
|
6
15
|
let archName = "";
|