@zibby/cli 0.4.24 → 0.4.26
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/bin/zibby.js +3 -3
- package/dist/commands/analyze-graph.js +1 -1
- package/dist/commands/chat.js +2 -2
- package/dist/commands/init.js +1 -1
- package/dist/commands/run.js +2 -2
- package/dist/commands/template.js +1 -1
- package/dist/commands/workflow.js +2 -2
- package/dist/commands/workflows/download.js +42 -0
- package/dist/commands/workflows/generate.js +143 -143
- package/dist/commands/workflows/name-helpers.js +1 -0
- package/dist/package.json +5 -3
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=/^[a-z][a-z0-9-]{0,62}[a-z0-9]$/;function u(e){if(typeof e!="string"||e.length===0)return{valid:!1,reason:"Name is required",suggestion:null};if(e.length<2)return{valid:!1,reason:"Name must be at least 2 characters",suggestion:null};if(e.length>64)return{valid:!1,reason:"Name must be at most 64 characters",suggestion:null};if(o.test(e))return{valid:!0,reason:null,suggestion:null};let t=e.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"");return{valid:!1,reason:"Name must be lowercase, start with a letter, end with a letter or digit, and use only a-z, 0-9, and hyphens",suggestion:o.test(t)?t:null}}function i(e,t){let n=t instanceof Set?t:new Set(t||[]);if(!n.has(e))return e;let s=e.match(/^(.+)-(\d+)$/),r=s?s[1]:e;for(let a=2;a<=99;a+=1){let l=`${r}-${a}`;if(o.test(l)&&!n.has(l))return l}return null}function c(e,t=[]){let n=u(e);if(!n.valid)return n;let s=t instanceof Set?t:new Set(t||[]);if(!s.has(e))return{valid:!0,reason:null,suggestion:null};let r=i(e,s);return{valid:!1,reason:`A workflow named '${e}' already exists`,suggestion:r}}export{o as WORKFLOW_NAME_RE,i as suggestAvailableName,c as validateWorkflowName,u as validateWorkflowNameShape};
|
package/dist/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"description": "Zibby CLI - Test automation generator and runner",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"zibby": "./dist/bin/zibby.js"
|
|
7
|
+
"zibby": "./dist/bin/zibby.js",
|
|
8
|
+
"zb": "./dist/bin/zibby.js"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "node ../scripts/build.mjs --extra-dirs bin",
|
|
@@ -34,9 +35,10 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@aws-sdk/client-sqs": "^3.1038.0",
|
|
36
37
|
"@zibby/agent-workflow": "^0.3.2",
|
|
37
|
-
"@zibby/core": "^0.
|
|
38
|
+
"@zibby/core": "^0.5.0",
|
|
38
39
|
"@zibby/skills": "^0.1.11",
|
|
39
40
|
"@zibby/ui-memory": "^1.0.0",
|
|
41
|
+
"@zibby/workflow-templates": "^0.1.0",
|
|
40
42
|
"adm-zip": "^0.5.17",
|
|
41
43
|
"chalk": "^5.3.0",
|
|
42
44
|
"cli-highlight": "^2.1.11",
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"description": "Zibby CLI - Test automation generator and runner",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"zibby": "./dist/bin/zibby.js"
|
|
7
|
+
"zibby": "./dist/bin/zibby.js",
|
|
8
|
+
"zb": "./dist/bin/zibby.js"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "node ../scripts/build.mjs --extra-dirs bin",
|
|
@@ -34,9 +35,10 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@aws-sdk/client-sqs": "^3.1038.0",
|
|
36
37
|
"@zibby/agent-workflow": "^0.3.2",
|
|
37
|
-
"@zibby/core": "^0.
|
|
38
|
+
"@zibby/core": "^0.5.0",
|
|
38
39
|
"@zibby/skills": "^0.1.11",
|
|
39
40
|
"@zibby/ui-memory": "^1.0.0",
|
|
41
|
+
"@zibby/workflow-templates": "^0.1.0",
|
|
40
42
|
"adm-zip": "^0.5.17",
|
|
41
43
|
"chalk": "^5.3.0",
|
|
42
44
|
"cli-highlight": "^2.1.11",
|