@mininglamp-oss/octo-runtime 1.1.12 → 1.1.13

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 (172) hide show
  1. package/README.md +1 -1
  2. package/apps/cli/dist/adapters.d.ts +19 -1
  3. package/apps/cli/dist/adapters.js +153 -23
  4. package/apps/cli/dist/build-info.json +2 -2
  5. package/apps/cli/dist/codex.d.ts +5 -0
  6. package/apps/cli/dist/codex.js +36 -0
  7. package/apps/cli/dist/kernel.d.ts +4 -0
  8. package/apps/cli/dist/kernel.js +84 -0
  9. package/apps/cli/dist/main.js +8 -7
  10. package/apps/cli/dist/manifest.json +33 -22
  11. package/apps/cli/dist/output.d.ts +1 -0
  12. package/apps/cli/dist/output.js +8 -4
  13. package/apps/cli/dist/playboard.js +21 -12
  14. package/apps/cli/dist/provider-launch.d.ts +28 -0
  15. package/apps/cli/dist/provider-launch.js +52 -0
  16. package/apps/cli/dist/providers.d.ts +182 -0
  17. package/apps/cli/dist/providers.js +34 -0
  18. package/dist/public/adapter-sdk.d.ts +2 -0
  19. package/dist/public/adapter-sdk.js +2 -0
  20. package/dist/public/protocol.d.ts +1 -1
  21. package/dist/public/protocol.js +1 -1
  22. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +4 -4
  23. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +15 -14
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -28
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +10 -35
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +22 -29
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +14 -68
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +60 -43
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -31
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +29 -18
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -5
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +32 -26
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.d.ts +54 -0
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.js +147 -0
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +4 -8
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +20 -92
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +104 -216
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +2 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +4 -11
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +9 -5
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +77 -81
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +4 -2
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +12 -14
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +14 -14
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +23 -30
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +4 -7
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +13 -21
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +48 -26
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -14
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +15 -7
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -14
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +14 -6
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -14
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +15 -7
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +7 -3
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +27 -29
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +16 -25
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +109 -178
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -14
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +15 -6
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -2
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -14
  76. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +15 -6
  77. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -2
  78. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -1
  79. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +49 -0
  80. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +256 -0
  81. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +7 -2
  82. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +1 -1
  83. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +5 -1
  84. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +25 -12
  85. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +116 -58
  86. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +1 -1
  87. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +11 -1
  88. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +89 -8
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.d.ts +10 -0
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.js +25 -0
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +10 -3
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  93. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +19 -1
  94. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +153 -23
  95. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  96. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.d.ts +5 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.js +36 -0
  98. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.d.ts +4 -0
  99. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.js +84 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +8 -7
  101. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -22
  102. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +1 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +8 -4
  104. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +21 -12
  105. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.d.ts +28 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.js +52 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +182 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +34 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -20
  110. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
  111. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +2 -2
  112. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +5 -5
  113. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +3 -104
  114. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +173 -1295
  115. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  116. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +0 -2
  117. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +26 -54
  118. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +2 -2
  119. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +13 -85
  120. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -1
  121. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +5 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  123. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -1
  124. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -1
  125. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +17 -20
  127. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
  128. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  129. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +0 -2
  130. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +0 -2
  131. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +0 -1
  132. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +3 -5
  133. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +1 -8
  134. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +1 -2
  135. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -267
  136. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +17 -3
  138. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +102 -396
  139. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
  140. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +6 -15
  141. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +33 -178
  142. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +11 -22
  143. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +38 -78
  144. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +6 -0
  145. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +2 -1
  146. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +5 -28
  147. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +2 -1
  148. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  149. package/package.json +34 -37
  150. package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
  151. package/packages/octo-runtime-protocol/schema/protocol.schema.json +173 -1295
  152. package/dist/public/codex.d.ts +0 -1
  153. package/dist/public/codex.js +0 -1
  154. package/dist/public/dsh.d.ts +0 -2
  155. package/dist/public/dsh.js +0 -1
  156. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +0 -1219
  157. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +0 -5988
  158. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +0 -56
  159. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +0 -116
  160. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +0 -761
  161. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +0 -663
  162. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +0 -191
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.d.ts +0 -12
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.js +0 -89
  165. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.d.ts +0 -33
  166. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.js +0 -93
  167. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +0 -3
  168. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +0 -80
  169. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +0 -3
  170. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +0 -9
  171. /package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +0 -0
  172. /package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +0 -0
