eitri-cli 1.9.0 → 1.10.0-beta.1

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.
@@ -4,6 +4,7 @@ const packageJson = require("../package.json");
4
4
  const PORT = process.env.EITRI_APP_TOOLS_PORT || 3333;
5
5
  const path = require("path");
6
6
  const HOST_EITRIAPPS = "api.eitri.tech";
7
+ const FOUNDRY_CONTEXT_PATH = process.env.FOUNDRY_CONTEXT_PATH ?? 'runes-foundry'
7
8
 
8
9
  const config = {
9
10
  userAgent: packageJson.name,
@@ -26,8 +27,8 @@ const config = {
26
27
  },
27
28
  workspace: {
28
29
  url: `http://${HOST}:3000`,
29
- targetPath: "/runes-foundry/targets",
30
- basePath: "runes-foundry",
30
+ targetPath: `/${FOUNDRY_CONTEXT_PATH}/targets`,
31
+ basePath: `${FOUNDRY_CONTEXT_PATH}`,
31
32
  target: {
32
33
  knownTargets: [
33
34
  {
@@ -91,7 +92,7 @@ const config = {
91
92
  url: "https://analytics.dev.eitri.calindra.com.br/analytics/event",
92
93
  },
93
94
  managerFront: {
94
- url: "https://beta-console.eitri.tech",
95
+ url: `https://beta-console.eitri.tech`,
95
96
  managerCredential: "/settings/manager-credential",
96
97
  cliGenerateLoginCredential: "/settings/cli-generate-credential",
97
98
  },
@@ -4,3 +4,4 @@
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
6
  export function publish(environment: string, message: string): Promise<void>
7
+ export function runTest(userJwt: string, userWorkspaceId: string, testPath: string): Promise<void>
@@ -295,6 +295,7 @@ if (!nativeBinding) {
295
295
  throw new Error(`Failed to load native binding`)
296
296
  }
297
297
 
298
- const { publish } = nativeBinding
298
+ const { publish, runTest } = nativeBinding
299
299
 
300
300
  module.exports.publish = publish
301
+ module.exports.runTest = runTest