pi-fabric 0.85.0 → 0.87.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.
Files changed (41) hide show
  1. package/README.md +2 -2
  2. package/dist/chunks/{chunk-PPIWZJ4M.js → chunk-7RPCSGQM.js} +1 -1
  3. package/dist/chunks/{chunk-W557PQAC.js → chunk-B7INQVFM.js} +2 -26
  4. package/dist/chunks/{chunk-W557PQAC.js.map → chunk-B7INQVFM.js.map} +2 -2
  5. package/dist/chunks/{chunk-Z3AEX7SQ.js → chunk-GRA2PF4H.js} +2 -1
  6. package/dist/core/kernel-skills.d.ts +10 -0
  7. package/dist/core/kernel-skills.d.ts.map +1 -0
  8. package/dist/core/skill-prompt.d.ts +1 -1
  9. package/dist/core/skill-prompt.d.ts.map +1 -1
  10. package/dist/core/system-guidance.d.ts.map +1 -1
  11. package/dist/entropy/index.js +1 -1
  12. package/dist/entropy/presentation.d.ts +0 -2
  13. package/dist/entropy/presentation.d.ts.map +1 -1
  14. package/dist/fabric-runtime-state.js +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +65 -20
  17. package/dist/index.js.map +4 -4
  18. package/dist/runtime/cpython-child-source.d.ts.map +1 -1
  19. package/dist/runtime/cpython-runtime.d.ts.map +1 -1
  20. package/dist/runtime/cpython-runtime.js +101 -21
  21. package/dist/runtime/cpython-runtime.js.map +2 -2
  22. package/dist/ui/settings.js +1 -1
  23. package/docs/entropy.md +4 -5
  24. package/docs/kernels.md +17 -0
  25. package/docs/skills.md +3 -2
  26. package/package.json +1 -1
  27. package/skills/fabric-advisor/SKILL.md +2 -0
  28. package/skills/fabric-ambient/SKILL.md +2 -0
  29. package/skills/fabric-council/SKILL.md +2 -0
  30. package/skills/fabric-exec/SKILL.md +8 -34
  31. package/skills/fabric-exec-python/SKILL.md +66 -0
  32. package/skills/fabric-fusion/SKILL.md +2 -0
  33. package/skills/fabric-guide/SKILL.md +2 -0
  34. package/skills/fabric-rlm/SKILL.md +2 -0
  35. package/skills/fabric-schema/SKILL.md +2 -0
  36. package/skills/fabric-spec/SKILL.md +2 -0
  37. package/skills/fabric-supervisor/SKILL.md +2 -0
  38. package/skills/fabric-swarm/SKILL.md +2 -0
  39. package/skills/fabric-workflow/SKILL.md +2 -0
  40. /package/dist/chunks/{chunk-PPIWZJ4M.js.map → chunk-7RPCSGQM.js.map} +0 -0
  41. /package/dist/chunks/{chunk-Z3AEX7SQ.js.map → chunk-GRA2PF4H.js.map} +0 -0
package/README.md CHANGED
@@ -102,7 +102,7 @@ pi -e /absolute/path/to/pi-fabric
102
102
 
103
103
  ## What you can ask for
104
104
 
105
- Pi loads advanced patterns after direct user invocation. Run `/skill:fabric-guide` for one recommendation, or invoke the exact `/skill:<name>` yourself. An ordinary coding task keeps Pi on the core `fabric-exec` path.
105
+ Pi loads advanced patterns after direct user invocation. Run `/skill:fabric-guide` for one recommendation, or invoke the exact `/skill:<name>` yourself. An ordinary coding task uses the kernel-matched execution reference (`fabric-exec` for TypeScript, `fabric-exec-python` for Python). The advanced workflows below currently require TypeScript.
106
106
 
107
107
  | You want | Run |
108
108
  | -------- | --- |
