@deepseek-ai/dsh-deque 0.1.2-alpha.2
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 -0
- package/README.i18n.yaml +6 -0
- package/README.md +104 -0
- package/README.zh.md +104 -0
- package/lib/index.js +86 -0
- package/lib/invariant.js +23 -0
- package/lib/types/index.d.ts +39 -0
- package/lib/types/invariant.d.ts +16 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
|
+
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
|
+
# after editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/util/deque/README.md
|
|
5
|
+
README.md: e029ecf574731bb2860dbc56383b93a9282dddfe
|
|
6
|
+
README.zh.md: 308f367e91c7345088eea0f5b2bccc0ad3539af7
|
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Circular deque for Host and browser packages that need amortized constant-time queue operations, immediate release of removed entries, and bounded vacant storage."
|
|
3
|
+
kind: "package-library"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-deque
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
`dsh-deque` lets Host and browser packages drain long-lived in-process queues without moving every remaining entry after each removal. Callers append or prepend entries and remove them from the front with amortized constant-time operations. The deque owns entry order and backing-storage release; each consumer still owns wake-up, failure, cancellation, capacity, and overload behavior.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
### When to use it
|
|
29
|
+
|
|
30
|
+
Use `Deque<T>` when entries can accumulate across asynchronous work and the consumer needs FIFO removal, optional front insertion, or explicit queue clearing. Finite local worklists can stay as arrays when their maximum size makes head removal cost irrelevant.
|
|
31
|
+
|
|
32
|
+
### Entry point
|
|
33
|
+
|
|
34
|
+
Import the deque, append entries at the tail, and check `size` before removing an entry whose type may include `undefined`:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import { Deque } from '@deepseek-ai/dsh-deque'
|
|
38
|
+
|
|
39
|
+
const frames = new Deque<string>()
|
|
40
|
+
frames.pushBack('first')
|
|
41
|
+
frames.pushFront('before-first')
|
|
42
|
+
|
|
43
|
+
while (frames.size > 0) {
|
|
44
|
+
console.log(frames.popFront())
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The methods do not impose a queue limit or translate consumer failures. See [`src/index.ts`](src/index.ts) for the exact TypeScript contract.
|
|
49
|
+
|
|
50
|
+
-----
|
|
51
|
+
|
|
52
|
+
<a id="understand-the-implementation"></a>
|
|
53
|
+
## Understand the implementation
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>Implementation internals — click to expand</summary>
|
|
57
|
+
|
|
58
|
+
The deque stores entries in a circular array. Removing an entry clears that slot immediately, while geometric growth and quarter-full shrinking keep copying work amortized constant time and prevent a head cursor from retaining indefinitely growing vacant storage.
|
|
59
|
+
|
|
60
|
+
### Source map
|
|
61
|
+
|
|
62
|
+
| File | Role |
|
|
63
|
+
|---|---|
|
|
64
|
+
| [`src/index.ts`](src/index.ts) | Circular deque operations and backing-storage lifecycle |
|
|
65
|
+
| [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant; ordering and storage lifecycle are exercised by unit tests) |
|
|
66
|
+
| [`tests/deque.spec.ts`](tests/deque.spec.ts) | FIFO, front insertion, wrapping, growth, compaction, clearing, and reuse coverage |
|
|
67
|
+
| [`benchmarks/drain.ts`](benchmarks/drain.ts) | Reproducible backlog-drain timing across increasing queue sizes |
|
|
68
|
+
|
|
69
|
+
</details>
|
|
70
|
+
|
|
71
|
+
-----
|
|
72
|
+
|
|
73
|
+
<a id="further-exploration"></a>
|
|
74
|
+
## Further Exploration
|
|
75
|
+
|
|
76
|
+
- [Utility package map](../README.md) — the other zero-dependency primitives shared across package groups.
|
|
77
|
+
- [Linear stream queue decision](../../../.agents/notes/implemented/bug-fix/2026-08-28-linear-stream-queue-drain.md) — why production streams use this deque instead of array head removal.
|
|
78
|
+
|
|
79
|
+
-----
|
|
80
|
+
|
|
81
|
+
<a id="model-experience"></a>
|
|
82
|
+
## Model Experience
|
|
83
|
+
|
|
84
|
+
None, as this in-process collection registers nothing model-facing.
|
|
85
|
+
|
|
86
|
+
#### KV Cache effect
|
|
87
|
+
|
|
88
|
+
Nothing here enters a model request, so provider cache reuse is unaffected.
|
|
89
|
+
|
|
90
|
+
## Known Limitations and Deferred Work
|
|
91
|
+
|
|
92
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
93
|
+
|
|
94
|
+
- **No capacity policy** — the deque does not bound, coalesce, or reject entries; each consumer must define overload behavior appropriate to its stream.
|
|
95
|
+
|
|
96
|
+
<a id="dev-note"></a>
|
|
97
|
+
### Dev Note
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
101
|
+
|
|
102
|
+
None.
|
|
103
|
+
|
|
104
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "供 Host 和浏览器包使用的环形双端队列,提供摊销常数时间的队列操作、已移除条目的即时释放和有界空闲存储。"
|
|
3
|
+
kind: "package-library"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-deque
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
`dsh-deque` 让 Host 和浏览器包可以排空长期存在的进程内队列,而无需在每次移除后移动所有剩余条目。调用方可以追加或前插条目,并以摊销常数时间从前端移除。双端队列负责条目顺序和后备存储释放;唤醒、失败、取消、容量和过载行为仍由各消费方负责。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用本包](#use-this-package)
|
|
17
|
+
- [理解实现](#understand-the-implementation)
|
|
18
|
+
- [进一步探索](#further-exploration)
|
|
19
|
+
- [模型体验](#model-experience)
|
|
20
|
+
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
|
21
|
+
- [开发备注](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## 使用本包
|
|
27
|
+
|
|
28
|
+
### 何时使用
|
|
29
|
+
|
|
30
|
+
当条目可能在异步工作期间持续积累,且消费方需要 FIFO 移除、可选前插或显式清空队列时,使用 `Deque<T>`。如果有限本地工作列表的最大规模使头部移除成本无关紧要,它可以继续使用数组。
|
|
31
|
+
|
|
32
|
+
### 入口
|
|
33
|
+
|
|
34
|
+
导入双端队列,在尾部追加条目;当条目类型可能包含 `undefined` 时,在移除前检查 `size`:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import { Deque } from '@deepseek-ai/dsh-deque'
|
|
38
|
+
|
|
39
|
+
const frames = new Deque<string>()
|
|
40
|
+
frames.pushBack('first')
|
|
41
|
+
frames.pushFront('before-first')
|
|
42
|
+
|
|
43
|
+
while (frames.size > 0) {
|
|
44
|
+
console.log(frames.popFront())
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
这些方法不施加队列限制,也不转换消费方失败。准确的 TypeScript 约定见 [`src/index.ts`](src/index.ts)。
|
|
49
|
+
|
|
50
|
+
-----
|
|
51
|
+
|
|
52
|
+
<a id="understand-the-implementation"></a>
|
|
53
|
+
## 理解实现
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>实现细节——点击展开</summary>
|
|
57
|
+
|
|
58
|
+
双端队列把条目存入环形数组。移除条目会立即清空对应槽位;按几何级数扩容并在四分之一满时缩容,使复制工作保持摊销常数时间,并防止头游标保留持续增长的空闲存储。
|
|
59
|
+
|
|
60
|
+
### 源码地图
|
|
61
|
+
|
|
62
|
+
| 文件 | 职责 |
|
|
63
|
+
|---|---|
|
|
64
|
+
| [`src/index.ts`](src/index.ts) | 环形双端队列操作与后备存储生命周期 |
|
|
65
|
+
| [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件(无运行时不变式;顺序和存储生命周期由单元测试覆盖) |
|
|
66
|
+
| [`tests/deque.spec.ts`](tests/deque.spec.ts) | FIFO、前插、环绕、扩容、压缩、清空和复用覆盖 |
|
|
67
|
+
| [`benchmarks/drain.ts`](benchmarks/drain.ts) | 随队列规模增长的可复现 backlog 排空计时 |
|
|
68
|
+
|
|
69
|
+
</details>
|
|
70
|
+
|
|
71
|
+
-----
|
|
72
|
+
|
|
73
|
+
<a id="further-exploration"></a>
|
|
74
|
+
## 进一步探索
|
|
75
|
+
|
|
76
|
+
- [工具包映射](../README.zh.md)——跨包组共享的其他零依赖原语。
|
|
77
|
+
- [线性流队列决策](../../../.agents/notes/implemented/bug-fix/2026-08-28-linear-stream-queue-drain.zh.md)——生产流为何使用本双端队列而非数组头部移除。
|
|
78
|
+
|
|
79
|
+
-----
|
|
80
|
+
|
|
81
|
+
<a id="model-experience"></a>
|
|
82
|
+
## 模型体验
|
|
83
|
+
|
|
84
|
+
无,因为这个进程内集合不注册任何面向模型的内容。
|
|
85
|
+
|
|
86
|
+
#### KV 缓存影响
|
|
87
|
+
|
|
88
|
+
这里的内容不会进入模型请求,因此不影响提供方缓存复用。
|
|
89
|
+
|
|
90
|
+
## 已知限制与延期工作
|
|
91
|
+
|
|
92
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
93
|
+
|
|
94
|
+
- **没有容量策略**——双端队列不会限制、合并或拒绝条目;每个消费方必须定义适合其流的过载行为。
|
|
95
|
+
|
|
96
|
+
<a id="dev-note"></a>
|
|
97
|
+
### 开发备注
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary>维护者的工作上下文——点击展开</summary>
|
|
101
|
+
|
|
102
|
+
无。
|
|
103
|
+
|
|
104
|
+
</details>
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region lib/types/index.js
|
|
2
|
+
/**
|
|
3
|
+
* Zero-dependency circular deque for queues that retain entries across asynchronous work.
|
|
4
|
+
* @module @deepseek-ai/dsh-deque
|
|
5
|
+
*/
|
|
6
|
+
const MIN_CAPACITY = 16;
|
|
7
|
+
/**
|
|
8
|
+
* A circular deque with amortized constant-time insertion and removal.
|
|
9
|
+
* Removed entries are cleared immediately, and sparse storage shrinks after
|
|
10
|
+
* the live entry count reaches one quarter of its capacity.
|
|
11
|
+
*/
|
|
12
|
+
var Deque = class {
|
|
13
|
+
buffer = new Array(MIN_CAPACITY);
|
|
14
|
+
head = 0;
|
|
15
|
+
count = 0;
|
|
16
|
+
/** Number of entries available to remove. */
|
|
17
|
+
get size() {
|
|
18
|
+
return this.count;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Append one entry after the current tail.
|
|
22
|
+
* @param value - entry to append.
|
|
23
|
+
*/
|
|
24
|
+
pushBack(value) {
|
|
25
|
+
this.ensureCapacity();
|
|
26
|
+
const tail = this.head + this.count;
|
|
27
|
+
this.buffer[tail < this.buffer.length ? tail : tail - this.buffer.length] = value;
|
|
28
|
+
this.count += 1;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Insert one entry before the current head.
|
|
32
|
+
* @param value - entry to prepend.
|
|
33
|
+
*/
|
|
34
|
+
pushFront(value) {
|
|
35
|
+
this.ensureCapacity();
|
|
36
|
+
this.head = this.head === 0 ? this.buffer.length - 1 : this.head - 1;
|
|
37
|
+
this.buffer[this.head] = value;
|
|
38
|
+
this.count += 1;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Remove the current head entry and clear its retained reference.
|
|
42
|
+
* Callers whose element type includes `undefined` use {@link size} to
|
|
43
|
+
* distinguish an empty deque from an `undefined` entry.
|
|
44
|
+
* @returns the removed entry, or `undefined` when the deque is empty.
|
|
45
|
+
*/
|
|
46
|
+
popFront() {
|
|
47
|
+
if (this.count === 0) return void 0;
|
|
48
|
+
const value = this.buffer[this.head];
|
|
49
|
+
this.buffer[this.head] = void 0;
|
|
50
|
+
this.head += 1;
|
|
51
|
+
if (this.head === this.buffer.length) this.head = 0;
|
|
52
|
+
this.count -= 1;
|
|
53
|
+
this.compact();
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
/** Drop every entry and release the current backing storage. */
|
|
57
|
+
clear() {
|
|
58
|
+
this.buffer = new Array(MIN_CAPACITY);
|
|
59
|
+
this.head = 0;
|
|
60
|
+
this.count = 0;
|
|
61
|
+
}
|
|
62
|
+
ensureCapacity() {
|
|
63
|
+
if (this.count < this.buffer.length) return;
|
|
64
|
+
this.resize(this.buffer.length * 2);
|
|
65
|
+
}
|
|
66
|
+
compact() {
|
|
67
|
+
if (this.count === 0) {
|
|
68
|
+
this.head = 0;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (this.buffer.length > MIN_CAPACITY && this.count <= this.buffer.length / 4) this.resize(Math.max(MIN_CAPACITY, this.buffer.length / 2));
|
|
72
|
+
}
|
|
73
|
+
resize(capacity) {
|
|
74
|
+
const next = new Array(capacity);
|
|
75
|
+
let source = this.head;
|
|
76
|
+
for (let index = 0; index < this.count; index += 1) {
|
|
77
|
+
next[index] = this.buffer[source];
|
|
78
|
+
source += 1;
|
|
79
|
+
if (source === this.buffer.length) source = 0;
|
|
80
|
+
}
|
|
81
|
+
this.buffer = next;
|
|
82
|
+
this.head = 0;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
export { Deque };
|
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region lib/types/invariant.js
|
|
2
|
+
/**
|
|
3
|
+
* Package-owned invariant companion for `@deepseek-ai/dsh-deque`.
|
|
4
|
+
* @module @deepseek-ai/dsh-deque/invariant
|
|
5
|
+
*/
|
|
6
|
+
const PACKAGE_NAME = "@deepseek-ai/dsh-deque";
|
|
7
|
+
/** Cordis companion plugin name. */
|
|
8
|
+
const name = "deque-invariant";
|
|
9
|
+
/** Service required before the companion can reserve package ownership. */
|
|
10
|
+
const inject = ["invariants"];
|
|
11
|
+
/**
|
|
12
|
+
* No runtime invariant: this pure utility owns no event stream or mutable data outside each deque;
|
|
13
|
+
* its ordering and storage lifecycle are exercised by unit tests.
|
|
14
|
+
*/
|
|
15
|
+
const install = () => {};
|
|
16
|
+
/**
|
|
17
|
+
* Register this package's invariant companion.
|
|
18
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
19
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
20
|
+
*/
|
|
21
|
+
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
22
|
+
//#endregion
|
|
23
|
+
export { apply, inject, name };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-dependency circular deque for queues that retain entries across asynchronous work.
|
|
3
|
+
* @module @deepseek-ai/dsh-deque
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A circular deque with amortized constant-time insertion and removal.
|
|
7
|
+
* Removed entries are cleared immediately, and sparse storage shrinks after
|
|
8
|
+
* the live entry count reaches one quarter of its capacity.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Deque<T> {
|
|
11
|
+
private buffer;
|
|
12
|
+
private head;
|
|
13
|
+
private count;
|
|
14
|
+
/** Number of entries available to remove. */
|
|
15
|
+
get size(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Append one entry after the current tail.
|
|
18
|
+
* @param value - entry to append.
|
|
19
|
+
*/
|
|
20
|
+
pushBack(value: T): void;
|
|
21
|
+
/**
|
|
22
|
+
* Insert one entry before the current head.
|
|
23
|
+
* @param value - entry to prepend.
|
|
24
|
+
*/
|
|
25
|
+
pushFront(value: T): void;
|
|
26
|
+
/**
|
|
27
|
+
* Remove the current head entry and clear its retained reference.
|
|
28
|
+
* Callers whose element type includes `undefined` use {@link size} to
|
|
29
|
+
* distinguish an empty deque from an `undefined` entry.
|
|
30
|
+
* @returns the removed entry, or `undefined` when the deque is empty.
|
|
31
|
+
*/
|
|
32
|
+
popFront(): T | undefined;
|
|
33
|
+
/** Drop every entry and release the current backing storage. */
|
|
34
|
+
clear(): void;
|
|
35
|
+
private ensureCapacity;
|
|
36
|
+
private compact;
|
|
37
|
+
private resize;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package-owned invariant companion for `@deepseek-ai/dsh-deque`.
|
|
3
|
+
* @module @deepseek-ai/dsh-deque/invariant
|
|
4
|
+
*/
|
|
5
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
+
/** Cordis companion plugin name. */
|
|
7
|
+
export declare const name = "deque-invariant";
|
|
8
|
+
/** Service required before the companion can reserve package ownership. */
|
|
9
|
+
export declare const inject: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Register this package's invariant companion.
|
|
12
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
+
*/
|
|
15
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
+
//# sourceMappingURL=invariant.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepseek-ai/dsh-deque",
|
|
3
|
+
"description": "Zero-dependency circular deque with amortized constant-time end operations and bounded vacant storage",
|
|
4
|
+
"version": "0.1.2-alpha.2",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
11
|
+
"directory": "packages/util/deque"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./invariant": {
|
|
22
|
+
"types": "./lib/types/invariant.d.ts",
|
|
23
|
+
"default": "./lib/invariant.js"
|
|
24
|
+
},
|
|
25
|
+
"./src/*": "./src/*",
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"lib/index.js",
|
|
30
|
+
"lib/invariant.js",
|
|
31
|
+
"lib/types/**/*.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
36
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
41
|
+
}
|
|
42
|
+
}
|