@cotctl/cli 0.3.1 → 0.3.2
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 +20 -14
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -41,14 +41,17 @@ cotctl login --url https://mycompany.cotalker.com
|
|
|
41
41
|
# 2. Ver perfil activo
|
|
42
42
|
cotctl profile list
|
|
43
43
|
|
|
44
|
-
# 3.
|
|
45
|
-
cotctl
|
|
44
|
+
# 3. Listar surveys disponibles
|
|
45
|
+
cotctl surveys list
|
|
46
46
|
|
|
47
|
-
# 4.
|
|
48
|
-
cotctl
|
|
47
|
+
# 4. Exportar una survey por code
|
|
48
|
+
cotctl surveys export <code> -o ./survey.yaml
|
|
49
49
|
|
|
50
|
-
# 5.
|
|
51
|
-
cotctl
|
|
50
|
+
# 5. Validar un archivo local
|
|
51
|
+
cotctl validate -f ./survey.yaml
|
|
52
|
+
|
|
53
|
+
# 6. Aplicar cambios al entorno
|
|
54
|
+
cotctl apply -f ./survey.yaml
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
## Comandos
|
|
@@ -58,8 +61,8 @@ cotctl apply -f ./surveys/my-survey.yaml
|
|
|
58
61
|
| `cotctl login` | Autenticarse y guardar un perfil de entorno |
|
|
59
62
|
| `cotctl logout [profile]` | Cerrar sesión y eliminar un perfil |
|
|
60
63
|
| `cotctl profile` | Listar, ver y gestionar perfiles guardados |
|
|
61
|
-
| `cotctl
|
|
62
|
-
| `cotctl export
|
|
64
|
+
| `cotctl surveys list` | Listar surveys del entorno |
|
|
65
|
+
| `cotctl surveys export <code>` | Exportar surveys como YAML o JSON |
|
|
63
66
|
| `cotctl validate -f <file>` | Validar un archivo YAML localmente |
|
|
64
67
|
| `cotctl apply -f <file>` | Crear o actualizar un recurso desde YAML |
|
|
65
68
|
| `cotctl skills` | Gestionar Claude Code Skills |
|
|
@@ -90,7 +93,7 @@ cotctl soporta múltiples perfiles para trabajar con distintos entornos:
|
|
|
90
93
|
|
|
91
94
|
```bash
|
|
92
95
|
# Usar un perfil específico en cualquier comando
|
|
93
|
-
cotctl
|
|
96
|
+
cotctl surveys list --company staging
|
|
94
97
|
|
|
95
98
|
# Ver todos los perfiles guardados
|
|
96
99
|
cotctl profile list
|
|
@@ -106,9 +109,12 @@ cotctl incluye Skills para [Claude Code](https://claude.ai/code) que instalan he
|
|
|
106
109
|
|
|
107
110
|
| Skill | Descripción |
|
|
108
111
|
|-------|-------------|
|
|
109
|
-
| `cotctl-
|
|
112
|
+
| `cotctl-surveys` | Crear y modificar YAMLs de surveys vía cotctl |
|
|
110
113
|
| `cotctl-apply` | Aplicar recursos YAML a entornos Cotalker |
|
|
111
114
|
| `cotctl-export` | Exportar y consultar recursos desde Cotalker |
|
|
115
|
+
| `cotctl-roles` | Crear y gestionar roles de acceso y permisos en Cotalker |
|
|
116
|
+
| `cotctl-properties` | Generar tipos de propiedades y propiedades para Cotalker |
|
|
117
|
+
| `cotctl-workflows` | Crear y gestionar workflows, máquinas de estado y tareas |
|
|
112
118
|
| `cotalker-docs` | Conocimiento general de la plataforma Cotalker |
|
|
113
119
|
|
|
114
120
|
### Gestión de skills
|
|
@@ -121,10 +127,10 @@ cotctl skills list
|
|
|
121
127
|
cotctl skills install
|
|
122
128
|
|
|
123
129
|
# Instalar uno específico globalmente
|
|
124
|
-
cotctl skills install cotctl-
|
|
130
|
+
cotctl skills install cotctl-surveys --global
|
|
125
131
|
|
|
126
132
|
# Desinstalar
|
|
127
|
-
cotctl skills uninstall cotctl-
|
|
133
|
+
cotctl skills uninstall cotctl-surveys --global
|
|
128
134
|
```
|
|
129
135
|
|
|
130
136
|
## MCP Server
|
|
@@ -171,10 +177,10 @@ O usa cotctl directamente:
|
|
|
171
177
|
|
|
172
178
|
```bash
|
|
173
179
|
# Scope global
|
|
174
|
-
cotctl
|
|
180
|
+
cotctl mcp install --scope global
|
|
175
181
|
|
|
176
182
|
# Scope local (proyecto actual)
|
|
177
|
-
cotctl
|
|
183
|
+
cotctl mcp install --scope local
|
|
178
184
|
```
|
|
179
185
|
|
|
180
186
|
</details>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotctl/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "CLI para la plataforma Cotalker",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cotctl": "bin/cotctl"
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@cotctl/cli-linux-x64": "0.3.
|
|
18
|
-
"@cotctl/cli-linux-arm64": "0.3.
|
|
19
|
-
"@cotctl/cli-darwin-x64": "0.3.
|
|
20
|
-
"@cotctl/cli-darwin-arm64": "0.3.
|
|
21
|
-
"@cotctl/cli-win-x64": "0.3.
|
|
17
|
+
"@cotctl/cli-linux-x64": "0.3.2",
|
|
18
|
+
"@cotctl/cli-linux-arm64": "0.3.2",
|
|
19
|
+
"@cotctl/cli-darwin-x64": "0.3.2",
|
|
20
|
+
"@cotctl/cli-darwin-arm64": "0.3.2",
|
|
21
|
+
"@cotctl/cli-win-x64": "0.3.2"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"registry": "https://registry.npmjs.org",
|