@vira-ui/cli 1.1.2 → 1.2.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.
Files changed (40) hide show
  1. package/README.md +454 -1029
  2. package/dist/go/appYaml.js +30 -30
  3. package/dist/go/backendEnvExample.js +17 -17
  4. package/dist/go/backendReadme.js +14 -14
  5. package/dist/go/channelHelpers.js +25 -25
  6. package/dist/go/configGo.js +258 -258
  7. package/dist/go/dbGo.js +43 -43
  8. package/dist/go/dbYaml.js +7 -7
  9. package/dist/go/dockerCompose.js +48 -48
  10. package/dist/go/dockerComposeProd.js +78 -78
  11. package/dist/go/dockerfile.js +15 -15
  12. package/dist/go/eventHandlerTemplate.js +22 -22
  13. package/dist/go/eventsAPI.js +411 -411
  14. package/dist/go/goMod.js +16 -16
  15. package/dist/go/kafkaGo.js +67 -67
  16. package/dist/go/kafkaYaml.js +6 -6
  17. package/dist/go/kanbanHandlers.js +216 -216
  18. package/dist/go/mainGo.js +558 -558
  19. package/dist/go/readme.js +27 -27
  20. package/dist/go/redisGo.js +31 -31
  21. package/dist/go/redisYaml.js +4 -4
  22. package/dist/go/registryGo.js +38 -38
  23. package/dist/go/sqlcYaml.js +13 -13
  24. package/dist/go/stateStore.js +115 -115
  25. package/dist/go/typesGo.js +11 -11
  26. package/dist/index.js +472 -24
  27. package/dist/react/envExample.js +3 -3
  28. package/dist/react/envLocal.js +1 -1
  29. package/dist/react/indexCss.js +17 -17
  30. package/dist/react/indexHtml.js +12 -12
  31. package/dist/react/kanbanAppTsx.js +29 -29
  32. package/dist/react/kanbanBoard.js +58 -58
  33. package/dist/react/kanbanCard.js +60 -60
  34. package/dist/react/kanbanColumn.js +62 -62
  35. package/dist/react/kanbanModels.js +32 -32
  36. package/dist/react/mainTsx.js +12 -12
  37. package/dist/react/viteConfig.js +27 -27
  38. package/package.json +47 -45
  39. package/dist/go/useViraState.js +0 -160
  40. package/dist/go/useViraStream.js +0 -167
