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,198 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context Manager Tests (RFC-0010)
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { describe, it, expect } from "bun:test";
|
|
6
|
-
import {
|
|
7
|
-
DEFAULT_POLICY,
|
|
8
|
-
estimatePressure,
|
|
9
|
-
getPressureLevel,
|
|
10
|
-
createSessionScope,
|
|
11
|
-
setTTL,
|
|
12
|
-
addToScope,
|
|
13
|
-
evictExpired,
|
|
14
|
-
prioritize,
|
|
15
|
-
estimateTokens,
|
|
16
|
-
calculateTotalTokens,
|
|
17
|
-
compactContext,
|
|
18
|
-
generateResumePrompt,
|
|
19
|
-
formatResumeMarkdown,
|
|
20
|
-
} from "../src/index.js";
|
|
21
|
-
|
|
22
|
-
const makeItem = (
|
|
23
|
-
overrides?: Partial<import("../src/index.js").ContextItem>,
|
|
24
|
-
): import("../src/index.js").ContextItem => ({
|
|
25
|
-
id: `item-${Math.random().toString(36).slice(2)}`,
|
|
26
|
-
role: "user",
|
|
27
|
-
content: "Test content",
|
|
28
|
-
tokens: 10,
|
|
29
|
-
priority: 5,
|
|
30
|
-
timestamp: Date.now(),
|
|
31
|
-
...overrides,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
describe("DEFAULT_POLICY", () => {
|
|
35
|
-
it("has threshold values", () => {
|
|
36
|
-
expect(DEFAULT_POLICY.warningThreshold).toBe(0.6);
|
|
37
|
-
expect(DEFAULT_POLICY.compactThreshold).toBe(0.7);
|
|
38
|
-
expect(DEFAULT_POLICY.hardStopThreshold).toBe(0.85);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
describe("estimatePressure", () => {
|
|
43
|
-
it("returns ratio", () => expect(estimatePressure(5000, 10000)).toBe(0.5));
|
|
44
|
-
it("caps at 1", () => expect(estimatePressure(15000, 10000)).toBe(1));
|
|
45
|
-
it("handles zero max", () => expect(estimatePressure(100, 0)).toBe(1));
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
describe("getPressureLevel", () => {
|
|
49
|
-
it("normal below warning", () =>
|
|
50
|
-
expect(getPressureLevel(0.3)).toBe("normal"));
|
|
51
|
-
it("warning above warningThreshold", () =>
|
|
52
|
-
expect(getPressureLevel(0.65)).toBe("warning"));
|
|
53
|
-
it("compact above compactThreshold", () =>
|
|
54
|
-
expect(getPressureLevel(0.75)).toBe("compact"));
|
|
55
|
-
it("hard_stop above hardStopThreshold", () =>
|
|
56
|
-
expect(getPressureLevel(0.9)).toBe("hard_stop"));
|
|
57
|
-
it("uses custom policy", () => {
|
|
58
|
-
const custom = {
|
|
59
|
-
warningThreshold: 0.1,
|
|
60
|
-
compactThreshold: 0.2,
|
|
61
|
-
hardStopThreshold: 0.3,
|
|
62
|
-
};
|
|
63
|
-
expect(getPressureLevel(0.25, custom)).toBe("compact");
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
describe("createSessionScope", () => {
|
|
68
|
-
it("creates with defaults", () => {
|
|
69
|
-
const scope = createSessionScope("session-1");
|
|
70
|
-
expect(scope.id).toBe("session-1");
|
|
71
|
-
expect(scope.items).toEqual([]);
|
|
72
|
-
expect(scope.ttlMs).toBe(30 * 60 * 1000);
|
|
73
|
-
expect(scope.createdAt).toBeGreaterThan(0);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
describe("setTTL", () => {
|
|
78
|
-
it("updates ttl", () => {
|
|
79
|
-
const scope = createSessionScope("s1");
|
|
80
|
-
const updated = setTTL(scope, 60_000);
|
|
81
|
-
expect(updated.ttlMs).toBe(60_000);
|
|
82
|
-
expect(updated.id).toBe("s1");
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
describe("addToScope", () => {
|
|
87
|
-
it("appends item", () => {
|
|
88
|
-
const scope = createSessionScope("s1");
|
|
89
|
-
const item = makeItem({ id: "i1" });
|
|
90
|
-
const updated = addToScope(scope, item);
|
|
91
|
-
expect(updated.items).toHaveLength(1);
|
|
92
|
-
expect(updated.items[0].id).toBe("i1");
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
describe("evictExpired", () => {
|
|
97
|
-
it("removes expired items", () => {
|
|
98
|
-
const scope = createSessionScope("s1");
|
|
99
|
-
const item1 = makeItem({ id: "i1", expiresAt: Date.now() + 10000 });
|
|
100
|
-
const item2 = makeItem({ id: "i2", expiresAt: Date.now() - 1000 });
|
|
101
|
-
const updated = addToScope(addToScope(scope, item1), item2);
|
|
102
|
-
const evicted = evictExpired(updated);
|
|
103
|
-
expect(evicted.items.map((i) => i.id)).toEqual(["i1"]);
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
it("keeps items without expiry", () => {
|
|
107
|
-
const scope = createSessionScope("s1");
|
|
108
|
-
const item = makeItem({ id: "i1" });
|
|
109
|
-
const updated = addToScope(scope, item);
|
|
110
|
-
expect(evictExpired(updated).items).toHaveLength(1);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
describe("prioritize", () => {
|
|
115
|
-
it("sorts by priority ascending", () => {
|
|
116
|
-
const items = [
|
|
117
|
-
makeItem({ id: "low", priority: 9 }),
|
|
118
|
-
makeItem({ id: "high", priority: 1 }),
|
|
119
|
-
makeItem({ id: "mid", priority: 5 }),
|
|
120
|
-
];
|
|
121
|
-
const sorted = prioritize(items);
|
|
122
|
-
expect(sorted.map((i) => i.id)).toEqual(["high", "mid", "low"]);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
it("respects limit", () => {
|
|
126
|
-
const items = [
|
|
127
|
-
makeItem({ id: "a", priority: 3 }),
|
|
128
|
-
makeItem({ id: "b", priority: 1 }),
|
|
129
|
-
makeItem({ id: "c", priority: 2 }),
|
|
130
|
-
];
|
|
131
|
-
expect(prioritize(items, 2)).toHaveLength(2);
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
describe("estimateTokens", () => {
|
|
136
|
-
it("counts chars/4", () => expect(estimateTokens("abcdefgh")).toBe(2));
|
|
137
|
-
it("rounds up", () => expect(estimateTokens("abc")).toBe(1));
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
describe("calculateTotalTokens", () => {
|
|
141
|
-
it("sums tokens", () => {
|
|
142
|
-
const items = [makeItem({ tokens: 10 }), makeItem({ tokens: 20 })];
|
|
143
|
-
expect(calculateTotalTokens(items)).toBe(30);
|
|
144
|
-
});
|
|
145
|
-
it("empty returns 0", () => expect(calculateTotalTokens([])).toBe(0));
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
describe("compactContext", () => {
|
|
149
|
-
it("extracts decisions", () => {
|
|
150
|
-
const items = [makeItem({ content: "DECISION: use tRPC for API" })];
|
|
151
|
-
const result = compactContext(items, 1000);
|
|
152
|
-
expect(result.decisions.length).toBeGreaterThan(0);
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
it("extracts questions", () => {
|
|
156
|
-
const items = [
|
|
157
|
-
makeItem({
|
|
158
|
-
content: "Should we use Redis? TODO: decide caching strategy",
|
|
159
|
-
}),
|
|
160
|
-
];
|
|
161
|
-
const result = compactContext(items, 1000);
|
|
162
|
-
expect(result.openQuestions.length).toBeGreaterThan(0);
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
it("respects maxTokens threshold", () => {
|
|
166
|
-
const items = [makeItem({ tokens: 100 })];
|
|
167
|
-
const result = compactContext(items, 50);
|
|
168
|
-
expect(result.remainingTokens).toBeLessThan(100);
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
describe("generateResumePrompt", () => {
|
|
173
|
-
it("creates prompt from result", () => {
|
|
174
|
-
const result = compactContext([], 1000);
|
|
175
|
-
const prompt = generateResumePrompt(result, "Continue with API");
|
|
176
|
-
expect(prompt.nextAction).toBe("Continue with API");
|
|
177
|
-
expect(prompt.decisions).toEqual([]);
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
describe("formatResumeMarkdown", () => {
|
|
182
|
-
it("includes headings", () => {
|
|
183
|
-
const prompt = generateResumePrompt(
|
|
184
|
-
{
|
|
185
|
-
decisions: ["Use tRPC"],
|
|
186
|
-
openQuestions: ["Which DB?"],
|
|
187
|
-
taskProgress: {},
|
|
188
|
-
remainingTokens: 100,
|
|
189
|
-
compactedContent: "",
|
|
190
|
-
},
|
|
191
|
-
"Continue",
|
|
192
|
-
);
|
|
193
|
-
const md = formatResumeMarkdown(prompt);
|
|
194
|
-
expect(md).toContain("# Resume Prompt");
|
|
195
|
-
expect(md).toContain("## Decisions");
|
|
196
|
-
expect(md).toContain("## Next Action");
|
|
197
|
-
});
|
|
198
|
-
});
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delegation Assessment Tests
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { describe, it, expect, beforeEach } from "bun:test";
|
|
6
|
-
import {
|
|
7
|
-
shouldTriggerAssessment,
|
|
8
|
-
DEFAULT_DELEGATION_TRIGGERS,
|
|
9
|
-
type ScopeFacts,
|
|
10
|
-
type DelegationTriggerConfig,
|
|
11
|
-
type DelegationStrategy,
|
|
12
|
-
type WorkGroup,
|
|
13
|
-
} from "../src/delegation.js";
|
|
14
|
-
import {
|
|
15
|
-
partitionWork,
|
|
16
|
-
detectOwnershipConflicts,
|
|
17
|
-
getUnownedFiles,
|
|
18
|
-
updateGroupStatus,
|
|
19
|
-
areAllGroupsComplete,
|
|
20
|
-
DEFAULT_PARTITION_CONFIG,
|
|
21
|
-
} from "../src/work-partitioner.js";
|
|
22
|
-
|
|
23
|
-
describe("Delegation Triggers", () => {
|
|
24
|
-
it("should trigger on 10+ files", () => {
|
|
25
|
-
const facts: ScopeFacts = {
|
|
26
|
-
estimatedFiles: 15,
|
|
27
|
-
observedFiles: 15,
|
|
28
|
-
estimatedCallSites: 20,
|
|
29
|
-
observedCallSites: 20,
|
|
30
|
-
independentComponents: 1,
|
|
31
|
-
tightlyCoupled: false,
|
|
32
|
-
isMechanical: false,
|
|
33
|
-
isComplex: false,
|
|
34
|
-
fileTypes: {},
|
|
35
|
-
fingerprint: "",
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
expect(shouldTriggerAssessment(facts)).toBe(true);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("should trigger on 50+ call sites", () => {
|
|
42
|
-
const facts: ScopeFacts = {
|
|
43
|
-
estimatedFiles: 5,
|
|
44
|
-
observedFiles: 5,
|
|
45
|
-
estimatedCallSites: 60,
|
|
46
|
-
observedCallSites: 60,
|
|
47
|
-
independentComponents: 1,
|
|
48
|
-
tightlyCoupled: false,
|
|
49
|
-
isMechanical: false,
|
|
50
|
-
isComplex: false,
|
|
51
|
-
fileTypes: {},
|
|
52
|
-
fingerprint: "",
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
expect(shouldTriggerAssessment(facts)).toBe(true);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it("should trigger on 2+ independent components", () => {
|
|
59
|
-
const facts: ScopeFacts = {
|
|
60
|
-
estimatedFiles: 5,
|
|
61
|
-
observedFiles: 5,
|
|
62
|
-
estimatedCallSites: 10,
|
|
63
|
-
observedCallSites: 10,
|
|
64
|
-
independentComponents: 3,
|
|
65
|
-
tightlyCoupled: false,
|
|
66
|
-
isMechanical: false,
|
|
67
|
-
isComplex: false,
|
|
68
|
-
fileTypes: {},
|
|
69
|
-
fingerprint: "",
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
expect(shouldTriggerAssessment(facts)).toBe(true);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it("should not trigger on small scope", () => {
|
|
76
|
-
const facts: ScopeFacts = {
|
|
77
|
-
estimatedFiles: 3,
|
|
78
|
-
observedFiles: 3,
|
|
79
|
-
estimatedCallSites: 5,
|
|
80
|
-
observedCallSites: 5,
|
|
81
|
-
independentComponents: 1,
|
|
82
|
-
tightlyCoupled: false,
|
|
83
|
-
isMechanical: false,
|
|
84
|
-
isComplex: false,
|
|
85
|
-
fileTypes: {},
|
|
86
|
-
fingerprint: "",
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
expect(shouldTriggerAssessment(facts)).toBe(false);
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
it("should respect custom config", () => {
|
|
93
|
-
const facts: ScopeFacts = {
|
|
94
|
-
estimatedFiles: 5,
|
|
95
|
-
observedFiles: 5,
|
|
96
|
-
estimatedCallSites: 10,
|
|
97
|
-
observedCallSites: 10,
|
|
98
|
-
independentComponents: 1,
|
|
99
|
-
tightlyCoupled: false,
|
|
100
|
-
isMechanical: false,
|
|
101
|
-
isComplex: false,
|
|
102
|
-
fileTypes: {},
|
|
103
|
-
fingerprint: "",
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
const customConfig: DelegationTriggerConfig = {
|
|
107
|
-
minFiles: 5,
|
|
108
|
-
minCallSites: 10,
|
|
109
|
-
minIndependentComponents: 1,
|
|
110
|
-
assessOnDiscovery: true,
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
expect(shouldTriggerAssessment(facts, customConfig)).toBe(true);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
describe("Work Partitioning", () => {
|
|
118
|
-
it("should partition files by directory", () => {
|
|
119
|
-
const files = [
|
|
120
|
-
"src/components/Button.ts",
|
|
121
|
-
"src/components/Modal.ts",
|
|
122
|
-
"src/utils/helper.ts",
|
|
123
|
-
"src/utils/format.ts",
|
|
124
|
-
];
|
|
125
|
-
|
|
126
|
-
const facts: ScopeFacts = {
|
|
127
|
-
estimatedFiles: 4,
|
|
128
|
-
observedFiles: 4,
|
|
129
|
-
estimatedCallSites: 10,
|
|
130
|
-
observedCallSites: 10,
|
|
131
|
-
independentComponents: 2,
|
|
132
|
-
tightlyCoupled: false,
|
|
133
|
-
isMechanical: false,
|
|
134
|
-
isComplex: false,
|
|
135
|
-
fileTypes: { ".ts": 4 },
|
|
136
|
-
fingerprint: "",
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const groups = partitionWork(files, facts);
|
|
140
|
-
|
|
141
|
-
expect(groups.length).toBe(2);
|
|
142
|
-
expect(groups.some((g) => g.description.includes("components"))).toBe(true);
|
|
143
|
-
expect(groups.some((g) => g.description.includes("utils"))).toBe(true);
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
it("should limit files per group", () => {
|
|
147
|
-
const files = Array.from({ length: 40 }, (_, i) => `src/dir${i % 3}/file${i}.ts`);
|
|
148
|
-
|
|
149
|
-
const facts: ScopeFacts = {
|
|
150
|
-
estimatedFiles: 40,
|
|
151
|
-
observedFiles: 40,
|
|
152
|
-
estimatedCallSites: 100,
|
|
153
|
-
observedCallSites: 100,
|
|
154
|
-
independentComponents: 3,
|
|
155
|
-
tightlyCoupled: false,
|
|
156
|
-
isMechanical: false,
|
|
157
|
-
isComplex: false,
|
|
158
|
-
fileTypes: { ".ts": 40 },
|
|
159
|
-
fingerprint: "",
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
const groups = partitionWork(files, facts);
|
|
163
|
-
|
|
164
|
-
// Should have multiple groups (max 15 files per group for 40 files = 3 groups)
|
|
165
|
-
expect(groups.length).toBeGreaterThanOrEqual(3);
|
|
166
|
-
for (const group of groups) {
|
|
167
|
-
expect(group.ownedPaths.length).toBeLessThanOrEqual(
|
|
168
|
-
DEFAULT_PARTITION_CONFIG.maxFilesPerGroup + 5 // Allow small overflow
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
it("should exclude shared paths", () => {
|
|
174
|
-
const files = [
|
|
175
|
-
"index.ts",
|
|
176
|
-
"src/main.ts",
|
|
177
|
-
"src/index.ts",
|
|
178
|
-
"src/components/Button.ts",
|
|
179
|
-
];
|
|
180
|
-
|
|
181
|
-
const facts: ScopeFacts = {
|
|
182
|
-
estimatedFiles: 4,
|
|
183
|
-
observedFiles: 4,
|
|
184
|
-
estimatedCallSites: 10,
|
|
185
|
-
observedCallSites: 10,
|
|
186
|
-
independentComponents: 1,
|
|
187
|
-
tightlyCoupled: false,
|
|
188
|
-
isMechanical: false,
|
|
189
|
-
isComplex: false,
|
|
190
|
-
fileTypes: { ".ts": 4 },
|
|
191
|
-
fingerprint: "",
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
const groups = partitionWork(files, facts);
|
|
195
|
-
|
|
196
|
-
// All groups combined should not include shared paths
|
|
197
|
-
const allOwned = groups.flatMap((g) => g.ownedPaths);
|
|
198
|
-
expect(allOwned).not.toContain("index.ts");
|
|
199
|
-
expect(allOwned).not.toContain("main.ts");
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
describe("Ownership Conflicts", () => {
|
|
204
|
-
it("should detect conflicts", () => {
|
|
205
|
-
const groups: WorkGroup[] = [
|
|
206
|
-
{
|
|
207
|
-
groupId: "group-1",
|
|
208
|
-
description: "components",
|
|
209
|
-
ownedPaths: ["src/components/Button.ts"],
|
|
210
|
-
isMechanical: false,
|
|
211
|
-
status: "pending",
|
|
212
|
-
},
|
|
213
|
-
];
|
|
214
|
-
|
|
215
|
-
const conflicts = detectOwnershipConflicts(groups, ["src/components/Button.ts"]);
|
|
216
|
-
|
|
217
|
-
expect(conflicts.length).toBe(1);
|
|
218
|
-
expect(conflicts[0]).toContain("already owned");
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
it("should detect conflict with completed groups (already owned)", () => {
|
|
222
|
-
const groups: WorkGroup[] = [
|
|
223
|
-
{
|
|
224
|
-
groupId: "group-1",
|
|
225
|
-
description: "components",
|
|
226
|
-
ownedPaths: ["src/components/Button.ts"],
|
|
227
|
-
isMechanical: false,
|
|
228
|
-
status: "completed",
|
|
229
|
-
},
|
|
230
|
-
];
|
|
231
|
-
|
|
232
|
-
// Completed groups still own files - conflict should be detected
|
|
233
|
-
const conflicts = detectOwnershipConflicts(groups, ["src/components/Button.ts"]);
|
|
234
|
-
|
|
235
|
-
expect(conflicts.length).toBe(1);
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
it("should not conflict with cancelled groups", () => {
|
|
239
|
-
const groups: WorkGroup[] = [
|
|
240
|
-
{
|
|
241
|
-
groupId: "group-1",
|
|
242
|
-
description: "components",
|
|
243
|
-
ownedPaths: ["src/components/Button.ts"],
|
|
244
|
-
isMechanical: false,
|
|
245
|
-
status: "cancelled",
|
|
246
|
-
},
|
|
247
|
-
];
|
|
248
|
-
|
|
249
|
-
const conflicts = detectOwnershipConflicts(groups, ["src/components/Button.ts"]);
|
|
250
|
-
|
|
251
|
-
expect(conflicts.length).toBe(0);
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
describe("Group Status Updates", () => {
|
|
256
|
-
it("should update group status", () => {
|
|
257
|
-
const groups: WorkGroup[] = [
|
|
258
|
-
{
|
|
259
|
-
groupId: "group-1",
|
|
260
|
-
description: "test",
|
|
261
|
-
ownedPaths: ["file.ts"],
|
|
262
|
-
isMechanical: false,
|
|
263
|
-
status: "pending",
|
|
264
|
-
},
|
|
265
|
-
];
|
|
266
|
-
|
|
267
|
-
const updated = updateGroupStatus(groups, "group-1", "dispatched", "child-123");
|
|
268
|
-
|
|
269
|
-
expect(updated[0].status).toBe("dispatched");
|
|
270
|
-
expect(updated[0].childId).toBe("child-123");
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
it("should check completion", () => {
|
|
274
|
-
const groups: WorkGroup[] = [
|
|
275
|
-
{
|
|
276
|
-
groupId: "group-1",
|
|
277
|
-
description: "test1",
|
|
278
|
-
ownedPaths: ["file1.ts"],
|
|
279
|
-
isMechanical: false,
|
|
280
|
-
status: "completed",
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
groupId: "group-2",
|
|
284
|
-
description: "test2",
|
|
285
|
-
ownedPaths: ["file2.ts"],
|
|
286
|
-
isMechanical: false,
|
|
287
|
-
status: "completed",
|
|
288
|
-
},
|
|
289
|
-
];
|
|
290
|
-
|
|
291
|
-
expect(areAllGroupsComplete(groups)).toBe(true);
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
it("should not report complete with pending", () => {
|
|
295
|
-
const groups: WorkGroup[] = [
|
|
296
|
-
{
|
|
297
|
-
groupId: "group-1",
|
|
298
|
-
description: "test1",
|
|
299
|
-
ownedPaths: ["file1.ts"],
|
|
300
|
-
isMechanical: false,
|
|
301
|
-
status: "completed",
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
groupId: "group-2",
|
|
305
|
-
description: "test2",
|
|
306
|
-
ownedPaths: ["file2.ts"],
|
|
307
|
-
isMechanical: false,
|
|
308
|
-
status: "pending",
|
|
309
|
-
},
|
|
310
|
-
];
|
|
311
|
-
|
|
312
|
-
expect(areAllGroupsComplete(groups)).toBe(false);
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
describe("Unowned Files", () => {
|
|
317
|
-
it("should identify unowned files", () => {
|
|
318
|
-
const allFiles = ["file1.ts", "file2.ts", "file3.ts"];
|
|
319
|
-
const groups: WorkGroup[] = [
|
|
320
|
-
{
|
|
321
|
-
groupId: "group-1",
|
|
322
|
-
description: "test",
|
|
323
|
-
ownedPaths: ["file1.ts", "file2.ts"],
|
|
324
|
-
isMechanical: false,
|
|
325
|
-
status: "pending",
|
|
326
|
-
},
|
|
327
|
-
];
|
|
328
|
-
|
|
329
|
-
const unowned = getUnownedFiles(allFiles, groups);
|
|
330
|
-
|
|
331
|
-
expect(unowned).toEqual(["file3.ts"]);
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
it("should consider completed groups as owned", () => {
|
|
335
|
-
const allFiles = ["file1.ts", "file2.ts"];
|
|
336
|
-
const groups: WorkGroup[] = [
|
|
337
|
-
{
|
|
338
|
-
groupId: "group-1",
|
|
339
|
-
description: "test",
|
|
340
|
-
ownedPaths: ["file1.ts"],
|
|
341
|
-
isMechanical: false,
|
|
342
|
-
status: "completed",
|
|
343
|
-
},
|
|
344
|
-
];
|
|
345
|
-
|
|
346
|
-
const unowned = getUnownedFiles(allFiles, groups);
|
|
347
|
-
|
|
348
|
-
expect(unowned).toEqual(["file2.ts"]);
|
|
349
|
-
});
|
|
350
|
-
});
|