@harmonyos-arkts/d2h 0.1.11 → 0.1.12
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/.claude-plugin/marketplace.json +15 -13
- package/.claude-plugin/plugin.json +13 -7
- package/AGENTS.md +5 -5
- package/README.md +212 -212
- package/agents/android-to-hmos-00-orchestrator.md +318 -318
- package/agents/d2h.md +157 -157
- package/dist/bin/install-opencode.js +30 -30
- package/docs/environment-check.md +86 -86
- package/install-opencode.sh +160 -160
- package/opencode/agents.json +16 -16
- package/opencode/vscode-d2h-package.json +7 -7
- package/opencode/vscode-d2h-plugin.mjs +29 -29
- package/package.json +54 -54
- package/schemas/android-source-manifest.schema.json +25 -25
- package/schemas/checkpoint-provenance.schema.json +67 -67
- package/schemas/final-acceptance.schema.json +29 -29
- package/schemas/managed-evidence-index.schema.json +15 -15
- package/schemas/managed-evidence.schema.json +114 -114
- package/schemas/migration-config.schema.json +51 -51
- package/schemas/migration-report-index.schema.json +39 -39
- package/schemas/migration-report-item.schema.json +51 -51
- package/schemas/migration-report-summary.schema.json +25 -25
- package/schemas/migration-status.schema.json +202 -202
- package/schemas/preflight.schema.json +60 -60
- package/schemas/source-order-audit.schema.json +16 -16
- package/schemas/source-provenance-event.schema.json +19 -19
- package/schemas/spec-app-shard.schema.json +45 -45
- package/schemas/spec-fact-corrections-shard.schema.json +13 -13
- package/schemas/spec-features-shard.schema.json +43 -43
- package/schemas/spec-index.schema.json +26 -26
- package/schemas/spec-interactions-shard.schema.json +40 -40
- package/schemas/spec-page.schema.json +98 -98
- package/schemas/spec-pages-index.schema.json +1 -1
- package/schemas/spec-unresolved-shard.schema.json +1 -1
- package/schemas/task-envelope.schema.json +109 -109
- package/schemas/task-plan.schema.json +341 -341
- package/scripts/check-environment.mjs +320 -320
- package/skills/android2hmos_resources_convert/SKILL.md +180 -180
- package/skills/android2hmos_resources_convert/references/image-conversion-rules.md +230 -230
- package/skills/android2hmos_resources_convert/references/svg-fix-patterns.md +175 -175
- package/skills/android2hmos_resources_convert/references/xml-drawable-to-svg-rules.md +513 -513
- package/skills/arkts-app-identity/SKILL.md +238 -238
- package/skills/arkts-i18n/SKILL.md +496 -496
- package/skills/arkts-i18n/evals/evals.json +84 -84
- package/skills/arkts-i18n/references/code-examples.md +302 -302
- package/skills/arkts-i18n/references/common-pitfalls.md +391 -391
- package/skills/arkts-i18n/references/dynamic-language-switch.md +604 -604
- package/skills/arkts-i18n/references/hardcoded-string-scanner.md +348 -348
- package/skills/arkts-i18n/references/language-codes.md +104 -104
- package/skills/arkts-i18n/references/resource-file-structure.md +775 -775
- package/skills/arkts-i18n/references/static-vs-dynamic.md +242 -242
- package/skills/arkts-i18n/references/v1-compat.md +244 -244
- package/skills/arkts-i18n/scripts/audit_i18n_completeness.sh +174 -174
- package/skills/arkts-icon-sizing/SKILL.md +211 -211
- package/skills/arkts-icon-sizing/scripts/icon_audit.py +131 -131
- package/skills/arkts-icon-sizing/scripts/icon_autofix.py +88 -88
- package/skills/arkts-icon-sizing/scripts/icon_dims.py +179 -179
- package/skills/arkts-icon-sizing/scripts/icon_fix.py +119 -119
- package/skills/arkts-mvvm-architecture/SKILL.md +613 -613
- package/skills/d2h-hypium-forge/SKILL.md +309 -309
- package/skills/d2h-hypium-forge/references/functional-spec-template.md +140 -140
- package/skills/d2h-hypium-forge/references/official-api.md +135 -135
- package/skills/d2h-hypium-forge/references/pitfalls.md +98 -98
- package/skills/d2h-hypium-forge/references/testability-template.md +71 -71
- package/skills/d2h-hypium-forge/scripts/_common_template.py +659 -659
- package/skills/d2h-hypium-forge/scripts/analyze_results.py +165 -165
- package/skills/d2h-hypium-forge/scripts/assert_audit.py +107 -107
- package/skills/d2h-hypium-forge/scripts/collect_runtime_pages.py +169 -169
- package/skills/d2h-hypium-forge/scripts/forge_report.py +325 -325
- package/skills/d2h-hypium-forge/scripts/inject_resource_ids.py +114 -114
- package/skills/d2h-hypium-forge/scripts/lint_asserts.py +80 -80
- package/skills/d2h-hypium-forge/scripts/lint_locate.py +60 -60
- package/skills/d2h-hypium-forge/scripts/merge_appgraph.py +249 -249
- package/skills/d2h-hypium-forge/scripts/precondition.py +140 -140
- package/skills/d2h-hypium-forge/scripts/preinject_ids.py +232 -232
- package/skills/d2h-hypium-forge/scripts/probe.py +197 -197
- package/skills/d2h-hypium-forge/scripts/run_direct.py +823 -823
- package/skills/d2h-hypium-forge/scripts/run_parallel.py +121 -121
- package/skills/d2h-hypium-forge/scripts/scan_features.py +255 -255
- package/skills/d2h-hypium-forge/scripts/upgrade_asserts.py +66 -66
- package/skills/d2h-hypium-forge/scripts/validate_scenarios.py +84 -84
- package/skills/d2h-page-develop/SKILL.md +112 -112
- package/skills/d2h-page-develop/agents/openai.yaml +7 -7
- package/skills/d2h-page-spec-generate/SKILL.md +206 -206
- package/skills/d2h-page-spec-generate/scripts/build_batch_report.py +227 -227
- package/skills/d2h-utg-ai-generate/SKILL.md +128 -128
- package/skills/d2h-utg-ai-generate/references/click-paths-schema.json +76 -76
- package/skills/d2h-utg-ai-generate/references/extraction-guide.md +34 -34
- package/skills/d2h-utg-ai-generate/references/facts-contract.md +96 -96
- package/skills/d2h-utg-ai-generate/references/page-schema.json +61 -61
- package/skills/d2h-utg-ai-generate/references/utg-schema.json +89 -89
- package/skills/d2h-utg-ai-generate/scripts/build_page_json.py +314 -314
- package/skills/d2h-utg-ai-generate/scripts/build_utg.py +123 -123
- package/skills/d2h-utg-ai-generate/scripts/capture_from_page_json.ts +280 -280
- package/skills/d2h-utg-ai-generate/scripts/utg_common.py +524 -524
- package/skills/d2h-utg-ai-generate/scripts/utg_html.py +489 -489
- package/skills/d2h-utg-ai-generate/scripts/validate_utg.py +69 -69
- package/skills/d2h-utg-ai-generate/scripts/vendor/D3-LICENSE +13 -13
- package/skills/d2h-utg-ai-generate/scripts/vendor/d3-7.9.0.min.js +2 -2
- package/skills/d2h-utg-ai-generate/tests/test_pipeline.py +369 -369
- package/skills/d2h-utg-static-generate/SKILL.md +73 -73
- package/skills/d2h-utg-static-generate/references/discoveries.md +38 -38
- package/skills/d2h-utg-static-generate/scripts/generate.py +499 -499
- package/skills/d2h-utg-static-generate/tests/test_static.py +335 -335
- package/skills/d2h-utg-static-generate/tests/verify-offline-html.py +60 -60
- package/skills/d2h-utg-static-generate/tests/verify-produced-fixture.py +131 -131
- package/skills/harmonyos-migration-playbook/SKILL.md +83 -83
- package/skills/harmonyos-migration-playbook/agents/openai.yaml +7 -7
- package/skills/harmonyos-migration-playbook/references/arkts-compile.md +24 -24
- package/skills/harmonyos-migration-playbook/references/harmony-runtime.md +53 -53
- package/skills/harmonyos-migration-playbook/references/lesson-lifecycle.md +45 -45
- package/skills/harmonyos-migration-playbook/references/protocol-e2e.md +23 -23
- package/skills/harmonyos-migration-playbook/references/ui-automation.md +53 -53
- package/skills/harmonyos-migration-playbook/references/windows-environment.md +38 -38
- package/skills/maintaining-migration-report/SKILL.md +144 -144
- package/skills/maintaining-migration-report/references/final-acceptance.md +48 -48
- package/skills/maintaining-migration-report/references/source-provenance.md +66 -66
- package/skills/managing-d2h-toolchain/SKILL.md +24 -24
- package/skills/managing-d2h-toolchain/environment-requirements.json +16 -16
- package/skills/managing-d2h-toolchain/scripts/manage-toolchain.mjs +98 -98
- package/skills/managing-d2h-toolchain/toolchain.json +16 -16
- package/skills/native-library-substitution/SKILL.md +384 -384
- package/skills/native-library-substitution/references/native-library-substitution.json +56905 -56905
- package/skills/native-library-substitution/references/native-library-substitution.md +163 -163
- package/skills/preparing-migration-workspace/SKILL.md +131 -131
- package/skills/reviewing-migration-process/SKILL.md +62 -62
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-app-shard.schema.json",
|
|
4
|
-
"title": "SPEC 2.0.0 App Facts Shard",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["shardVersion", "generation", "app", "coverage", "warnings", "uiGraph"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"shardVersion": { "const": "2.0.0" },
|
|
9
|
-
"generation": { "type": "object" },
|
|
10
|
-
"app": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": ["name", "packageName", "platform", "appGraphHash"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"name": { "type": "string" },
|
|
15
|
-
"packageName": { "type": "string" },
|
|
16
|
-
"platform": { "const": "android" },
|
|
17
|
-
"appGraphHash": { "type": "string", "minLength": 1 },
|
|
18
|
-
"entryResolution": { "$ref": "#/$defs/entryResolution" }
|
|
19
|
-
},
|
|
20
|
-
"additionalProperties": false
|
|
21
|
-
},
|
|
22
|
-
"entryResolution": { "$ref": "#/$defs/entryResolution" },
|
|
23
|
-
"coverage": { "type": "object" },
|
|
24
|
-
"warnings": { "type": "array", "items": { "type": "string" } },
|
|
25
|
-
"uiGraph": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"required": ["roots"],
|
|
28
|
-
"properties": { "roots": { "$ref": "#/$defs/refs" } },
|
|
29
|
-
"additionalProperties": false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"$defs": {
|
|
33
|
-
"refs": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
34
|
-
"entryResolution": {
|
|
35
|
-
"type": "object",
|
|
36
|
-
"required": ["launcherSurfaceRefs", "launcherEntryRefs"],
|
|
37
|
-
"properties": {
|
|
38
|
-
"launcherSurfaceRefs": { "$ref": "#/$defs/refs" },
|
|
39
|
-
"launcherEntryRefs": { "$ref": "#/$defs/refs" }
|
|
40
|
-
},
|
|
41
|
-
"additionalProperties": false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"additionalProperties": false
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-app-shard.schema.json",
|
|
4
|
+
"title": "SPEC 2.0.0 App Facts Shard",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["shardVersion", "generation", "app", "coverage", "warnings", "uiGraph"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"shardVersion": { "const": "2.0.0" },
|
|
9
|
+
"generation": { "type": "object" },
|
|
10
|
+
"app": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["name", "packageName", "platform", "appGraphHash"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"name": { "type": "string" },
|
|
15
|
+
"packageName": { "type": "string" },
|
|
16
|
+
"platform": { "const": "android" },
|
|
17
|
+
"appGraphHash": { "type": "string", "minLength": 1 },
|
|
18
|
+
"entryResolution": { "$ref": "#/$defs/entryResolution" }
|
|
19
|
+
},
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
},
|
|
22
|
+
"entryResolution": { "$ref": "#/$defs/entryResolution" },
|
|
23
|
+
"coverage": { "type": "object" },
|
|
24
|
+
"warnings": { "type": "array", "items": { "type": "string" } },
|
|
25
|
+
"uiGraph": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["roots"],
|
|
28
|
+
"properties": { "roots": { "$ref": "#/$defs/refs" } },
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"$defs": {
|
|
33
|
+
"refs": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
34
|
+
"entryResolution": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["launcherSurfaceRefs", "launcherEntryRefs"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"launcherSurfaceRefs": { "$ref": "#/$defs/refs" },
|
|
39
|
+
"launcherEntryRefs": { "$ref": "#/$defs/refs" }
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-fact-corrections-shard.schema.json",
|
|
4
|
-
"title": "SPEC Semantic Corrections",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["shardVersion", "factCorrections", "exclusions"],
|
|
7
|
-
"properties": { "shardVersion": { "const": "2.0.0" }, "factCorrections": { "type": "array", "items": { "$ref": "#/$defs/correction" } }, "exclusions": { "type": "array" } },
|
|
8
|
-
"$defs": { "correction": { "type": "object", "required": ["id", "entityKind", "operation", "targetRef", "factValue", "semanticValue", "reason", "sourceEvidence"], "properties": {
|
|
9
|
-
"id": { "type": "string", "minLength": 1 }, "entityKind": { "enum": ["surface", "control", "entry", "interaction"] }, "operation": { "enum": ["add", "update", "remove"] }, "targetRef": { "type": "string", "minLength": 1 },
|
|
10
|
-
"factValue": { "type": ["object", "null"] }, "semanticValue": { "type": ["object", "null"] }, "reason": { "type": "string", "minLength": 1 },
|
|
11
|
-
"sourceEvidence": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["file"], "properties": { "file": { "type": "string", "minLength": 1 }, "symbol": { "type": ["string", "null"] }, "line": { "type": ["integer", "null"] }, "endLine": { "type": ["integer", "null"] } }, "additionalProperties": false } }
|
|
12
|
-
}, "additionalProperties": false } }, "additionalProperties": false
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-fact-corrections-shard.schema.json",
|
|
4
|
+
"title": "SPEC Semantic Corrections",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["shardVersion", "factCorrections", "exclusions"],
|
|
7
|
+
"properties": { "shardVersion": { "const": "2.0.0" }, "factCorrections": { "type": "array", "items": { "$ref": "#/$defs/correction" } }, "exclusions": { "type": "array" } },
|
|
8
|
+
"$defs": { "correction": { "type": "object", "required": ["id", "entityKind", "operation", "targetRef", "factValue", "semanticValue", "reason", "sourceEvidence"], "properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 }, "entityKind": { "enum": ["surface", "control", "entry", "interaction"] }, "operation": { "enum": ["add", "update", "remove"] }, "targetRef": { "type": "string", "minLength": 1 },
|
|
10
|
+
"factValue": { "type": ["object", "null"] }, "semanticValue": { "type": ["object", "null"] }, "reason": { "type": "string", "minLength": 1 },
|
|
11
|
+
"sourceEvidence": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["file"], "properties": { "file": { "type": "string", "minLength": 1 }, "symbol": { "type": ["string", "null"] }, "line": { "type": ["integer", "null"] }, "endLine": { "type": ["integer", "null"] } }, "additionalProperties": false } }
|
|
12
|
+
}, "additionalProperties": false } }, "additionalProperties": false
|
|
13
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-features-shard.schema.json",
|
|
4
|
-
"title": "SPEC Business Features Shard",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["shardVersion", "domains", "features"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"shardVersion": { "const": "2.0.0" },
|
|
9
|
-
"domains": { "type": "array", "items": { "$ref": "#/$defs/domain" } },
|
|
10
|
-
"features": { "type": "array", "items": { "$ref": "#/$defs/feature" } }
|
|
11
|
-
},
|
|
12
|
-
"$defs": {
|
|
13
|
-
"text": { "type": "string", "minLength": 1 },
|
|
14
|
-
"nullableText": { "type": ["string", "null"], "minLength": 1 },
|
|
15
|
-
"refs": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
|
|
16
|
-
"domain": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"required": ["id", "parentDomainRef", "name", "description", "featureRefs"],
|
|
19
|
-
"properties": {
|
|
20
|
-
"id": { "$ref": "#/$defs/text" },
|
|
21
|
-
"parentDomainRef": { "$ref": "#/$defs/nullableText" },
|
|
22
|
-
"name": { "$ref": "#/$defs/text" },
|
|
23
|
-
"description": { "$ref": "#/$defs/text" },
|
|
24
|
-
"featureRefs": { "$ref": "#/$defs/refs" }
|
|
25
|
-
},
|
|
26
|
-
"additionalProperties": false
|
|
27
|
-
},
|
|
28
|
-
"feature": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"required": ["id", "domainRef", "parentFeatureRef", "name", "description", "entryRefs"],
|
|
31
|
-
"properties": {
|
|
32
|
-
"id": { "$ref": "#/$defs/text" },
|
|
33
|
-
"domainRef": { "$ref": "#/$defs/text" },
|
|
34
|
-
"parentFeatureRef": { "$ref": "#/$defs/nullableText" },
|
|
35
|
-
"name": { "$ref": "#/$defs/text" },
|
|
36
|
-
"description": { "$ref": "#/$defs/text" },
|
|
37
|
-
"entryRefs": { "$ref": "#/$defs/refs" }
|
|
38
|
-
},
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"additionalProperties": false
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-features-shard.schema.json",
|
|
4
|
+
"title": "SPEC Business Features Shard",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["shardVersion", "domains", "features"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"shardVersion": { "const": "2.0.0" },
|
|
9
|
+
"domains": { "type": "array", "items": { "$ref": "#/$defs/domain" } },
|
|
10
|
+
"features": { "type": "array", "items": { "$ref": "#/$defs/feature" } }
|
|
11
|
+
},
|
|
12
|
+
"$defs": {
|
|
13
|
+
"text": { "type": "string", "minLength": 1 },
|
|
14
|
+
"nullableText": { "type": ["string", "null"], "minLength": 1 },
|
|
15
|
+
"refs": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
|
|
16
|
+
"domain": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["id", "parentDomainRef", "name", "description", "featureRefs"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"id": { "$ref": "#/$defs/text" },
|
|
21
|
+
"parentDomainRef": { "$ref": "#/$defs/nullableText" },
|
|
22
|
+
"name": { "$ref": "#/$defs/text" },
|
|
23
|
+
"description": { "$ref": "#/$defs/text" },
|
|
24
|
+
"featureRefs": { "$ref": "#/$defs/refs" }
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
"feature": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["id", "domainRef", "parentFeatureRef", "name", "description", "entryRefs"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"id": { "$ref": "#/$defs/text" },
|
|
33
|
+
"domainRef": { "$ref": "#/$defs/text" },
|
|
34
|
+
"parentFeatureRef": { "$ref": "#/$defs/nullableText" },
|
|
35
|
+
"name": { "$ref": "#/$defs/text" },
|
|
36
|
+
"description": { "$ref": "#/$defs/text" },
|
|
37
|
+
"entryRefs": { "$ref": "#/$defs/refs" }
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-index.schema.json",
|
|
4
|
-
"title": "Sharded SPEC Index",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["specVersion", "shardFormatVersion", "language", "generation", "files", "counts", "factsSha256", "specSha256"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"specVersion": { "const": "2.0.0" },
|
|
9
|
-
"shardFormatVersion": { "const": "2.0.0" },
|
|
10
|
-
"language": { "const": "zh-CN" },
|
|
11
|
-
"generation": { "type": "object" },
|
|
12
|
-
"files": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"required": ["facts", "semantics"],
|
|
15
|
-
"properties": {
|
|
16
|
-
"facts": { "type": "object", "required": ["app", "pages", "interactions", "unresolved"], "additionalProperties": { "type": "string", "minLength": 1 } },
|
|
17
|
-
"semantics": { "type": "object", "required": ["app", "pages", "interactions", "features", "unresolved", "corrections"], "additionalProperties": { "type": "string", "minLength": 1 } }
|
|
18
|
-
},
|
|
19
|
-
"additionalProperties": false
|
|
20
|
-
},
|
|
21
|
-
"counts": { "type": "object" },
|
|
22
|
-
"factsSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
23
|
-
"specSha256": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-index.schema.json",
|
|
4
|
+
"title": "Sharded SPEC Index",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["specVersion", "shardFormatVersion", "language", "generation", "files", "counts", "factsSha256", "specSha256"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"specVersion": { "const": "2.0.0" },
|
|
9
|
+
"shardFormatVersion": { "const": "2.0.0" },
|
|
10
|
+
"language": { "const": "zh-CN" },
|
|
11
|
+
"generation": { "type": "object" },
|
|
12
|
+
"files": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["facts", "semantics"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"facts": { "type": "object", "required": ["app", "pages", "interactions", "unresolved"], "additionalProperties": { "type": "string", "minLength": 1 } },
|
|
17
|
+
"semantics": { "type": "object", "required": ["app", "pages", "interactions", "features", "unresolved", "corrections"], "additionalProperties": { "type": "string", "minLength": 1 } }
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
},
|
|
21
|
+
"counts": { "type": "object" },
|
|
22
|
+
"factsSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
23
|
+
"specSha256": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-interactions-shard.schema.json",
|
|
4
|
-
"title": "SPEC 2.0.0 Interaction Facts Shard",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["shardVersion", "interactions"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"shardVersion": { "const": "2.0.0" },
|
|
9
|
-
"interactions": {
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": ["id", "relation", "fromRef", "toRef", "confidence", "sourceEvidence"],
|
|
14
|
-
"properties": {
|
|
15
|
-
"id": { "type": "string", "minLength": 1 },
|
|
16
|
-
"relation": { "enum": ["opens", "navigates-to", "launches-for-result"] },
|
|
17
|
-
"fromRef": { "type": "string", "minLength": 1 },
|
|
18
|
-
"toRef": { "type": "string", "minLength": 1 },
|
|
19
|
-
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
20
|
-
"sourceEvidence": {
|
|
21
|
-
"type": "array",
|
|
22
|
-
"items": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"required": ["file", "symbol", "line", "endLine"],
|
|
25
|
-
"properties": {
|
|
26
|
-
"file": { "type": "string", "minLength": 1 },
|
|
27
|
-
"symbol": { "type": ["string", "null"] },
|
|
28
|
-
"line": { "type": ["integer", "null"], "minimum": 1 },
|
|
29
|
-
"endLine": { "type": ["integer", "null"], "minimum": 1 }
|
|
30
|
-
},
|
|
31
|
-
"additionalProperties": false
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"additionalProperties": false
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-interactions-shard.schema.json",
|
|
4
|
+
"title": "SPEC 2.0.0 Interaction Facts Shard",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["shardVersion", "interactions"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"shardVersion": { "const": "2.0.0" },
|
|
9
|
+
"interactions": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["id", "relation", "fromRef", "toRef", "confidence", "sourceEvidence"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "minLength": 1 },
|
|
16
|
+
"relation": { "enum": ["opens", "navigates-to", "launches-for-result"] },
|
|
17
|
+
"fromRef": { "type": "string", "minLength": 1 },
|
|
18
|
+
"toRef": { "type": "string", "minLength": 1 },
|
|
19
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
20
|
+
"sourceEvidence": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["file", "symbol", "line", "endLine"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"file": { "type": "string", "minLength": 1 },
|
|
27
|
+
"symbol": { "type": ["string", "null"] },
|
|
28
|
+
"line": { "type": ["integer", "null"], "minimum": 1 },
|
|
29
|
+
"endLine": { "type": ["integer", "null"], "minimum": 1 }
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://harmonyos-ai.dev/schemas/spec-page.schema.json",
|
|
4
|
-
"title": "SPEC 2.0.0 Surface Facts Shard",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["shardVersion", "kind", "surface", "controls", "entries"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"shardVersion": { "const": "2.0.0" },
|
|
9
|
-
"kind": { "const": "surface-facts" },
|
|
10
|
-
"surface": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": ["surfaceRef", "surfaceName", "surfaceType", "parentSurfaceRefs", "relation", "status", "sourceEvidence"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"surfaceRef": { "type": "string", "minLength": 1 },
|
|
15
|
-
"surfaceName": { "type": "string", "minLength": 1 },
|
|
16
|
-
"surfaceType": { "type": "string", "minLength": 1 },
|
|
17
|
-
"parentSurfaceRefs": { "$ref": "#/$defs/refs" },
|
|
18
|
-
"relation": { "const": "hosts" },
|
|
19
|
-
"status": { "enum": ["root", "determined", "multiple", "unresolved"] },
|
|
20
|
-
"sourceEvidence": { "$ref": "#/$defs/evidenceList" }
|
|
21
|
-
},
|
|
22
|
-
"additionalProperties": false
|
|
23
|
-
},
|
|
24
|
-
"controls": { "type": "array", "items": { "$ref": "#/$defs/control" } },
|
|
25
|
-
"entries": { "type": "array", "items": { "$ref": "#/$defs/entry" } }
|
|
26
|
-
},
|
|
27
|
-
"$defs": {
|
|
28
|
-
"refs": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
29
|
-
"evidence": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"required": ["file", "symbol", "line", "endLine"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"file": { "type": "string", "minLength": 1 },
|
|
34
|
-
"symbol": { "type": ["string", "null"] },
|
|
35
|
-
"line": { "type": ["integer", "null"], "minimum": 1 },
|
|
36
|
-
"endLine": { "type": ["integer", "null"], "minimum": 1 }
|
|
37
|
-
},
|
|
38
|
-
"additionalProperties": false
|
|
39
|
-
},
|
|
40
|
-
"evidenceList": { "type": "array", "items": { "$ref": "#/$defs/evidence" } },
|
|
41
|
-
"control": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"required": ["controlRef", "sourceCarrierRef", "name", "surfaceRef", "status", "sourceEvidence"],
|
|
44
|
-
"properties": {
|
|
45
|
-
"controlRef": { "type": "string", "minLength": 1 },
|
|
46
|
-
"sourceCarrierRef": { "type": "string", "minLength": 1 },
|
|
47
|
-
"name": { "type": "string", "minLength": 1 },
|
|
48
|
-
"surfaceRef": { "type": "string", "minLength": 1 },
|
|
49
|
-
"status": { "const": "determined" },
|
|
50
|
-
"sourceEvidence": { "$ref": "#/$defs/evidenceList" }
|
|
51
|
-
},
|
|
52
|
-
"additionalProperties": false
|
|
53
|
-
},
|
|
54
|
-
"entry": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"required": ["entryRef", "triggerCategory", "componentType", "ownershipStatus", "surfaceRef", "surfaceName", "surfaceType", "carrierRef", "carrierName", "carrierStatus", "event", "displayLabel", "handlerNames", "callTrace", "sourceEvidence", "warnings"],
|
|
57
|
-
"properties": {
|
|
58
|
-
"entryRef": { "type": "string", "minLength": 1 },
|
|
59
|
-
"triggerCategory": { "enum": ["user", "system", "application"] },
|
|
60
|
-
"componentType": { "enum": ["activity", "fragment", "dialog", "service", "receiver", "provider", "control", "custom-view", "unknown"] },
|
|
61
|
-
"ownershipStatus": { "enum": ["determined", "ambiguous", "unresolved"] },
|
|
62
|
-
"surfaceRef": { "type": ["string", "null"] },
|
|
63
|
-
"surfaceName": { "type": "string" },
|
|
64
|
-
"surfaceType": { "type": "string" },
|
|
65
|
-
"carrierRef": { "type": ["string", "null"] },
|
|
66
|
-
"carrierName": { "type": "string" },
|
|
67
|
-
"carrierStatus": { "enum": ["determined", "category-only", "not-applicable", "unknown"] },
|
|
68
|
-
"event": { "type": "string", "minLength": 1 },
|
|
69
|
-
"displayLabel": { "type": "string", "minLength": 1 },
|
|
70
|
-
"handlerNames": { "$ref": "#/$defs/refs" },
|
|
71
|
-
"callTrace": {
|
|
72
|
-
"type": "object",
|
|
73
|
-
"required": ["handlerRefs", "codeRefs", "callEdges", "truncated", "coverageWarnings"],
|
|
74
|
-
"properties": {
|
|
75
|
-
"handlerRefs": { "$ref": "#/$defs/refs" },
|
|
76
|
-
"codeRefs": { "type": "array", "items": { "type": "object" } },
|
|
77
|
-
"callEdges": {
|
|
78
|
-
"type": "array",
|
|
79
|
-
"items": {
|
|
80
|
-
"type": "object",
|
|
81
|
-
"required": ["from", "to"],
|
|
82
|
-
"properties": { "from": { "type": "string", "minLength": 1 }, "to": { "type": "string", "minLength": 1 } },
|
|
83
|
-
"additionalProperties": false
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"truncated": { "type": "boolean" },
|
|
87
|
-
"coverageWarnings": { "type": "array", "items": { "type": "string" } }
|
|
88
|
-
},
|
|
89
|
-
"additionalProperties": false
|
|
90
|
-
},
|
|
91
|
-
"sourceEvidence": { "$ref": "#/$defs/evidenceList" },
|
|
92
|
-
"warnings": { "type": "array", "items": { "type": "string" } }
|
|
93
|
-
},
|
|
94
|
-
"additionalProperties": false
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"additionalProperties": false
|
|
98
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://harmonyos-ai.dev/schemas/spec-page.schema.json",
|
|
4
|
+
"title": "SPEC 2.0.0 Surface Facts Shard",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["shardVersion", "kind", "surface", "controls", "entries"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"shardVersion": { "const": "2.0.0" },
|
|
9
|
+
"kind": { "const": "surface-facts" },
|
|
10
|
+
"surface": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["surfaceRef", "surfaceName", "surfaceType", "parentSurfaceRefs", "relation", "status", "sourceEvidence"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"surfaceRef": { "type": "string", "minLength": 1 },
|
|
15
|
+
"surfaceName": { "type": "string", "minLength": 1 },
|
|
16
|
+
"surfaceType": { "type": "string", "minLength": 1 },
|
|
17
|
+
"parentSurfaceRefs": { "$ref": "#/$defs/refs" },
|
|
18
|
+
"relation": { "const": "hosts" },
|
|
19
|
+
"status": { "enum": ["root", "determined", "multiple", "unresolved"] },
|
|
20
|
+
"sourceEvidence": { "$ref": "#/$defs/evidenceList" }
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
"controls": { "type": "array", "items": { "$ref": "#/$defs/control" } },
|
|
25
|
+
"entries": { "type": "array", "items": { "$ref": "#/$defs/entry" } }
|
|
26
|
+
},
|
|
27
|
+
"$defs": {
|
|
28
|
+
"refs": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
29
|
+
"evidence": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["file", "symbol", "line", "endLine"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"file": { "type": "string", "minLength": 1 },
|
|
34
|
+
"symbol": { "type": ["string", "null"] },
|
|
35
|
+
"line": { "type": ["integer", "null"], "minimum": 1 },
|
|
36
|
+
"endLine": { "type": ["integer", "null"], "minimum": 1 }
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"evidenceList": { "type": "array", "items": { "$ref": "#/$defs/evidence" } },
|
|
41
|
+
"control": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["controlRef", "sourceCarrierRef", "name", "surfaceRef", "status", "sourceEvidence"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"controlRef": { "type": "string", "minLength": 1 },
|
|
46
|
+
"sourceCarrierRef": { "type": "string", "minLength": 1 },
|
|
47
|
+
"name": { "type": "string", "minLength": 1 },
|
|
48
|
+
"surfaceRef": { "type": "string", "minLength": 1 },
|
|
49
|
+
"status": { "const": "determined" },
|
|
50
|
+
"sourceEvidence": { "$ref": "#/$defs/evidenceList" }
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"entry": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"required": ["entryRef", "triggerCategory", "componentType", "ownershipStatus", "surfaceRef", "surfaceName", "surfaceType", "carrierRef", "carrierName", "carrierStatus", "event", "displayLabel", "handlerNames", "callTrace", "sourceEvidence", "warnings"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"entryRef": { "type": "string", "minLength": 1 },
|
|
59
|
+
"triggerCategory": { "enum": ["user", "system", "application"] },
|
|
60
|
+
"componentType": { "enum": ["activity", "fragment", "dialog", "service", "receiver", "provider", "control", "custom-view", "unknown"] },
|
|
61
|
+
"ownershipStatus": { "enum": ["determined", "ambiguous", "unresolved"] },
|
|
62
|
+
"surfaceRef": { "type": ["string", "null"] },
|
|
63
|
+
"surfaceName": { "type": "string" },
|
|
64
|
+
"surfaceType": { "type": "string" },
|
|
65
|
+
"carrierRef": { "type": ["string", "null"] },
|
|
66
|
+
"carrierName": { "type": "string" },
|
|
67
|
+
"carrierStatus": { "enum": ["determined", "category-only", "not-applicable", "unknown"] },
|
|
68
|
+
"event": { "type": "string", "minLength": 1 },
|
|
69
|
+
"displayLabel": { "type": "string", "minLength": 1 },
|
|
70
|
+
"handlerNames": { "$ref": "#/$defs/refs" },
|
|
71
|
+
"callTrace": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"required": ["handlerRefs", "codeRefs", "callEdges", "truncated", "coverageWarnings"],
|
|
74
|
+
"properties": {
|
|
75
|
+
"handlerRefs": { "$ref": "#/$defs/refs" },
|
|
76
|
+
"codeRefs": { "type": "array", "items": { "type": "object" } },
|
|
77
|
+
"callEdges": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"required": ["from", "to"],
|
|
82
|
+
"properties": { "from": { "type": "string", "minLength": 1 }, "to": { "type": "string", "minLength": 1 } },
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"truncated": { "type": "boolean" },
|
|
87
|
+
"coverageWarnings": { "type": "array", "items": { "type": "string" } }
|
|
88
|
+
},
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
},
|
|
91
|
+
"sourceEvidence": { "$ref": "#/$defs/evidenceList" },
|
|
92
|
+
"warnings": { "type": "array", "items": { "type": "string" } }
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://harmonyos-ai.dev/schemas/spec-pages-index.schema.json","title":"SPEC Facts or Semantics Pages Index","type":"object","required":["indexVersion","pages","unassignedEntriesFile"],"properties":{"indexVersion":{"const":"2.0.0"},"pages":{"type":"array","items":{"type":"object","required":["surfaceRef","file"],"properties":{"surfaceRef":{"type":"string","minLength":1},"surfaceType":{"type":"string","minLength":1},"file":{"type":"string","pattern":"^(facts|semantics)/pages/.+\\.json$"}},"additionalProperties":false}},"unassignedEntriesFile":{"type":["string","null"]}},"additionalProperties":false}
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://harmonyos-ai.dev/schemas/spec-pages-index.schema.json","title":"SPEC Facts or Semantics Pages Index","type":"object","required":["indexVersion","pages","unassignedEntriesFile"],"properties":{"indexVersion":{"const":"2.0.0"},"pages":{"type":"array","items":{"type":"object","required":["surfaceRef","file"],"properties":{"surfaceRef":{"type":"string","minLength":1},"surfaceType":{"type":"string","minLength":1},"file":{"type":"string","pattern":"^(facts|semantics)/pages/.+\\.json$"}},"additionalProperties":false}},"unassignedEntriesFile":{"type":["string","null"]}},"additionalProperties":false}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://harmonyos-ai.dev/schemas/spec-unresolved-shard.schema.json","title":"SPEC Unresolved Semantics Shard","type":"object","required":["shardVersion","reviews"],"properties":{"shardVersion":{"const":"2.0.0"},"reviews":{"type":"array","items":{"type":"object","required":["unresolvedRef","decision","featureRef","reason"],"properties":{"unresolvedRef":{"type":"string","minLength":1},"decision":{"enum":["pending","covered-by-feature","excluded","accepted-unknown"]},"featureRef":{"type":["string","null"]},"reason":{"type":["string","null"]}},"additionalProperties":false}}},"additionalProperties":false}
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://harmonyos-ai.dev/schemas/spec-unresolved-shard.schema.json","title":"SPEC Unresolved Semantics Shard","type":"object","required":["shardVersion","reviews"],"properties":{"shardVersion":{"const":"2.0.0"},"reviews":{"type":"array","items":{"type":"object","required":["unresolvedRef","decision","featureRef","reason"],"properties":{"unresolvedRef":{"type":"string","minLength":1},"decision":{"enum":["pending","covered-by-feature","excluded","accepted-unknown"]},"featureRef":{"type":["string","null"]},"reason":{"type":["string","null"]}},"additionalProperties":false}}},"additionalProperties":false}
|