@@ -1,34 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.appYaml = void 0;
4
- exports.appYaml = `service: vira-engine
5
- env: development
6
- http:
7
- port: 8080
8
- logging:
9
- level: info
10
- db:
11
- host: localhost
12
- port: 5432
13
- user: vira
14
- password: vira
15
- database: vira
16
- sslmode: disable
17
- redis:
18
- host: localhost
19
- port: 6379
20
- db: 0
21
- password: ""
22
- kafka:
23
- brokers:
24
- - localhost:9092
25
- groupId: vira-engine
26
- topics:
27
- events: vira.events
28
- dlq: vira.events.dlq
29
- state:
30
- diffMode: merge # merge | patch
31
- maxHistory: 100
32
- persist: memory # memory | redis
33
- ttlSeconds: 0 # 0 = no TTL
4
+ exports.appYaml = `service: vira-engine
5
+ env: development
6
+ http:
7
+ port: 8080
8
+ logging:
9
+ level: info
10
+ db:
11
+ host: localhost
12
+ port: 5432
13
+ user: vira
14
+ password: vira
15
+ database: vira
16
+ sslmode: disable
17
+ redis:
18
+ host: localhost
19
+ port: 6379
20
+ db: 0
21
+ password: ""
22
+ kafka:
23
+ brokers:
24
+ - localhost:9092
25
+ groupId: vira-engine
26
+ topics:
27
+ events: vira.events
28
+ dlq: vira.events.dlq
29
+ state:
30
+ diffMode: merge # merge | patch
31
+ maxHistory: 100
32
+ persist: memory # memory | redis
33
+ ttlSeconds: 0 # 0 = no TTL
34
34
  `;
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.backendEnvExample = void 0;
4
- exports.backendEnvExample = `PORT=8080
5
- LOG_LEVEL=info
6
- DB_HOST=localhost
7
- DB_PORT=5432
8
- DB_USER=vira
9
- DB_PASSWORD=vira
10
- DB_NAME=vira
11
- DB_SSLMODE=disable
12
- REDIS_HOST=localhost
13
- REDIS_PORT=6379
14
- REDIS_PASSWORD=
15
- REDIS_DB=0
16
- KAFKA_BROKERS=localhost:9092
17
- KAFKA_GROUP_ID=vira-engine
18
- KAFKA_TOPIC_EVENTS=vira.events
19
- KAFKA_TOPIC_DLQ=vira.events.dlq
20
- AUTH_TOKEN=
4
+ exports.backendEnvExample = `PORT=8080
5
+ LOG_LEVEL=info
6
+ DB_HOST=localhost
7
+ DB_PORT=5432
8
+ DB_USER=vira
9
+ DB_PASSWORD=vira
10
+ DB_NAME=vira
11
+ DB_SSLMODE=disable
12
+ REDIS_HOST=localhost
13
+ REDIS_PORT=6379
14
+ REDIS_PASSWORD=
15
+ REDIS_DB=0
16
+ KAFKA_BROKERS=localhost:9092
17
+ KAFKA_GROUP_ID=vira-engine
18
+ KAFKA_TOPIC_EVENTS=vira.events
19
+ KAFKA_TOPIC_DLQ=vira.events.dlq
20
+ AUTH_TOKEN=
21
21
  `;
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.backendReadme = void 0;
4
- exports.backendReadme = `# Vira Engine Backend (stub)
5
-
6
- - HTTP сервер на :8080 с chi, middleware (RequestID, RealIP, Recoverer, логирование)
7
- - Контекст: reqID (Request-ID), userID из X-User-ID
8
- - Конфиги: config/app.yaml, db.yaml, redis.yaml, kafka.yaml (PORT/LOG_LEVEL/DB_*/REDIS_*/KAFKA_* env override)
9
- - DB: pgx pool, sqlc.yaml scaffold (queries/, migrations/)
10
- - Redis: go-redis v9 клиент с health/ping
11
- - Kafka: kafka-go клиент, health/ping, writer/reader factory
12
- - Docker: multi-stage Dockerfile для API, docker-compose.prod.yml (API+PG+Redis+Kafka)
13
- - Дальнейшее: расширить хендлеры, миграции, Kafka outbox, Redis cache
14
- - TODO: OTEL exporter (traces/logs/metrics)
15
-
16
- ## Быстрый старт
17
- go run ./cmd/api
4
+ exports.backendReadme = `# Vira Engine Backend (stub)
5
+
6
+ - HTTP сервер на :8080 с chi, middleware (RequestID, RealIP, Recoverer, логирование)
7
+ - Контекст: reqID (Request-ID), userID из X-User-ID
8
+ - Конфиги: config/app.yaml, db.yaml, redis.yaml, kafka.yaml (PORT/LOG_LEVEL/DB_*/REDIS_*/KAFKA_* env override)
9
+ - DB: pgx pool, sqlc.yaml scaffold (queries/, migrations/)
10
+ - Redis: go-redis v9 клиент с health/ping
11
+ - Kafka: kafka-go клиент, health/ping, writer/reader factory
12
+ - Docker: multi-stage Dockerfile для API, docker-compose.prod.yml (API+PG+Redis+Kafka)
13
+ - Дальнейшее: расширить хендлеры, миграции, Kafka outbox, Redis cache
14
+ - TODO: OTEL exporter (traces/logs/metrics)
15
+
16
+ ## Быстрый старт
17
+ go run ./cmd/api
18
18
  `;
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.channelHelpers = void 0;
4
- exports.channelHelpers = `package events
5
-
6
- import "fmt"
7
-
8
- // Channel helpers for common entity scopes.
9
- func ChannelUser(id any) string {
10
- return fmt.Sprintf("user:%v", id)
11
- }
12
-
13
- func ChannelTask(id any) string {
14
- return fmt.Sprintf("task:%v", id)
15
- }
16
-
17
- func ChannelNotifications(userID any) string {
18
- return fmt.Sprintf("notifications:%v", userID)
19
- }
20
-
21
- func ChannelCustom(name string, key any) string {
22
- return fmt.Sprintf("%s:%v", name, key)
23
- }
24
-
25
- // ChannelKanban returns a kanban board channel.
26
- func ChannelKanban(boardID any) string {
27
- return fmt.Sprintf("kanban:%v", boardID)
28
- }
4
+ exports.channelHelpers = `package events
5
+
6
+ import "fmt"
7
+
8
+ // Channel helpers for common entity scopes.
9
+ func ChannelUser(id any) string {
10
+ return fmt.Sprintf("user:%v", id)
11
+ }
12
+
13
+ func ChannelTask(id any) string {
14
+ return fmt.Sprintf("task:%v", id)
15
+ }
16
+
17
+ func ChannelNotifications(userID any) string {
18
+ return fmt.Sprintf("notifications:%v", userID)
19
+ }
20
+
21
+ func ChannelCustom(name string, key any) string {
22
+ return fmt.Sprintf("%s:%v", name, key)
23
+ }
24
+
25
+ // ChannelKanban returns a kanban board channel.
26
+ func ChannelKanban(boardID any) string {
27
+ return fmt.Sprintf("kanban:%v", boardID)
28
+ }
29
29
  `;