stratagate-dsh 0.3.27 → 0.3.29
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/LICENSE +21 -21
- package/dist/client.d.ts +1 -1
- package/dist/client.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +147 -64
- package/dist/plugin.js.map +1 -1
- package/dist/repair-profile.js.map +1 -1
- package/docs/DSH.md +5 -0
- package/docs/DSH.zh-CN.md +5 -0
- package/docs/validation/frontend-feedback-20261021/background-refresh-failed.png +0 -0
- package/docs/validation/frontend-feedback-20261021/browser-results.json +334 -0
- package/docs/validation/frontend-feedback-20261021/first-read-graph.png +0 -0
- package/docs/validation/frontend-feedback-20261021/first-read-profile.png +0 -0
- package/docs/validation/frontend-feedback-20261021/first-read-short.png +0 -0
- package/docs/validation/frontend-feedback-20261021/profile-conflict.png +0 -0
- package/docs/validation/frontend-feedback-20261021/profile-save-regression.json +466 -0
- package/docs/validation/frontend-feedback-20261021/report.json +99 -0
- package/docs/validation/frontend-feedback-20261021/settings-saved-read-failed.png +0 -0
- package/docs/validation/frontend-feedback-20261021/settings-unknown.png +0 -0
- package/docs/validation/frontend-feedback-20261021/unit-results.json +1 -0
- package/docs/validation/issue119.md +41 -0
- package/docs/validation/workspace-cleanup-20261020.md +36 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/repair-profile.ts"],"sourcesContent":["#!/usr/bin/env node\
|
|
1
|
+
{"version":3,"sources":["../src/repair-profile.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { existsSync, lstatSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs'\nimport { randomUUID } from 'node:crypto'\nimport { basename, dirname, join } from 'node:path'\nimport { fileURLToPath } from 'node:url'\n\nconst PROFILE_PACKAGES = [\n '@deepseek-ai/cordis',\n '@deepseek-ai/cosmokit',\n '@deepseek-ai/dsh-agent',\n '@deepseek-ai/dsh-agent-default-model',\n '@deepseek-ai/dsh-brand',\n '@deepseek-ai/dsh-client-ui-conversation',\n '@deepseek-ai/dsh-code-runtime',\n '@deepseek-ai/dsh-invariants',\n '@deepseek-ai/dsh-llm',\n '@deepseek-ai/dsh-native-command',\n '@deepseek-ai/dsh-scope',\n '@deepseek-ai/dsh-session',\n '@deepseek-ai/dsh-session-format',\n '@deepseek-ai/dsh-session-format-catalog',\n '@deepseek-ai/dsh-session-format-v0-to-v1',\n '@deepseek-ai/dsh-session-projection',\n '@deepseek-ai/dsh-settings',\n '@deepseek-ai/dsh-system-prompt',\n '@deepseek-ai/dsh-timeout',\n '@deepseek-ai/dsh-tools',\n '@deepseek-ai/dsh-typert-protocol',\n '@deepseek-ai/dsh-user-approval',\n '@deepseek-ai/dsh-util-crypto',\n '@deepseek-ai/dsh-util-values',\n '@deepseek-ai/schemastery',\n] as const\n\nfunction profileDirectory(start: string): string {\n let directory = start\n for (;;) {\n const manifestPath = join(directory, 'package.json')\n if (existsSync(manifestPath)) {\n try {\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as { dsh?: { profile?: unknown } }\n if (manifest.dsh?.profile && typeof manifest.dsh.profile === 'object') return directory\n } catch {}\n }\n const parent = dirname(directory)\n if (parent === directory) {\n throw new Error('stratagate-dsh-repair must run inside an installed DSH profile')\n }\n directory = parent\n }\n}\n\nfunction main(): void {\n const profile = profileDirectory(dirname(fileURLToPath(import.meta.url)))\n const modules = join(profile, 'node_modules')\n const candidates = PROFILE_PACKAGES\n .map((name) => ({ name, source: join(modules, ...name.split('/')) }))\n .filter(({ source }) => {\n try {\n lstatSync(source)\n return true\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false\n throw error\n }\n })\n if (candidates.length === 0) {\n process.stdout.write('StrataGate profile runtime is already isolated; no DSH peer residue found.\\n')\n return\n }\n\n const backup = join(profile, '.stratagate-runtime-backups', `${Date.now()}-${process.pid}-${randomUUID()}`)\n const moved: Array<{ name: string; source: string; target: string }> = []\n try {\n for (const candidate of candidates) {\n const target = join(backup, 'node_modules', ...candidate.name.split('/'))\n mkdirSync(dirname(target), { recursive: true })\n renameSync(candidate.source, target)\n moved.push({ ...candidate, target })\n }\n const receipt = {\n schema: 'stratagate-dsh-profile-runtime-repair/v1',\n profile,\n createdAt: new Date().toISOString(),\n packages: moved.map(({ name, source, target }) => ({ name, source, target })),\n recovery: `While DSH is stopped, move the listed targets back to their source paths if this repair must be reversed.`,\n }\n writeFileSync(join(backup, 'receipt.json'), `${JSON.stringify(receipt, null, 2)}\\n`, { flag: 'wx', mode: 0o600 })\n } catch (error) {\n for (const item of moved.reverse()) {\n if (existsSync(item.target) && !existsSync(item.source)) renameSync(item.target, item.source)\n }\n throw error\n }\n process.stdout.write(`Quarantined ${moved.length} stale DSH profile package(s) to ${backup}\\n`)\n}\n\ntry {\n main()\n} catch (error) {\n process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\\n`)\n process.exitCode = 1\n}\n"],"mappings":"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","names":[]}
|
package/docs/DSH.md
CHANGED
|
@@ -323,3 +323,8 @@ npm run verify:dsh
|
|
|
323
323
|
```
|
|
324
324
|
|
|
325
325
|
`verify:dsh` inspects the tarball allowlist, rejects leaked source/runtime/secret files, installs the exact tarball in a clean temporary project, and imports the installed plugin.
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### Block checkpoint layer tracking
|
|
329
|
+
|
|
330
|
+
`pointerCurrentLevel` is the decay target; `surfaceCurrentLevel` is the actual native-history layer, or null until verified from the session. The UI uses the actual layer and shows 待核对 for an unknown or host-compacted surface. Only the scheduled target is considered: a complete checkpoint (including its recovery hint) replaces the current surface when its estimated size is <=100% of that surface and within the host checkpoint budget. Rejected targets keep the current content; they never trigger a scan of lower layers. A later target can therefore replace L5 directly with L2. Original L5 evidence remains available through `memory_expand_block`. Repeated synchronization recognizes both released header formats and does not ratchet the layer downward.
|
package/docs/DSH.zh-CN.md
CHANGED
|
@@ -284,3 +284,8 @@ npm run verify:dsh
|
|
|
284
284
|
```
|
|
285
285
|
|
|
286
286
|
`verify:dsh` 会检查 tarball 文件白名单,拒绝包含泄漏的源码、运行时文件或敏感文件;随后在全新的临时项目中安装该精确 tarball,并导入已安装的插件。
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Block 实际注入层
|
|
290
|
+
|
|
291
|
+
`pointerCurrentLevel` 表示衰减目标,`surfaceCurrentLevel` 表示已核实的实际层级;未核实或内容已由宿主压缩接管时为 null,前端显示“待核对”。已加载会话以实时 surface 为准,只读查询不改写衰减或强化状态。每次只检查当前目标层:完整 checkpoint(包括恢复工具提示)估算体积不大于当前内容,且未超宿主容量上限时才替换。检查失败保留当前内容,不扫描更低层;目标后来到达 L2 时,可以直接从 L5 替换为 L2。旧版两种 checkpoint 头部都能识别,重复同步不会继续下移。原始 L5 证据始终可以通过 `memory_expand_block` 按需读取。
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
{
|
|
2
|
+
"passed": true,
|
|
3
|
+
"database": "C:\\Users\\19007\\AppData\\Local\\Temp\\stratagate-frontend-feedback-lxxAep\\memory.sqlite",
|
|
4
|
+
"node": "v24.19.0",
|
|
5
|
+
"browser": "155.0.8059.86",
|
|
6
|
+
"checks": [
|
|
7
|
+
"first dashboard failure ends loading, shows a local error instead of empty data; failed/successful region-only retry",
|
|
8
|
+
"profile initial read failure is independent of dashboard content and reloads just the profile",
|
|
9
|
+
"partial topic/graph failures show per-region errors, preserve other content, and retry only the requested region",
|
|
10
|
+
"retains real loaded content; no status before 30s, one status after 30s; a real HTTP 304 updates success time and clears failure",
|
|
11
|
+
"hidden document time is excluded; visibility and page changes restart observation without repeat notifications",
|
|
12
|
+
"workspace changes remove old content immediately and abort/ignore the late previous request",
|
|
13
|
+
"settings confirmed response updates saved state; definite failure keeps input through dashboard reads and old flash timer; retry saves",
|
|
14
|
+
"validation failures show field-specific correction; retry is replaced by editing the invalid value",
|
|
15
|
+
"confirmed settings save remains saved after follow-up GET failure and flash expiry; reread uses only GET",
|
|
16
|
+
"unknown settings outcome is never automatically resubmitted; explicit GET checks retain both unchanged and newer drafts",
|
|
17
|
+
"15 second settings timeout is unknown, late committed response does not overwrite the error, explicit GET reconciles",
|
|
18
|
+
"other-field updates leave the draft alone; conflict shows both contents, continue keeps draft, another update still returns HTTP 409; failed latest-read prevents stale choices until GET recovers; use latest ends editing",
|
|
19
|
+
"persisted value equal to draft clears meaningless conflict without claiming this request saved; subsequent save uses latest revision",
|
|
20
|
+
"later profile polling failure after a completed save uses the 30s page status, without resurrecting a past save/reread error; recovery is silent"
|
|
21
|
+
],
|
|
22
|
+
"requests": [
|
|
23
|
+
{
|
|
24
|
+
"method": "GET",
|
|
25
|
+
"url": "/api/stratagate/dashboard",
|
|
26
|
+
"status": 503
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"method": "GET",
|
|
30
|
+
"url": "/api/stratagate/dashboard?region=blocks",
|
|
31
|
+
"status": 503
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"method": "GET",
|
|
35
|
+
"url": "/api/stratagate/dashboard?region=blocks",
|
|
36
|
+
"status": 200
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"method": "GET",
|
|
40
|
+
"url": "/api/stratagate/profile",
|
|
41
|
+
"status": 503
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"method": "GET",
|
|
45
|
+
"url": "/api/stratagate/profile",
|
|
46
|
+
"status": 200
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"method": "GET",
|
|
50
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
51
|
+
"status": 200
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"method": "GET",
|
|
55
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__®ion=graph",
|
|
56
|
+
"status": 200
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"method": "GET",
|
|
60
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
61
|
+
"status": 200
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"method": "GET",
|
|
65
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
66
|
+
"status": 503
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
71
|
+
"status": 503
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"method": "GET",
|
|
75
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
76
|
+
"status": 304
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"method": "GET",
|
|
80
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
81
|
+
"status": 503
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"method": "GET",
|
|
85
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
86
|
+
"status": 503
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"method": "GET",
|
|
90
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
91
|
+
"status": 503
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"method": "GET",
|
|
95
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
96
|
+
"status": 503
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"method": "GET",
|
|
100
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
101
|
+
"status": 200
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"method": "GET",
|
|
105
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AA&threadId=__legacy__",
|
|
106
|
+
"status": 304
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"method": "GET",
|
|
110
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AB",
|
|
111
|
+
"status": 200
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"method": "GET",
|
|
115
|
+
"url": "/api/stratagate/settings",
|
|
116
|
+
"status": 200
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"method": "PATCH",
|
|
120
|
+
"url": "/api/stratagate/settings?blockTurnSize=2&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
121
|
+
"status": 200
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"method": "GET",
|
|
125
|
+
"url": "/api/stratagate/settings",
|
|
126
|
+
"status": 200
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"method": "PATCH",
|
|
130
|
+
"url": "/api/stratagate/settings?blockTurnSize=3&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
131
|
+
"status": 503
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"method": "GET",
|
|
135
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AB&threadId=__legacy__",
|
|
136
|
+
"status": 200
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"method": "PATCH",
|
|
140
|
+
"url": "/api/stratagate/settings?blockTurnSize=3&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
141
|
+
"status": 200
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"method": "GET",
|
|
145
|
+
"url": "/api/stratagate/settings",
|
|
146
|
+
"status": 200
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"method": "PATCH",
|
|
150
|
+
"url": "/api/stratagate/settings?blockTurnSize=4&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
151
|
+
"status": 400
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"method": "PATCH",
|
|
155
|
+
"url": "/api/stratagate/settings?blockTurnSize=5&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
156
|
+
"status": 200
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"method": "GET",
|
|
160
|
+
"url": "/api/stratagate/settings",
|
|
161
|
+
"status": 200
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"method": "PATCH",
|
|
165
|
+
"url": "/api/stratagate/settings?blockTurnSize=6&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
166
|
+
"status": 200
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"method": "GET",
|
|
170
|
+
"url": "/api/stratagate/settings",
|
|
171
|
+
"status": 503
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"method": "GET",
|
|
175
|
+
"url": "/api/stratagate/settings",
|
|
176
|
+
"status": 200
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"method": "PATCH",
|
|
180
|
+
"url": "/api/stratagate/settings?blockTurnSize=7&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"method": "PATCH",
|
|
184
|
+
"url": "/api/stratagate/settings?blockTurnSize=7&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"method": "GET",
|
|
188
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AB&threadId=__legacy__",
|
|
189
|
+
"status": 200
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"method": "GET",
|
|
193
|
+
"url": "/api/stratagate/settings",
|
|
194
|
+
"status": 200
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"method": "GET",
|
|
198
|
+
"url": "/api/stratagate/settings",
|
|
199
|
+
"status": 200
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"method": "PATCH",
|
|
203
|
+
"url": "/api/stratagate/settings?blockTurnSize=8&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
204
|
+
"status": 200
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"method": "PATCH",
|
|
208
|
+
"url": "/api/stratagate/settings?blockTurnSize=8&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
209
|
+
"status": 200
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"method": "GET",
|
|
213
|
+
"url": "/api/stratagate/settings",
|
|
214
|
+
"status": 200
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"method": "PATCH",
|
|
218
|
+
"url": "/api/stratagate/settings?blockTurnSize=9&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
219
|
+
"status": 200
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"method": "GET",
|
|
223
|
+
"url": "/api/stratagate/settings",
|
|
224
|
+
"status": 200
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"method": "PATCH",
|
|
228
|
+
"url": "/api/stratagate/settings?blockTurnSize=10&blockDecayLambda=0.3&agentMemoryRetrievalWeight=1",
|
|
229
|
+
"status": 200
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"method": "GET",
|
|
233
|
+
"url": "/api/stratagate/settings",
|
|
234
|
+
"status": 200
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"method": "GET",
|
|
238
|
+
"url": "/api/stratagate/profile",
|
|
239
|
+
"status": 200
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"method": "GET",
|
|
243
|
+
"url": "/api/stratagate/profile",
|
|
244
|
+
"status": 200
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"method": "GET",
|
|
248
|
+
"url": "/api/stratagate/profile",
|
|
249
|
+
"status": 200
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"method": "GET",
|
|
253
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AB&threadId=__legacy__",
|
|
254
|
+
"status": 200
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"method": "GET",
|
|
258
|
+
"url": "/api/stratagate/profile",
|
|
259
|
+
"status": 200
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"method": "PATCH",
|
|
263
|
+
"url": "/api/stratagate/profile",
|
|
264
|
+
"body": {
|
|
265
|
+
"field": "preferredLanguage",
|
|
266
|
+
"value": "我的草稿:中文,保留术语",
|
|
267
|
+
"expectedValue": "最新内容:English",
|
|
268
|
+
"expectedRevision": 4
|
|
269
|
+
},
|
|
270
|
+
"status": 409
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"method": "GET",
|
|
274
|
+
"url": "/api/stratagate/profile",
|
|
275
|
+
"status": 503
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"method": "GET",
|
|
279
|
+
"url": "/api/stratagate/profile",
|
|
280
|
+
"status": 200
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"method": "GET",
|
|
284
|
+
"url": "/api/stratagate/profile",
|
|
285
|
+
"status": 200
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"method": "GET",
|
|
289
|
+
"url": "/api/stratagate/profile",
|
|
290
|
+
"status": 200
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"method": "GET",
|
|
294
|
+
"url": "/api/stratagate/profile",
|
|
295
|
+
"status": 200
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"method": "PATCH",
|
|
299
|
+
"url": "/api/stratagate/profile",
|
|
300
|
+
"body": {
|
|
301
|
+
"field": "preferredLanguage",
|
|
302
|
+
"value": "在最新版本上继续修改",
|
|
303
|
+
"expectedValue": "双方内容相同",
|
|
304
|
+
"expectedRevision": 6
|
|
305
|
+
},
|
|
306
|
+
"status": 200
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"method": "GET",
|
|
310
|
+
"url": "/api/stratagate/profile",
|
|
311
|
+
"status": 200
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"method": "GET",
|
|
315
|
+
"url": "/api/stratagate/profile",
|
|
316
|
+
"status": 503
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"method": "GET",
|
|
320
|
+
"url": "/api/stratagate/profile",
|
|
321
|
+
"status": 503
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"method": "GET",
|
|
325
|
+
"url": "/api/stratagate/dashboard?namespace=fixture%3AB&threadId=__legacy__",
|
|
326
|
+
"status": 304
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"method": "GET",
|
|
330
|
+
"url": "/api/stratagate/profile",
|
|
331
|
+
"status": 200
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|