@coda-console/protocol 6.28.0 → 6.30.0
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/CHANGELOG.md +14 -0
- package/README.md +13 -2
- package/accord.d.mts +50 -0
- package/accord.mjs +123 -0
- package/agent.mjs +7 -0
- package/docs/agent-protocol.md +55 -1
- package/docs/protocol.md +31 -0
- package/package.json +9 -1
- package/schemas/agent/messages.json +5 -0
- package/schemas/agent/quota.json +89 -0
- package/vectors/accord.json +548 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
版本规矩见 README 的[「版本」一节](README.md#版本)。协议自己的大版本写在协议名里(如 `coda/run@1`),与 npm 包版本、插件清单的 v2 独立;更早的版本见 git 历史。
|
|
4
4
|
|
|
5
|
+
## 6.30.0 — 2026-11-28
|
|
6
|
+
|
|
7
|
+
- 这是在 6.29.0 之上的次版本。依据 README「版本」一节:Agent 接入协议是内部面,新增一条扩展通知升次版本;`stable/` 不动,清单 schema 没改,旧用法一律照旧。
|
|
8
|
+
- 新增 Agent → Coda 通知 `_coda/quota`:Agent 会话收到账号额度变化时,把额度窗口报给 Coda,由 Coda 写进自己的记录(`coda/agent-quota@1`,记录形状属于 Coda,不在本协议里)。参数 `{ sessionId, resourceType, accountId, windows }` 四个都必填,不许带别的键,见新增的 `schemas/agent/quota.json`,已登记在 `schemas/agent/messages.json`:`resourceType` 是插件明写的 `coda/resource@1` 资源组 key(1–256 个字符,不含 NUL,协议不取默认值);`accountId` 是插件给的稳定账号标识(1–128 个字符,不含 NUL,不含明文,可关联、不是匿名的);`windows` 为 1–16 项 `{ id, label, usedFraction, resetsAt }`,`usedFraction` 在 [0, 1],`resetsAt` 须为 `YYYY-MM-DDTHH:MM:SS`,可带 1–9 位小数秒,以 `Z` 结尾,不接受时区偏移。窗口 `id` 在一条通知里唯一、一条通知的 JSON 编码不超过 16 KiB、`usedFraction` 为有限数,这三条 schema 表达不了,由宿主校验。
|
|
9
|
+
- `agent.mjs` 给 Agent schema 的校验器新增严格的 `date-time` 格式(真实日期与时刻,只此一处使用,旧的 `date-parse` 不变)。
|
|
10
|
+
- 文档:`docs/agent-protocol.md` 新增「账号额度」一节,写明窗口按局部更新、何时发、宿主怎么认来源(插件取自会话的 Agent 注册来源,不信通知自报;探测与加载历史期间的通知略过,不暂存不补发;校验不过的丢弃,不影响会话和轮次)以及与每轮 `usage` 的区别。`agentMessageProblem('_coda/quota', params)` 可校验。
|
|
11
|
+
|
|
12
|
+
## 6.29.0 — 2026-11-27
|
|
13
|
+
|
|
14
|
+
- 这是在 6.28.0 之上的次版本。依据 README「版本」一节:新增导出与测试向量升次版本;`stable/manifest.json`、`stable/view.json` 不动,清单 schema 没改,旧用法一律照旧。
|
|
15
|
+
- 新增 `@coda-console/protocol/accord`(`accord.mjs`,类型 `accord.d.mts`):Accord 公钥 `author` 怎样给人看的单一实现,供 Coda(Swift、后端、WebView 标准库)与各插件共用,不再各写一份。零依赖,只用标准 JS,不 import `node:*`、不用 `Buffer`,Node 与浏览器原生 ESM 都能直接加载。导出 `isAuthor`、`parseAuthor`、`shortAuthor`、`nicknameOf`、`tailOf`、`accordIdentity`、`identityTitle`、`disambiguateTails`、`identityTitles`、`identiconPattern`;算法与现行 Coda、`friends`、`friend-chat` 逐位一致:昵称按每 7 位一组至多读 36 组,尾号是公钥的 78 位十进制,同昵称撞号逐位向左加位消歧,头像是 5×5 水平轴对称的几何纹。
|
|
16
|
+
- 新增跨语言共用测试向量 `vectors/accord.json`,包内导出为 `@coda-console/protocol/vectors/accord.json`:昵称与尾号(含 `AccordChecks.swift` 的全部向量)、撞号消歧(含真实公钥构造的碰撞)、头像网格。契约见 `docs/protocol.md` 的「Accord 身份的显示」。
|
|
17
|
+
- `package.json` 的 `files` 与 `exports` 加入这三项;`test/accord.test.mjs` 守住全部导出、向量、边界入参,以及 `accord.mjs` 不含 `node:` 导入与 `Buffer`。
|
|
18
|
+
|
|
5
19
|
## 6.28.0 — 2026-11-27
|
|
6
20
|
|
|
7
21
|
- 这是在 6.27.0 之上的次版本。依据 README「版本」一节:Agent 清单的 `modes` 只加可选键并放宽 `auto`、`full`,升次版本;旧清单一律照旧合法(`test/fixtures/stable/` 的 Pi 样本与不写 `modes` 的清单都不变)。`stable/manifest.json` 的 revision 从 3 升到 6(每登记一条加一),新登记 `modes.manual`、`modes.safe[]`、`modes.default` 三条路径。
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Coda 与插件之间的约定,Coda 和插件都引用它,独立演进:
|
|
|
6
6
|
- **通用校验器**(`validate.mjs`):用 Ajv 对清单做 schema 校验。JSON Schema 说不了的只用五个通用关键字(`x-unique-by`、`x-max-contains`、`x-ref`、`x-placeholders`、`x-file`,照 Kubernetes 的 `x-kubernetes-*`),每个在哪里写都是同一个意思,写法见文件开头。校验器不随功能变长:类型加字段就是改 schema。例外是清单级的两条跨字段约束:`manifestProblem` 在 schema 通过后还会检查,同一协议不能既是必需实现(`protocolImplementations`)又是可选实现(`optionalProtocolImplementations`),保留种类(`reservedAccordKinds`)的命名空间须等于插件 ID;只拿 `plugin.json` 校验,只查形状,这两条不在内。
|
|
7
7
|
- **协议定义与调用**(`schemas/protocol/`、`protocol.mjs`、`docs/protocol.md`):协议是 `命名空间/名字@大版本` + spec/status 的 JSON Schema + 操作;插件在 `contributes.protocols` 里定义自己命名空间下的协议,在 `contributes.protocolImplementations` 里声明实现哪些协议;定义可写 `streams` 声明记录流(读、写、原样 HTTP 三种形状,字节或帧),可写 `events` 声明事件(载荷格式与 `starts`、`ends`;只有事件的协议可以不写 `spec`、`status`、`operations`,`protocolHasRecords` 判断一份定义有没有记录),可写 `permissions` 把操作、流、事件与记录的读取分成权限组,插件在清单根的 `uses`(必需)或 `optionalUses`(可选)里按组申请。调用是 `{ record, operation, input, requestId, parent, awaited }`,回答是 `{ result }` 或 `{ run }`;`coda/run@1`、`coda/agent@1`、`coda/session@1`、`coda/environment@1`、`coda/card@1` 是五个核心协议。
|
|
8
8
|
- **流程方言**(`workflow/`):项目和插件的流程(`.coda/workflows/*.bpmn`,BPMN 2.0)在 Coda 的命名空间 `https://coda.pub/schema/bpmn/1.0` 里能写什么。`moddle.json` 是 `coda:` 属性与元素(bpmn-moddle 的描述格式),`values.json` 是每个值能写什么(每个 `coda:` 类型的属性组成的对象的 JSON Schema,一个元素里同种 `coda:` 元素成组的 schema),`actions.json` 是 `coda:action` 的各个动作和它们接受的参数,`dialect.json` 是 Coda 自己发的事件、步骤失败的错误码、表达式能读的运行变量和运行的输入能是哪些类型。`workflow.mjs` 用它们读一份流程:方言里没有的、值不合 schema 的都拒绝,说法是「位置:schema 对那里的说明」。值的 schema 用清单的那几个关键字,另加三个:`x-feel`(是 FEEL:「=」开头是表达式,否则文字里的 `{{ … }}` 是,按这份流程里的名字读得通)、`x-duration`(ISO 8601 时长,不为负)、`x-number`(文字换算成数字是个有限的数)。`structure.json` 声明流程结构规则,`structure.mjs` 负责跨节点检查。
|
|
9
|
-
- **Agent 接入扩展**(`schemas/agent/`、`agent.mjs`、`docs/agent-protocol.md`):Coda 怎样用 ACP 接 Agent,以及 Coda 加的扩展(会话指令、插话、`_coda/wait
|
|
9
|
+
- **Agent 接入扩展**(`schemas/agent/`、`agent.mjs`、`docs/agent-protocol.md`):Coda 怎样用 ACP 接 Agent,以及 Coda 加的扩展(会话指令、插话、`_coda/wait`、`_coda/quota` 账号额度、执行失败、工具调用的审核、配置探测)。
|
|
10
10
|
|
|
11
11
|
流程方言的 **结构规则**从 1.8.0 起也由 `readWorkflow` / `workflowProblem` 检查。`workflow/structure.json` 声明支持的顶层元素与不支持的流程元素、各位置的事件定义、`coda:` 属性的位置限制、任务与多实例的局部写法、脚本数量、定时间隔和生命周期等待类型。`rules` 使用 JSON Schema 检查节点的无环投影(原始标量属性与父级、事件种类等固定事实),复用 `newAjv()` 和已有关键字;`moddle.json` 的 `extends` 仍声明属性可附着的基础类型。`CODA_STRUCTURE` 导出同一份表。新增局部规则改数据,不增加校验器分支。
|
|
12
12
|
|
|
@@ -95,6 +95,17 @@ parseBlobPath('plugins/wechat/services/media/a.jpg'); // { kind: 'service', plug
|
|
|
95
95
|
parseBlobPath('content/' + 'f'.repeat(64)); // { kind: 'content', sha256: 'ffff…' },内容寻址:64 位小写十六进制 SHA-256
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
+
```js
|
|
99
|
+
import { identityTitles, nicknameOf, tailOf, accordIdentity, identiconPattern } from '@coda-console/protocol/accord';
|
|
100
|
+
|
|
101
|
+
// Accord 公钥(author,`ed25519:<64 位小写十六进制>`)怎样给人看:昵称、78 位十进制尾号、撞号消歧后的标题、5×5 头像网格。
|
|
102
|
+
// 零依赖,只用标准 JS(Uint8Array、BigInt),不 import 任何 node: 模块、不用 Buffer,Node 与浏览器原生 ESM 都能直接跑。
|
|
103
|
+
// 跨语言共用测试向量在 `@coda-console/protocol/vectors/accord.json`,Swift 与各插件拿它对齐。
|
|
104
|
+
accordIdentity(author); // { author, key, short, name, tail, tag },author 不合法给 null
|
|
105
|
+
identityTitles(authors); // Map<author, 'sakura #8283'>:同昵称撞了末 4 位就向左加位('xs #14084');解不出昵称的给 8 位十六进制
|
|
106
|
+
identiconPattern(author); // 5×5 水平轴对称的布尔网格,亮格 8 到 18 个;也收 32 字节公钥
|
|
107
|
+
```
|
|
108
|
+
|
|
98
109
|
```js
|
|
99
110
|
import { workflowProblem, readWorkflow, fieldProblem, fieldsProblem, optionsProblem, joinInputNames, CODA_FIELDS, CODA_OPTIONS } from '@coda-console/protocol/workflow';
|
|
100
111
|
|
|
@@ -163,7 +174,7 @@ agentCapabilitiesProblem({ coda: { waits: {}, compact: {} } }, 'agent');
|
|
|
163
174
|
agentValueProblem('review.json', review, '工具的审核');
|
|
164
175
|
```
|
|
165
176
|
|
|
166
|
-
校验不修改输入。未知扩展键保留;活动文本长度沿用 UTF-16,日期沿用 `Date.parse
|
|
177
|
+
校验不修改输入。未知扩展键保留;活动文本长度沿用 UTF-16,日期沿用 `Date.parse`(`_coda/quota` 的 `resetsAt` 例外,须是严格的 UTC `date-time`),用量数据按 JSON 的 UTF-8 字节数限制。
|
|
167
178
|
深层/大型 JSON 用显式栈检查,非有限数字与循环引用不会通过。会话归属、活动状态迁移、调用起因、协商、超时、重试和授权仍由宿主判断;
|
|
168
179
|
丢弃未知风险值、压缩答复的裁剪与兜底等整理也留在 Coda。详见正文的兼容性与接入说明。
|
|
169
180
|
|
package/accord.d.mts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Types of `@coda-console/protocol/accord`: the pure functions that read an Accord author as a person sees it.
|
|
2
|
+
declare const authorBrand: unique symbol;
|
|
3
|
+
/** `ed25519:` and 64 lowercase hex digits; only `isAuthor` (or a function returning one) makes it, so a string is not one until checked. */
|
|
4
|
+
export type Author = `ed25519:${string}` & { readonly [authorBrand]: true };
|
|
5
|
+
|
|
6
|
+
export interface AccordIdentity {
|
|
7
|
+
author: Author;
|
|
8
|
+
/** The 32 bytes of the public key. */
|
|
9
|
+
key: Uint8Array;
|
|
10
|
+
/** The first 8 hex digits of the key. */
|
|
11
|
+
short: string;
|
|
12
|
+
/** The nickname the key spells; '' when it spells none. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** The key as a decimal number, 78 digits wide. */
|
|
15
|
+
tail: string;
|
|
16
|
+
/** The last 4 digits of `tail`. */
|
|
17
|
+
tag: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface TailEntry {
|
|
21
|
+
/** What entries are told apart within: the nickname. Anything but a non-empty string means no one to be told apart from. */
|
|
22
|
+
stem?: unknown;
|
|
23
|
+
/** A non-empty string of ASCII digits; anything else gives '' and is no one's collision. */
|
|
24
|
+
tail?: unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface DisambiguateOptions {
|
|
28
|
+
/** How many digits at least, a positive integer (default 4). */
|
|
29
|
+
minDigits?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function isAuthor(value: unknown): value is Author;
|
|
33
|
+
/** The 32 bytes of a valid author, or null. */
|
|
34
|
+
export function parseAuthor(author: unknown): Uint8Array | null;
|
|
35
|
+
/** The first 8 hex digits of a valid author, or ''. */
|
|
36
|
+
export function shortAuthor(author: unknown): string;
|
|
37
|
+
/** The nickname a key spells: a 32-byte key or a valid author. '' for a non-author or a key that spells none; throws a `TypeError` for a `Uint8Array` of another length. */
|
|
38
|
+
export function nicknameOf(input: unknown): string;
|
|
39
|
+
/** The key as a 78-digit decimal number: a 32-byte `Uint8Array` or a valid author. '' for anything else; throws a `TypeError` for a `Uint8Array` of another length. */
|
|
40
|
+
export function tailOf(input: unknown): string;
|
|
41
|
+
/** null for what is not a valid author. */
|
|
42
|
+
export function accordIdentity(author: unknown): AccordIdentity | null;
|
|
43
|
+
/** `name #tag`, the short form when the key spells no nickname, `fallback` for a non-author. */
|
|
44
|
+
export function identityTitle(author: unknown, fallback?: string): string;
|
|
45
|
+
/** For each entry, the suffix of its decimal tail that tells it apart from the others of its stem; throws a `RangeError` for a `minDigits` that is not a positive integer. */
|
|
46
|
+
export function disambiguateTails(entries: Iterable<TailEntry>, options?: DisambiguateOptions): string[];
|
|
47
|
+
/** Each valid author of `authors` (once) and its title, with the tag lengthened where two of one nickname would collide. */
|
|
48
|
+
export function identityTitles(authors: Iterable<unknown>, options?: DisambiguateOptions): Map<Author, string>;
|
|
49
|
+
/** A 5×5 grid, mirrored left to right, 8 to 18 cells lit: from a `Uint8Array`'s bytes, a valid author's key, or else the code points of the text (`String(input ?? '')`). */
|
|
50
|
+
export function identiconPattern(input: unknown): boolean[][];
|
package/accord.mjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// What an Accord author (`ed25519:<64 lowercase hex>`) looks like to a person: its short form, the nickname its key spells, its
|
|
2
|
+
// 78-digit decimal tail, the tail's suffix that tells two of one nickname apart, and the 5×5 identicon. Pure: only standard
|
|
3
|
+
// JavaScript (Uint8Array, BigInt), so it runs in a page too. The vectors in vectors/accord.json are what Swift (AccordNickname.swift) and the plugins
|
|
4
|
+
// check themselves against; test/accord.test.mjs holds this file to them.
|
|
5
|
+
const AUTHOR = /^ed25519:([0-9a-f]{64})$/;
|
|
6
|
+
const DIGITS = /^[0-9]+$/;
|
|
7
|
+
const NICKNAME_GROUPS = 36;
|
|
8
|
+
const TAIL_LENGTH = 78;
|
|
9
|
+
|
|
10
|
+
export const isAuthor = value => typeof value === 'string' && AUTHOR.test(value);
|
|
11
|
+
|
|
12
|
+
// The 32 bytes of a valid author, or null.
|
|
13
|
+
export function parseAuthor(author) {
|
|
14
|
+
const hex = typeof author === 'string' ? AUTHOR.exec(author)?.[1] : undefined;
|
|
15
|
+
return hex === undefined ? null : Uint8Array.from({ length: 32 }, (_, i) => parseInt(hex.slice(i * 2, i * 2 + 2), 16));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// The first 8 hex digits of a valid author, or ''.
|
|
19
|
+
export const shortAuthor = author => isAuthor(author) ? author.slice(8, 16) : '';
|
|
20
|
+
|
|
21
|
+
// A 32-byte key as given, or as an author spells it; null for an author that is not one. A Uint8Array of another length throws.
|
|
22
|
+
function keyOf(input) {
|
|
23
|
+
if (input instanceof Uint8Array) {
|
|
24
|
+
if (input.length !== 32) throw new TypeError('a public key is 32 bytes');
|
|
25
|
+
return input;
|
|
26
|
+
}
|
|
27
|
+
return parseAuthor(input);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Reads the key 7 bits at a time, 36 groups at most (the last 4 bits are not read): 0-77 spell a letter (mod 26), 78-87 a digit,
|
|
31
|
+
// 88-127 end the name once it has 2 characters and are skipped before that. '' when fewer than 2 characters are spelled.
|
|
32
|
+
export function nicknameOf(input) {
|
|
33
|
+
const key = keyOf(input);
|
|
34
|
+
if (key === null) return '';
|
|
35
|
+
let name = '', bit = 0;
|
|
36
|
+
for (let group = 0; group < NICKNAME_GROUPS; group++) {
|
|
37
|
+
let v = 0;
|
|
38
|
+
for (let i = 0; i < 7; i++, bit++) v = (v << 1) | ((key[bit >> 3] >> (7 - (bit & 7))) & 1);
|
|
39
|
+
if (v < 78) name += String.fromCharCode(97 + (v % 26));
|
|
40
|
+
else if (v < 88) name += String(v - 78);
|
|
41
|
+
else if (name.length >= 2) return name;
|
|
42
|
+
}
|
|
43
|
+
return name.length >= 2 ? name : '';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// The key as a big-endian unsigned integer, in decimal, 78 digits wide; '' for an author that is not one.
|
|
47
|
+
export function tailOf(input) {
|
|
48
|
+
const key = keyOf(input);
|
|
49
|
+
return key === null ? '' : BigInt(`0x${Array.from(key, byte => byte.toString(16).padStart(2, '0')).join('')}`).toString().padStart(TAIL_LENGTH, '0');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function accordIdentity(author) {
|
|
53
|
+
const key = parseAuthor(author);
|
|
54
|
+
if (key === null) return null;
|
|
55
|
+
const tail = tailOf(key);
|
|
56
|
+
return { author, key, short: shortAuthor(author), name: nicknameOf(key), tail, tag: tail.slice(-4) };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// `name #tag` for an author whose key spells a nickname, its short form for one that spells none, `fallback` for a non-author.
|
|
60
|
+
export function identityTitle(author, fallback = '') {
|
|
61
|
+
const identity = accordIdentity(author);
|
|
62
|
+
if (identity === null) return fallback;
|
|
63
|
+
return identity.name === '' ? identity.short : `${identity.name} #${identity.tag}`;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// For each `{ stem, tail }`, the suffix of its decimal tail to show: `minDigits` at least, and as many more as it takes to differ
|
|
67
|
+
// from every other entry of the same non-empty stem. A suffix is one digit longer than the longest one it shares with another.
|
|
68
|
+
// Entries with the same whole tail are one person and never lengthen each other. '' for a tail that is not decimal digits.
|
|
69
|
+
export function disambiguateTails(entries, { minDigits = 4 } = {}) {
|
|
70
|
+
if (!Number.isInteger(minDigits) || minDigits < 1) throw new RangeError('minDigits is a positive integer');
|
|
71
|
+
const list = [...entries];
|
|
72
|
+
return list.map(({ stem, tail }) => {
|
|
73
|
+
if (typeof tail !== 'string' || !DIGITS.test(tail)) return '';
|
|
74
|
+
let digits = Math.min(minDigits, tail.length);
|
|
75
|
+
if (typeof stem === 'string' && stem !== '') {
|
|
76
|
+
for (const other of list) {
|
|
77
|
+
if (other.stem !== stem || typeof other.tail !== 'string' || !DIGITS.test(other.tail) || other.tail === tail) continue;
|
|
78
|
+
const limit = Math.min(tail.length, other.tail.length);
|
|
79
|
+
let same = 0;
|
|
80
|
+
while (same < limit && tail[tail.length - 1 - same] === other.tail[other.tail.length - 1 - same]) same++;
|
|
81
|
+
digits = Math.max(digits, Math.min(tail.length, same + 1));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return tail.slice(-digits);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Map of each valid author in `authors` (once) to its title: `name #suffix` with the suffix of disambiguateTails among those of
|
|
89
|
+
// the same nickname, or its short form when its key spells no nickname.
|
|
90
|
+
export function identityTitles(authors, { minDigits = 4 } = {}) {
|
|
91
|
+
const identities = [...new Set(authors)].map(accordIdentity).filter(identity => identity !== null);
|
|
92
|
+
const named = identities.filter(({ name }) => name !== '');
|
|
93
|
+
const suffixes = disambiguateTails(named.map(({ name, tail }) => ({ stem: name, tail })), { minDigits });
|
|
94
|
+
const titles = new Map(identities.filter(({ name }) => name === '').map(({ author, short }) => [author, short]));
|
|
95
|
+
named.forEach(({ author, name }, i) => titles.set(author, `${name} #${suffixes[i]}`));
|
|
96
|
+
return new Map(identities.map(({ author }) => [author, titles.get(author)]));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// A 5×5 grid, mirrored left to right (`grid[r][c] === grid[r][4 - c]`), 8 to 18 cells lit, the same for the same input always:
|
|
100
|
+
// from the bytes of a Uint8Array, of a valid author, or else the code points of its text. FNV-1a seeds, mulberry32 draws.
|
|
101
|
+
export function identiconPattern(input) {
|
|
102
|
+
let bytes;
|
|
103
|
+
if (input instanceof Uint8Array) bytes = input;
|
|
104
|
+
else {
|
|
105
|
+
const text = String(input ?? '');
|
|
106
|
+
bytes = parseAuthor(text) ?? [...text].map(ch => ch.codePointAt(0));
|
|
107
|
+
}
|
|
108
|
+
let seed = 0x811c9dc5;
|
|
109
|
+
for (const byte of bytes) seed = Math.imul(seed ^ byte, 0x01000193) >>> 0;
|
|
110
|
+
for (;;) {
|
|
111
|
+
seed = (seed + 0x6d2b79f5) >>> 0;
|
|
112
|
+
let t = seed;
|
|
113
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
114
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
115
|
+
const draw = (t ^ (t >>> 14)) >>> 0;
|
|
116
|
+
const grid = Array.from({ length: 5 }, (_, r) => {
|
|
117
|
+
const half = [0, 1, 2].map(c => ((draw >>> (r * 3 + c)) & 1) === 1);
|
|
118
|
+
return [half[0], half[1], half[2], half[1], half[0]];
|
|
119
|
+
});
|
|
120
|
+
const active = grid.flat().filter(Boolean).length;
|
|
121
|
+
if (active >= 8 && active <= 18) return grid;
|
|
122
|
+
}
|
|
123
|
+
}
|
package/agent.mjs
CHANGED
|
@@ -13,6 +13,13 @@ export const AGENT_SCHEMAS = Object.fromEntries(readdirSync(dir).filter(file =>
|
|
|
13
13
|
const schemas = Object.values(AGENT_SCHEMAS), ajv = newAjv({ ownProperties: true });
|
|
14
14
|
valueKeywords(ajv, {});
|
|
15
15
|
ajv.addFormat('date-parse', value => Number.isFinite(Date.parse(value)));
|
|
16
|
+
// RFC 3339 date-time, strict: a real calendar day and a zone, unlike the lenient `date-parse`.
|
|
17
|
+
ajv.addFormat('date-time', value => {
|
|
18
|
+
const parts = /^(\d{4})-(\d{2})-(\d{2})[Tt]([01]\d|2[0-3]):[0-5]\d:([0-5]\d|60)(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/.exec(value);
|
|
19
|
+
if (parts === null) return false;
|
|
20
|
+
const day = new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3]));
|
|
21
|
+
return day.getUTCMonth() === +parts[2] - 1 && day.getUTCDate() === +parts[3];
|
|
22
|
+
});
|
|
16
23
|
// Entries of one model are merged by adding the four core counts; each sum must stay a safe integer.
|
|
17
24
|
const CORE_COUNTS = ['inputTokens', 'outputTokens', 'cachedReadTokens', 'cachedWriteTokens'];
|
|
18
25
|
ajv.addKeyword({
|
package/docs/agent-protocol.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Agent 接入协议
|
|
2
2
|
|
|
3
3
|
Coda 用 [ACP](https://agentclientprotocol.com)(Agent Client Protocol)接 Agent,把[会话指令](#会话指令)交给 Agent(ACP 的 `systemPrompt`;不收它的由 Coda 在第一轮送入),
|
|
4
|
-
可选支持[插话](#插话)(`_session/steering`),另收 Agent 活动报告(`_coda/wait`)、入口[没适配的东西](#没适配的东西)(`_coda/unrecognized`)、[执行失败事实](#执行失败)(ACP 错误数据里的 `_meta.coda.failure`)、[工具调用的审核](#工具调用的审核)(`_meta.coda.review`)和[每轮的用量](#每轮的用量)(`session/prompt` 答复的 `usage`)。本文是这份协议的唯一正文,写给要让一个 Agent(比如 Cursor 的)接入 Coda 的人:照它实现,
|
|
4
|
+
可选支持[插话](#插话)(`_session/steering`),另收 Agent 活动报告(`_coda/wait`)、入口[没适配的东西](#没适配的东西)(`_coda/unrecognized`)、账号[额度](#账号额度)(`_coda/quota`)、[执行失败事实](#执行失败)(ACP 错误数据里的 `_meta.coda.failure`)、[工具调用的审核](#工具调用的审核)(`_meta.coda.review`)和[每轮的用量](#每轮的用量)(`session/prompt` 答复的 `usage`)。本文是这份协议的唯一正文,写给要让一个 Agent(比如 Cursor 的)接入 Coda 的人:照它实现,
|
|
5
5
|
Coda 就知道这个 Agent 在一轮之外还在做什么,如实显示、不回收它的进程,把它处理这些东西时的输出、审批和提问放进正确的一轮,
|
|
6
6
|
并在这次调用结清时把结果只交回一次。产品上这些规则的来由见会话行为契约(Coda 的 docs/session-contracts.md)与完成唤醒契约(Coda 的 docs/subagent-design.md「完成唤醒契约」)。
|
|
7
7
|
|
|
@@ -19,6 +19,7 @@ ACP 的消息、内容块、会话指令和能力由 ACP SDK 校验,这里只
|
|
|
19
19
|
| `_coda/wait` 通知参数 | [wait.json](../schemas/agent/wait.json) |
|
|
20
20
|
| `_coda/wait/stop` 参数、答复 | [wait-stop.json](../schemas/agent/wait-stop.json) 的 `$defs/params`、`$defs/result` |
|
|
21
21
|
| `_coda/unrecognized` 通知参数 | [unrecognized.json](../schemas/agent/unrecognized.json) |
|
|
22
|
+
| `_coda/quota` 通知参数 | [quota.json](../schemas/agent/quota.json) |
|
|
22
23
|
| `_coda/session/compact` 参数、答复 | [compact.json](../schemas/agent/compact.json) 的 `$defs/params`、`$defs/result` |
|
|
23
24
|
| `_coda/remote/code` 参数、答复 | [remote-code.json](../schemas/agent/remote-code.json) 的 `$defs/params`、`$defs/result` |
|
|
24
25
|
| `_coda/remote` 参数、答复 | [remote.json](../schemas/agent/remote.json) 的 `$defs/params`、`$defs/result` |
|
|
@@ -70,6 +71,7 @@ Coda 是 ACP 的客户端。每个会话的 Agent 进程由一个会话托管进
|
|
|
70
71
|
| `session/update` | Agent → Coda | 回复、思考、工具调用(可带它的[审核](#工具调用的审核))、计划、用量(可带给流程的[数据](#用量里的数据))、可用命令、会话信息;只收本会话与它的子会话的 |
|
|
71
72
|
| `session/request_permission`、`elicitation/create`(`mode: form` 或 `mode: url`) | Agent → Coda | 审批与提问,作为卡片交给用户;只在一轮里受理(轮次限制无条件,见[规则](#规则)第 3 条);拦截只适用于轮内 `mode: form` 表单:若被流程声明拦下(`coda:questionDenial`),不展示卡片,当场回 `decline` 并带 `_meta.coda.reason`(见下文「宿主当场拒绝表单」) |
|
|
72
73
|
| `_coda/unrecognized` | Agent → Coda | [没适配的东西](#没适配的东西):入口报上游发来、它没按登记处理的输出,以及模型能用、它没登记的原生工具;用户因此没看到的在会话里记一条说明,都计入遥测 |
|
|
74
|
+
| `_coda/quota` | Agent → Coda | [账号额度](#账号额度):Agent 把账号的额度窗口读数报给 Coda,由 Coda 记到账号名下 |
|
|
73
75
|
| `_coda/remote/code`、`_coda/remote` | Agent → Coda、Coda → Agent | [远端入口](#远端入口):Agent 要绑定码;Coda 转交远端来的请求 |
|
|
74
76
|
| `$/cancel_request` | Agent → Coda | 撤回它发出、还没得到回答的审批或提问:卡片失效,Coda 回 `cancelled`(表单回 `cancel`),之后用户的回答不再转交 |
|
|
75
77
|
|
|
@@ -524,6 +526,58 @@ Coda 封装的 Agent 会自己长出新能力:上游 Agent 升级、服务端
|
|
|
524
526
|
{"jsonrpc":"2.0","method":"_coda/unrecognized","params":{"sessionId":"s1","kind":"tool","name":"tool:functions.request_user_input_async","lost":false}}
|
|
525
527
|
```
|
|
526
528
|
|
|
529
|
+
## 账号额度
|
|
530
|
+
|
|
531
|
+
通知参数及字段上限见 [quota.json](../schemas/agent/quota.json)。
|
|
532
|
+
|
|
533
|
+
额度属于账号,不属于某一轮:它可能在失败的轮次里更新,也可能在两轮之间更新。[每轮的用量](#每轮的用量)(`usage`)属于轮次,只报这一轮新用掉的 token;两者互不替代。
|
|
534
|
+
`_coda/quota` 让 Agent 入口把上游报来的账号额度交给 Coda,由 Coda 写进它自己会同步的记录(`coda/agent-quota@1`),资源页直接读这条记录;记录的形状由 Coda 定义,不在本协议里。
|
|
535
|
+
|
|
536
|
+
**通知**:Agent 发给 Coda(没有 `id`,不回复),和 `session/update`、`_coda/wait` 走同一个顺序。没有对应的能力声明。
|
|
537
|
+
|
|
538
|
+
| 字段 | 必填 | 说明 |
|
|
539
|
+
| --- | --- | --- |
|
|
540
|
+
| `sessionId` | 是 | 发这条通知的会话,至多 200 字 |
|
|
541
|
+
| `resourceType` | 是 | 插件明写的、它自己 `coda/resource@1` 资源组的 key(Claude 填 `limits`);1 到 256 个字符,不含 NUL,与资源组 key 的规矩相同。协议不替插件取默认值 |
|
|
542
|
+
| `accountId` | 是 | 插件给的稳定账号标识,1 到 128 个字符,不含 NUL,不含明文(不是邮箱、用户名或令牌)。Coda 靠它跨机器把同一账号的记录合到一起。Claude 用规范化邮箱 SHA-256 的前 32 位十六进制。**它是可关联的标识,不是匿名的**:知道邮箱的人能算出同一个值,同一账号在不同机器上的值相同 |
|
|
543
|
+
| `windows` | 是 | 额度窗口,1 到 16 项 |
|
|
544
|
+
|
|
545
|
+
`windows` 的每一项都是对象,四个字段都必填,不许带别的键:
|
|
546
|
+
|
|
547
|
+
| 字段 | 说明 |
|
|
548
|
+
| --- | --- |
|
|
549
|
+
| `id` | 稳定的窗口 ID,如 `five_hour`,1 到 64 个字符,不含 NUL |
|
|
550
|
+
| `label` | 给人看的标签,如「5 小时」,1 到 64 个字符,不含 NUL |
|
|
551
|
+
| `usedFraction` | 已用的比例,0 到 1 的数(含两端) |
|
|
552
|
+
| `resetsAt` | 这个窗口重置的时刻,UTC,须为 `YYYY-MM-DDTHH:MM:SS`,可带 1–9 位小数秒,以 `Z` 结尾,不接受时区偏移 |
|
|
553
|
+
|
|
554
|
+
四个参数字段都必填,通知不许带别的键。schema 表达不了的约束由宿主校验:
|
|
555
|
+
|
|
556
|
+
- 一条通知里窗口 `id` 不能重复;
|
|
557
|
+
- 一条通知的 JSON 编码不超过 16 KiB;
|
|
558
|
+
- `usedFraction` 必须是有限数。
|
|
559
|
+
|
|
560
|
+
**语义:窗口按局部更新。** 宿主把带来的窗口合并进这个账号已有的读数,按 `id` 逐个覆盖;这次没带的窗口保留原值,不会因为没带就清掉。
|
|
561
|
+
|
|
562
|
+
**何时发**
|
|
563
|
+
|
|
564
|
+
- 每收到一条可归属的上游额度事件就发,不必自己去重,由宿主去重。
|
|
565
|
+
- 账号身份未知时不发。
|
|
566
|
+
- 这次查询走的是替代模型服务时不发:那时的额度不属于这个账号。
|
|
567
|
+
- 会话身份建立之前的事件不发。
|
|
568
|
+
|
|
569
|
+
**宿主怎么认**
|
|
570
|
+
|
|
571
|
+
- 插件取自这个会话的 Agent 注册来源;通知里没有、也不信任何自报的插件、机器或空间。
|
|
572
|
+
- 只认已建立的真实会话。[配置探测](#配置探测)期间和加载历史(`session/load`)期间收到的通知略过。
|
|
573
|
+
- 不暂存,不补发:略过的通知不会在会话建立后再处理,Agent 也不用重发。
|
|
574
|
+
- 校验不过的通知(缺字段、多余的键、取值越界、窗口 `id` 重复、超过 16 KiB 等)丢弃,不报错,不影响会话和轮次。
|
|
575
|
+
|
|
576
|
+
```json
|
|
577
|
+
{"jsonrpc":"2.0","method":"_coda/quota","params":{"sessionId":"s1","resourceType":"limits","accountId":"3f2b9c1e5a7d4f60b8c2e1a9d4c7f305","windows":[{"id":"five_hour","label":"5 小时","usedFraction":0.42,"resetsAt":"2026-11-28T10:00:00Z"}]}}
|
|
578
|
+
{"jsonrpc":"2.0","method":"_coda/quota","params":{"sessionId":"s1","resourceType":"limits","accountId":"3f2b9c1e5a7d4f60b8c2e1a9d4c7f305","windows":[{"id":"five_hour","label":"5 小时","usedFraction":0.61,"resetsAt":"2026-11-28T10:00:00Z"},{"id":"seven_day","label":"7 天","usedFraction":0.18,"resetsAt":"2026-12-02T04:00:00Z"}]}}
|
|
579
|
+
```
|
|
580
|
+
|
|
527
581
|
## 远端入口
|
|
528
582
|
|
|
529
583
|
本节是 Agent 会话的旧入口,随所有机器上的 grok-bot 0.4.0 卸载一起退役。
|
package/docs/protocol.md
CHANGED
|
@@ -800,6 +800,37 @@ status:
|
|
|
800
800
|
}
|
|
801
801
|
```
|
|
802
802
|
|
|
803
|
+
## Accord 身份的显示
|
|
804
|
+
|
|
805
|
+
`@coda-console/protocol/accord`(`accord.mjs`,类型在 `accord.d.mts`)是 Accord 公钥 `author`(`ed25519:<64 位小写十六进制>`)怎样给人看的唯一实现:Coda 的 Swift 客户端与后端、各插件都与它逐位一致,不各写一份。纯函数,零依赖,只用标准 JS(`Uint8Array`、`BigInt`),不 import 任何 `node:*` 模块、不用 `Buffer`,Node 与浏览器(WKWebView)的原生 ESM 都能直接加载。`test/accord.test.mjs` 守着这一点。
|
|
806
|
+
|
|
807
|
+
| 函数 | 约定 |
|
|
808
|
+
| --- | --- |
|
|
809
|
+
| `isAuthor(value)` | 是不是合法的 `author` |
|
|
810
|
+
| `parseAuthor(author)` | 合法给 32 字节 `Uint8Array`,否则 `null` |
|
|
811
|
+
| `shortAuthor(author)` | 合法给 `ed25519:` 后的前 8 位十六进制,否则 `''` |
|
|
812
|
+
| `nicknameOf(input)` | 公钥拼出的昵称;`input` 是 32 字节 `Uint8Array` 或 `author`。非 32 字节的 `Uint8Array` 抛 `TypeError`;非合法 `author` 或别的值给 `''`;拼不出 2 个字符给 `''` |
|
|
813
|
+
| `tailOf(input)` | 公钥按大端无符号整数写成的十进制,左补 `0` 到 78 位;输入规则同 `nicknameOf` |
|
|
814
|
+
| `accordIdentity(author)` | `{ author, key, short, name, tail, tag }`,`tag` 是 `tail` 的末 4 位;非法给 `null` |
|
|
815
|
+
| `identityTitle(author, fallback = '')` | 有昵称给 `name #tag`,没有昵称给 `short`,非法给 `fallback` |
|
|
816
|
+
| `disambiguateTails(entries, { minDigits = 4 })` | `entries` 是 `{ stem, tail }` 的数组或可迭代对象,返回等长的尾号后缀数组;`minDigits` 不是正整数抛 `RangeError` |
|
|
817
|
+
| `identityTitles(authors, { minDigits = 4 })` | 一组 `author`(可迭代,去重,只收合法的)到标题的 `Map`;有昵称的按昵称为主干消歧,没有昵称的给 `short` |
|
|
818
|
+
| `identiconPattern(input)` | 5×5 水平轴对称的布尔网格(`grid[r][c] === grid[r][4 - c]`),亮格 8 到 18 个;`input` 是 `Uint8Array`(按字节)、合法 `author`(按公钥)或别的文字(按字符码,空值当空串) |
|
|
819
|
+
|
|
820
|
+
**昵称**:公钥从第 0 字节最高位起每 7 位一组,至多读 36 组(最后 4 比特不读)。组的值 `v` 小于 78 是字母 `a` 起的第 `v % 26` 个,小于 88 是数字 `v - 78`;88 到 127 在昵称已有 2 个以上字符时结束,否则跳过这一组。读完后不足 2 个字符就没有昵称。
|
|
821
|
+
|
|
822
|
+
**撞号消歧**(`disambiguateTails`):每项的后缀至少 `minDigits` 位;同一个非空 `stem` 下,与另一个**尾号不同**的项比较,两者从最右位向左的公共后缀有 `same` 位,这一项就至少取 `same + 1` 位(不超过它自己的位数);完整尾号相同的项是同一个人,不互相加位,不会死循环。`tail` 不是非空的纯数字、或 `stem` 为空时不参与比较;`tail` 不是纯数字的项给 `''`。
|
|
823
|
+
|
|
824
|
+
**头像网格**:种子取字节的 FNV-1a,再用 mulberry32 取数,每次取数按 `draw >>> (行 * 3 + 列)` 读左 3 列并镜像,亮格数不在 8 到 18 就接着取下一个数。
|
|
825
|
+
|
|
826
|
+
共用测试向量 `vectors/accord.json` 随包导出(`@coda-console/protocol/vectors/accord.json`),Swift 的 `AccordChecks.swift`、后端与插件的测试直接引用它对齐,键如下:
|
|
827
|
+
|
|
828
|
+
- `identities`:每项 `{ hex, author, short, name, tail, tag, title }`,含全 0、全 `ff`、拼不出昵称与昵称到 36 个字符等边界;
|
|
829
|
+
- `invalidAuthors`:都不是合法 `author` 的字符串;
|
|
830
|
+
- `disambiguate`:每项 `{ name, minDigits, entries, suffixes }`;
|
|
831
|
+
- `identityTitles`:每项 `{ name, minDigits, authors, titles }`,用真实的 32 字节公钥构造同昵称、末 4 位十进制相同的撞号;`titles` 的键按 `Map` 的顺序;
|
|
832
|
+
- `identicons`:每项 `{ kind, input, rows }`,`rows` 是 5 行 0/1 字符串(1 是亮格),`kind` 为 `author` 或 `text`(非公钥的回退输入)。
|
|
833
|
+
|
|
803
834
|
## 版本
|
|
804
835
|
|
|
805
836
|
- 协议名里的大版本是协议自己的版本,和 npm 包版本、插件清单的 v2 独立。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coda-console/protocol",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.30.0",
|
|
4
4
|
"description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、协议定义与调用信封、流程方言与 Agent 接入协议",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"resource-protocol.mjs",
|
|
23
23
|
"frames.mjs",
|
|
24
24
|
"blob.mjs",
|
|
25
|
+
"accord.mjs",
|
|
26
|
+
"accord.d.mts",
|
|
27
|
+
"vectors",
|
|
25
28
|
"plugin.d.mts",
|
|
26
29
|
"CHANGELOG.md",
|
|
27
30
|
"stable"
|
|
@@ -37,6 +40,11 @@
|
|
|
37
40
|
"./protocol": "./protocol.mjs",
|
|
38
41
|
"./frames": "./frames.mjs",
|
|
39
42
|
"./blob": "./blob.mjs",
|
|
43
|
+
"./accord": {
|
|
44
|
+
"types": "./accord.d.mts",
|
|
45
|
+
"default": "./accord.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./vectors/accord.json": "./vectors/accord.json",
|
|
40
48
|
"./types": "./plugin.d.mts",
|
|
41
49
|
"./stable/*": "./stable/*"
|
|
42
50
|
},
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"direction": "agent-to-client",
|
|
18
18
|
"params": "unrecognized.json"
|
|
19
19
|
},
|
|
20
|
+
"_coda/quota": {
|
|
21
|
+
"kind": "notification",
|
|
22
|
+
"direction": "agent-to-client",
|
|
23
|
+
"params": "quota.json"
|
|
24
|
+
},
|
|
20
25
|
"_coda/session/compact": {
|
|
21
26
|
"kind": "request",
|
|
22
27
|
"direction": "client-to-agent",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://coda.pub/schemas/agent/v1/quota.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"description": "params 须为对象,且只带 sessionId、resourceType、accountId、windows",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"window": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"description": "windows 的每一项须为 { id, label, usedFraction, resetsAt },四个都必填,不带别的键",
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[^\\u0000]+$",
|
|
14
|
+
"x-length": 64,
|
|
15
|
+
"description": "id 须为 1 到 64 个字符、不含 NUL 的稳定窗口 ID"
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[^\\u0000]+$",
|
|
20
|
+
"x-length": 64,
|
|
21
|
+
"description": "label 须为 1 到 64 个字符、不含 NUL 的标签"
|
|
22
|
+
},
|
|
23
|
+
"usedFraction": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"minimum": 0,
|
|
26
|
+
"maximum": 1,
|
|
27
|
+
"description": "usedFraction 须为 0 到 1 的数"
|
|
28
|
+
},
|
|
29
|
+
"resetsAt": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "date-time",
|
|
32
|
+
"pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d{1,9})?Z$(?![\\s\\S])",
|
|
33
|
+
"description": "resetsAt 须为 YYYY-MM-DDTHH:MM:SS,可带 1–9 位小数秒,以 Z 结尾,不接受时区偏移"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"id",
|
|
38
|
+
"label",
|
|
39
|
+
"usedFraction",
|
|
40
|
+
"resetsAt"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"properties": {
|
|
46
|
+
"sessionId": {
|
|
47
|
+
"allOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "缺 sessionId",
|
|
51
|
+
"minLength": 1
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "sessionId 须为不超过 200 字的文本",
|
|
56
|
+
"x-length": 200
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"resourceType": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[^\\u0000]+$",
|
|
63
|
+
"x-length": 256,
|
|
64
|
+
"description": "resourceType 须为 1 到 256 个字符、不含 NUL 的资源类型 key"
|
|
65
|
+
},
|
|
66
|
+
"accountId": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^[^\\u0000]+$",
|
|
69
|
+
"x-length": 128,
|
|
70
|
+
"description": "accountId 须为 1 到 128 个字符、不含 NUL 的稳定账号标识"
|
|
71
|
+
},
|
|
72
|
+
"windows": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"minItems": 1,
|
|
75
|
+
"maxItems": 16,
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "#/$defs/window"
|
|
78
|
+
},
|
|
79
|
+
"description": "windows 须为 1 到 16 项的数组"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"sessionId",
|
|
84
|
+
"resourceType",
|
|
85
|
+
"accountId",
|
|
86
|
+
"windows"
|
|
87
|
+
],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
{
|
|
2
|
+
"identities": [
|
|
3
|
+
{
|
|
4
|
+
"hex": "24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
5
|
+
"author": "ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
6
|
+
"short": "24005142",
|
|
7
|
+
"name": "sakura",
|
|
8
|
+
"tail": "016283823373196459620642706821646928142256768952056557996360219804530892538283",
|
|
9
|
+
"tag": "8283",
|
|
10
|
+
"title": "sakura #8283"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"hex": "390819ab193264c993264c993264c993264c993264c993264c993264c993270f",
|
|
14
|
+
"author": "ed25519:390819ab193264c993264c993264c993264c993264c993264c993264c993270f",
|
|
15
|
+
"short": "390819ab",
|
|
16
|
+
"name": "coda",
|
|
17
|
+
"tail": "025796144302227499116560651570427453346426747217764480651352477067654213084943",
|
|
18
|
+
"tag": "4943",
|
|
19
|
+
"title": "coda #4943"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"hex": "0438180a1fed5ab56ad5ab56ad5ab56ad5ab56ad5ab56ad5ab56ad5ab56affff",
|
|
23
|
+
"author": "ed25519:0438180a1fed5ab56ad5ab56ad5ab56ad5ab56ad5ab56ad5ab56ad5ab56affff",
|
|
24
|
+
"short": "0438180a",
|
|
25
|
+
"name": "coda2",
|
|
26
|
+
"tail": "001908360744834767670932787230931174860391892938896223435717190565378994667519",
|
|
27
|
+
"tag": "7519",
|
|
28
|
+
"title": "coda2 #7519"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"hex": "b1ff20abe86c0000000000000000000000000000000000000000000000000000",
|
|
32
|
+
"author": "ed25519:b1ff20abe86c0000000000000000000000000000000000000000000000000000",
|
|
33
|
+
"short": "b1ff20ab",
|
|
34
|
+
"name": "kh",
|
|
35
|
+
"tail": "080510145691267496417075659893654907346422871117988330772834389711103878758400",
|
|
36
|
+
"tag": "8400",
|
|
37
|
+
"title": "kh #8400"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"hex": "9d56c050a142850a142850a142850a142850a142850a142850a142850a142710",
|
|
41
|
+
"author": "ed25519:9d56c050a142850a142850a142850a142850a142850a142850a142850a142710",
|
|
42
|
+
"short": "9d56c050",
|
|
43
|
+
"name": "07",
|
|
44
|
+
"tail": "071166393384220724757113098518208155870811606365958828344208064729141635983120",
|
|
45
|
+
"tag": "3120",
|
|
46
|
+
"title": "07 #3120"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"hex": "9b5c04eb10204081020408102040810204081020408102040810204081021234",
|
|
50
|
+
"author": "ed25519:9b5c04eb10204081020408102040810204081020408102040810204081021234",
|
|
51
|
+
"short": "9b5c04eb",
|
|
52
|
+
"name": "z9a0",
|
|
53
|
+
"tail": "070271075404637019855828276758999161743191196202072788924145437593309148222004",
|
|
54
|
+
"tag": "2004",
|
|
55
|
+
"title": "z9a0 #2004"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"hex": "3203ffffffffffffffffffffffffffffffffffffffffffffffffffffffff002a",
|
|
59
|
+
"author": "ed25519:3203ffffffffffffffffffffffffffffffffffffffffffffffffffffffff002a",
|
|
60
|
+
"short": "3203ffff",
|
|
61
|
+
"name": "za",
|
|
62
|
+
"tail": "022622709817422432955984541199512328676655103815595425139789045801350703546410",
|
|
63
|
+
"tag": "6410",
|
|
64
|
+
"title": "za #6410"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"hex": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
68
|
+
"author": "ed25519:0000000000000000000000000000000000000000000000000000000000000000",
|
|
69
|
+
"short": "00000000",
|
|
70
|
+
"name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
71
|
+
"tail": "000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
72
|
+
"tag": "0000",
|
|
73
|
+
"title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa #0000"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"hex": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
77
|
+
"author": "ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
78
|
+
"short": "ffffffff",
|
|
79
|
+
"name": "",
|
|
80
|
+
"tail": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
|
|
81
|
+
"tag": "9935",
|
|
82
|
+
"title": "ffffffff"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"hex": "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
|
|
86
|
+
"author": "ed25519:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
|
|
87
|
+
"short": "00010203",
|
|
88
|
+
"name": "aaggyqkgdobq2synhd",
|
|
89
|
+
"tail": "000001780731860627700044960722568376592200742329637303199754547598369979440671",
|
|
90
|
+
"tag": "0671",
|
|
91
|
+
"title": "aaggyqkgdobq2synhd #0671"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"hex": "66c8aec217cac5fa9829e4e314c2dfe6f3b3710cbf2c4b4df462c333565b4e27",
|
|
95
|
+
"author": "ed25519:66c8aec217cac5fa9829e4e314c2dfe6f3b3710cbf2c4b4df462c333565b4e27",
|
|
96
|
+
"short": "66c8aec2",
|
|
97
|
+
"name": "zyv",
|
|
98
|
+
"tail": "046490486105048442293641588531420323991210115029903945753585556465004131864103",
|
|
99
|
+
"tag": "4103",
|
|
100
|
+
"title": "zyv #4103"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"hex": "2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
104
|
+
"author": "ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
105
|
+
"short": "2e4b9cc2",
|
|
106
|
+
"name": "xs",
|
|
107
|
+
"tail": "020939986474356556387344986264546814587009115178813918053369159061515022604084",
|
|
108
|
+
"tag": "4084",
|
|
109
|
+
"title": "xs #4084"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"hex": "01ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
113
|
+
"author": "ed25519:01ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
114
|
+
"short": "01ffffff",
|
|
115
|
+
"name": "",
|
|
116
|
+
"tail": "000904625697166532776746648320380374280103671755200316906558262375061821325311",
|
|
117
|
+
"tag": "5311",
|
|
118
|
+
"title": "01ffffff"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"invalidAuthors": [
|
|
122
|
+
"",
|
|
123
|
+
"ed25519:",
|
|
124
|
+
"ed25519:abc",
|
|
125
|
+
"24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
126
|
+
"ed25519:24005142202C7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF01AB",
|
|
127
|
+
" ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
128
|
+
"ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab0",
|
|
129
|
+
"ed25519:4005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
130
|
+
"ed25519:gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg",
|
|
131
|
+
"ed448:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab"
|
|
132
|
+
],
|
|
133
|
+
"disambiguate": [
|
|
134
|
+
{
|
|
135
|
+
"name": "four digits stay four when nothing collides",
|
|
136
|
+
"minDigits": 4,
|
|
137
|
+
"entries": [
|
|
138
|
+
{
|
|
139
|
+
"stem": "a",
|
|
140
|
+
"tail": "12345678"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"stem": "a",
|
|
144
|
+
"tail": "87654321"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"stem": "b",
|
|
148
|
+
"tail": "0000"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"suffixes": [
|
|
152
|
+
"5678",
|
|
153
|
+
"4321",
|
|
154
|
+
"0000"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "a shared last four goes to five",
|
|
159
|
+
"minDigits": 4,
|
|
160
|
+
"entries": [
|
|
161
|
+
{
|
|
162
|
+
"stem": "a",
|
|
163
|
+
"tail": "9904084"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"stem": "a",
|
|
167
|
+
"tail": "9914084"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"suffixes": [
|
|
171
|
+
"04084",
|
|
172
|
+
"14084"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "layers of sharing go to five, six and seven",
|
|
177
|
+
"minDigits": 4,
|
|
178
|
+
"entries": [
|
|
179
|
+
{
|
|
180
|
+
"stem": "a",
|
|
181
|
+
"tail": "5551234"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"stem": "a",
|
|
185
|
+
"tail": "5541234"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"stem": "a",
|
|
189
|
+
"tail": "5441234"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"stem": "a",
|
|
193
|
+
"tail": "4441234"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"suffixes": [
|
|
197
|
+
"51234",
|
|
198
|
+
"541234",
|
|
199
|
+
"5441234",
|
|
200
|
+
"4441234"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "another stem does not lengthen it",
|
|
205
|
+
"minDigits": 4,
|
|
206
|
+
"entries": [
|
|
207
|
+
{
|
|
208
|
+
"stem": "a",
|
|
209
|
+
"tail": "9904084"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"stem": "b",
|
|
213
|
+
"tail": "9914084"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"stem": "",
|
|
217
|
+
"tail": "1114084"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"stem": "",
|
|
221
|
+
"tail": "2224084"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"suffixes": [
|
|
225
|
+
"4084",
|
|
226
|
+
"4084",
|
|
227
|
+
"4084",
|
|
228
|
+
"4084"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "the same whole tail never loops",
|
|
233
|
+
"minDigits": 4,
|
|
234
|
+
"entries": [
|
|
235
|
+
{
|
|
236
|
+
"stem": "a",
|
|
237
|
+
"tail": "1234567"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"stem": "a",
|
|
241
|
+
"tail": "1234567"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"stem": "a",
|
|
245
|
+
"tail": "7234567"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"suffixes": [
|
|
249
|
+
"1234567",
|
|
250
|
+
"1234567",
|
|
251
|
+
"7234567"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "a smaller minimum",
|
|
256
|
+
"minDigits": 2,
|
|
257
|
+
"entries": [
|
|
258
|
+
{
|
|
259
|
+
"stem": "a",
|
|
260
|
+
"tail": "12345"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"stem": "a",
|
|
264
|
+
"tail": "67845"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"stem": "b",
|
|
268
|
+
"tail": "999"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"suffixes": [
|
|
272
|
+
"345",
|
|
273
|
+
"845",
|
|
274
|
+
"99"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "a larger minimum",
|
|
279
|
+
"minDigits": 6,
|
|
280
|
+
"entries": [
|
|
281
|
+
{
|
|
282
|
+
"stem": "a",
|
|
283
|
+
"tail": "123456789"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"stem": "a",
|
|
287
|
+
"tail": "223456789"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"suffixes": [
|
|
291
|
+
"123456789",
|
|
292
|
+
"223456789"
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "a minimum of one",
|
|
297
|
+
"minDigits": 1,
|
|
298
|
+
"entries": [
|
|
299
|
+
{
|
|
300
|
+
"stem": "a",
|
|
301
|
+
"tail": "10"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"stem": "a",
|
|
305
|
+
"tail": "20"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"stem": "a",
|
|
309
|
+
"tail": "30"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"suffixes": [
|
|
313
|
+
"10",
|
|
314
|
+
"20",
|
|
315
|
+
"30"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "a tail shorter than the minimum is whole",
|
|
320
|
+
"minDigits": 4,
|
|
321
|
+
"entries": [
|
|
322
|
+
{
|
|
323
|
+
"stem": "a",
|
|
324
|
+
"tail": "12"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"stem": "a",
|
|
328
|
+
"tail": "012"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"suffixes": [
|
|
332
|
+
"12",
|
|
333
|
+
"012"
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "tails of different lengths",
|
|
338
|
+
"minDigits": 4,
|
|
339
|
+
"entries": [
|
|
340
|
+
{
|
|
341
|
+
"stem": "a",
|
|
342
|
+
"tail": "123"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"stem": "a",
|
|
346
|
+
"tail": "0123"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"stem": "a",
|
|
350
|
+
"tail": "00123"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"suffixes": [
|
|
354
|
+
"123",
|
|
355
|
+
"0123",
|
|
356
|
+
"00123"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "what is no decimal tail gives nothing",
|
|
361
|
+
"minDigits": 4,
|
|
362
|
+
"entries": [
|
|
363
|
+
{
|
|
364
|
+
"stem": "a",
|
|
365
|
+
"tail": ""
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"stem": "a",
|
|
369
|
+
"tail": "12a4"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"stem": "a",
|
|
373
|
+
"tail": "-123"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"stem": "a",
|
|
377
|
+
"tail": 5
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"stem": "a"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"stem": "a",
|
|
384
|
+
"tail": "1234"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"suffixes": [
|
|
388
|
+
"",
|
|
389
|
+
"",
|
|
390
|
+
"",
|
|
391
|
+
"",
|
|
392
|
+
"",
|
|
393
|
+
"1234"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"identityTitles": [
|
|
398
|
+
{
|
|
399
|
+
"name": "real keys of one nickname colliding on their last digits",
|
|
400
|
+
"minDigits": 4,
|
|
401
|
+
"authors": [
|
|
402
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
403
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89fbe44",
|
|
404
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8a11dd4",
|
|
405
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8aed974",
|
|
406
|
+
"ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
407
|
+
"ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
408
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
409
|
+
"ed25519:xyz",
|
|
410
|
+
"nope",
|
|
411
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734"
|
|
412
|
+
],
|
|
413
|
+
"titles": {
|
|
414
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734": "xs #2604084",
|
|
415
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89fbe44": "xs #14084",
|
|
416
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8a11dd4": "xs #704084",
|
|
417
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8aed974": "xs #3604084",
|
|
418
|
+
"ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab": "sakura #8283",
|
|
419
|
+
"ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": "ffffffff"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "a smaller minimum",
|
|
424
|
+
"minDigits": 2,
|
|
425
|
+
"authors": [
|
|
426
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
427
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89fbe44",
|
|
428
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8a11dd4",
|
|
429
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8aed974",
|
|
430
|
+
"ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
431
|
+
"ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
432
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734",
|
|
433
|
+
"ed25519:xyz",
|
|
434
|
+
"nope",
|
|
435
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734"
|
|
436
|
+
],
|
|
437
|
+
"titles": {
|
|
438
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89f9734": "xs #2604084",
|
|
439
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e89fbe44": "xs #14084",
|
|
440
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8a11dd4": "xs #704084",
|
|
441
|
+
"ed25519:2e4b9cc2428beb7bff6a56c14d7304e472a23e890e91ef0a6b0b0380e8aed974": "xs #3604084",
|
|
442
|
+
"ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab": "sakura #83",
|
|
443
|
+
"ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": "ffffffff"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"identicons": [
|
|
448
|
+
{
|
|
449
|
+
"kind": "author",
|
|
450
|
+
"input": "ed25519:0000000000000000000000000000000000000000000000000000000000000000",
|
|
451
|
+
"rows": [
|
|
452
|
+
"10001",
|
|
453
|
+
"10001",
|
|
454
|
+
"11111",
|
|
455
|
+
"01010",
|
|
456
|
+
"10101"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"kind": "author",
|
|
461
|
+
"input": "ed25519:24005142202c7fffffffffffffffffffffffffffffffffffffffffffffff01ab",
|
|
462
|
+
"rows": [
|
|
463
|
+
"00000",
|
|
464
|
+
"00000",
|
|
465
|
+
"01010",
|
|
466
|
+
"11111",
|
|
467
|
+
"11011"
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "author",
|
|
472
|
+
"input": "ed25519:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
|
|
473
|
+
"rows": [
|
|
474
|
+
"10101",
|
|
475
|
+
"01010",
|
|
476
|
+
"00100",
|
|
477
|
+
"00000",
|
|
478
|
+
"10101"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"kind": "author",
|
|
483
|
+
"input": "ed25519:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
484
|
+
"rows": [
|
|
485
|
+
"10001",
|
|
486
|
+
"00000",
|
|
487
|
+
"10101",
|
|
488
|
+
"01110",
|
|
489
|
+
"10101"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"kind": "text",
|
|
494
|
+
"input": "coda",
|
|
495
|
+
"rows": [
|
|
496
|
+
"10001",
|
|
497
|
+
"00100",
|
|
498
|
+
"10101",
|
|
499
|
+
"11111",
|
|
500
|
+
"01010"
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"kind": "text",
|
|
505
|
+
"input": "",
|
|
506
|
+
"rows": [
|
|
507
|
+
"10101",
|
|
508
|
+
"00100",
|
|
509
|
+
"01110",
|
|
510
|
+
"10101",
|
|
511
|
+
"10001"
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"kind": "text",
|
|
516
|
+
"input": "ed25519:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
517
|
+
"rows": [
|
|
518
|
+
"10101",
|
|
519
|
+
"11011",
|
|
520
|
+
"11111",
|
|
521
|
+
"11011",
|
|
522
|
+
"10001"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"kind": "text",
|
|
527
|
+
"input": "ed25519:abc",
|
|
528
|
+
"rows": [
|
|
529
|
+
"00000",
|
|
530
|
+
"10101",
|
|
531
|
+
"01110",
|
|
532
|
+
"00000",
|
|
533
|
+
"10001"
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"kind": "text",
|
|
538
|
+
"input": "好友 😀",
|
|
539
|
+
"rows": [
|
|
540
|
+
"10001",
|
|
541
|
+
"00100",
|
|
542
|
+
"10101",
|
|
543
|
+
"10101",
|
|
544
|
+
"11111"
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
}
|