pi-harness-runtime 1.1.440 → 1.1.441
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/harness/e2e/auto-test-loop.ts +2 -0
- package/harness/e2e/browser-scrapers/base-browser-scraper.ts +2 -0
- package/harness/e2e/browser-scrapers/chrome-profile-manager.ts +2 -0
- package/harness/e2e/browser-scrapers/codex-browser-scraper.ts +2 -0
- package/harness/e2e/tools-detector.ts +2 -0
- package/harness/key-loader.ts +2 -0
- package/harness/langchain/checkpointer.ts +2 -0
- package/harness/langchain/cron-cli.ts +2 -0
- package/harness/langchain/graph.ts +2 -0
- package/harness/notification-center.ts +2 -0
- package/harness/secret-provider.ts +2 -0
- package/index.ts +2 -0
- package/package.json +7 -1
- package/packages/a2a-adapter/package.json +1 -1
- package/packages/agent-policy/dist/extension.d.ts.map +1 -1
- package/packages/agent-policy/dist/extension.js +2 -0
- package/packages/agent-policy/dist/extension.js.map +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/agent-policy/src/extension.ts +2 -0
- package/packages/architecture-generator/package.json +1 -1
- package/packages/auth/dist/minimax-browser-auth.d.ts.map +1 -1
- package/packages/auth/dist/minimax-browser-auth.js +23 -1
- package/packages/auth/dist/minimax-browser-auth.js.map +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/auth/src/minimax-browser-auth.ts +30 -5
- package/packages/autonomous-refactor/package.json +1 -1
- package/packages/autonomous-runtime/dist/inbox.d.ts.map +1 -1
- package/packages/autonomous-runtime/dist/inbox.js +2 -0
- package/packages/autonomous-runtime/dist/inbox.js.map +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/autonomous-runtime/src/inbox.ts +2 -0
- package/packages/cache-strategy/package.json +1 -1
- package/packages/capability-registry/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/cli-plugin-sdk/package.json +1 -1
- package/packages/clipboard/dist/src/clipboard.d.ts.map +1 -1
- package/packages/clipboard/dist/src/clipboard.js +2 -0
- package/packages/clipboard/dist/src/clipboard.js.map +1 -1
- package/packages/clipboard/dist/src/copy-sync.d.ts.map +1 -1
- package/packages/clipboard/dist/src/copy-sync.js +2 -0
- package/packages/clipboard/dist/src/copy-sync.js.map +1 -1
- package/packages/clipboard/dist/src/gist-relay.d.ts.map +1 -1
- package/packages/clipboard/dist/src/gist-relay.js +2 -0
- package/packages/clipboard/dist/src/gist-relay.js.map +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/clipboard/src/clipboard.ts +2 -0
- package/packages/clipboard/src/copy-sync.ts +2 -0
- package/packages/clipboard/src/gist-relay.ts +2 -0
- package/packages/clipboard-plugin/package.json +1 -1
- package/packages/code-generation/package.json +1 -1
- package/packages/code-review/package.json +1 -1
- package/packages/codex-adapter/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/connection-runtime/package.json +1 -1
- package/packages/context-compiler/package.json +1 -1
- package/packages/context-discovery/package.json +1 -1
- package/packages/context-manager/package.json +1 -1
- package/packages/contracts/dist/delegation-store.js +1 -4
- package/packages/contracts/dist/workspace-env.js +28 -1
- package/packages/contracts/package.json +1 -1
- package/packages/contracts/src/delegation-store.ts +9 -4
- package/packages/contracts/src/workspace-env.ts +29 -4
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/cost-optimizer/package.json +1 -1
- package/packages/dependency-analyzer/package.json +1 -1
- package/packages/django-plugin/package.json +1 -1
- package/packages/doc-generator/package.json +1 -1
- package/packages/durable-review/package.json +1 -1
- package/packages/e2e-tester/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/evaluation-runner/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-sink/package.json +1 -1
- package/packages/event-store/dist/src/store.d.ts.map +1 -1
- package/packages/event-store/dist/src/store.js +2 -0
- package/packages/event-store/dist/src/store.js.map +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/event-store/src/store.ts +3 -0
- package/packages/experience-replay/package.json +1 -1
- package/packages/feedback-collector/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/framework-detector/package.json +1 -1
- package/packages/framework-plugin-sdk/package.json +1 -1
- package/packages/frappe-plugin/package.json +1 -1
- package/packages/generic-web-plugin/dist/analyzer.d.ts.map +1 -1
- package/packages/generic-web-plugin/dist/analyzer.js +2 -0
- package/packages/generic-web-plugin/dist/analyzer.js.map +1 -1
- package/packages/generic-web-plugin/package.json +1 -1
- package/packages/generic-web-plugin/src/analyzer.ts +3 -0
- package/packages/health-monitor/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-graph/package.json +1 -1
- package/packages/knowledge-retrieval/dist/mcp-client.d.ts.map +1 -1
- package/packages/knowledge-retrieval/dist/mcp-client.js +0 -1
- package/packages/knowledge-retrieval/dist/mcp-client.js.map +1 -1
- package/packages/knowledge-retrieval/package.json +1 -4
- package/packages/knowledge-retrieval/src/mcp-client.ts +0 -1
- package/packages/laravel-plugin/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/mcp-adapter/dist/server.d.ts.map +1 -1
- package/packages/mcp-adapter/dist/server.js +2 -0
- package/packages/mcp-adapter/dist/server.js.map +1 -1
- package/packages/mcp-adapter/package.json +1 -1
- package/packages/mcp-adapter/src/server.ts +3 -0
- package/packages/memory-engine/package.json +1 -1
- package/packages/milestone-manager/package.json +1 -1
- package/packages/model-registry/package.json +1 -1
- package/packages/nextjs-plugin/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/observability/package.json +1 -1
- package/packages/okf-indexer/package.json +1 -1
- package/packages/paperclip-integration/dist/index.d.ts.map +1 -1
- package/packages/paperclip-integration/dist/index.js +2 -0
- package/packages/paperclip-integration/dist/index.js.map +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/paperclip-integration/src/index.ts +2 -0
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/permission-mode/package.json +1 -1
- package/packages/privilege-broker/dist/audit.d.ts.map +1 -1
- package/packages/privilege-broker/dist/audit.js +2 -0
- package/packages/privilege-broker/dist/audit.js.map +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/privilege-broker/src/audit.ts +2 -0
- package/packages/project-analyzer/package.json +1 -1
- package/packages/project-bootstrap/package.json +1 -1
- package/packages/projection-engine/package.json +1 -1
- package/packages/prompt-compiler/dist/compiler.d.ts.map +1 -1
- package/packages/prompt-compiler/dist/compiler.js +2 -0
- package/packages/prompt-compiler/dist/compiler.js.map +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/prompt-compiler/src/compiler.ts +2 -0
- package/packages/prompt-versioning/package.json +1 -1
- package/packages/provider-adapter-sdk/package.json +1 -1
- package/packages/provider-router/package.json +1 -1
- package/packages/provider-selector/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/rate-limiter/package.json +1 -1
- package/packages/react-vite-plugin/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/release-manager/package.json +1 -1
- package/packages/requirement-compiler/package.json +1 -1
- package/packages/runtime/package.json +1 -1
- package/packages/scheduler/package.json +1 -1
- package/packages/scheduler-adapter/package.json +1 -1
- package/packages/session/package.json +1 -1
- package/packages/session-api/package.json +1 -1
- package/packages/session-export/package.json +1 -1
- package/packages/shared-context/package.json +1 -1
- package/packages/skill-mcp-client/dist/client.d.ts.map +1 -1
- package/packages/skill-mcp-client/dist/client.js +0 -1
- package/packages/skill-mcp-client/dist/client.js.map +1 -1
- package/packages/skill-mcp-client/package.json +1 -4
- package/packages/skill-mcp-client/src/client.ts +0 -1
- package/packages/skill-registry/package.json +1 -1
- package/packages/skills/dist/parser.d.ts.map +1 -1
- package/packages/skills/dist/parser.js +2 -0
- package/packages/skills/dist/parser.js.map +1 -1
- package/packages/skills/dist/skill-versioning.d.ts.map +1 -1
- package/packages/skills/dist/skill-versioning.js +2 -0
- package/packages/skills/dist/skill-versioning.js.map +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/skills/src/parser.ts +3 -0
- package/packages/skills/src/skill-versioning.ts +2 -0
- package/packages/sprint-planner/package.json +1 -1
- package/packages/subscription-engine/package.json +1 -1
- package/packages/task-compiler/package.json +1 -1
- package/packages/tencentdb-memory/package.json +1 -1
- package/packages/tencentdb-sync/package.json +1 -1
- package/packages/test-data-generator/package.json +1 -1
- package/packages/test-generator/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/token-optimizer/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/voice-api/package.json +1 -1
- package/packages/webmcp-tester/dist/index.js +0 -2
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/webmcp-tester/src/index.ts +0 -3
- package/packages/wiki/package.json +1 -1
- package/packages/workflow-events/package.json +1 -1
- package/packages/workspace-scanner/package.json +1 -1
- package/packages/worktree/package.json +1 -1
- package/packages/write-review/dist/trigger.d.ts.map +1 -1
- package/packages/write-review/dist/trigger.js +1 -2
- package/packages/write-review/dist/trigger.js.map +1 -1
- package/packages/write-review/package.json +1 -1
- package/packages/write-review/src/trigger.ts +1 -2
- package/scripts/lib/runtime-imports.ts +189 -3
- package/scripts/telegram-webhook-server.ts +2 -0
- package/scripts/verify-package-contents.ts +148 -1
- package/harness/e2e/tools-detector.test.ts +0 -155
- package/harness/glm-quota-countdown.test.ts +0 -323
- package/harness/langchain/agents.test.ts +0 -39
- package/harness/langchain/checkpointer.test.ts +0 -243
- package/harness/langchain/daemon.test.ts +0 -459
- package/harness/langchain/model-router.test.ts +0 -191
- package/harness/langchain/ping-pong-middleware.test.ts +0 -69
- package/harness/langchain/scoreboard.test.ts +0 -267
- package/harness/langchain/status-line.test.ts +0 -106
- package/harness/langchain/surge.test.ts +0 -467
- package/harness/langchain/widget.test.ts +0 -251
- package/harness/skill-sync.test.ts +0 -57
- package/harness/ssh-detach-interceptor.test.ts +0 -263
- package/harness/ssh-hang-recovery.test.ts +0 -86
- package/packages/a2a-adapter/test/a2a.test.ts +0 -151
- package/packages/agent-policy/test/interlock.test.ts +0 -101
- package/packages/agent-policy/test/policy-retention.test.ts +0 -380
- package/packages/agent-policy/test/policy.test.ts +0 -387
- package/packages/auth/test/auth.test.ts +0 -238
- package/packages/autonomous-refactor/test/refactor.test.ts +0 -202
- package/packages/autonomous-runtime/test/types.test.ts +0 -95
- package/packages/cache-strategy/test/cache.test.ts +0 -137
- package/packages/capability-registry/test/registry.test.ts +0 -204
- package/packages/checkpoint/test/engine.test.ts +0 -265
- package/packages/cli-plugin-sdk/test/cli.test.ts +0 -45
- package/packages/code-generation/test/generator.test.ts +0 -238
- package/packages/code-review/test/engine.test.ts +0 -302
- package/packages/codex-adapter/test/provider.test.ts +0 -142
- package/packages/codex-watcher/test/watch.test.ts +0 -453
- package/packages/context-compiler/test/context-compiler.test.ts +0 -746
- package/packages/context-manager/test/context.test.ts +0 -198
- package/packages/contracts/test/delegation.test.ts +0 -350
- package/packages/contracts/test/workspace-env.test.ts +0 -802
- package/packages/cookie-sanitizer/test/infer.test.ts +0 -110
- package/packages/cookie-sanitizer/test/normalize.test.ts +0 -113
- package/packages/cookie-sanitizer/test/parse.test.ts +0 -204
- package/packages/cookie-sanitizer/test/sync.test.ts +0 -237
- package/packages/cookie-sanitizer/test/watcher.test.ts +0 -27
- package/packages/cost-optimizer/test/cost-optimizer.test.ts +0 -438
- package/packages/dependency-analyzer/test/analyzer.test.ts +0 -49
- package/packages/django-plugin/test/analyzer.test.ts +0 -195
- package/packages/doc-generator/test/docs.test.ts +0 -168
- package/packages/durable-review/test/acceptance.test.ts +0 -357
- package/packages/durable-review/test/smoke.test.ts +0 -107
- package/packages/evaluation-engine/test/engine.test.ts +0 -277
- package/packages/evaluation-runner/test/runner.test.ts +0 -168
- package/packages/event-bus/test/bus.test.ts +0 -100
- package/packages/event-store/test/store.test.ts +0 -115
- package/packages/experience-replay/test/replay.test.ts +0 -267
- package/packages/feedback-collector/test/collector.test.ts +0 -142
- package/packages/framework-detector/test/detector.test.ts +0 -75
- package/packages/framework-plugin-sdk/test/manager.test.ts +0 -320
- package/packages/frappe-plugin/test/analyzer.test.ts +0 -250
- package/packages/generic-web-plugin/test/analyzer.test.ts +0 -134
- package/packages/health-monitor/test/health.test.ts +0 -231
- package/packages/intent-analyzer/test/analyzer.test.ts +0 -72
- package/packages/intent-analyzer/test/ping-pong.test.ts +0 -96
- package/packages/jev-judge/tests/auto-continue-context.test.ts +0 -280
- package/packages/jev-judge/tests/continuation-controller.test.ts +0 -1396
- package/packages/jev-judge/tests/jev-provider-chain.test.ts +0 -536
- package/packages/jev-judge/tests/outcome-application.test.ts +0 -132
- package/packages/jev-judge/tests/question-risk.test.ts +0 -129
- package/packages/jev-judge/tests/typesafe-provider.test.ts +0 -640
- package/packages/jev-judge/tests/validation-ledger.test.ts +0 -181
- package/packages/jev-judge/tests/validation-plan.test.ts +0 -170
- package/packages/jev-judge/tests/validation-tie-breaker.test.ts +0 -88
- package/packages/laravel-plugin/test/analyzer.test.ts +0 -220
- package/packages/learning-engine/test/engine.test.ts +0 -331
- package/packages/logging/test/buffer.test.ts +0 -44
- package/packages/logging/test/classification.test.ts +0 -137
- package/packages/logging/test/config.test.ts +0 -97
- package/packages/logging/test/fanout.test.ts +0 -186
- package/packages/logging/test/identity-transport.test.ts +0 -197
- package/packages/logging/test/incidents.test.ts +0 -404
- package/packages/logging/test/ingest-schema.test.ts +0 -184
- package/packages/logging/test/integration.test.ts +0 -140
- package/packages/logging/test/log-http.test.ts +0 -246
- package/packages/logging/test/redact.test.ts +0 -109
- package/packages/logging/test/sampler.test.ts +0 -57
- package/packages/logging/test/server.test.ts +0 -444
- package/packages/logging/test/shipper.test.ts +0 -152
- package/packages/logging/test/spool.test.ts +0 -96
- package/packages/mcp-adapter/test/server.test.ts +0 -91
- package/packages/memory-engine/test/engine.test.ts +0 -456
- package/packages/model-registry/test/registry.test.ts +0 -342
- package/packages/nextjs-plugin/test/analyzer.test.ts +0 -149
- package/packages/notification/test/approval-payload.test.ts +0 -269
- package/packages/notification/test/detail-format.test.ts +0 -106
- package/packages/notification/test/notification.test.ts +0 -375
- package/packages/notification/test/pending-question-lifecycle.test.ts +0 -195
- package/packages/notification/test/pending-question.test.ts +0 -331
- package/packages/notification/test/tooling-proposal-payload.test.ts +0 -212
- package/packages/observability/test/observability.test.ts +0 -1350
- package/packages/performance-optimizer/test/optimizer.test.ts +0 -267
- package/packages/project-analyzer/test/index.test.ts +0 -1719
- package/packages/prompt-compiler/test/prompt-compiler.test.ts +0 -813
- package/packages/prompt-versioning/test/versioning.test.ts +0 -112
- package/packages/provider-adapter-sdk/test/sdk.test.ts +0 -220
- package/packages/provider-router/test/provider-router.test.ts +0 -405
- package/packages/provider-selector/test/selector.test.ts +0 -192
- package/packages/providers/test/providers.test.ts +0 -225
- package/packages/qdrant-skills/test/collection-info.test.ts +0 -165
- package/packages/qdrant-skills/test/embedder-batch.test.ts +0 -184
- package/packages/qdrant-skills/test/embedder.test.ts +0 -97
- package/packages/quota-manager/test/quota.test.ts +0 -432
- package/packages/rate-limiter/test/limiter.test.ts +0 -128
- package/packages/react-vite-plugin/test/analyzer.test.ts +0 -139
- package/packages/relay/test/client.test.ts +0 -446
- package/packages/relay/test/relay-e2e.test.ts +0 -299
- package/packages/relay/test/relay-endpoint.test.ts +0 -278
- package/packages/release-manager/test/release.test.ts +0 -215
- package/packages/requirement-compiler/test/requirement-compiler.test.ts +0 -743
- package/packages/runtime/test/runtime-api.test.ts +0 -169
- package/packages/runtime/test/runtime.test.ts +0 -297
- package/packages/scheduler/test/scheduler.test.ts +0 -125
- package/packages/session/test/manager.test.ts +0 -233
- package/packages/shared-context/test/shared-context.test.ts +0 -114
- package/packages/skill-registry/test/registry.test.ts +0 -508
- package/packages/skills/test/init-skills.test.ts +0 -114
- package/packages/skills/test/remote-skills.test.ts +0 -360
- package/packages/skills/test/remote-source.test.ts +0 -248
- package/packages/skills/test/sanitize.test.ts +0 -250
- package/packages/skills/test/vector-indexing.test.ts +0 -205
- package/packages/skills/test/vector-schema.test.ts +0 -180
- package/packages/skills/test/vector-threshold.test.ts +0 -108
- package/packages/sprint-planner/test/planner.test.ts +0 -187
- package/packages/task-compiler/test/task-compiler.test.ts +0 -628
- package/packages/test-data-generator/test/generator.test.ts +0 -265
- package/packages/test-generator/test/generator.test.ts +0 -156
- package/packages/token-estimation/test/token-estimation.test.ts +0 -207
- package/packages/token-optimizer/test/optimizer.test.ts +0 -141
- package/packages/tooling-preference/tests/changed-files.test.ts +0 -124
- package/packages/tooling-preference/tests/detect.test.ts +0 -188
- package/packages/tooling-preference/tests/proposal.test.ts +0 -107
- package/packages/tooling-preference/tests/quality-check.test.ts +0 -272
- package/packages/tooling-preference/tests/registry.test.ts +0 -51
- package/packages/tooling-preference/tests/store.test.ts +0 -99
- package/packages/trajectory/test/store.test.ts +0 -250
- package/packages/tui/test/harness-footer.test.ts +0 -559
- package/packages/tui/test/harness-header.test.ts +0 -590
- package/packages/two-phase-review/test/classify.test.ts +0 -102
- package/packages/two-phase-review/test/helpers.ts +0 -72
- package/packages/two-phase-review/test/rules.test.ts +0 -150
- package/packages/two-phase-review/test/runtime.test.ts +0 -362
- package/packages/two-phase-review/test/scope.test.ts +0 -186
- package/packages/two-phase-review/test/signals.test.ts +0 -183
- package/packages/two-phase-review/test/state.test.ts +0 -201
- package/packages/wiki/test/basic.test.ts +0 -242
- package/packages/workspace-scanner/test/scanner.test.ts +0 -43
- package/packages/worktree/test/worktree.test.ts +0 -163
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pending Question Controller Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests for the pending question detection, state management,
|
|
5
|
-
* and channel delivery logic.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { describe, it, expect, beforeEach } from "bun:test";
|
|
9
|
-
import {
|
|
10
|
-
PendingQuestionController,
|
|
11
|
-
createPendingQuestionController,
|
|
12
|
-
type QuestionKind,
|
|
13
|
-
} from "../src/pending-question.js";
|
|
14
|
-
|
|
15
|
-
describe("PendingQuestionController", () => {
|
|
16
|
-
let controller: PendingQuestionController;
|
|
17
|
-
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
controller = createPendingQuestionController({
|
|
20
|
-
evaluationDelayMs: 5 * 60 * 1000,
|
|
21
|
-
jevEnabled: false,
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
describe("detectQuestion", () => {
|
|
26
|
-
it("should detect 'Want me to implement X?' pattern", () => {
|
|
27
|
-
const result = controller.detectQuestion(
|
|
28
|
-
"I've finished the toggle implementation. Want me to implement the toggle buttons now?"
|
|
29
|
-
);
|
|
30
|
-
expect(result.detected).toBe(true);
|
|
31
|
-
expect(result.questionText).toContain("Want me to implement");
|
|
32
|
-
expect(result.kind).toBe("approval");
|
|
33
|
-
expect(result.isRoutine).toBe(false);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
it("should detect 'Would you like me to add X?' pattern", () => {
|
|
37
|
-
const result = controller.detectQuestion(
|
|
38
|
-
"Would you like me to add the persistence layer next?"
|
|
39
|
-
);
|
|
40
|
-
expect(result.detected).toBe(true);
|
|
41
|
-
expect(result.questionText).toContain("Would you like me to add");
|
|
42
|
-
expect(result.kind).toBe("approval");
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("should detect 'Shall I start X?' pattern", () => {
|
|
46
|
-
const result = controller.detectQuestion(
|
|
47
|
-
"Shall I start with the database schema?"
|
|
48
|
-
);
|
|
49
|
-
expect(result.detected).toBe(true);
|
|
50
|
-
expect(result.kind).toBe("approval");
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it("should detect 'Should I implement X?' pattern", () => {
|
|
54
|
-
const result = controller.detectQuestion(
|
|
55
|
-
"Should I implement the SQLite persistence now?"
|
|
56
|
-
);
|
|
57
|
-
expect(result.detected).toBe(true);
|
|
58
|
-
expect(result.kind).toBe("approval");
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
it("should detect question ending with ? with request + intent words", () => {
|
|
62
|
-
const result = controller.detectQuestion(
|
|
63
|
-
"Should I continue with the next task?"
|
|
64
|
-
);
|
|
65
|
-
expect(result.detected).toBe(true);
|
|
66
|
-
expect(result.kind).toBe("routine");
|
|
67
|
-
expect(result.isRoutine).toBe(true);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
it("should detect 'Should I continue?' as routine", () => {
|
|
71
|
-
const result = controller.detectQuestion("Should I continue?");
|
|
72
|
-
expect(result.detected).toBe(true);
|
|
73
|
-
expect(result.isRoutine).toBe(true);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it("should NOT detect quoted questions", () => {
|
|
77
|
-
const result = controller.detectQuestion(
|
|
78
|
-
`Here's an example: "Want me to implement this?" - that's what I might ask.`
|
|
79
|
-
);
|
|
80
|
-
// The quoted question should not be detected
|
|
81
|
-
expect(result.detected).toBe(false);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
it("should NOT detect rhetorical questions in code blocks", () => {
|
|
85
|
-
const result = controller.detectQuestion(
|
|
86
|
-
`\`\`\`\n// Want me to implement this?\n\`\`\`\nThe code above shows what we need.`
|
|
87
|
-
);
|
|
88
|
-
expect(result.detected).toBe(false);
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it("should detect clarification questions", () => {
|
|
92
|
-
const result = controller.detectQuestion(
|
|
93
|
-
"Do you mean the SQLite or the file-based approach?"
|
|
94
|
-
);
|
|
95
|
-
expect(result.detected).toBe(true);
|
|
96
|
-
expect(result.kind).toBe("clarification");
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
it("should NOT detect plain progress statements", () => {
|
|
100
|
-
const result = controller.detectQuestion(
|
|
101
|
-
"I've implemented the toggle buttons and they work correctly."
|
|
102
|
-
);
|
|
103
|
-
expect(result.detected).toBe(false);
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
it("should detect 'Can I proceed?' as routine", () => {
|
|
107
|
-
const result = controller.detectQuestion("Can I proceed with the next step?");
|
|
108
|
-
expect(result.detected).toBe(true);
|
|
109
|
-
expect(result.isRoutine).toBe(true);
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
describe("question lifecycle", () => {
|
|
114
|
-
it("should create and track a pending question", () => {
|
|
115
|
-
const question = controller.createQuestion({
|
|
116
|
-
text: "Want me to implement the toggle buttons now?",
|
|
117
|
-
sessionId: "test-session",
|
|
118
|
-
workspacePath: "/test",
|
|
119
|
-
kind: "approval",
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
expect(question.requestId).toBeDefined();
|
|
123
|
-
expect(question.state).toBe("pending");
|
|
124
|
-
expect(question.kind).toBe("approval");
|
|
125
|
-
expect(controller.hasPendingQuestion()).toBe(true);
|
|
126
|
-
expect(controller.getCurrentQuestion()).toEqual(question);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
it("should resolve a question with 'yes'", () => {
|
|
130
|
-
controller.createQuestion({
|
|
131
|
-
text: "Want me to implement X?",
|
|
132
|
-
sessionId: "test-session",
|
|
133
|
-
workspacePath: "/test",
|
|
134
|
-
kind: "approval",
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
controller.resolve({ resolution: "yes", by: "user" });
|
|
138
|
-
|
|
139
|
-
expect(controller.isResolved()).toBe(true);
|
|
140
|
-
expect(controller.getResolution()).toBe("yes");
|
|
141
|
-
expect(controller.getCurrentQuestion()?.state).toBe("resolved");
|
|
142
|
-
expect(controller.getCurrentQuestion()?.resolvedBy).toBe("user");
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
it("should resolve a question with 'no'", () => {
|
|
146
|
-
controller.createQuestion({
|
|
147
|
-
text: "Want me to implement X?",
|
|
148
|
-
sessionId: "test-session",
|
|
149
|
-
workspacePath: "/test",
|
|
150
|
-
kind: "approval",
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
controller.resolve({ resolution: "no", by: "user" });
|
|
154
|
-
|
|
155
|
-
expect(controller.getResolution()).toBe("no");
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
it("should cancel a question", () => {
|
|
159
|
-
controller.createQuestion({
|
|
160
|
-
text: "Want me to implement X?",
|
|
161
|
-
sessionId: "test-session",
|
|
162
|
-
workspacePath: "/test",
|
|
163
|
-
kind: "approval",
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
controller.cancel("Session switched");
|
|
167
|
-
|
|
168
|
-
expect(controller.hasPendingQuestion()).toBe(false);
|
|
169
|
-
expect(controller.getCurrentQuestion()).toBe(null);
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
it("should start evaluation", () => {
|
|
173
|
-
controller.createQuestion({
|
|
174
|
-
text: "Want me to implement X?",
|
|
175
|
-
sessionId: "test-session",
|
|
176
|
-
workspacePath: "/test",
|
|
177
|
-
kind: "approval",
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
controller.startEvaluation();
|
|
181
|
-
|
|
182
|
-
expect(controller.getCurrentQuestion()?.state).toBe("evaluating");
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
describe("channel delivery state", () => {
|
|
187
|
-
it("should update Telegram delivery state", () => {
|
|
188
|
-
controller.createQuestion({
|
|
189
|
-
text: "Want me to implement X?",
|
|
190
|
-
sessionId: "test-session",
|
|
191
|
-
workspacePath: "/test",
|
|
192
|
-
kind: "approval",
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
controller.updateDeliveryState("telegram", true);
|
|
196
|
-
|
|
197
|
-
const question = controller.getCurrentQuestion();
|
|
198
|
-
expect(question?.deliveryState.telegram?.delivered).toBe(true);
|
|
199
|
-
expect(question?.deliveryState.telegram?.deliveredAt).toBeDefined();
|
|
200
|
-
expect(question?.userNotified).toBe(true);
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
it("should update LINE delivery state", () => {
|
|
204
|
-
controller.createQuestion({
|
|
205
|
-
text: "Want me to implement X?",
|
|
206
|
-
sessionId: "test-session",
|
|
207
|
-
workspacePath: "/test",
|
|
208
|
-
kind: "approval",
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
controller.updateDeliveryState("line", true);
|
|
212
|
-
|
|
213
|
-
const question = controller.getCurrentQuestion();
|
|
214
|
-
expect(question?.deliveryState.line?.delivered).toBe(true);
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
it("should track delivery errors", () => {
|
|
218
|
-
controller.createQuestion({
|
|
219
|
-
text: "Want me to implement X?",
|
|
220
|
-
sessionId: "test-session",
|
|
221
|
-
workspacePath: "/test",
|
|
222
|
-
kind: "approval",
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
controller.updateDeliveryState("telegram", false, "Network error");
|
|
226
|
-
|
|
227
|
-
const question = controller.getCurrentQuestion();
|
|
228
|
-
expect(question?.deliveryState.telegram?.delivered).toBe(false);
|
|
229
|
-
expect(question?.deliveryState.telegram?.error).toBe("Network error");
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
describe("suppress completion", () => {
|
|
234
|
-
it("should suppress completion when pending question exists", () => {
|
|
235
|
-
controller.createQuestion({
|
|
236
|
-
text: "Want me to implement X?",
|
|
237
|
-
sessionId: "test-session",
|
|
238
|
-
workspacePath: "/test",
|
|
239
|
-
kind: "approval",
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
expect(controller.shouldSuppressCompletion()).toBe(true);
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
it("should NOT suppress completion when no pending question", () => {
|
|
246
|
-
expect(controller.shouldSuppressCompletion()).toBe(false);
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
it("should NOT suppress completion when question is resolved", () => {
|
|
250
|
-
controller.createQuestion({
|
|
251
|
-
text: "Want me to implement X?",
|
|
252
|
-
sessionId: "test-session",
|
|
253
|
-
workspacePath: "/test",
|
|
254
|
-
kind: "approval",
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
controller.resolve({ resolution: "yes", by: "user" });
|
|
258
|
-
|
|
259
|
-
expect(controller.shouldSuppressCompletion()).toBe(false);
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
describe("callbacks", () => {
|
|
264
|
-
it("should call user answer callback on resolution", () => {
|
|
265
|
-
let callbackCalled = false;
|
|
266
|
-
let callbackResolution = "";
|
|
267
|
-
|
|
268
|
-
controller.onUserAnswer((question, answer) => {
|
|
269
|
-
callbackCalled = true;
|
|
270
|
-
callbackResolution = answer;
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
controller.createQuestion({
|
|
274
|
-
text: "Want me to implement X?",
|
|
275
|
-
sessionId: "test-session",
|
|
276
|
-
workspacePath: "/test",
|
|
277
|
-
kind: "approval",
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
controller.resolve({ resolution: "yes", by: "user" });
|
|
281
|
-
|
|
282
|
-
expect(callbackCalled).toBe(true);
|
|
283
|
-
expect(callbackResolution).toBe("yes");
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
describe("cleanup", () => {
|
|
288
|
-
it("should clean up old resolved questions", () => {
|
|
289
|
-
controller.createQuestion({
|
|
290
|
-
text: "Want me to implement X?",
|
|
291
|
-
sessionId: "test-session",
|
|
292
|
-
workspacePath: "/test",
|
|
293
|
-
kind: "approval",
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
controller.resolve({ resolution: "yes", by: "user" });
|
|
297
|
-
|
|
298
|
-
// Wait a tiny bit then cleanup with 0ms max age
|
|
299
|
-
setTimeout(() => {
|
|
300
|
-
controller.cleanup(0);
|
|
301
|
-
const questions = controller.getAllQuestions();
|
|
302
|
-
expect(questions.length).toBe(0);
|
|
303
|
-
}, 10);
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
describe("Question detection edge cases", () => {
|
|
309
|
-
let controller: PendingQuestionController;
|
|
310
|
-
|
|
311
|
-
beforeEach(() => {
|
|
312
|
-
controller = createPendingQuestionController();
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
it("should handle multiple questions in one message", () => {
|
|
316
|
-
const result = controller.detectQuestion(
|
|
317
|
-
"I've finished task 1. Want me to implement the toggle buttons now? Should I continue with the next task?"
|
|
318
|
-
);
|
|
319
|
-
// Should detect the approval question, not the routine continuation
|
|
320
|
-
expect(result.detected).toBe(true);
|
|
321
|
-
expect(result.kind).toBe("approval");
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
it("should handle mixed content with questions", () => {
|
|
325
|
-
const result = controller.detectQuestion(
|
|
326
|
-
`Here's what I did:\n1. Implemented toggle state\n2. Added persistence\n\nWant me to continue with the UI?`
|
|
327
|
-
);
|
|
328
|
-
expect(result.detected).toBe(true);
|
|
329
|
-
expect(result.kind).toBe("approval");
|
|
330
|
-
});
|
|
331
|
-
});
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooling proposal payload tests.
|
|
3
|
-
*
|
|
4
|
-
* The proposal (Biome.js instead of ESLint/Prettier) is a decision of its
|
|
5
|
-
* own. Its buttons carry the tooling action, never the approval action:
|
|
6
|
-
* a "No" on a proposal must not pause the work, and a "Yes" must not
|
|
7
|
-
* resume a pending question.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
|
11
|
-
import { NotificationCenter } from "../src/notification-center.js";
|
|
12
|
-
import { parseCallbackData } from "../src/telegram-webhook-handler.js";
|
|
13
|
-
import type { NotificationConfig } from "../src/types.js";
|
|
14
|
-
|
|
15
|
-
const PROPOSAL =
|
|
16
|
-
"This workspace looks like a Next.js + React project that still uses ESLint and Prettier. " +
|
|
17
|
-
"Biome.js can replace both: one tool for linting, formatting and import order.";
|
|
18
|
-
|
|
19
|
-
interface CapturedRequest {
|
|
20
|
-
url: string;
|
|
21
|
-
body: Record<string, any>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
let captured: CapturedRequest[] = [];
|
|
25
|
-
let originalFetch: typeof globalThis.fetch;
|
|
26
|
-
|
|
27
|
-
function createCenter(): NotificationCenter {
|
|
28
|
-
const config: NotificationConfig = {
|
|
29
|
-
channels: [
|
|
30
|
-
{
|
|
31
|
-
id: "telegram",
|
|
32
|
-
type: "telegram",
|
|
33
|
-
enabled: true,
|
|
34
|
-
config: {
|
|
35
|
-
botToken: "test-bot-token",
|
|
36
|
-
chatId: "12345",
|
|
37
|
-
enableInlineKeyboard: true,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: "line",
|
|
42
|
-
type: "line",
|
|
43
|
-
enabled: true,
|
|
44
|
-
config: { channelAccessToken: "test-line-token", userId: "U-test" },
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
};
|
|
48
|
-
return new NotificationCenter(config);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function lineRequests(): CapturedRequest[] {
|
|
52
|
-
return captured.filter((r) => r.url.includes("api.line.me"));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Capture the payload the Telegram adapter is asked to send.
|
|
57
|
-
*
|
|
58
|
-
* The adapter is replaced instead of the network, so the test does not
|
|
59
|
-
* depend on which adapter implementation is loaded.
|
|
60
|
-
*/
|
|
61
|
-
function captureTelegramPayload(center: NotificationCenter): {
|
|
62
|
-
payloads: Array<Record<string, any>>;
|
|
63
|
-
} {
|
|
64
|
-
const payloads: Array<Record<string, any>> = [];
|
|
65
|
-
const adapter = center.getTelegramAdapter();
|
|
66
|
-
if (adapter) {
|
|
67
|
-
adapter.send = (async (payload: any) => {
|
|
68
|
-
payloads.push(payload);
|
|
69
|
-
return { success: true, channel: "telegram" };
|
|
70
|
-
}) as typeof adapter.send;
|
|
71
|
-
}
|
|
72
|
-
return { payloads };
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
async function sendProposal(center: NotificationCenter): Promise<void> {
|
|
76
|
-
await center.notifyWithButtons(
|
|
77
|
-
"ToolingPreferenceProposal",
|
|
78
|
-
{
|
|
79
|
-
jobId: "biome-abc123",
|
|
80
|
-
questionId: "biome-abc123",
|
|
81
|
-
requirement: PROPOSAL,
|
|
82
|
-
taskTitle: "Tooling proposal",
|
|
83
|
-
},
|
|
84
|
-
[
|
|
85
|
-
{ text: "Yes - use Biome.js", action: "biome", targetId: "yes-biome-abc123" },
|
|
86
|
-
{ text: "No - keep the current tools", action: "biome", targetId: "no-biome-abc123" },
|
|
87
|
-
],
|
|
88
|
-
{
|
|
89
|
-
additionalDetails: { _actionPrompt: "Use Biome.js in this workspace?" },
|
|
90
|
-
},
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
beforeEach(() => {
|
|
95
|
-
captured = [];
|
|
96
|
-
originalFetch = globalThis.fetch;
|
|
97
|
-
globalThis.fetch = (async (input: any, init?: any) => {
|
|
98
|
-
const url = typeof input === "string" ? input : (input?.url ?? "");
|
|
99
|
-
let body: any = {};
|
|
100
|
-
try {
|
|
101
|
-
body = JSON.parse(init?.body ?? "{}");
|
|
102
|
-
} catch {
|
|
103
|
-
body = {};
|
|
104
|
-
}
|
|
105
|
-
captured.push({ url, body });
|
|
106
|
-
|
|
107
|
-
if (url.includes("typesafe.ai")) {
|
|
108
|
-
return new Response("unauthorized", { status: 401 });
|
|
109
|
-
}
|
|
110
|
-
return new Response(JSON.stringify({ ok: true, result: {} }), {
|
|
111
|
-
status: 200,
|
|
112
|
-
headers: { "Content-Type": "application/json" },
|
|
113
|
-
});
|
|
114
|
-
}) as typeof globalThis.fetch;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
afterEach(() => {
|
|
118
|
-
globalThis.fetch = originalFetch;
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
describe("the tooling proposal payload", () => {
|
|
122
|
-
it("sends the proposal to Telegram with two buttons of the tooling action", async () => {
|
|
123
|
-
const center = createCenter();
|
|
124
|
-
const { payloads } = captureTelegramPayload(center);
|
|
125
|
-
|
|
126
|
-
await sendProposal(center);
|
|
127
|
-
|
|
128
|
-
const payload = payloads[0];
|
|
129
|
-
expect(payload).toBeDefined();
|
|
130
|
-
|
|
131
|
-
const buttons = payload.details._actionButtons as Array<{
|
|
132
|
-
callbackData: string;
|
|
133
|
-
}>;
|
|
134
|
-
expect(buttons).toHaveLength(2);
|
|
135
|
-
|
|
136
|
-
const parsedYes = parseCallbackData(buttons[0].callbackData);
|
|
137
|
-
const parsedNo = parseCallbackData(buttons[1].callbackData);
|
|
138
|
-
|
|
139
|
-
expect(parsedYes.action).toBe("biome");
|
|
140
|
-
expect(parsedNo.action).toBe("biome");
|
|
141
|
-
expect(parsedYes.targetId).toBe("yes-biome-abc123");
|
|
142
|
-
expect(parsedNo.targetId).toBe("no-biome-abc123");
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
it("never uses the approval action for a proposal button", async () => {
|
|
146
|
-
const center = createCenter();
|
|
147
|
-
const { payloads } = captureTelegramPayload(center);
|
|
148
|
-
|
|
149
|
-
await sendProposal(center);
|
|
150
|
-
|
|
151
|
-
const buttons = payloads[0].details._actionButtons as Array<{
|
|
152
|
-
callbackData: string;
|
|
153
|
-
}>;
|
|
154
|
-
|
|
155
|
-
for (const button of buttons) {
|
|
156
|
-
const parsed = parseCallbackData(button.callbackData);
|
|
157
|
-
expect(parsed.action).not.toBe("approve");
|
|
158
|
-
expect(parsed.action).not.toBe("reject");
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
it("sends the same buttons to LINE", async () => {
|
|
163
|
-
await sendProposal(createCenter());
|
|
164
|
-
|
|
165
|
-
const line = lineRequests()[0];
|
|
166
|
-
const messages = line?.body?.messages ?? [];
|
|
167
|
-
const template = messages.find((m: any) => m.type === "template");
|
|
168
|
-
expect(template).toBeDefined();
|
|
169
|
-
|
|
170
|
-
const actions = template.template.actions ?? [];
|
|
171
|
-
expect(actions).toHaveLength(2);
|
|
172
|
-
expect(actions[0].data).toBe("biome_yes-biome-abc123");
|
|
173
|
-
expect(actions[1].data).toBe("biome_no-biome-abc123");
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
it("shows the wording of the proposal on LINE", async () => {
|
|
177
|
-
await sendProposal(createCenter());
|
|
178
|
-
|
|
179
|
-
const line = lineRequests()[0];
|
|
180
|
-
const messages = line?.body?.messages ?? [];
|
|
181
|
-
const template = messages.find((m: any) => m.type === "template");
|
|
182
|
-
|
|
183
|
-
expect(String(template.template.title)).toContain("Biome.js");
|
|
184
|
-
expect(String(template.altText)).toContain("Biome.js");
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
it("sends the complete proposal to the user", async () => {
|
|
188
|
-
const center = createCenter();
|
|
189
|
-
const { payloads } = captureTelegramPayload(center);
|
|
190
|
-
|
|
191
|
-
await sendProposal(center);
|
|
192
|
-
|
|
193
|
-
const payload = payloads[0];
|
|
194
|
-
expect(String(payload.message)).toContain("Biome.js");
|
|
195
|
-
expect(String(payload.message)).toContain("ESLint");
|
|
196
|
-
expect(String(payload.message)).toContain("Prettier");
|
|
197
|
-
expect(String(payload.message)).not.toContain("...");
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
it("never sends the proposal to a channel the user turned off", async () => {
|
|
201
|
-
const center = createCenter();
|
|
202
|
-
center.setChannelEnabled("telegram", false);
|
|
203
|
-
const { payloads } = captureTelegramPayload(center);
|
|
204
|
-
|
|
205
|
-
await sendProposal(center);
|
|
206
|
-
|
|
207
|
-
// The button of a channel that stays silent could never be answered.
|
|
208
|
-
expect(payloads).toHaveLength(0);
|
|
209
|
-
// The other channel still receives the proposal.
|
|
210
|
-
expect(lineRequests().length).toBeGreaterThan(0);
|
|
211
|
-
});
|
|
212
|
-
});
|