@monarchic-ai/monarchic-agent-protocol 0.1.0 → 0.1.3
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/README.md +29 -8
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -217,11 +217,11 @@ use monarchic_agent_protocol::{AgentRole, Task, PROTOCOL_VERSION};
|
|
|
217
217
|
let task = Task {
|
|
218
218
|
version: PROTOCOL_VERSION.to_string(),
|
|
219
219
|
task_id: "task-123".to_string(),
|
|
220
|
-
role: AgentRole::Dev,
|
|
220
|
+
role: AgentRole::Dev as i32,
|
|
221
221
|
goal: "Implement protocol".to_string(),
|
|
222
222
|
inputs: None,
|
|
223
223
|
constraints: None,
|
|
224
|
-
gates_required:
|
|
224
|
+
gates_required: Vec::new(),
|
|
225
225
|
run_context: None,
|
|
226
226
|
extensions: Default::default(),
|
|
227
227
|
};
|
|
@@ -242,6 +242,14 @@ const task: Task = {
|
|
|
242
242
|
};
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
+
## Go
|
|
246
|
+
|
|
247
|
+
Go module sources live under `src/go` with module path:
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
github.com/monarchic-ai/monarchic-agent-protocol/src/go
|
|
251
|
+
```
|
|
252
|
+
|
|
245
253
|
## Protobuf
|
|
246
254
|
|
|
247
255
|
The v1 protobuf schema lives at `schemas/v1/monarchic_agent_protocol.proto`. It mirrors the JSON schema and uses `google.protobuf.Struct` for free-form objects (`inputs`, `constraints`, `evidence`, `extensions`). Additional JSON properties should be stored in the `extensions` field on each message.
|
|
@@ -274,19 +282,32 @@ from monarchic_agent_protocol import monarchic_agent_protocol_pb2 as map_pb2
|
|
|
274
282
|
## Validation and tooling
|
|
275
283
|
|
|
276
284
|
- `nix develop` provides Rust, Node, jq, Python `jsonschema`, and `protoc`.
|
|
277
|
-
- `nix flake check` validates JSON schemas, protobuf codegen, and package imports (PyPI + Rust + npm).
|
|
285
|
+
- `nix flake check` validates JSON schemas, protobuf codegen, and package imports (PyPI + Rust + npm + Go).
|
|
278
286
|
- JSON Schema test: `scripts/test-json-schema.sh`.
|
|
279
287
|
- Protobuf codegen test (all languages): `scripts/test-proto.sh`.
|
|
288
|
+
- Protobuf codegen (write to `src/<lang>`): `scripts/generate-proto.sh`.
|
|
280
289
|
|
|
281
290
|
## Nix packages
|
|
282
291
|
|
|
283
292
|
- `packages.default`: Rust crate for protocol types
|
|
284
|
-
- `packages.
|
|
285
|
-
- `packages.
|
|
286
|
-
- `packages.
|
|
287
|
-
- `packages.
|
|
293
|
+
- `packages.rs-lib`: Rust crate for protocol types (local)
|
|
294
|
+
- `packages.rs-registry-lib`: Rust crate from crates.io (registry)
|
|
295
|
+
- `packages.py-lib`: installable Python package (local)
|
|
296
|
+
- `packages.py-registry-lib`: PyPI package (registry)
|
|
288
297
|
- `packages.ts-lib`: TypeScript types package (local)
|
|
289
|
-
- `packages.
|
|
298
|
+
- `packages.ts-registry-lib`: npm registry package (types-only)
|
|
299
|
+
- `packages.go-lib`: Go module (local)
|
|
300
|
+
- `packages.go-registry-lib`: Go module from GitHub (registry)
|
|
301
|
+
- `packages.rb-lib`: Ruby gem (local)
|
|
302
|
+
- `packages.rb-registry-lib`: Ruby gem from RubyGems (registry)
|
|
303
|
+
- `packages.java-lib`: Java/Kotlin jar (local)
|
|
304
|
+
- `packages.java-registry-lib`: Java/Kotlin jar from JitPack (registry)
|
|
305
|
+
- `packages.dart-lib`: Dart package (local)
|
|
306
|
+
- `packages.dart-registry-lib`: Dart package from pub.dev (registry)
|
|
307
|
+
- `packages.csharp-lib`: C# package sources (local)
|
|
308
|
+
- `packages.csharp-registry-lib`: C# package from NuGet (registry)
|
|
309
|
+
- `packages.php-lib`: PHP package sources (local)
|
|
310
|
+
- `packages.php-registry-lib`: PHP package from Packagist (registry)
|
|
290
311
|
|
|
291
312
|
## CI and releases
|
|
292
313
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monarchic-ai/monarchic-agent-protocol",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v0.1.3",
|
|
4
4
|
"description": "Shared protocol types for Monarchic AI (TypeScript)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/monarchic-ai/monarchic-agent-protocol"
|
|
8
|
+
"url": "git+https://github.com/monarchic-ai/monarchic-agent-protocol.git"
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://github.com/monarchic-ai/monarchic-agent-protocol",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
11
14
|
"sideEffects": false,
|
|
12
15
|
"types": "src/ts/index.ts",
|
|
13
16
|
"exports": {
|