sneakoscope 2.0.4 → 2.0.5

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.
Files changed (104) hide show
  1. package/README.md +12 -8
  2. package/crates/sks-core/Cargo.lock +1 -1
  3. package/crates/sks-core/Cargo.toml +1 -1
  4. package/crates/sks-core/src/main.rs +1 -1
  5. package/dist/.sks-build-stamp.json +4 -4
  6. package/dist/bin/sks.js +1 -1
  7. package/dist/build-manifest.json +73 -8
  8. package/dist/commands/doctor.js +14 -0
  9. package/dist/core/agents/agent-proof-evidence.js +35 -0
  10. package/dist/core/agents/agent-roster.js +35 -6
  11. package/dist/core/agents/agent-schema.js +1 -1
  12. package/dist/core/agents/native-worker-backend-router.js +31 -9
  13. package/dist/core/agents/ollama-worker-config.js +164 -15
  14. package/dist/core/codex/codex-0-137-compat.js +119 -0
  15. package/dist/core/codex-control/codex-control-proof.js +4 -1
  16. package/dist/core/codex-control/codex-sdk-capability.js +1 -1
  17. package/dist/core/codex-control/codex-task-runner.js +329 -5
  18. package/dist/core/codex-control/python-codex-sdk-adapter.js +197 -0
  19. package/dist/core/codex-control/python-codex-sdk-event-translator.js +14 -0
  20. package/dist/core/commands/local-model-command.js +65 -19
  21. package/dist/core/commands/naruto-command.js +118 -7
  22. package/dist/core/commands/run-command.js +1 -1
  23. package/dist/core/doctor/doctor-readiness-matrix.js +21 -2
  24. package/dist/core/fsx.js +1 -1
  25. package/dist/core/local-llm/local-llm-backpressure.js +20 -0
  26. package/dist/core/local-llm/local-llm-capability.js +29 -0
  27. package/dist/core/local-llm/local-llm-client.js +100 -0
  28. package/dist/core/local-llm/local-llm-config.js +6 -1
  29. package/dist/core/local-llm/local-llm-context-cache.js +21 -0
  30. package/dist/core/local-llm/local-llm-control-adapter.js +101 -0
  31. package/dist/core/local-llm/local-llm-json-repair.js +52 -0
  32. package/dist/core/local-llm/local-llm-metrics.js +42 -0
  33. package/dist/core/local-llm/local-llm-ollama-client.js +67 -0
  34. package/dist/core/local-llm/local-llm-openai-compatible-client.js +30 -0
  35. package/dist/core/local-llm/local-llm-prompt-cache.js +12 -0
  36. package/dist/core/local-llm/local-llm-scheduler.js +29 -0
  37. package/dist/core/local-llm/local-llm-schema-enforcer.js +15 -0
  38. package/dist/core/local-llm/local-llm-smoke.js +83 -0
  39. package/dist/core/local-llm/local-llm-warmup.js +20 -0
  40. package/dist/core/local-llm/local-worker-eligibility.js +27 -0
  41. package/dist/core/naruto/hardware-capacity-probe.js +36 -0
  42. package/dist/core/naruto/naruto-active-pool.js +118 -0
  43. package/dist/core/naruto/naruto-backpressure.js +13 -0
  44. package/dist/core/naruto/naruto-concurrency-governor.js +65 -0
  45. package/dist/core/naruto/naruto-finalizer.js +18 -0
  46. package/dist/core/naruto/naruto-generation-scheduler.js +18 -0
  47. package/dist/core/naruto/naruto-gpt-final-pack.js +49 -0
  48. package/dist/core/naruto/naruto-parallel-patch-apply.js +95 -0
  49. package/dist/core/naruto/naruto-patch-transaction-batch.js +42 -0
  50. package/dist/core/naruto/naruto-role-policy.js +107 -0
  51. package/dist/core/naruto/naruto-verification-dag.js +42 -0
  52. package/dist/core/naruto/naruto-verification-pool.js +18 -0
  53. package/dist/core/naruto/naruto-work-graph.js +198 -0
  54. package/dist/core/naruto/naruto-work-item.js +40 -0
  55. package/dist/core/naruto/naruto-work-stealing.js +11 -0
  56. package/dist/core/naruto/resource-pressure-monitor.js +32 -0
  57. package/dist/core/pipeline/finalize-pipeline-result.js +58 -0
  58. package/dist/core/pipeline/gpt-final-required.js +12 -0
  59. package/dist/core/prompt/prompt-placeholder-guard.js +30 -0
  60. package/dist/core/router/capability-card.js +13 -0
  61. package/dist/core/router/route-cache.js +3 -0
  62. package/dist/core/router/ultra-router.js +2 -1
  63. package/dist/core/routes.js +4 -4
  64. package/dist/core/version.js +1 -1
  65. package/dist/core/zellij/zellij-lane-runtime.js +2 -2
  66. package/dist/core/zellij/zellij-naruto-dashboard.js +36 -0
  67. package/dist/core/zellij/zellij-worker-pane-manager.js +4 -4
  68. package/dist/scripts/blackbox-command-import-smoke.js +10 -1
  69. package/dist/scripts/check-package-boundary.js +12 -3
  70. package/dist/scripts/codex-0-137-compat-check.js +27 -0
  71. package/dist/scripts/codex-environment-scoped-approvals-check.js +10 -0
  72. package/dist/scripts/codex-plugin-list-json-check.js +8 -0
  73. package/dist/scripts/codex-thread-runtime-choice-check.js +10 -0
  74. package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +21 -0
  75. package/dist/scripts/local-llm-all-pipelines-check.js +11 -0
  76. package/dist/scripts/local-llm-cache-performance-check.js +10 -0
  77. package/dist/scripts/local-llm-capability-check.js +14 -0
  78. package/dist/scripts/local-llm-smoke-check.js +23 -0
  79. package/dist/scripts/local-llm-structured-output-check.js +11 -0
  80. package/dist/scripts/local-llm-throughput-check.js +10 -0
  81. package/dist/scripts/local-llm-tool-call-repair-check.js +10 -0
  82. package/dist/scripts/local-llm-warmup-check.js +11 -0
  83. package/dist/scripts/naruto-active-pool-check.js +27 -0
  84. package/dist/scripts/naruto-concurrency-governor-check.js +52 -0
  85. package/dist/scripts/naruto-gpt-final-pack-check.js +34 -0
  86. package/dist/scripts/naruto-parallel-patch-apply-check.js +41 -0
  87. package/dist/scripts/naruto-real-local-gpt-final-smoke.js +16 -0
  88. package/dist/scripts/naruto-role-distribution-check.js +23 -0
  89. package/dist/scripts/naruto-shadow-clone-swarm-check.js +6 -0
  90. package/dist/scripts/naruto-verification-pool-check.js +36 -0
  91. package/dist/scripts/naruto-work-graph-check.js +24 -0
  92. package/dist/scripts/naruto-zellij-massive-ui-check.js +23 -0
  93. package/dist/scripts/prompt-placeholder-guard-check.js +33 -0
  94. package/dist/scripts/python-codex-sdk-all-pipelines-check.js +47 -0
  95. package/dist/scripts/python-codex-sdk-capability-check.js +75 -0
  96. package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +10 -0
  97. package/dist/scripts/python-codex-sdk-stream-bridge-check.js +12 -0
  98. package/dist/scripts/release-parallel-check.js +1 -1
  99. package/dist/scripts/release-real-check.js +5 -0
  100. package/dist/scripts/zellij-worker-pane-manager-check.js +1 -1
  101. package/package.json +33 -4
  102. package/schemas/local-llm/local-model-config.schema.json +74 -0
  103. package/schemas/naruto/naruto-concurrency-governor.schema.json +21 -0
  104. package/schemas/naruto/naruto-work-graph.schema.json +22 -0
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sks.local-model-config.v2",
4
+ "type": "object",
5
+ "required": ["schema", "enabled", "status", "provider", "endpoint", "model", "policy", "capability", "blockers"],
6
+ "properties": {
7
+ "schema": { "const": "sks.local-model-config.v2" },
8
+ "generated_at": { "type": "string" },
9
+ "updated_at": { "type": "string" },
10
+ "enabled": { "type": "boolean" },
11
+ "status": {
12
+ "enum": ["disabled", "enabled_unverified", "verified", "degraded", "blocked"]
13
+ },
14
+ "provider": { "enum": ["ollama", "mlx-lm", "openai-compatible"] },
15
+ "endpoint": { "type": "string" },
16
+ "base_url": { "type": "string" },
17
+ "model": { "type": "string", "minLength": 1 },
18
+ "keep_alive": { "type": "string" },
19
+ "timeout_ms": { "type": "number", "minimum": 1 },
20
+ "temperature": { "type": "number" },
21
+ "think": { "type": "boolean" },
22
+ "policy": {
23
+ "type": "object",
24
+ "required": ["role", "allowed_task_classes", "forbidden_task_classes", "requires_gpt_final"],
25
+ "properties": {
26
+ "role": { "const": "worker_only" },
27
+ "allowed_task_classes": { "type": "array", "items": { "type": "string" } },
28
+ "forbidden_task_classes": { "type": "array", "items": { "type": "string" } },
29
+ "requires_gpt_final": { "type": "boolean" }
30
+ },
31
+ "additionalProperties": false
32
+ },
33
+ "capability": {
34
+ "type": "object",
35
+ "required": ["api_reachable", "model_installed", "supports_streaming", "supports_json_schema", "supports_tools", "supports_images", "context_window", "max_parallel_requests"],
36
+ "properties": {
37
+ "api_reachable": { "type": "boolean" },
38
+ "model_installed": { "type": "boolean" },
39
+ "supports_streaming": { "type": "boolean" },
40
+ "supports_json_schema": { "type": "boolean" },
41
+ "supports_tools": { "type": "boolean" },
42
+ "supports_images": { "type": "boolean" },
43
+ "context_window": { "type": "number", "minimum": 1 },
44
+ "max_parallel_requests": { "type": "number", "minimum": 1 }
45
+ },
46
+ "additionalProperties": false
47
+ },
48
+ "last_smoke": {
49
+ "anyOf": [
50
+ { "type": "null" },
51
+ {
52
+ "type": "object",
53
+ "required": ["ok"],
54
+ "properties": {
55
+ "ok": { "type": "boolean" },
56
+ "skipped": { "type": "boolean" },
57
+ "ran_at": { "type": "string" },
58
+ "prompt_hash": { "type": "string" },
59
+ "latency_ms": { "type": "number" },
60
+ "tokens_per_second": { "type": "number" },
61
+ "schema_valid": { "type": "boolean" },
62
+ "result_path": { "type": "string" },
63
+ "status": { "enum": ["enabled_unverified", "verified", "degraded", "blocked"] },
64
+ "reason": { "type": "string" },
65
+ "blockers": { "type": "array", "items": { "type": "string" } }
66
+ },
67
+ "additionalProperties": false
68
+ }
69
+ ]
70
+ },
71
+ "blockers": { "type": "array", "items": { "type": "string" } }
72
+ },
73
+ "additionalProperties": false
74
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sks.naruto-concurrency-governor.v1",
4
+ "type": "object",
5
+ "required": ["schema", "requested_clones", "total_work_items", "safe_active_workers", "safe_zellij_visible_panes", "headless_workers", "backpressure"],
6
+ "properties": {
7
+ "schema": { "const": "sks.naruto-concurrency-governor.v1" },
8
+ "requested_clones": { "type": "integer", "minimum": 1 },
9
+ "total_work_items": { "type": "integer", "minimum": 1 },
10
+ "safe_active_workers": { "type": "integer", "minimum": 1 },
11
+ "safe_zellij_visible_panes": { "type": "integer", "minimum": 1 },
12
+ "headless_workers": { "type": "integer", "minimum": 0 },
13
+ "local_llm_parallel": { "type": "integer", "minimum": 1 },
14
+ "remote_codex_parallel": { "type": "integer", "minimum": 1 },
15
+ "verification_parallel": { "type": "integer", "minimum": 1 },
16
+ "reasons": { "type": "array", "items": { "type": "string" } },
17
+ "backpressure": { "enum": ["normal", "throttled", "saturated"] }
18
+ },
19
+ "additionalProperties": true
20
+ }
21
+
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sks.naruto-work-graph.v1",
4
+ "type": "object",
5
+ "required": ["schema", "route", "requested_clones", "total_work_items", "work_items", "active_waves", "ok"],
6
+ "properties": {
7
+ "schema": { "const": "sks.naruto-work-graph.v1" },
8
+ "route": { "const": "$Naruto" },
9
+ "requested_clones": { "type": "integer", "minimum": 1 },
10
+ "total_work_items": { "type": "integer", "minimum": 1 },
11
+ "readonly": { "type": "boolean" },
12
+ "write_capable": { "type": "boolean" },
13
+ "work_items": { "type": "array", "items": { "type": "object" } },
14
+ "active_waves": { "type": "array", "items": { "type": "object" } },
15
+ "mixed_work_kinds": { "type": "array", "items": { "type": "string" } },
16
+ "write_allowed_count": { "type": "integer", "minimum": 0 },
17
+ "blockers": { "type": "array", "items": { "type": "string" } },
18
+ "ok": { "type": "boolean" }
19
+ },
20
+ "additionalProperties": true
21
+ }
22
+