@mplp/schema 1.0.4 → 1.0.6
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 +17 -0
- package/LICENSE.txt +201 -201
- package/README.md +25 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/dist/kernel-duties.d.ts +9 -0
- package/dist/kernel-duties.js +19 -0
- package/package.json +17 -7
- package/schemas/common/common-types.schema.json +49 -49
- package/schemas/common/events.schema.json +66 -66
- package/schemas/common/identifiers.schema.json +13 -13
- package/schemas/common/learning-sample.schema.json +194 -194
- package/schemas/common/metadata.schema.json +115 -113
- package/schemas/common/trace-base.schema.json +43 -43
- package/schemas/events/mplp-event-core.schema.json +58 -58
- package/schemas/events/mplp-graph-update-event.schema.json +58 -58
- package/schemas/events/mplp-map-event.schema.json +147 -147
- package/schemas/events/mplp-pipeline-stage-event.schema.json +56 -56
- package/schemas/events/mplp-runtime-execution-event.schema.json +58 -58
- package/schemas/events/mplp-sa-event.schema.json +109 -109
- package/schemas/integration/mplp-ci-event.schema.json +130 -130
- package/schemas/integration/mplp-file-update-event.schema.json +70 -70
- package/schemas/integration/mplp-git-event.schema.json +98 -98
- package/schemas/integration/mplp-tool-event.schema.json +83 -83
- package/schemas/invariants/integration-invariants.yaml +139 -147
- package/schemas/invariants/learning-invariants.yaml +98 -106
- package/schemas/invariants/map-invariants.yaml +65 -73
- package/schemas/invariants/observability-invariants.yaml +98 -106
- package/schemas/invariants/sa-invariants.yaml +64 -72
- package/schemas/kernel-duties.json +18 -0
- package/schemas/learning/mplp-learning-sample-core.schema.json +94 -94
- package/schemas/learning/mplp-learning-sample-delta.schema.json +137 -137
- package/schemas/learning/mplp-learning-sample-intent.schema.json +119 -119
- package/schemas/mplp-collab.schema.json +243 -243
- package/schemas/mplp-confirm.schema.json +226 -226
- package/schemas/mplp-context.schema.json +246 -246
- package/schemas/mplp-core.schema.json +183 -183
- package/schemas/mplp-dialog.schema.json +198 -198
- package/schemas/mplp-extension.schema.json +179 -179
- package/schemas/mplp-network.schema.json +230 -230
- package/schemas/mplp-plan.schema.json +193 -193
- package/schemas/mplp-role.schema.json +139 -139
- package/schemas/mplp-trace.schema.json +216 -216
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: ©
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-sa-event.schema.json",
|
|
5
|
-
"title": "MPLP SA Event v1.0",
|
|
6
|
-
"description": "Events emitted by a Single Agent (SA) execution in MPLP v1.0 protocol",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"event_id": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"format": "uuid",
|
|
12
|
-
"description": "Unique identifier for this event"
|
|
13
|
-
},
|
|
14
|
-
"event_type": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"enum": [
|
|
17
|
-
"SAInitialized",
|
|
18
|
-
"SAContextLoaded",
|
|
19
|
-
"SAPlanEvaluated",
|
|
20
|
-
"SAStepStarted",
|
|
21
|
-
"SAStepCompleted",
|
|
22
|
-
"SAStepFailed",
|
|
23
|
-
"SATraceEmitted",
|
|
24
|
-
"SACompleted"
|
|
25
|
-
],
|
|
26
|
-
"description": "Type of SA lifecycle event"
|
|
27
|
-
},
|
|
28
|
-
"timestamp": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "date-time",
|
|
31
|
-
"description": "ISO 8601 timestamp when event occurred"
|
|
32
|
-
},
|
|
33
|
-
"sa_id": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": "uuid",
|
|
36
|
-
"description": "Identifier of the SA instance emitting this event"
|
|
37
|
-
},
|
|
38
|
-
"context_id": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": "uuid",
|
|
41
|
-
"description": "Context ID bound to this SA execution"
|
|
42
|
-
},
|
|
43
|
-
"plan_id": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": "uuid",
|
|
46
|
-
"description": "Plan ID being executed by this SA"
|
|
47
|
-
},
|
|
48
|
-
"trace_id": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"format": "uuid",
|
|
51
|
-
"description": "Trace ID where this event is recorded"
|
|
52
|
-
},
|
|
53
|
-
"payload": {
|
|
54
|
-
"type": "object",
|
|
55
|
-
"description": "Event-specific data payload",
|
|
56
|
-
"additionalProperties": true
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": [
|
|
60
|
-
"event_id",
|
|
61
|
-
"event_type",
|
|
62
|
-
"timestamp",
|
|
63
|
-
"sa_id"
|
|
64
|
-
],
|
|
65
|
-
"additionalProperties": false,
|
|
66
|
-
"$defs": {
|
|
67
|
-
"step_started_payload": {
|
|
68
|
-
"type": "object",
|
|
69
|
-
"properties": {
|
|
70
|
-
"step_id": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"format": "uuid"
|
|
73
|
-
},
|
|
74
|
-
"agent_role": {
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"description": {
|
|
78
|
-
"type": "string"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"required": [
|
|
82
|
-
"step_id"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"step_completed_payload": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"properties": {
|
|
88
|
-
"step_id": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"format": "uuid"
|
|
91
|
-
},
|
|
92
|
-
"status": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"enum": [
|
|
95
|
-
"completed",
|
|
96
|
-
"failed"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
"result": {
|
|
100
|
-
"type": "object"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"required": [
|
|
104
|
-
"step_id",
|
|
105
|
-
"status"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://mplp.dev/schemas/v1.0/events/mplp-sa-event.schema.json",
|
|
5
|
+
"title": "MPLP SA Event v1.0",
|
|
6
|
+
"description": "Events emitted by a Single Agent (SA) execution in MPLP v1.0 protocol",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"event_id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uuid",
|
|
12
|
+
"description": "Unique identifier for this event"
|
|
13
|
+
},
|
|
14
|
+
"event_type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"SAInitialized",
|
|
18
|
+
"SAContextLoaded",
|
|
19
|
+
"SAPlanEvaluated",
|
|
20
|
+
"SAStepStarted",
|
|
21
|
+
"SAStepCompleted",
|
|
22
|
+
"SAStepFailed",
|
|
23
|
+
"SATraceEmitted",
|
|
24
|
+
"SACompleted"
|
|
25
|
+
],
|
|
26
|
+
"description": "Type of SA lifecycle event"
|
|
27
|
+
},
|
|
28
|
+
"timestamp": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time",
|
|
31
|
+
"description": "ISO 8601 timestamp when event occurred"
|
|
32
|
+
},
|
|
33
|
+
"sa_id": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "uuid",
|
|
36
|
+
"description": "Identifier of the SA instance emitting this event"
|
|
37
|
+
},
|
|
38
|
+
"context_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "uuid",
|
|
41
|
+
"description": "Context ID bound to this SA execution"
|
|
42
|
+
},
|
|
43
|
+
"plan_id": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "uuid",
|
|
46
|
+
"description": "Plan ID being executed by this SA"
|
|
47
|
+
},
|
|
48
|
+
"trace_id": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "uuid",
|
|
51
|
+
"description": "Trace ID where this event is recorded"
|
|
52
|
+
},
|
|
53
|
+
"payload": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"description": "Event-specific data payload",
|
|
56
|
+
"additionalProperties": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"event_id",
|
|
61
|
+
"event_type",
|
|
62
|
+
"timestamp",
|
|
63
|
+
"sa_id"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"$defs": {
|
|
67
|
+
"step_started_payload": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"step_id": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": "uuid"
|
|
73
|
+
},
|
|
74
|
+
"agent_role": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"description": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"step_id"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"step_completed_payload": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"step_id": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "uuid"
|
|
91
|
+
},
|
|
92
|
+
"status": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"enum": [
|
|
95
|
+
"completed",
|
|
96
|
+
"failed"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"result": {
|
|
100
|
+
"type": "object"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"step_id",
|
|
105
|
+
"status"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: ©
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "https://mplp.dev/schemas/v1.0/integration/mplp-ci-event.json",
|
|
5
|
-
"title": "MPLP CI Event v1.0",
|
|
6
|
-
"description": "CI pipeline execution status",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"ci_provider": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1,
|
|
13
|
-
"description": "CI platform identifier",
|
|
14
|
-
"examples": [
|
|
15
|
-
"github-actions",
|
|
16
|
-
"gitlab-ci",
|
|
17
|
-
"jenkins",
|
|
18
|
-
"circleci",
|
|
19
|
-
"travis-ci"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"pipeline_id": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"minLength": 1,
|
|
25
|
-
"description": "Pipeline or workflow identifier",
|
|
26
|
-
"examples": [
|
|
27
|
-
"build-and-test",
|
|
28
|
-
"deploy-production"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"run_id": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"minLength": 1,
|
|
34
|
-
"description": "Unique identifier for this pipeline run",
|
|
35
|
-
"examples": [
|
|
36
|
-
"123456789",
|
|
37
|
-
"run-2025-11-30-001"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"status": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": [
|
|
43
|
-
"pending",
|
|
44
|
-
"running",
|
|
45
|
-
"succeeded",
|
|
46
|
-
"failed",
|
|
47
|
-
"cancelled"
|
|
48
|
-
],
|
|
49
|
-
"description": "Current pipeline status"
|
|
50
|
-
},
|
|
51
|
-
"started_at": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"format": "date-time",
|
|
54
|
-
"description": "Pipeline start timestamp (ISO 8601)"
|
|
55
|
-
},
|
|
56
|
-
"completed_at": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"format": "date-time",
|
|
59
|
-
"description": "Pipeline completion timestamp (ISO 8601)"
|
|
60
|
-
},
|
|
61
|
-
"branch_name": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Git branch that triggered the pipeline"
|
|
64
|
-
},
|
|
65
|
-
"commit_id": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "Commit SHA that triggered the pipeline"
|
|
68
|
-
},
|
|
69
|
-
"run_url": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"format": "uri",
|
|
72
|
-
"description": "URL to view pipeline run details"
|
|
73
|
-
},
|
|
74
|
-
"duration_ms": {
|
|
75
|
-
"type": "integer",
|
|
76
|
-
"minimum": 0,
|
|
77
|
-
"description": "Pipeline execution duration in milliseconds"
|
|
78
|
-
},
|
|
79
|
-
"stages": {
|
|
80
|
-
"type": "array",
|
|
81
|
-
"items": {
|
|
82
|
-
"type": "object",
|
|
83
|
-
"additionalProperties": false,
|
|
84
|
-
"properties": {
|
|
85
|
-
"stage_name": {
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
"status": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"enum": [
|
|
91
|
-
"pending",
|
|
92
|
-
"running",
|
|
93
|
-
"succeeded",
|
|
94
|
-
"failed",
|
|
95
|
-
"cancelled",
|
|
96
|
-
"skipped"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
"duration_ms": {
|
|
100
|
-
"type": "integer",
|
|
101
|
-
"minimum": 0
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"stage_name",
|
|
106
|
-
"status"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"description": "Pipeline stages and their statuses (optional)"
|
|
110
|
-
},
|
|
111
|
-
"trigger_kind": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"enum": [
|
|
114
|
-
"push",
|
|
115
|
-
"pull_request",
|
|
116
|
-
"schedule",
|
|
117
|
-
"manual",
|
|
118
|
-
"tag",
|
|
119
|
-
"other"
|
|
120
|
-
],
|
|
121
|
-
"description": "What triggered the pipeline"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"required": [
|
|
125
|
-
"ci_provider",
|
|
126
|
-
"pipeline_id",
|
|
127
|
-
"run_id",
|
|
128
|
-
"status"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://mplp.dev/schemas/v1.0/integration/mplp-ci-event.json",
|
|
5
|
+
"title": "MPLP CI Event v1.0",
|
|
6
|
+
"description": "CI pipeline execution status",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"ci_provider": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"description": "CI platform identifier",
|
|
14
|
+
"examples": [
|
|
15
|
+
"github-actions",
|
|
16
|
+
"gitlab-ci",
|
|
17
|
+
"jenkins",
|
|
18
|
+
"circleci",
|
|
19
|
+
"travis-ci"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"pipeline_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"description": "Pipeline or workflow identifier",
|
|
26
|
+
"examples": [
|
|
27
|
+
"build-and-test",
|
|
28
|
+
"deploy-production"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"run_id": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1,
|
|
34
|
+
"description": "Unique identifier for this pipeline run",
|
|
35
|
+
"examples": [
|
|
36
|
+
"123456789",
|
|
37
|
+
"run-2025-11-30-001"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"status": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"pending",
|
|
44
|
+
"running",
|
|
45
|
+
"succeeded",
|
|
46
|
+
"failed",
|
|
47
|
+
"cancelled"
|
|
48
|
+
],
|
|
49
|
+
"description": "Current pipeline status"
|
|
50
|
+
},
|
|
51
|
+
"started_at": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time",
|
|
54
|
+
"description": "Pipeline start timestamp (ISO 8601)"
|
|
55
|
+
},
|
|
56
|
+
"completed_at": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "date-time",
|
|
59
|
+
"description": "Pipeline completion timestamp (ISO 8601)"
|
|
60
|
+
},
|
|
61
|
+
"branch_name": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Git branch that triggered the pipeline"
|
|
64
|
+
},
|
|
65
|
+
"commit_id": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Commit SHA that triggered the pipeline"
|
|
68
|
+
},
|
|
69
|
+
"run_url": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": "uri",
|
|
72
|
+
"description": "URL to view pipeline run details"
|
|
73
|
+
},
|
|
74
|
+
"duration_ms": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"minimum": 0,
|
|
77
|
+
"description": "Pipeline execution duration in milliseconds"
|
|
78
|
+
},
|
|
79
|
+
"stages": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"stage_name": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"status": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"enum": [
|
|
91
|
+
"pending",
|
|
92
|
+
"running",
|
|
93
|
+
"succeeded",
|
|
94
|
+
"failed",
|
|
95
|
+
"cancelled",
|
|
96
|
+
"skipped"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"duration_ms": {
|
|
100
|
+
"type": "integer",
|
|
101
|
+
"minimum": 0
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"stage_name",
|
|
106
|
+
"status"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"description": "Pipeline stages and their statuses (optional)"
|
|
110
|
+
},
|
|
111
|
+
"trigger_kind": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"push",
|
|
115
|
+
"pull_request",
|
|
116
|
+
"schedule",
|
|
117
|
+
"manual",
|
|
118
|
+
"tag",
|
|
119
|
+
"other"
|
|
120
|
+
],
|
|
121
|
+
"description": "What triggered the pipeline"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"ci_provider",
|
|
126
|
+
"pipeline_id",
|
|
127
|
+
"run_id",
|
|
128
|
+
"status"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: ©
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "https://mplp.dev/schemas/v1.0/integration/mplp-file-update-event.json",
|
|
5
|
-
"title": "MPLP File Update Event v1.0",
|
|
6
|
-
"description": "IDE file changes (save, refactor, batch modify)",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"file_path": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1,
|
|
13
|
-
"description": "Path to the file (absolute or workspace-relative)",
|
|
14
|
-
"examples": [
|
|
15
|
-
"src/components/App.tsx",
|
|
16
|
-
"/Users/dev/project/main.py"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"change_type": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"enum": [
|
|
22
|
-
"created",
|
|
23
|
-
"modified",
|
|
24
|
-
"deleted",
|
|
25
|
-
"renamed"
|
|
26
|
-
],
|
|
27
|
-
"description": "Type of file change"
|
|
28
|
-
},
|
|
29
|
-
"workspace_root": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "Workspace root directory (for resolving relative paths)"
|
|
32
|
-
},
|
|
33
|
-
"change_summary": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "Brief description of changes (e.g., 'Added error handling')"
|
|
36
|
-
},
|
|
37
|
-
"timestamp": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": "date-time",
|
|
40
|
-
"description": "When the change occurred (ISO 8601)"
|
|
41
|
-
},
|
|
42
|
-
"lines_added": {
|
|
43
|
-
"type": "integer",
|
|
44
|
-
"minimum": 0,
|
|
45
|
-
"description": "Number of lines added (if applicable)"
|
|
46
|
-
},
|
|
47
|
-
"lines_removed": {
|
|
48
|
-
"type": "integer",
|
|
49
|
-
"minimum": 0,
|
|
50
|
-
"description": "Number of lines removed (if applicable)"
|
|
51
|
-
},
|
|
52
|
-
"previous_path": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Previous path (for renamed files)"
|
|
55
|
-
},
|
|
56
|
-
"encoding": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "File encoding (e.g., 'utf-8')"
|
|
59
|
-
},
|
|
60
|
-
"language": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Programming language or file type (e.g., 'typescript', 'python')"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": [
|
|
66
|
-
"file_path",
|
|
67
|
-
"change_type",
|
|
68
|
-
"timestamp"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2026 Bangshi Beijing Network Technology Limited Company\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://mplp.dev/schemas/v1.0/integration/mplp-file-update-event.json",
|
|
5
|
+
"title": "MPLP File Update Event v1.0",
|
|
6
|
+
"description": "IDE file changes (save, refactor, batch modify)",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"file_path": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"description": "Path to the file (absolute or workspace-relative)",
|
|
14
|
+
"examples": [
|
|
15
|
+
"src/components/App.tsx",
|
|
16
|
+
"/Users/dev/project/main.py"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"change_type": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"created",
|
|
23
|
+
"modified",
|
|
24
|
+
"deleted",
|
|
25
|
+
"renamed"
|
|
26
|
+
],
|
|
27
|
+
"description": "Type of file change"
|
|
28
|
+
},
|
|
29
|
+
"workspace_root": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Workspace root directory (for resolving relative paths)"
|
|
32
|
+
},
|
|
33
|
+
"change_summary": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Brief description of changes (e.g., 'Added error handling')"
|
|
36
|
+
},
|
|
37
|
+
"timestamp": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "date-time",
|
|
40
|
+
"description": "When the change occurred (ISO 8601)"
|
|
41
|
+
},
|
|
42
|
+
"lines_added": {
|
|
43
|
+
"type": "integer",
|
|
44
|
+
"minimum": 0,
|
|
45
|
+
"description": "Number of lines added (if applicable)"
|
|
46
|
+
},
|
|
47
|
+
"lines_removed": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 0,
|
|
50
|
+
"description": "Number of lines removed (if applicable)"
|
|
51
|
+
},
|
|
52
|
+
"previous_path": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Previous path (for renamed files)"
|
|
55
|
+
},
|
|
56
|
+
"encoding": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "File encoding (e.g., 'utf-8')"
|
|
59
|
+
},
|
|
60
|
+
"language": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Programming language or file type (e.g., 'typescript', 'python')"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"file_path",
|
|
67
|
+
"change_type",
|
|
68
|
+
"timestamp"
|
|
69
|
+
]
|
|
70
|
+
}
|