@takuhon/core 0.11.0 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takuhon/core",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "JSON Schema, validation, normalization, locale resolution, and JSON-LD generation for takuhon",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Takuhon contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://takuhon.example/schemas/0.4.0/takuhon.schema.json",
3
+ "$id": "https://takuhon.example/schemas/0.5.0/takuhon.schema.json",
4
4
  "title": "Takuhon Profile",
5
5
  "description": "Portable profile data format consumed by @takuhon/core. The canonical contract for profile content authored as takuhon.json.",
6
6
  "type": "object",
@@ -359,6 +359,59 @@
359
359
  "type": "boolean",
360
360
  "default": false,
361
361
  "description": "Opt-in flag for first-party analytics. Default is false to keep takuhon privacy-respecting by default."
362
+ },
363
+ "activity": { "$ref": "#/$defs/ActivitySettings" }
364
+ }
365
+ },
366
+ "ActivitySettings": {
367
+ "type": "object",
368
+ "additionalProperties": false,
369
+ "description": "Opt-in developer-activity dashboard configuration (GitHub / WakaTime). Only the owner-curated settings live here; secrets are provisioned out of band and the synced metrics are stored in a separate document, never in takuhon.json.",
370
+ "properties": {
371
+ "enabled": {
372
+ "type": "boolean",
373
+ "default": false,
374
+ "description": "Master switch. When false (the default), the activity section is not rendered even if a snapshot exists."
375
+ },
376
+ "github": {
377
+ "type": "object",
378
+ "additionalProperties": false,
379
+ "required": ["username"],
380
+ "properties": {
381
+ "username": {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "maxLength": 39,
385
+ "description": "GitHub login whose public activity is summarized."
386
+ },
387
+ "showLanguages": { "type": "boolean", "default": true },
388
+ "showContributions": { "type": "boolean", "default": true }
389
+ }
390
+ },
391
+ "wakatime": {
392
+ "type": "object",
393
+ "additionalProperties": false,
394
+ "required": ["username"],
395
+ "properties": {
396
+ "username": {
397
+ "type": "string",
398
+ "minLength": 1,
399
+ "maxLength": 255,
400
+ "description": "WakaTime username whose coding-time stats are summarized."
401
+ },
402
+ "showCodingTime": { "type": "boolean", "default": true }
403
+ }
404
+ },
405
+ "showRank": {
406
+ "type": "boolean",
407
+ "default": true,
408
+ "description": "Display the derived activity rank / badge."
409
+ },
410
+ "refreshHintHours": {
411
+ "type": "integer",
412
+ "minimum": 1,
413
+ "maximum": 168,
414
+ "description": "Advisory refresh cadence in hours. The real cadence is how often the sync step (CLI command or scheduled job) runs."
362
415
  }
363
416
  }
364
417
  },