@@ -1,663 +0,0 @@
1
- [
2
- {
3
- "name": "explicit",
4
- "valid": true,
5
- "selection": {
6
- "schema": "octo.runtime-selection/v2",
7
- "selection_mode": "explicit",
8
- "explicit_runtime_id": "runtime-1",
9
- "authorized_candidates": [
10
- {
11
- "runtime_id": "runtime-1",
12
- "priority": 1,
13
- "owner_subject_type": "user",
14
- "owner_subject_id": "user-1"
15
- }
16
- ],
17
- "offline_behavior": "wait",
18
- "failover": "none"
19
- }
20
- },
21
- {
22
- "name": "candidates",
23
- "valid": true,
24
- "selection": {
25
- "schema": "octo.runtime-selection/v2",
26
- "selection_mode": "candidates",
27
- "authorized_candidates": [
28
- {
29
- "runtime_id": "runtime-1",
30
- "priority": 1,
31
- "owner_subject_type": "user",
32
- "owner_subject_id": "user-1"
33
- },
34
- {
35
- "runtime_id": "runtime-2",
36
- "priority": 2,
37
- "owner_subject_type": "user",
38
- "owner_subject_id": "user-1"
39
- }
40
- ],
41
- "offline_behavior": "wait",
42
- "failover": "candidates"
43
- }
44
- },
45
- {
46
- "name": "candidates-no-failover",
47
- "valid": true,
48
- "selection": {
49
- "schema": "octo.runtime-selection/v2",
50
- "selection_mode": "candidates",
51
- "authorized_candidates": [
52
- {
53
- "runtime_id": "runtime-1",
54
- "priority": 1,
55
- "owner_subject_type": "user",
56
- "owner_subject_id": "user-1"
57
- },
58
- {
59
- "runtime_id": "runtime-2",
60
- "priority": 2,
61
- "owner_subject_type": "user",
62
- "owner_subject_id": "user-1"
63
- }
64
- ],
65
- "offline_behavior": "wait",
66
- "failover": "none"
67
- }
68
- },
69
- {
70
- "name": "explicit-fail-offline",
71
- "valid": true,
72
- "selection": {
73
- "schema": "octo.runtime-selection/v2",
74
- "selection_mode": "explicit",
75
- "explicit_runtime_id": "runtime-1",
76
- "authorized_candidates": [
77
- {
78
- "runtime_id": "runtime-1",
79
- "priority": 1,
80
- "owner_subject_type": "user",
81
- "owner_subject_id": "user-1"
82
- }
83
- ],
84
- "offline_behavior": "fail",
85
- "failover": "none"
86
- }
87
- },
88
- {
89
- "name": "schema-missing",
90
- "valid": false,
91
- "selection": {
92
- "selection_mode": "explicit",
93
- "explicit_runtime_id": "runtime-1",
94
- "authorized_candidates": [
95
- {
96
- "runtime_id": "runtime-1",
97
- "priority": 1,
98
- "owner_subject_type": "user",
99
- "owner_subject_id": "user-1"
100
- }
101
- ],
102
- "offline_behavior": "wait",
103
- "failover": "none"
104
- }
105
- },
106
- {
107
- "name": "schema-null",
108
- "valid": false,
109
- "selection": {
110
- "schema": null,
111
- "selection_mode": "explicit",
112
- "explicit_runtime_id": "runtime-1",
113
- "authorized_candidates": [
114
- {
115
- "runtime_id": "runtime-1",
116
- "priority": 1,
117
- "owner_subject_type": "user",
118
- "owner_subject_id": "user-1"
119
- }
120
- ],
121
- "offline_behavior": "wait",
122
- "failover": "none"
123
- }
124
- },
125
- {
126
- "name": "schema-case",
127
- "valid": false,
128
- "selection": {
129
- "selection_mode": "explicit",
130
- "explicit_runtime_id": "runtime-1",
131
- "authorized_candidates": [
132
- {
133
- "runtime_id": "runtime-1",
134
- "priority": 1,
135
- "owner_subject_type": "user",
136
- "owner_subject_id": "user-1"
137
- }
138
- ],
139
- "offline_behavior": "wait",
140
- "failover": "none",
141
- "SCHEMA": "octo.runtime-selection/v2"
142
- }
143
- },
144
- {
145
- "name": "selection_mode-missing",
146
- "valid": false,
147
- "selection": {
148
- "schema": "octo.runtime-selection/v2",
149
- "explicit_runtime_id": "runtime-1",
150
- "authorized_candidates": [
151
- {
152
- "runtime_id": "runtime-1",
153
- "priority": 1,
154
- "owner_subject_type": "user",
155
- "owner_subject_id": "user-1"
156
- }
157
- ],
158
- "offline_behavior": "wait",
159
- "failover": "none"
160
- }
161
- },
162
- {
163
- "name": "selection_mode-null",
164
- "valid": false,
165
- "selection": {
166
- "schema": "octo.runtime-selection/v2",
167
- "selection_mode": null,
168
- "explicit_runtime_id": "runtime-1",
169
- "authorized_candidates": [
170
- {
171
- "runtime_id": "runtime-1",
172
- "priority": 1,
173
- "owner_subject_type": "user",
174
- "owner_subject_id": "user-1"
175
- }
176
- ],
177
- "offline_behavior": "wait",
178
- "failover": "none"
179
- }
180
- },
181
- {
182
- "name": "selection_mode-case",
183
- "valid": false,
184
- "selection": {
185
- "schema": "octo.runtime-selection/v2",
186
- "explicit_runtime_id": "runtime-1",
187
- "authorized_candidates": [
188
- {
189
- "runtime_id": "runtime-1",
190
- "priority": 1,
191
- "owner_subject_type": "user",
192
- "owner_subject_id": "user-1"
193
- }
194
- ],
195
- "offline_behavior": "wait",
196
- "failover": "none",
197
- "SELECTION_MODE": "explicit"
198
- }
199
- },
200
- {
201
- "name": "authorized_candidates-missing",
202
- "valid": false,
203
- "selection": {
204
- "schema": "octo.runtime-selection/v2",
205
- "selection_mode": "explicit",
206
- "explicit_runtime_id": "runtime-1",
207
- "offline_behavior": "wait",
208
- "failover": "none"
209
- }
210
- },
211
- {
212
- "name": "authorized_candidates-null",
213
- "valid": false,
214
- "selection": {
215
- "schema": "octo.runtime-selection/v2",
216
- "selection_mode": "explicit",
217
- "explicit_runtime_id": "runtime-1",
218
- "authorized_candidates": null,
219
- "offline_behavior": "wait",
220
- "failover": "none"
221
- }
222
- },
223
- {
224
- "name": "authorized_candidates-case",
225
- "valid": false,
226
- "selection": {
227
- "schema": "octo.runtime-selection/v2",
228
- "selection_mode": "explicit",
229
- "explicit_runtime_id": "runtime-1",
230
- "offline_behavior": "wait",
231
- "failover": "none",
232
- "AUTHORIZED_CANDIDATES": [
233
- {
234
- "runtime_id": "runtime-1",
235
- "priority": 1,
236
- "owner_subject_type": "user",
237
- "owner_subject_id": "user-1"
238
- }
239
- ]
240
- }
241
- },
242
- {
243
- "name": "offline_behavior-missing",
244
- "valid": false,
245
- "selection": {
246
- "schema": "octo.runtime-selection/v2",
247
- "selection_mode": "explicit",
248
- "explicit_runtime_id": "runtime-1",
249
- "authorized_candidates": [
250
- {
251
- "runtime_id": "runtime-1",
252
- "priority": 1,
253
- "owner_subject_type": "user",
254
- "owner_subject_id": "user-1"
255
- }
256
- ],
257
- "failover": "none"
258
- }
259
- },
260
- {
261
- "name": "offline_behavior-null",
262
- "valid": false,
263
- "selection": {
264
- "schema": "octo.runtime-selection/v2",
265
- "selection_mode": "explicit",
266
- "explicit_runtime_id": "runtime-1",
267
- "authorized_candidates": [
268
- {
269
- "runtime_id": "runtime-1",
270
- "priority": 1,
271
- "owner_subject_type": "user",
272
- "owner_subject_id": "user-1"
273
- }
274
- ],
275
- "offline_behavior": null,
276
- "failover": "none"
277
- }
278
- },
279
- {
280
- "name": "offline_behavior-case",
281
- "valid": false,
282
- "selection": {
283
- "schema": "octo.runtime-selection/v2",
284
- "selection_mode": "explicit",
285
- "explicit_runtime_id": "runtime-1",
286
- "authorized_candidates": [
287
- {
288
- "runtime_id": "runtime-1",
289
- "priority": 1,
290
- "owner_subject_type": "user",
291
- "owner_subject_id": "user-1"
292
- }
293
- ],
294
- "failover": "none",
295
- "OFFLINE_BEHAVIOR": "wait"
296
- }
297
- },
298
- {
299
- "name": "failover-missing",
300
- "valid": false,
301
- "selection": {
302
- "schema": "octo.runtime-selection/v2",
303
- "selection_mode": "explicit",
304
- "explicit_runtime_id": "runtime-1",
305
- "authorized_candidates": [
306
- {
307
- "runtime_id": "runtime-1",
308
- "priority": 1,
309
- "owner_subject_type": "user",
310
- "owner_subject_id": "user-1"
311
- }
312
- ],
313
- "offline_behavior": "wait"
314
- }
315
- },
316
- {
317
- "name": "failover-null",
318
- "valid": false,
319
- "selection": {
320
- "schema": "octo.runtime-selection/v2",
321
- "selection_mode": "explicit",
322
- "explicit_runtime_id": "runtime-1",
323
- "authorized_candidates": [
324
- {
325
- "runtime_id": "runtime-1",
326
- "priority": 1,
327
- "owner_subject_type": "user",
328
- "owner_subject_id": "user-1"
329
- }
330
- ],
331
- "offline_behavior": "wait",
332
- "failover": null
333
- }
334
- },
335
- {
336
- "name": "failover-case",
337
- "valid": false,
338
- "selection": {
339
- "schema": "octo.runtime-selection/v2",
340
- "selection_mode": "explicit",
341
- "explicit_runtime_id": "runtime-1",
342
- "authorized_candidates": [
343
- {
344
- "runtime_id": "runtime-1",
345
- "priority": 1,
346
- "owner_subject_type": "user",
347
- "owner_subject_id": "user-1"
348
- }
349
- ],
350
- "offline_behavior": "wait",
351
- "FAILOVER": "none"
352
- }
353
- },
354
- {
355
- "name": "old-schema",
356
- "valid": false,
357
- "selection": {
358
- "schema": "octo.runtime-selection/v1",
359
- "selection_mode": "explicit",
360
- "explicit_runtime_id": "runtime-1",
361
- "authorized_candidates": [
362
- {
363
- "runtime_id": "runtime-1",
364
- "priority": 1,
365
- "owner_subject_type": "user",
366
- "owner_subject_id": "user-1"
367
- }
368
- ],
369
- "offline_behavior": "wait",
370
- "failover": "none"
371
- }
372
- },
373
- {
374
- "name": "mode",
375
- "valid": false,
376
- "selection": {
377
- "schema": "octo.runtime-selection/v2",
378
- "selection_mode": "binding",
379
- "explicit_runtime_id": "runtime-1",
380
- "authorized_candidates": [
381
- {
382
- "runtime_id": "runtime-1",
383
- "priority": 1,
384
- "owner_subject_type": "user",
385
- "owner_subject_id": "user-1"
386
- }
387
- ],
388
- "offline_behavior": "wait",
389
- "failover": "none"
390
- }
391
- },
392
- {
393
- "name": "explicit-failover",
394
- "valid": false,
395
- "selection": {
396
- "schema": "octo.runtime-selection/v2",
397
- "selection_mode": "explicit",
398
- "explicit_runtime_id": "runtime-1",
399
- "authorized_candidates": [
400
- {
401
- "runtime_id": "runtime-1",
402
- "priority": 1,
403
- "owner_subject_type": "user",
404
- "owner_subject_id": "user-1"
405
- }
406
- ],
407
- "offline_behavior": "wait",
408
- "failover": "candidates"
409
- }
410
- },
411
- {
412
- "name": "offline",
413
- "valid": false,
414
- "selection": {
415
- "schema": "octo.runtime-selection/v2",
416
- "selection_mode": "explicit",
417
- "explicit_runtime_id": "runtime-1",
418
- "authorized_candidates": [
419
- {
420
- "runtime_id": "runtime-1",
421
- "priority": 1,
422
- "owner_subject_type": "user",
423
- "owner_subject_id": "user-1"
424
- }
425
- ],
426
- "offline_behavior": "ignore",
427
- "failover": "none"
428
- }
429
- },
430
- {
431
- "name": "old-routing",
432
- "valid": false,
433
- "selection": {
434
- "schema": "octo.runtime-selection/v2",
435
- "selection_mode": "explicit",
436
- "explicit_runtime_id": "runtime-1",
437
- "authorized_candidates": [
438
- {
439
- "runtime_id": "runtime-1",
440
- "priority": 1,
441
- "owner_subject_type": "user",
442
- "owner_subject_id": "user-1"
443
- }
444
- ],
445
- "offline_behavior": "wait",
446
- "failover": "none",
447
- "routing_mode": "bound"
448
- }
449
- },
450
- {
451
- "name": "old-binding",
452
- "valid": false,
453
- "selection": {
454
- "schema": "octo.runtime-selection/v2",
455
- "selection_mode": "explicit",
456
- "explicit_runtime_id": "runtime-1",
457
- "authorized_candidates": [
458
- {
459
- "runtime_id": "runtime-1",
460
- "priority": 1,
461
- "owner_subject_type": "user",
462
- "owner_subject_id": "user-1"
463
- }
464
- ],
465
- "offline_behavior": "wait",
466
- "failover": "none",
467
- "binding_ref": {
468
- "id": "binding-1",
469
- "version": 1
470
- }
471
- }
472
- },
473
- {
474
- "name": "empty-explicit",
475
- "valid": false,
476
- "selection": {
477
- "schema": "octo.runtime-selection/v2",
478
- "selection_mode": "explicit",
479
- "explicit_runtime_id": "",
480
- "authorized_candidates": [
481
- {
482
- "runtime_id": "runtime-1",
483
- "priority": 1,
484
- "owner_subject_type": "user",
485
- "owner_subject_id": "user-1"
486
- }
487
- ],
488
- "offline_behavior": "wait",
489
- "failover": "none"
490
- }
491
- },
492
- {
493
- "name": "empty-candidates",
494
- "valid": false,
495
- "selection": {
496
- "schema": "octo.runtime-selection/v2",
497
- "selection_mode": "explicit",
498
- "explicit_runtime_id": "runtime-1",
499
- "authorized_candidates": [],
500
- "offline_behavior": "wait",
501
- "failover": "none"
502
- }
503
- },
504
- {
505
- "name": "candidate-runtime_id-",
506
- "valid": false,
507
- "selection": {
508
- "schema": "octo.runtime-selection/v2",
509
- "selection_mode": "explicit",
510
- "explicit_runtime_id": "runtime-1",
511
- "authorized_candidates": [
512
- {
513
- "runtime_id": "",
514
- "priority": 1,
515
- "owner_subject_type": "user",
516
- "owner_subject_id": "user-1"
517
- }
518
- ],
519
- "offline_behavior": "wait",
520
- "failover": "none"
521
- }
522
- },
523
- {
524
- "name": "candidate-priority-0",
525
- "valid": false,
526
- "selection": {
527
- "schema": "octo.runtime-selection/v2",
528
- "selection_mode": "explicit",
529
- "explicit_runtime_id": "runtime-1",
530
- "authorized_candidates": [
531
- {
532
- "runtime_id": "runtime-1",
533
- "priority": 0,
534
- "owner_subject_type": "user",
535
- "owner_subject_id": "user-1"
536
- }
537
- ],
538
- "offline_behavior": "wait",
539
- "failover": "none"
540
- }
541
- },
542
- {
543
- "name": "candidate-priority-1.1",
544
- "valid": false,
545
- "selection": {
546
- "schema": "octo.runtime-selection/v2",
547
- "selection_mode": "explicit",
548
- "explicit_runtime_id": "runtime-1",
549
- "authorized_candidates": [
550
- {
551
- "runtime_id": "runtime-1",
552
- "priority": 1.1,
553
- "owner_subject_type": "user",
554
- "owner_subject_id": "user-1"
555
- }
556
- ],
557
- "offline_behavior": "wait",
558
- "failover": "none"
559
- }
560
- },
561
- {
562
- "name": "candidate-owner_subject_type-service",
563
- "valid": false,
564
- "selection": {
565
- "schema": "octo.runtime-selection/v2",
566
- "selection_mode": "explicit",
567
- "explicit_runtime_id": "runtime-1",
568
- "authorized_candidates": [
569
- {
570
- "runtime_id": "runtime-1",
571
- "priority": 1,
572
- "owner_subject_type": "service",
573
- "owner_subject_id": "user-1"
574
- }
575
- ],
576
- "offline_behavior": "wait",
577
- "failover": "none"
578
- }
579
- },
580
- {
581
- "name": "candidate-owner_subject_id-",
582
- "valid": false,
583
- "selection": {
584
- "schema": "octo.runtime-selection/v2",
585
- "selection_mode": "explicit",
586
- "explicit_runtime_id": "runtime-1",
587
- "authorized_candidates": [
588
- {
589
- "runtime_id": "runtime-1",
590
- "priority": 1,
591
- "owner_subject_type": "user",
592
- "owner_subject_id": ""
593
- }
594
- ],
595
- "offline_behavior": "wait",
596
- "failover": "none"
597
- }
598
- },
599
- {
600
- "name": "candidate-unknown-true",
601
- "valid": false,
602
- "selection": {
603
- "schema": "octo.runtime-selection/v2",
604
- "selection_mode": "explicit",
605
- "explicit_runtime_id": "runtime-1",
606
- "authorized_candidates": [
607
- {
608
- "runtime_id": "runtime-1",
609
- "priority": 1,
610
- "owner_subject_type": "user",
611
- "owner_subject_id": "user-1",
612
- "unknown": true
613
- }
614
- ],
615
- "offline_behavior": "wait",
616
- "failover": "none"
617
- }
618
- },
619
- {
620
- "name": "top-null",
621
- "valid": false,
622
- "selection": null
623
- },
624
- {
625
- "name": "top-array",
626
- "valid": false,
627
- "selection": []
628
- },
629
- {
630
- "name": "top-string",
631
- "valid": false,
632
- "selection": "invalid"
633
- },
634
- {
635
- "name": "top-bool",
636
- "valid": false,
637
- "selection": true
638
- },
639
- {
640
- "name": "duplicate-runtime",
641
- "valid": false,
642
- "selection": {
643
- "schema": "octo.runtime-selection/v2",
644
- "selection_mode": "candidates",
645
- "authorized_candidates": [
646
- {
647
- "runtime_id": "runtime-1",
648
- "priority": 1,
649
- "owner_subject_type": "user",
650
- "owner_subject_id": "user-1"
651
- },
652
- {
653
- "runtime_id": "runtime-1",
654
- "priority": 2,
655
- "owner_subject_type": "user",
656
- "owner_subject_id": "user-1"
657
- }
658
- ],
659
- "offline_behavior": "wait",
660
- "failover": "candidates"
661
- }
662
- }
663
- ]