@@ -118,7 +118,7 @@ Pi loads advanced patterns after direct user invocation. Run `/skill:fabric-guid
118
118
  | A durable team coordinating through versioned tasks | `/skill:fabric-swarm Coordinate this migration across owned task partitions.` |
119
119
  | Evidence-gated edits with postconditions | `/skill:fabric-schema Make this parser change only if focused tests stay green.` |
120
120
 
121
- The foundation is the `fabric-exec` reference skill: the model loads it before its first `fabric_exec` call and again when a call errors on argument shape.
121
+ Execution references stay progressive: the model loads the selected kernel's skill after argument-shape errors or when exact advanced contracts are needed. Skills can declare `metadata.fabric-kernel` for runtime selection; see [kernel-specific skills](docs/kernels.md#kernel-specific-skills-and-guidance).
122
122
 
123
123
  ## Agent conversations
124
124
 
@@ -398,4 +398,4 @@ var FabricState = class {
398
398
  export {
399
399
  FabricState
400
400
  };
401
- //# sourceMappingURL=chunk-PPIWZJ4M.js.map
401
+ //# sourceMappingURL=chunk-7RPCSGQM.js.map
@@ -1451,8 +1451,6 @@ var compileEntropySurfaceAsync = async (input) => {
1451
1451
 
1452
1452
  // src/entropy/presentation.ts
1453
1453
  var METRIC_PRECISION = 6;
1454
- var MAX_APPLIED_DETAILS = 3;
1455
- var MAX_VALUE_LENGTH = 32;
1456
1454
  var ENTROPY_COMMAND_HINTS = [
1457
1455
  {
1458
1456
  label: "export",
@@ -1478,22 +1476,6 @@ var formatEntropyCommandHints = () => {
1478
1476
  (hint, index) => `${heads[index].padEnd(commentColumn)}# ${hint.comment}`
1479
1477
  );
1480
1478
  };
1481
- var formatDuration = (elapsedMs) => elapsedMs >= 1e3 ? `${(elapsedMs / 1e3).toFixed(1)}s` : `${Math.max(1, Math.round(elapsedMs))}ms`;
1482
- var formatValue = (value) => {
1483
- const rendered = typeof value === "string" ? value.replace(/\s+/gu, " ").trim() || '""' : String(value);
1484
- return rendered.length <= MAX_VALUE_LENGTH ? rendered : `${rendered.slice(0, MAX_VALUE_LENGTH - 1)}\u2026`;
1485
- };
1486
- var formatValues = (values) => `{${values.map(formatValue).join(", ")}}`;
1487
- var autoProposal = (proposal) => proposal.kind === "enum-tighten" || proposal.kind === "noise-quarantine";
1488
- var formatApplied = (proposal) => {
1489
- if (proposal.kind === "enum-tighten") {
1490
- return `tightened ${proposal.ref}.${proposal.key} to ${formatValues(proposal.values)}`;
1491
- }
1492
- if (proposal.kind === "noise-quarantine") {
1493
- return `hid ${proposal.ref} (${proposal.failed} failed, ${proposal.succeeded} succeeded)`;
1494
- }
1495
- return proposal.kind;
1496
- };
1497
1479
  var scoreChange = (before, after) => {
1498
1480
  if (before === after) {
1499
1481
  return `entropy score unchanged at ${formatEntropyMetric(before)} (lower is better)`;
@@ -1542,14 +1524,8 @@ var formatEntropyReviewNotice = (proposals) => {
1542
1524
  return `entropy: ${proposals.length} suggestion${proposals.length === 1 ? "" : "s"} await review${summary ? ` \xB7 ${summary}` : ""} \xB7 inspect with /fabric entropy`;
1543
1525
  };
1544
1526
  var formatEntropyCompileNotice = (input) => {
1545
- const applied = input.proposals.filter(autoProposal);
1546
- const details = applied.slice(0, MAX_APPLIED_DETAILS).map(formatApplied);
1547
- if (applied.length > MAX_APPLIED_DETAILS) {
1548
- details.push(`+${applied.length - MAX_APPLIED_DETAILS} more`);
1549
- }
1550
- if (details.length === 0) details.push("surface updated");
1551
1527
  const review = input.reviewCount ? ` \xB7 ${input.reviewCount} suggestion${input.reviewCount === 1 ? "" : "s"} await review (/fabric entropy)` : "";
1552
- return `entropy: background optimization complete (${formatDuration(input.elapsedMs)}) \xB7 ${details.join(" \xB7 ")} \xB7 ${scoreChange(input.beforeScore, input.afterScore)} \xB7 safety checks passed${review}`;
1528
+ return `entropy: background optimization complete \xB7 ${scoreChange(input.beforeScore, input.afterScore)} \xB7 safety checks passed${review}`;
1553
1529
  };
1554
1530
 
1555
1531
  // src/entropy/corpus.ts
@@ -2199,4 +2175,4 @@ export {
2199
2175
  formatEntropyCompileNotice,
2200
2176
  runEntropyTrial
2201
2177
  };
2202
- //# sourceMappingURL=chunk-W557PQAC.js.map
2178
+ //# sourceMappingURL=chunk-B7INQVFM.js.map