sovkora 0.0.0-stage → 1.1.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 (98) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +9 -0
  3. package/README.md +67 -2
  4. package/dist/commands/agent.command.js +267 -0
  5. package/dist/commands/chat.command.js +214 -0
  6. package/dist/commands/chat.handlers.js +150 -0
  7. package/dist/commands/chat.types.js +44 -0
  8. package/dist/commands/cinema.command.js +643 -0
  9. package/dist/commands/config.command.js +228 -0
  10. package/dist/commands/db.command.js +114 -0
  11. package/dist/commands/demo.command.js +55 -0
  12. package/dist/commands/dev.command.js +462 -0
  13. package/dist/commands/docs.command.js +135 -0
  14. package/dist/commands/doctor.command.js +119 -0
  15. package/dist/commands/forgot.command.js +57 -0
  16. package/dist/commands/generate.command.js +376 -0
  17. package/dist/commands/graph.command.js +54 -0
  18. package/dist/commands/init.command.js +380 -0
  19. package/dist/commands/init.steps.js +115 -0
  20. package/dist/commands/install.command.js +459 -0
  21. package/dist/commands/login.command.js +110 -0
  22. package/dist/commands/logs.command.js +215 -0
  23. package/dist/commands/logs.steps.js +130 -0
  24. package/dist/commands/mcp.command.js +104 -0
  25. package/dist/commands/models.command.js +164 -0
  26. package/dist/commands/onboard.command.js +236 -0
  27. package/dist/commands/pack.command.js +255 -0
  28. package/dist/commands/profile.command.js +51 -0
  29. package/dist/commands/recover.command.js +489 -0
  30. package/dist/commands/register.command.js +94 -0
  31. package/dist/commands/release.command.js +99 -0
  32. package/dist/commands/reset.command.js +79 -0
  33. package/dist/commands/runs.command.js +201 -0
  34. package/dist/commands/settings.command.js +85 -0
  35. package/dist/commands/start.command.js +590 -0
  36. package/dist/commands/status.command.js +167 -0
  37. package/dist/commands/stop.command.js +313 -0
  38. package/dist/commands/studio.command.js +266 -0
  39. package/dist/commands/test.command.js +134 -0
  40. package/dist/commands/verify.command.js +52 -0
  41. package/dist/commands/video.command.js +73 -0
  42. package/dist/commands/workspace-guard.js +72 -0
  43. package/dist/index.js +207 -0
  44. package/dist/renderers.js +250 -0
  45. package/dist/services/api-client.js +150 -0
  46. package/dist/services/auth.api.js +87 -0
  47. package/dist/services/chat.api.js +117 -0
  48. package/dist/services/cinema-estimate.json +42 -0
  49. package/dist/services/cinema.childsafe.js +52 -0
  50. package/dist/services/cinema.director.js +285 -0
  51. package/dist/services/cinema.production.js +417 -0
  52. package/dist/services/cinema.staging.js +323 -0
  53. package/dist/services/cinema.story.js +758 -0
  54. package/dist/services/cinema.treatment.js +393 -0
  55. package/dist/services/composer.run.js +94 -0
  56. package/dist/services/demo/demo.documents.js +108 -0
  57. package/dist/services/demo/demo.guard.js +49 -0
  58. package/dist/services/demo/demo.persona.js +114 -0
  59. package/dist/services/demo/demo.seed.js +281 -0
  60. package/dist/services/diagnostics.js +327 -0
  61. package/dist/services/image-model-recipes.json +93 -0
  62. package/dist/services/image-models.js +152 -0
  63. package/dist/services/local-store.js +145 -0
  64. package/dist/services/mcp.api.js +38 -0
  65. package/dist/services/model-catalog.js +70 -0
  66. package/dist/services/notify.js +55 -0
  67. package/dist/services/pack.api.js +23 -0
  68. package/dist/services/pack.bundle.js +241 -0
  69. package/dist/services/pack.sources.js +101 -0
  70. package/dist/services/release-manifest.js +266 -0
  71. package/dist/services/runs.view.js +80 -0
  72. package/dist/services/runs.wait.js +38 -0
  73. package/dist/services/semver.js +55 -0
  74. package/dist/services/settings.api.js +108 -0
  75. package/dist/services/string-utils.js +70 -0
  76. package/dist/services/studio.api.js +120 -0
  77. package/dist/services/templates.js +893 -0
  78. package/dist/services/tool-installer.js +353 -0
  79. package/dist/services/tool-path.js +72 -0
  80. package/dist/services/version-manager.js +253 -0
  81. package/dist/services/workspace-bootstrap.js +68 -0
  82. package/dist/threads.js +202 -0
  83. package/dist/types/api.types.js +6 -0
  84. package/dist/types/local.types.js +6 -0
  85. package/dist/ui/box.js +46 -0
  86. package/dist/ui/logger.js +28 -0
  87. package/dist/ui/platform.js +32 -0
  88. package/dist/ui/prompts.js +130 -0
  89. package/dist/ui/table.js +33 -0
  90. package/dist/utils/config.js +150 -0
  91. package/dist/utils/development-status.js +22 -0
  92. package/dist/utils/endpoints.js +41 -0
  93. package/dist/utils/health.js +94 -0
  94. package/dist/utils/pid.js +83 -0
  95. package/dist/utils/platform.js +358 -0
  96. package/dist/utils/process.js +139 -0
  97. package/dist/utils/state-dir.js +105 -0
  98. package/package.json +95 -4
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ /**
3
+ * @file studio.api.ts
4
+ * @description Outbound adapter service for the Studio marketplace (ADR-034).
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.StudioApi = void 0;
8
+ const api_client_1 = require("./api-client");
9
+ exports.StudioApi = {
10
+ /** One Studio by key: its label, version and estimated credits per run. */
11
+ detail: async (studioKey) => {
12
+ return api_client_1.ApiClient.requestRest({
13
+ method: "GET",
14
+ path: `/api/v1/studios/${encodeURIComponent(studioKey)}`,
15
+ });
16
+ },
17
+ /** The Studios this deployment can launch from a single input, for this actor. */
18
+ composer: async (locale = "fr") => {
19
+ return api_client_1.ApiClient.requestRest({
20
+ method: "GET",
21
+ path: `/api/v1/studios/composer?locale=${encodeURIComponent(locale)}`,
22
+ });
23
+ },
24
+ /**
25
+ * Starts a run of a Studio by key.
26
+ *
27
+ * The only door: a TOOLKIT Studio has no installation row to address, and since
28
+ * ADR-068 there is no capability endpoint to POST to either.
29
+ */
30
+ startStudioRun: async (studioKey, inputs) => {
31
+ return api_client_1.ApiClient.requestRest({
32
+ method: "POST",
33
+ path: `/api/v1/studios/${encodeURIComponent(studioKey)}/runs`,
34
+ body: { inputs },
35
+ });
36
+ },
37
+ /** The catalogue, locked entries included so the CLI can show what is worth buying. */
38
+ list: async (profession) => {
39
+ const query = profession ? `?profession=${encodeURIComponent(profession)}` : "";
40
+ return api_client_1.ApiClient.requestRest({
41
+ method: "GET",
42
+ path: `/api/v1/studios${query}`,
43
+ });
44
+ },
45
+ /** What this user has installed. */
46
+ installations: async () => {
47
+ return api_client_1.ApiClient.requestRest({
48
+ method: "GET",
49
+ path: "/api/v1/studios/installations",
50
+ });
51
+ },
52
+ /** Installs a Studio, pinning its newest published version. */
53
+ install: async (studioKey, config) => {
54
+ return api_client_1.ApiClient.requestRest({
55
+ method: "POST",
56
+ path: `/api/v1/studios/${encodeURIComponent(studioKey)}/installations`,
57
+ body: { config },
58
+ });
59
+ },
60
+ /** Starts a run and returns immediately with its id — a run outlives the command. */
61
+ run: async (installationId, inputs) => {
62
+ return api_client_1.ApiClient.requestRest({
63
+ method: "POST",
64
+ path: `/api/v1/studios/installations/${encodeURIComponent(installationId)}/runs`,
65
+ body: { inputs },
66
+ });
67
+ },
68
+ /** One run with its per-step states. */
69
+ runDetail: async (runId) => {
70
+ return api_client_1.ApiClient.requestRest({
71
+ method: "GET",
72
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}`,
73
+ });
74
+ },
75
+ /** This user's run history. */
76
+ runs: async () => {
77
+ return api_client_1.ApiClient.requestRest({
78
+ method: "GET",
79
+ path: "/api/v1/studios/runs",
80
+ });
81
+ },
82
+ /** Cancels a run and releases its hold (204). */
83
+ cancelRun: async (runId) => {
84
+ await api_client_1.ApiClient.requestRest({
85
+ method: "POST",
86
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}/cancel`,
87
+ });
88
+ },
89
+ /** Resolves the approval step a run is parked on (204). */
90
+ approveRun: async (runId) => {
91
+ await api_client_1.ApiClient.requestRest({
92
+ method: "POST",
93
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}/approve`,
94
+ });
95
+ },
96
+ /** Answers a run that waits for input (200, orazaka-studio#115): the message is the parked step's output. */
97
+ sendRun: async (runId, text) => {
98
+ return api_client_1.ApiClient.requestRest({
99
+ method: "POST",
100
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}/send`,
101
+ body: { text },
102
+ });
103
+ },
104
+ /** Refuses the approval a run waits on (200): the run stops without the step and its hold is released. */
105
+ denyRun: async (runId, reason) => {
106
+ return api_client_1.ApiClient.requestRest({
107
+ method: "POST",
108
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}/deny`,
109
+ body: reason ? { reason } : {},
110
+ });
111
+ },
112
+ /** Starts a new run from a step of a finished one (202): the steps before keep their recorded outputs. */
113
+ resumeRun: async (runId, fromStep) => {
114
+ return api_client_1.ApiClient.requestRest({
115
+ method: "POST",
116
+ path: `/api/v1/studios/runs/${encodeURIComponent(runId)}/resume`,
117
+ body: { fromStep },
118
+ });
119
+ },
120
+ };