@vertesia/create-plugin 0.74.0 → 0.76.0

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/README.md CHANGED
@@ -27,7 +27,7 @@ These generated files are containing a "Hello world!" workflow and activity as a
27
27
 
28
28
  ## Developing your agent workflows / activities.
29
29
 
30
- Export your temporal wrofklows `from src/workflows.ts` and your activities from `src/activities.ts`
30
+ Export your temporal workflows `from src/workflows.ts` and your activities from `src/activities.ts`
31
31
 
32
32
  ## Test locally the workflows.
33
33
 
@@ -47,7 +47,7 @@ See https://docs.temporal.io/develop/typescript/debugging for more information
47
47
  ## Packaging and publishing your Vertesia agent
48
48
 
49
49
  When the workflows are working you will want to publish the agent to Vertesia.
50
- The agent should be packaged as a docker imageand then published to the Vertesia cloud.
50
+ The agent should be packaged as a docker image and then published to the Vertesia cloud.
51
51
 
52
52
  ### Build the agent docker image
53
53
 
@@ -58,7 +58,7 @@ This image is only useable to test locally. You cannot push it to Vertesia.
58
58
 
59
59
  ### Releasing the agent docker image
60
60
 
61
- When you aready to push your agent to Vertesia you must first create a version using the following command:
61
+ When you already to push your agent to Vertesia you must first create a version using the following command:
62
62
 
63
63
  ```
64
64
  vertesia agent release <version>
@@ -71,7 +71,7 @@ This command is creating a new docker tag `your-organization/your-agent-name:ver
71
71
 
72
72
  ### Publishing the agent docker image to Vertesia
73
73
 
74
- Versionned images (using the `release` command) can be published to Vertesia. This can be done using the following command:
74
+ Versioned images (using the `release` command) can be published to Vertesia. This can be done using the following command:
75
75
 
76
76
  ```
77
77
  vertesia agent publish <version>
@@ -91,7 +91,7 @@ The you can deploy an agent that you previously uploaded to Vertesia by using th
91
91
  vertesia agent publish <version> --deploy-only
92
92
  ```
93
93
 
94
- ## Manaing agent versions
94
+ ## Managing agent versions
95
95
 
96
96
  You can see the docker image versions you created using the following command:
97
97
 
package/lib/init.js CHANGED
@@ -89,12 +89,12 @@ export async function init(dirName) {
89
89
  context: templateInit.getVars()
90
90
  };
91
91
  // copy template to current directory and process template files
92
- const templsDir = resolve(fileURLToPath(import.meta.url), '../../templates');
92
+ const templateDir = resolve(fileURLToPath(import.meta.url), '../../templates');
93
93
  if (templateName === 'web') {
94
- await copyTree(join(templsDir, "web"), dir, templateProps);
94
+ await copyTree(join(templateDir, "web"), dir, templateProps);
95
95
  }
96
96
  else if (answer.template === 'tool') {
97
- await copyTree(join(templsDir, "tool"), dir, templateProps);
97
+ await copyTree(join(templateDir, "tool"), dir, templateProps);
98
98
  }
99
99
  else {
100
100
  throw new Error("Invalid template type");
package/lib/init.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,2DAA2D;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;AAG5B,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,OAA4B;IAEnD,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC/C,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAA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AK,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC;IACjE,CAAC;SAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QACpC,MAAM,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC;IAClE,CAAC;SAAM,CAAC;QACJ,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC;IAEvD,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC;IAElC,YAAY,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/create-plugin",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "description": "Initialize a Vertesia plugin package",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,7 +10,7 @@ import "./env"
10
10
  createRoot(document.getElementById('root')!).render(
11
11
  <StrictMode>
12
12
  <VertesiaShell>
13
- <StandaloneApp name=""> {/* <---- put the app name here */}
13
+ <StandaloneApp name={import.meta.env.VITE_APP_NAME}> {/* <---- define VITE_APP_NAME en var in .env.local */}
14
14
  <RouterProvider routes={[{ path: "*", Component: App }]} />
15
15
  </StandaloneApp>
16
16
  </VertesiaShell>
@@ -62,7 +62,7 @@ function defineLibConfig({ command }: ConfigEnv): UserConfig {
62
62
  vertesiaPluginBuilder({ inlineCss })
63
63
  ],
64
64
  build: {
65
- outDir: 'lib', // the plugin will be generated in the `lib` directory
65
+ outDir: 'dist/lib', // the plugin will be generated in the `dist/lib` directory
66
66
  lib: {
67
67
  entry: './src/plugin.tsx', // Main entry point of your library
68
68
  formats: ['es'], // Build ESM versions
@@ -94,7 +94,7 @@ function defineAppConfig(): UserConfig {
94
94
  serveStatic([
95
95
  {
96
96
  pattern: new RegExp("/plugin.(js|css)"),
97
- resolve: (groups: string[]) => `./lib/plugin.${groups[1]}`
97
+ resolve: (groups: string[]) => `./dist/lib/plugin.${groups[1]}`
98
98
  },
99
99
  ]),
100
100
  ],