@handfly/protocol 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/dist/canonical.d.ts +4 -0
- package/dist/canonical.js +26 -0
- package/dist/canonical.js.map +1 -0
- package/dist/egress.d.ts +38 -0
- package/dist/egress.js +127 -0
- package/dist/egress.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +741 -0
- package/dist/schemas.js +127 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +27 -3
- package/schema/protocol.schema.json +988 -0
- package/README.md +0 -3
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const PROTOCOL_VERSION = 1;
|
|
3
|
+
export const MAX_FRAGMENT_BYTES = 8192;
|
|
4
|
+
export const NodeKind = z.enum([
|
|
5
|
+
"module", "class", "function", "method", "route", "view", "model", "model_field", "serializer",
|
|
6
|
+
"component", "hook", "test", "task", "signal_handler",
|
|
7
|
+
]);
|
|
8
|
+
export const EdgeKind = z.enum([
|
|
9
|
+
"calls", "imports", "reads", "writes", "tests", "renders", "routes_to", "http_calls", "inherits", "fk",
|
|
10
|
+
"handles_event", "enqueues", "signals", "contains",
|
|
11
|
+
]);
|
|
12
|
+
export const EdgeConfidence = z.enum(["resolved", "heuristic"]);
|
|
13
|
+
export const Origin = z.enum(["human", "agent", "unknown"]);
|
|
14
|
+
export const Language = z.enum(["python", "typescript", "javascript", "java", "csharp", "go", "php", "kotlin", "swift", "rust", "cpp", "shell", "hcl"]);
|
|
15
|
+
/** Identifier-ish strings only: names, paths, kinds. Structural summaries never carry literals or comments. */
|
|
16
|
+
const Name = z.string().min(1).max(512).regex(/^[^\n\r\t"'`]+$/, "names cannot contain quotes or newlines");
|
|
17
|
+
export const RepoNodeSummary = z.object({
|
|
18
|
+
id: z.string().regex(/^[0-9a-f]{40}$/),
|
|
19
|
+
kind: NodeKind,
|
|
20
|
+
qname: Name,
|
|
21
|
+
name: Name,
|
|
22
|
+
path: Name,
|
|
23
|
+
language: Language,
|
|
24
|
+
span: z.tuple([z.number().int().min(1), z.number().int().min(1)]),
|
|
25
|
+
loc: z.number().int().min(0),
|
|
26
|
+
complexity: z.number().int().min(0),
|
|
27
|
+
tags: z.array(z.string().regex(/^[a-z0-9_.:-]{1,64}$/)).max(32).default([]),
|
|
28
|
+
criticality: z.number().min(0).max(100).optional(),
|
|
29
|
+
criticality_terms: z.record(z.string(), z.number()).optional(),
|
|
30
|
+
origin: Origin.default("unknown"),
|
|
31
|
+
origin_fraction: z.number().min(0).max(1).optional(),
|
|
32
|
+
});
|
|
33
|
+
export const RepoEdgeSummary = z.object({
|
|
34
|
+
from: z.string().regex(/^[0-9a-f]{40}$/),
|
|
35
|
+
to: z.string().regex(/^[0-9a-f]{40}$/),
|
|
36
|
+
kind: EdgeKind,
|
|
37
|
+
confidence: EdgeConfidence,
|
|
38
|
+
line: z.number().int().min(0).optional(),
|
|
39
|
+
});
|
|
40
|
+
export const ConceptHit = z.object({
|
|
41
|
+
node_id: z.string().regex(/^[0-9a-f]{40}$/),
|
|
42
|
+
slug: z.string().regex(/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/),
|
|
43
|
+
confidence: z.number().min(0).max(1),
|
|
44
|
+
pattern: z.string().max(128),
|
|
45
|
+
});
|
|
46
|
+
export const StructureDelta = z.object({
|
|
47
|
+
snapshot: z.string().regex(/^[0-9a-f]{64}$/),
|
|
48
|
+
base_snapshot: z.string().regex(/^[0-9a-f]{64}$/).nullable(),
|
|
49
|
+
full: z.boolean(),
|
|
50
|
+
upsert_nodes: z.array(RepoNodeSummary),
|
|
51
|
+
delete_nodes: z.array(z.string().regex(/^[0-9a-f]{40}$/)),
|
|
52
|
+
upsert_edges: z.array(RepoEdgeSummary),
|
|
53
|
+
delete_edges: z.array(z.tuple([z.string(), z.string(), EdgeKind])),
|
|
54
|
+
concept_hits: z.array(ConceptHit),
|
|
55
|
+
stats: z.object({
|
|
56
|
+
files: z.number().int(),
|
|
57
|
+
lines: z.number().int(),
|
|
58
|
+
nodes: z.number().int(),
|
|
59
|
+
edges: z.number().int(),
|
|
60
|
+
resolution_rate: z.number().min(0).max(1),
|
|
61
|
+
duration_ms: z.number().int(),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
export const ItemType = z.enum([
|
|
65
|
+
"seeded_bug", "output_prediction", "flow_trace", "change_impact", "agent_diff_review", "explanation",
|
|
66
|
+
// Interactive formats (docs/design/propuesta-preguntas-y-aprendizaje.md): state at a checkpoint, failure triage, cloze.
|
|
67
|
+
"state_trace", "failure_triage", "cloze",
|
|
68
|
+
// Answers that run against the learner's own code on their machine (handfly verify).
|
|
69
|
+
"reverse_trace", "kill_mutant", "fix_bug", "query_count", "concept_check", "find_vuln", "cost_scale", "null_contract", "spot_difference", "parsons",
|
|
70
|
+
// N12: schedule two tasks until a read-modify-write loses an update.
|
|
71
|
+
"race_schedule",
|
|
72
|
+
]);
|
|
73
|
+
export const GradingMethod = z.enum(["line_locate", "exact_output", "choice", "ordered_set", "weighted_set", "rubric", "decision", "triage", "cloze", "local_exec", "count", "vuln", "cost", "contract", "spot", "race"]);
|
|
74
|
+
export const VerificationKind = z.enum(["execution", "structural", "static", "none"]);
|
|
75
|
+
export const ItemSpec = z.object({
|
|
76
|
+
fingerprint: z.string().regex(/^[0-9a-f]{64}$/),
|
|
77
|
+
template_key: z.string().max(128),
|
|
78
|
+
type: ItemType,
|
|
79
|
+
concepts: z.array(z.object({ slug: z.string(), weight: z.number().gt(0).max(1) })).min(1).max(4),
|
|
80
|
+
component_node_id: z.string().regex(/^[0-9a-f]{40}$/),
|
|
81
|
+
criticality: z.number().min(0).max(100),
|
|
82
|
+
difficulty: z.number().min(0).max(1),
|
|
83
|
+
grading_method: GradingMethod,
|
|
84
|
+
verification: z.object({
|
|
85
|
+
kind: VerificationKind,
|
|
86
|
+
all_edges_resolved: z.boolean().default(false),
|
|
87
|
+
evidence: z.record(z.string(), z.unknown()).default({}),
|
|
88
|
+
}),
|
|
89
|
+
voice_compatible: z.boolean(),
|
|
90
|
+
est_seconds: z.number().int().min(10).max(900),
|
|
91
|
+
/** Question parameters. For structural items: node ids and names only. */
|
|
92
|
+
prompt: z.record(z.string(), z.unknown()),
|
|
93
|
+
/** Answer key computed locally. Encrypted at rest on the server; never sent to the browser. */
|
|
94
|
+
expected: z.record(z.string(), z.unknown()),
|
|
95
|
+
fragment: z.object({ path: Name, start_line: z.number().int().min(1), end_line: z.number().int().min(1) }),
|
|
96
|
+
});
|
|
97
|
+
export const ItemSpecBatch = z.object({ specs: z.array(ItemSpec).max(2000) });
|
|
98
|
+
export const Fragment = z.object({
|
|
99
|
+
fingerprint: z.string().regex(/^[0-9a-f]{64}$/),
|
|
100
|
+
path: Name,
|
|
101
|
+
start_line: z.number().int().min(1),
|
|
102
|
+
end_line: z.number().int().min(1),
|
|
103
|
+
language: Language,
|
|
104
|
+
text: z.string(),
|
|
105
|
+
redactions: z.array(z.object({ rule: z.string(), line: z.number().int().min(1) })),
|
|
106
|
+
origin_lines: z.array(z.number().int().min(1)).default([]),
|
|
107
|
+
/** Run evidence shown beside the code (a real failing-test trace). Redacted like `text`; counts toward the 8 KB cap. */
|
|
108
|
+
evidence: z.string().max(4096).optional(),
|
|
109
|
+
});
|
|
110
|
+
export const FragmentBatch = z.object({ fragments: z.array(Fragment).max(50) });
|
|
111
|
+
export const EnvelopeKind = z.enum(["structure_delta", "item_specs", "fragments"]);
|
|
112
|
+
export const Envelope = z.object({
|
|
113
|
+
protocol_version: z.literal(PROTOCOL_VERSION),
|
|
114
|
+
repo_id: z.string().uuid(),
|
|
115
|
+
kind: EnvelopeKind,
|
|
116
|
+
created_at: z.string().datetime(),
|
|
117
|
+
items_count: z.number().int().min(0),
|
|
118
|
+
bytes: z.number().int().min(0),
|
|
119
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
120
|
+
payload: z.unknown(),
|
|
121
|
+
});
|
|
122
|
+
export const PAYLOAD_SCHEMAS = {
|
|
123
|
+
structure_delta: StructureDelta,
|
|
124
|
+
item_specs: ItemSpecBatch,
|
|
125
|
+
fragments: FragmentBatch,
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEvC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY;IAC9F,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB;CACtD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI;IACtG,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU;CACnD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAC5D,MAAM,CAAC,MA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C,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAGhF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;AAGnF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAC1C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,eAAe,EAAE,cAAc;IAC/B,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,aAAa;CAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handfly/protocol",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Handfly wire protocol (zod, source of truth) and EgressGuard, the only path bytes leave the machine.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./schema.json": "./schema/protocol.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"schema"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"zod": "^4.1.0",
|
|
22
|
+
"@handfly/secret-filter": "0.1.0"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://handfly.dev",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.json && node scripts/gen-schema.mjs",
|
|
27
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
28
|
+
"test": "vitest run"
|
|
29
|
+
}
|
|
6
30
|
}
|