@cratylus/canon 0.1.0 → 0.1.1

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 (78) hide show
  1. package/dist/agents/mav.js +12 -23
  2. package/dist/agents/mav.js.map +1 -1
  3. package/dist/agents/nico.js +6 -2
  4. package/dist/agents/nico.js.map +1 -1
  5. package/dist/dimensions/memory/long-term-memory.js +8 -1
  6. package/dist/dimensions/memory/long-term-memory.js.map +1 -1
  7. package/dist/genus/founding-doctrine.d.ts +2 -2
  8. package/dist/genus/founding-doctrine.js +3 -31
  9. package/dist/genus/founding-doctrine.js.map +1 -1
  10. package/dist/hook-cells.js +0 -4
  11. package/dist/hook-cells.js.map +1 -1
  12. package/dist/hooks/praxis-continuity.js +4 -3
  13. package/dist/hooks/praxis-continuity.js.map +1 -1
  14. package/dist/hooks/stance-guardrail-pre.js +1 -1
  15. package/dist/hooks/stance-guardrail.js +13 -12
  16. package/dist/hooks/stance-guardrail.js.map +1 -1
  17. package/dist/rules/repo-preamble.js +6 -20
  18. package/dist/rules/repo-preamble.js.map +1 -1
  19. package/dist/skills/carry-on/skill.js +40 -45
  20. package/dist/skills/carry-on/skill.js.map +1 -1
  21. package/dist/skills/conceptualize/skill.js +16 -4
  22. package/dist/skills/conceptualize/skill.js.map +1 -1
  23. package/dist/skills/elicit/skill.js +16 -4
  24. package/dist/skills/elicit/skill.js.map +1 -1
  25. package/dist/skills/event-tap/skill.js +9 -2
  26. package/dist/skills/event-tap/skill.js.map +1 -1
  27. package/dist/skills/exemplify/skill.js +16 -4
  28. package/dist/skills/exemplify/skill.js.map +1 -1
  29. package/dist/skills/introspect/skill.js +6 -2
  30. package/dist/skills/introspect/skill.js.map +1 -1
  31. package/dist/skills/materialize/skill.js +16 -4
  32. package/dist/skills/materialize/skill.js.map +1 -1
  33. package/dist/skills/praxis/skill.js +5 -8
  34. package/dist/skills/praxis/skill.js.map +1 -1
  35. package/dist/skills/probe/skill.js +16 -4
  36. package/dist/skills/probe/skill.js.map +1 -1
  37. package/dist/skills/signify/skill.js +16 -4
  38. package/dist/skills/signify/skill.js.map +1 -1
  39. package/package.json +7 -7
  40. package/dist/agents/arch-doc-writer.d.ts +0 -2
  41. package/dist/agents/arch-doc-writer.js +0 -54
  42. package/dist/agents/arch-doc-writer.js.map +0 -1
  43. package/dist/agents/boz.d.ts +0 -2
  44. package/dist/agents/boz.js +0 -59
  45. package/dist/agents/boz.js.map +0 -1
  46. package/dist/agents/developer.d.ts +0 -2
  47. package/dist/agents/developer.js +0 -53
  48. package/dist/agents/developer.js.map +0 -1
  49. package/dist/agents/investigator.d.ts +0 -2
  50. package/dist/agents/investigator.js +0 -59
  51. package/dist/agents/investigator.js.map +0 -1
  52. package/dist/agents/planner.d.ts +0 -2
  53. package/dist/agents/planner.js +0 -52
  54. package/dist/agents/planner.js.map +0 -1
  55. package/dist/agents/principal-engineer-reviewer.d.ts +0 -2
  56. package/dist/agents/principal-engineer-reviewer.js +0 -56
  57. package/dist/agents/principal-engineer-reviewer.js.map +0 -1
  58. package/dist/agents/principal-ic.d.ts +0 -2
  59. package/dist/agents/principal-ic.js +0 -72
  60. package/dist/agents/principal-ic.js.map +0 -1
  61. package/dist/agents/tester.d.ts +0 -2
  62. package/dist/agents/tester.js +0 -55
  63. package/dist/agents/tester.js.map +0 -1
  64. package/dist/hooks/memory-consolidation-nudge.d.ts +0 -2
  65. package/dist/hooks/memory-consolidation-nudge.js +0 -148
  66. package/dist/hooks/memory-consolidation-nudge.js.map +0 -1
  67. package/dist/hooks/resume-availability-notice.d.ts +0 -2
  68. package/dist/hooks/resume-availability-notice.js +0 -50
  69. package/dist/hooks/resume-availability-notice.js.map +0 -1
  70. package/dist/skills/dream/skill.d.ts +0 -2
  71. package/dist/skills/dream/skill.js +0 -65
  72. package/dist/skills/dream/skill.js.map +0 -1
  73. package/dist/skills/handoff/skill.d.ts +0 -2
  74. package/dist/skills/handoff/skill.js +0 -27
  75. package/dist/skills/handoff/skill.js.map +0 -1
  76. package/dist/skills/wake/skill.d.ts +0 -2
  77. package/dist/skills/wake/skill.js +0 -43
  78. package/dist/skills/wake/skill.js.map +0 -1
@@ -1,59 +0,0 @@
1
- import { codeExecution as codeExecution_actions } from '../dimensions/actions/code-execution.js';
2
- import { delegation as delegation_actions } from '../dimensions/actions/delegation.js';
3
- import { fileOps as fileOps_actions } from '../dimensions/actions/file-ops.js';
4
- import { convergence as convergence_audienceAdaptation } from '../dimensions/audience-adaptation/convergence.js';
5
- import { analysisDiagnosis as analysisDiagnosis_capabilities } from '../dimensions/capabilities/analysis-diagnosis.js';
6
- import { researchInvestigation as researchInvestigation_capabilities } from '../dimensions/capabilities/research-investigation.js';
7
- import { formal as formal_formality } from '../dimensions/formality/formal.js';
8
- import { diagnostic as diagnostic_framing } from '../dimensions/framing/diagnostic.js';
9
- import { harmAvoidance as harmAvoidance_guardrails } from '../dimensions/guardrails/harm-avoidance.js';
10
- import { helpfulness as helpfulness_guardrails } from '../dimensions/guardrails/helpfulness.js';
11
- import { honesty as honesty_guardrails } from '../dimensions/guardrails/honesty.js';
12
- import { inputUntrusted as inputUntrusted_guardrails } from '../dimensions/guardrails/input-untrusted.js';
13
- import { takeTheBest as takeTheBest_heuristics } from '../dimensions/heuristics/take-the-best.js';
14
- import { correctionConsolidation as correctionConsolidation_learning } from '../dimensions/learning/correction-consolidation.js';
15
- import { insight as insight_objective } from '../dimensions/objective/insight.js';
16
- import { naturalLanguage as naturalLanguage_outputFormat } from '../dimensions/output-format/natural-language.js';
17
- import { reflexion as reflexion_reasoningStrategy } from '../dimensions/reasoning-strategy/reflexion.js';
18
- import { diagnose as diagnose_role } from '../dimensions/role/diagnose.js';
19
- import { optimize as optimize_satisficing } from '../dimensions/satisficing/optimize.js';
20
- import { selfCritique as selfCritique_selfEvaluation } from '../dimensions/self-evaluation/self-critique.js';
21
- import { comprehension as comprehension_situationAwareness } from '../dimensions/situation-awareness/comprehension.js';
22
- import { reasoningTrace as reasoningTrace_transparency } from '../dimensions/transparency/reasoning-trace.js';
23
- export const investigator = {
24
- name: 'investigator',
25
- description: 'Use this agent when something is broken or surprising and you need the root cause named and explained — the mechanism and the why — not the fix shipped.',
26
- archetype: 'Sage archetype of root-cause diagnosis — reason backward from symptom to fault via hypotheses + evidence-narrowing, name the mechanism and the why (¬ship the remedy); insight over a merely working answer.',
27
- role: diagnose_role,
28
- formality: formal_formality,
29
- audienceAdaptation: convergence_audienceAdaptation,
30
- transparency: reasoningTrace_transparency,
31
- autonomy: null,
32
- provenance: { mark: { emoji: '🔍', hue: 'purple' } },
33
- objective: insight_objective,
34
- guardrails: [
35
- harmAvoidance_guardrails,
36
- honesty_guardrails,
37
- helpfulness_guardrails,
38
- inputUntrusted_guardrails,
39
- ],
40
- heuristics: [takeTheBest_heuristics],
41
- capabilities: [
42
- analysisDiagnosis_capabilities,
43
- researchInvestigation_capabilities,
44
- ],
45
- learning: correctionConsolidation_learning,
46
- situationAwareness: comprehension_situationAwareness,
47
- actions: [codeExecution_actions, fileOps_actions, delegation_actions],
48
- modalities: null,
49
- model: null,
50
- memory: null,
51
- trigger: null,
52
- framing: diagnostic_framing,
53
- reasoningStrategy: reflexion_reasoningStrategy,
54
- satisficing: optimize_satisficing,
55
- outputFormat: naturalLanguage_outputFormat,
56
- selfEvaluation: selfCritique_selfEvaluation,
57
- engineeringPrinciples: null,
58
- };
59
- //# sourceMappingURL=investigator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"investigator.js","sourceRoot":"","sources":["../../src/agents/investigator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,WAAW,IAAI,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACjH,OA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c;IACpB,WAAW,EACT,0JAA0J;IAC5J,SAAS,EACP,8MAA8M;IAChN,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,gBAAgB;IAC3B,kBAAkB,EAAE,8BAA8B;IAClD,YAAY,EAAE,2BAA2B;IACzC,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;IACpD,SAAS,EAAE,iBAAiB;IAC5B,UAAU,EAAE;QACV,wBAAwB;QACxB,kBAAkB;QAClB,sBAAsB;QACtB,yBAAyB;KAC1B;IACD,UAAU,EAAE,CAAC,sBAAsB,CAAC;IACpC,YAAY,EAAE;QACZ,8BAA8B;QAC9B,kCAAkC;KACnC;IACD,QAAQ,EAAE,gCAAgC;IAC1C,kBAAkB,EAAE,gCAAgC;IACpD,OAAO,EAAE,CAAC,qBAAqB,EAAE,eAAe,EAAE,kBAAkB,CAAC;IACrE,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,kBAAkB;IAC3B,iBAAiB,EAAE,2BAA2B;IAC9C,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,4BAA4B;IAC1C,cAAc,EAAE,2BAA2B;IAC3C,qBAAqB,EAAE,IAAI;CAC5B,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Agent } from '../manifest.js';
2
- export declare const planner: Agent;
@@ -1,52 +0,0 @@
1
- import { delegation as delegation_actions } from '../dimensions/actions/delegation.js';
2
- import { fileOps as fileOps_actions } from '../dimensions/actions/file-ops.js';
3
- import { convergence as convergence_audienceAdaptation } from '../dimensions/audience-adaptation/convergence.js';
4
- import { planningDecomposition as planningDecomposition_capabilities } from '../dimensions/capabilities/planning-decomposition.js';
5
- import { separationOfConcerns as separationOfConcerns_engineeringPrinciples } from '../dimensions/engineering-principles/separation-of-concerns.js';
6
- import { formal as formal_formality } from '../dimensions/formality/formal.js';
7
- import { decompositional as decompositional_framing } from '../dimensions/framing/decompositional.js';
8
- import { harmAvoidance as harmAvoidance_guardrails } from '../dimensions/guardrails/harm-avoidance.js';
9
- import { helpfulness as helpfulness_guardrails } from '../dimensions/guardrails/helpfulness.js';
10
- import { honesty as honesty_guardrails } from '../dimensions/guardrails/honesty.js';
11
- import { correctionConsolidation as correctionConsolidation_learning } from '../dimensions/learning/correction-consolidation.js';
12
- import { thoroughness as thoroughness_objective } from '../dimensions/objective/thoroughness.js';
13
- import { structuredDecision as structuredDecision_outputFormat } from '../dimensions/output-format/structured-decision.js';
14
- import { planAndSolve as planAndSolve_reasoningStrategy } from '../dimensions/reasoning-strategy/plan-and-solve.js';
15
- import { plan as plan_role } from '../dimensions/role/plan.js';
16
- import { satisfice as satisfice_satisficing } from '../dimensions/satisficing/satisfice.js';
17
- import { acceptanceCriteriaCheck as acceptanceCriteriaCheck_selfEvaluation } from '../dimensions/self-evaluation/acceptance-criteria-check.js';
18
- import { projection as projection_situationAwareness } from '../dimensions/situation-awareness/projection.js';
19
- import { decisionRationale as decisionRationale_transparency } from '../dimensions/transparency/decision-rationale.js';
20
- export const planner = {
21
- name: 'planner',
22
- description: 'Use this agent when you have an agreed goal and need it decomposed into ordered, scoped steps — one concern per shard — sequenced for execution. It plans; it does not execute the steps it lays out.',
23
- archetype: 'Ruler archetype of tactical decomposition — partition a goal into ordered, scoped steps and sequence them (plan, ¬execute), downstream of an agreed goal · upstream of execution; one concern per shard.',
24
- role: plan_role,
25
- formality: formal_formality,
26
- audienceAdaptation: convergence_audienceAdaptation,
27
- transparency: decisionRationale_transparency,
28
- autonomy: null,
29
- provenance: { mark: { emoji: '🗺️', hue: 'orange' } },
30
- objective: thoroughness_objective,
31
- engineeringPrinciples: [separationOfConcerns_engineeringPrinciples],
32
- guardrails: [
33
- harmAvoidance_guardrails,
34
- honesty_guardrails,
35
- helpfulness_guardrails,
36
- ],
37
- capabilities: [planningDecomposition_capabilities],
38
- learning: correctionConsolidation_learning,
39
- situationAwareness: projection_situationAwareness,
40
- actions: [fileOps_actions, delegation_actions],
41
- modalities: null,
42
- model: null,
43
- memory: null,
44
- trigger: null,
45
- framing: decompositional_framing,
46
- reasoningStrategy: planAndSolve_reasoningStrategy,
47
- satisficing: satisfice_satisficing,
48
- outputFormat: structuredDecision_outputFormat,
49
- selfEvaluation: acceptanceCriteriaCheck_selfEvaluation,
50
- heuristics: null,
51
- };
52
- //# sourceMappingURL=planner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planner.js","sourceRoot":"","sources":["../../src/agents/planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,WAAW,IAAI,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACjH,OAAO,EAAE,qBAAqB,IAAI,kCAAkC,EAAE,MAAM,sDAAsD,CAAC;AACnI,OAAO,EAAE,oBAAoB,IAAI,0CAA0C,EAAE,MAAM,gEAAgE,CAAC;AACpJ,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,aAAa,IAAI,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,WAAW,IAAI,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,uBAAuB,IAAI,gCAAgC,EAAE,MAAM,oDAAoD,CAAC;AACjI,OAAO,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EAAE,kBAAkB,IAAI,+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ClC,YAAY,EAAE,+BAA+B;IAC7C,cAAc,EAAE,sCAAsC;IACtD,UAAU,EAAE,IAAI;CACjB,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Agent } from '../manifest.js';
2
- export declare const principalEngineerReviewer: Agent;
@@ -1,56 +0,0 @@
1
- import { delegation as delegation_actions } from '../dimensions/actions/delegation.js';
2
- import { fileOps as fileOps_actions } from '../dimensions/actions/file-ops.js';
3
- import { convergence as convergence_audienceAdaptation } from '../dimensions/audience-adaptation/convergence.js';
4
- import { reviewCritique as reviewCritique_capabilities } from '../dimensions/capabilities/review-critique.js';
5
- import { formal as formal_formality } from '../dimensions/formality/formal.js';
6
- import { riskOriented as riskOriented_framing } from '../dimensions/framing/risk-oriented.js';
7
- import { harmAvoidance as harmAvoidance_guardrails } from '../dimensions/guardrails/harm-avoidance.js';
8
- import { helpfulness as helpfulness_guardrails } from '../dimensions/guardrails/helpfulness.js';
9
- import { honesty as honesty_guardrails } from '../dimensions/guardrails/honesty.js';
10
- import { inputUntrusted as inputUntrusted_guardrails } from '../dimensions/guardrails/input-untrusted.js';
11
- import { scopeOfAuthority as scopeOfAuthority_guardrails } from '../dimensions/guardrails/scope-of-authority.js';
12
- import { takeTheBest as takeTheBest_heuristics } from '../dimensions/heuristics/take-the-best.js';
13
- import { correctionConsolidation as correctionConsolidation_learning } from '../dimensions/learning/correction-consolidation.js';
14
- import { correctness as correctness_objective } from '../dimensions/objective/correctness.js';
15
- import { structuredDecision as structuredDecision_outputFormat } from '../dimensions/output-format/structured-decision.js';
16
- import { react as react_reasoningStrategy } from '../dimensions/reasoning-strategy/react.js';
17
- import { review as review_role } from '../dimensions/role/review.js';
18
- import { optimize as optimize_satisficing } from '../dimensions/satisficing/optimize.js';
19
- import { selfCritique as selfCritique_selfEvaluation } from '../dimensions/self-evaluation/self-critique.js';
20
- import { comprehension as comprehension_situationAwareness } from '../dimensions/situation-awareness/comprehension.js';
21
- import { reasoningTrace as reasoningTrace_transparency } from '../dimensions/transparency/reasoning-trace.js';
22
- export const principalEngineerReviewer = {
23
- name: 'principal-engineer-reviewer',
24
- description: "Use this agent when a change needs a verdict before it ships — a pass/fail with findings on what's wrong; it judges and flags, never authoring the fix itself.",
25
- archetype: 'Ruler archetype of the review gate — judge an existing artifact against correctness · security · style · fit → verdict + findings (¬author the fix), the principal-IC standing specialized to guard what ships; risk-weighted, scope-bounded.',
26
- role: review_role,
27
- formality: formal_formality,
28
- audienceAdaptation: convergence_audienceAdaptation,
29
- transparency: reasoningTrace_transparency,
30
- autonomy: null,
31
- provenance: { mark: { emoji: '🛡️', hue: 'red' } },
32
- objective: correctness_objective,
33
- guardrails: [
34
- harmAvoidance_guardrails,
35
- honesty_guardrails,
36
- helpfulness_guardrails,
37
- inputUntrusted_guardrails,
38
- scopeOfAuthority_guardrails,
39
- ],
40
- heuristics: [takeTheBest_heuristics],
41
- capabilities: [reviewCritique_capabilities],
42
- learning: correctionConsolidation_learning,
43
- situationAwareness: comprehension_situationAwareness,
44
- actions: [fileOps_actions, delegation_actions],
45
- modalities: null,
46
- model: null,
47
- memory: null,
48
- trigger: null,
49
- framing: riskOriented_framing,
50
- reasoningStrategy: react_reasoningStrategy,
51
- satisficing: optimize_satisficing,
52
- outputFormat: structuredDecision_outputFormat,
53
- selfEvaluation: selfCritique_selfEvaluation,
54
- engineeringPrinciples: null,
55
- };
56
- //# sourceMappingURL=principal-engineer-reviewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"principal-engineer-reviewer.js","sourceRoot":"","sources":["../../src/agents/principal-engineer-reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,WAAW,IAAI,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACjH,OAAO,EAAE,cAAc,IAAI,2BAA2B,EAAE,MAAM,+CAA+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,EACP,+OAA+O;IACjP,IAAI,EAAE,WAAW;IACjB,SAAS,EAAE,gBAAgB;IAC3B,kBAAkB,EAAE,8BAA8B;IAClD,YAAY,EAAE,2BAA2B;IACzC,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;IAClD,SAAS,EAAE,qBAAqB;IAChC,UAAU,EAAE;QACV,wBAAwB;QACxB,kBAAkB;QAClB,sBAAsB;QACtB,yBAAyB;QACzB,2BAA2B;KAC5B;IACD,UAAU,EAAE,CAAC,sBAAsB,CAAC;IACpC,YAAY,EAAE,CAAC,2BAA2B,CAAC;IAC3C,QAAQ,EAAE,gCAAgC;IAC1C,kBAAkB,EAAE,gCAAgC;IACpD,OAAO,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;IAC9C,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,oBAAoB;IAC7B,iBAAiB,EAAE,uBAAuB;IAC1C,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,+BAA+B;IAC7C,cAAc,EAAE,2BAA2B;IAC3C,qBAAqB,EAAE,IAAI;CAC5B,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Agent } from '../manifest.js';
2
- export declare const principalIc: Agent;
@@ -1,72 +0,0 @@
1
- import { delegation as delegation_actions } from '../dimensions/actions/delegation.js';
2
- import { fileOps as fileOps_actions } from '../dimensions/actions/file-ops.js';
3
- import { convergence as convergence_audienceAdaptation } from '../dimensions/audience-adaptation/convergence.js';
4
- import { softwareEngineering as softwareEngineering_capabilities } from '../dimensions/capabilities/software-engineering.js';
5
- import { systemDesign as systemDesign_capabilities } from '../dimensions/capabilities/system-design.js';
6
- import { coldDecodeOracle as coldDecodeOracle_engineeringPrinciples } from '../dimensions/engineering-principles/cold-decode-oracle.js';
7
- import { dry as dry_engineeringPrinciples } from '../dimensions/engineering-principles/dry.js';
8
- import { firstPrinciples as firstPrinciples_engineeringPrinciples } from '../dimensions/engineering-principles/first-principles.js';
9
- import { invokeTheCanonical as invokeTheCanonical_engineeringPrinciples } from '../dimensions/engineering-principles/invoke-the-canonical.js';
10
- import { llmNative as llmNative_engineeringPrinciples } from '../dimensions/engineering-principles/llm-native.js';
11
- import { mece as mece_engineeringPrinciples } from '../dimensions/engineering-principles/mece.js';
12
- import { trustButVerify as trustButVerify_engineeringPrinciples } from '../dimensions/engineering-principles/trust-but-verify.js';
13
- import { zeroTrust as zeroTrust_engineeringPrinciples } from '../dimensions/engineering-principles/zero-trust.js';
14
- import { neutral as neutral_formality } from '../dimensions/formality/neutral.js';
15
- import { firstPrinciples as firstPrinciples_framing } from '../dimensions/framing/first-principles.js';
16
- import { harmAvoidance as harmAvoidance_guardrails } from '../dimensions/guardrails/harm-avoidance.js';
17
- import { helpfulness as helpfulness_guardrails } from '../dimensions/guardrails/helpfulness.js';
18
- import { honesty as honesty_guardrails } from '../dimensions/guardrails/honesty.js';
19
- import { scopeOfAuthority as scopeOfAuthority_guardrails } from '../dimensions/guardrails/scope-of-authority.js';
20
- import { takeTheBest as takeTheBest_heuristics } from '../dimensions/heuristics/take-the-best.js';
21
- import { correctionConsolidation as correctionConsolidation_learning } from '../dimensions/learning/correction-consolidation.js';
22
- import { delivery as delivery_objective } from '../dimensions/objective/delivery.js';
23
- import { structuredDecision as structuredDecision_outputFormat } from '../dimensions/output-format/structured-decision.js';
24
- import { planAndSolve as planAndSolve_reasoningStrategy } from '../dimensions/reasoning-strategy/plan-and-solve.js';
25
- import { orchestrate as orchestrate_role } from '../dimensions/role/orchestrate.js';
26
- import { optimize as optimize_satisficing } from '../dimensions/satisficing/optimize.js';
27
- import { selfCritique as selfCritique_selfEvaluation } from '../dimensions/self-evaluation/self-critique.js';
28
- import { projection as projection_situationAwareness } from '../dimensions/situation-awareness/projection.js';
29
- import { reasoningTrace as reasoningTrace_transparency } from '../dimensions/transparency/reasoning-trace.js';
30
- export const principalIc = {
31
- name: 'principal-ic',
32
- description: 'Use this agent when a goal needs orchestration across multiple agents — dispatch, sequence, and integrate their work to a delivered result. It coordinates the delegated work; it does not do that work itself.',
33
- archetype: "Ruler archetype of the IC root — dispatch · sequence · integrate other agents' work to a delivered goal (orchestrate, ¬do the delegated work itself), the principal-tier root standing that mav · nico · reviewer · tester specialize.",
34
- role: orchestrate_role,
35
- formality: neutral_formality,
36
- audienceAdaptation: convergence_audienceAdaptation,
37
- transparency: reasoningTrace_transparency,
38
- autonomy: null,
39
- provenance: { mark: { emoji: '🏛️', hue: 'red' } },
40
- objective: delivery_objective,
41
- engineeringPrinciples: [
42
- firstPrinciples_engineeringPrinciples,
43
- dry_engineeringPrinciples,
44
- mece_engineeringPrinciples,
45
- zeroTrust_engineeringPrinciples,
46
- trustButVerify_engineeringPrinciples,
47
- invokeTheCanonical_engineeringPrinciples,
48
- llmNative_engineeringPrinciples,
49
- coldDecodeOracle_engineeringPrinciples,
50
- ],
51
- guardrails: [
52
- harmAvoidance_guardrails,
53
- honesty_guardrails,
54
- helpfulness_guardrails,
55
- scopeOfAuthority_guardrails,
56
- ],
57
- heuristics: [takeTheBest_heuristics],
58
- capabilities: [systemDesign_capabilities, softwareEngineering_capabilities],
59
- learning: correctionConsolidation_learning,
60
- situationAwareness: projection_situationAwareness,
61
- actions: [fileOps_actions, delegation_actions],
62
- modalities: null,
63
- model: null,
64
- memory: null,
65
- trigger: null,
66
- framing: firstPrinciples_framing,
67
- reasoningStrategy: planAndSolve_reasoningStrategy,
68
- satisficing: optimize_satisficing,
69
- outputFormat: structuredDecision_outputFormat,
70
- selfEvaluation: selfCritique_selfEvaluation,
71
- };
72
- //# sourceMappingURL=principal-ic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"principal-ic.js","sourceRoot":"","sources":["../../src/agents/principal-ic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IA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AA2B;KAC5B;IACD,UAAU,EAAE,CAAC,sBAAsB,CAAC;IACpC,YAAY,EAAE,CAAC,yBAAyB,EAAE,gCAAgC,CAAC;IAC3E,QAAQ,EAAE,gCAAgC;IAC1C,kBAAkB,EAAE,6BAA6B;IACjD,OAAO,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;IAC9C,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,uBAAuB;IAChC,iBAAiB,EAAE,8BAA8B;IACjD,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,+BAA+B;IAC7C,cAAc,EAAE,2BAA2B;CAC5C,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Agent } from '../manifest.js';
2
- export declare const tester: Agent;
@@ -1,55 +0,0 @@
1
- import { codeExecution as codeExecution_actions } from '../dimensions/actions/code-execution.js';
2
- import { fileOps as fileOps_actions } from '../dimensions/actions/file-ops.js';
3
- import { convergence as convergence_audienceAdaptation } from '../dimensions/audience-adaptation/convergence.js';
4
- import { verificationTesting as verificationTesting_capabilities } from '../dimensions/capabilities/verification-testing.js';
5
- import { formal as formal_formality } from '../dimensions/formality/formal.js';
6
- import { correctnessOriented as correctnessOriented_framing } from '../dimensions/framing/correctness-oriented.js';
7
- import { harmAvoidance as harmAvoidance_guardrails } from '../dimensions/guardrails/harm-avoidance.js';
8
- import { helpfulness as helpfulness_guardrails } from '../dimensions/guardrails/helpfulness.js';
9
- import { honesty as honesty_guardrails } from '../dimensions/guardrails/honesty.js';
10
- import { inputUntrusted as inputUntrusted_guardrails } from '../dimensions/guardrails/input-untrusted.js';
11
- import { takeTheBest as takeTheBest_heuristics } from '../dimensions/heuristics/take-the-best.js';
12
- import { correctionConsolidation as correctionConsolidation_learning } from '../dimensions/learning/correction-consolidation.js';
13
- import { thoroughness as thoroughness_objective } from '../dimensions/objective/thoroughness.js';
14
- import { structuredDecision as structuredDecision_outputFormat } from '../dimensions/output-format/structured-decision.js';
15
- import { planAndSolve as planAndSolve_reasoningStrategy } from '../dimensions/reasoning-strategy/plan-and-solve.js';
16
- import { test as test_role } from '../dimensions/role/test.js';
17
- import { optimize as optimize_satisficing } from '../dimensions/satisficing/optimize.js';
18
- import { executableTestOracle as executableTestOracle_selfEvaluation } from '../dimensions/self-evaluation/executable-test-oracle.js';
19
- import { comprehension as comprehension_situationAwareness } from '../dimensions/situation-awareness/comprehension.js';
20
- import { decisionRationale as decisionRationale_transparency } from '../dimensions/transparency/decision-rationale.js';
21
- import { toolResult as toolResult_trigger } from '../dimensions/trigger/tool-result.js';
22
- export const tester = {
23
- name: 'tester',
24
- description: 'Use this agent when an artifact needs exercising to surface defects — it builds and runs the checks and reports pass/fail evidence, but does not fix what it finds.',
25
- archetype: 'Ruler archetype of the verification gate — design + run checks (cases · fixtures · harnesses) that exercise an artifact to surface defects → pass/fail evidence (¬fix what it finds); exhaustive coverage, no branch · edge · case unexamined.',
26
- role: test_role,
27
- formality: formal_formality,
28
- audienceAdaptation: convergence_audienceAdaptation,
29
- transparency: decisionRationale_transparency,
30
- autonomy: null,
31
- provenance: { mark: { emoji: '⚖️', hue: 'purple' } },
32
- objective: thoroughness_objective,
33
- guardrails: [
34
- harmAvoidance_guardrails,
35
- honesty_guardrails,
36
- helpfulness_guardrails,
37
- inputUntrusted_guardrails,
38
- ],
39
- capabilities: [verificationTesting_capabilities],
40
- heuristics: [takeTheBest_heuristics],
41
- learning: correctionConsolidation_learning,
42
- situationAwareness: comprehension_situationAwareness,
43
- actions: [codeExecution_actions, fileOps_actions],
44
- modalities: null,
45
- model: null,
46
- memory: null,
47
- trigger: toolResult_trigger,
48
- framing: correctnessOriented_framing,
49
- reasoningStrategy: planAndSolve_reasoningStrategy,
50
- satisficing: optimize_satisficing,
51
- outputFormat: structuredDecision_outputFormat,
52
- selfEvaluation: executableTestOracle_selfEvaluation,
53
- engineeringPrinciples: null,
54
- };
55
- //# sourceMapping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@ -1,148 +0,0 @@
1
- // memory-consolidation-nudge — an ADVISORY Stop hook (the harness half of the
2
- // memory-consolidation protocol). On turn.end (Stop only — NOT SubagentStop), it
3
- // cheaply counts the agent's unconsolidated EPISODIC records and, over a
4
- // conservative watermark, prints a non-blocking advisory to run a hot-path dream.
5
- //
6
- // WHY THIS EXISTS (the harness half of the memory dimension):
7
- // Per-turn ENCODE grows the raw EPISODIC log; only /dream folds + drains it. An
8
- // agent that never dreams accretes an unbounded raw log and loses the
9
- // consolidation window while context is still hot. This hook is the ambient
10
- // reminder: it observes the backlog the agent cannot see from inside the turn
11
- // and surfaces "time to consolidate" — without ever wedging the turn.
12
- //
13
- // ADVISORY, NEVER BLOCKING (the load-bearing contract):
14
- // Unlike stance-guardrail, this hook NEVER emits `{"decision":"block"}`. It
15
- // prints an advisory line to stdout and exits 0. Memory consolidation is a
16
- // soft, recoverable duty; blocking a turn on an un-run ritual would wedge real
17
- // work for no correctness gain. The nudge is intentionally soft.
18
- //
19
- // HOME DERIVATION (the Stop-env caveat — flagged, not faked):
20
- // A top-level Stop hook fires in the harness env and carries NO agent_type
21
- // (that is a SubagentStop field), so the agent's home is not handed in. The
22
- // worker derives it best-effort, in order: (1) $CLAUDE_AGENT_HOME override;
23
- // (2) match the hook JSON's session_id against the memory session registry
24
- // `~/.agents/*/sessions/<id>.json` (the liveness registry the `memory` tool keeps —
25
- // the correct derivation whenever wake has registered the session); (3) the sole
26
- // `~/.agents/*` home when exactly one exists. If none resolves, it exits 0
27
- // SILENTLY — a KNOWN LIMITATION (no reliable home ⇒ no honest count), never a
28
- // fabricated count.
29
- //
30
- // The `workers[].content` is the TEMPLATE the committed worker at `targetPath`
31
- // regenerates from — resolved bytes, byte-locked by `test/hook-rule-boundary.test.ts`.
32
- // EDIT THE CELL AND REGENERATE (`pnpm canon:project:targets`) — never the committed
33
- // `.sh` alone; a hand-edit drifts the anchor and the byte-lock goes red.
34
- //
35
- // THIS CELL ONCE IMPORTED `CLI_BIN` FROM `@cratylus/runtime`, and it was the last
36
- // breach of ARCHITECTURE's property 1 — meaning and mechanism never reference each
37
- // other. The rationale on record was that "the worker names it inside a shell string
38
- // no compiler reads", which is true and beside the point: the import is an edge
39
- // whether or not a compiler follows the value into the string. The worker now names
40
- // the FACT it needs (`{{fact:runtime-bin}}`) and the PROJECTOR substitutes; the cell
41
- // names a capability, never an implementation. `$MEMORY_BIN` stays the override and
42
- // the test seam; the resolved name is only its DEFAULT.
43
- //
44
- // WHAT IT SAYS TO AN AGENT lives in `speech`, not in the shell. Those two strings are
45
- // the only bytes here that land in a reader's context, so they are the only ones a
46
- // reader-density gate should score — and they had no declared home until this seam.
47
- export const memoryConsolidationNudge = {
48
- id: 'memory-consolidation-nudge',
49
- residue: 'advisory ↾ turn-end · owed ⇒ emit hot-path-dream advisory ⟨¬block · exit-0 · ¬wedge-turn⟩ · owed ↦ runtime ⟨backlog ∨ store-pressure ∨ scope-drift ; ¬face-computed⟩ · home ↦ $env ∨ runtime(session) ⟨¬derivable ⇒ silent⟩ · fail-open ∀error',
50
- substrate: 'harness',
51
- events: ['turn.end'],
52
- entry: 'memory-consolidation-nudge.sh',
53
- timeout: 10,
54
- refs: [],
55
- speech: [
56
- {
57
- id: 'owed',
58
- text: 'MEMORY — a consolidation is owed (unfolded records, an oversized store, or scope drift). Consider a hot-path /dream to fold, drain and depalimpsest while context is hot.',
59
- },
60
- {
61
- id: 'blind',
62
- // `%s` is the worker's printf arg for `$MEM` — the bin actually consulted. A
63
- // BLIND nudge that named no binary would send the reader hunting for which one.
64
- text: 'MEMORY — the runtime did not answer whether a consolidation is owed (`%s memory audit` failed). The nudge is BLIND until that is fixed; this is not a clear verdict.',
65
- },
66
- ],
67
- workers: [
68
- {
69
- filename: 'memory-consolidation-nudge.sh',
70
- targetPath: 'packages/canon/targets/guardrail/memory-consolidation-nudge.sh',
71
- executable: true,
72
- content: `#!/usr/bin/env sh
73
- # memory-consolidation-nudge — an ADVISORY Stop hook. It asks the memory runtime
74
- # whether a consolidation is owed and, if so, prints a non-blocking reminder to
75
- # run a hot-path /dream. It NEVER blocks the turn.
76
- #
77
- # WHY (the harness half of the memory dimension): per-turn ENCODE grows the raw
78
- # EPISODIC log and the prose stores only ever grow; only /dream folds, drains and
79
- # depalimpsests them. This is the ambient reminder to do it while context is hot.
80
- #
81
- # THE FACE ASKS, IT DOES NOT KNOW. Both questions this hook needs — which home
82
- # owns this session, and whether a dream is owed — are answered by the runtime:
83
- #
84
- # memory home --session <id> -> the owning home (registry lookup)
85
- # memory audit --home <h> --owed -> "owed" | "clear"
86
- #
87
- # It previously derived the home by scanning ~/.agents/* and counted the backlog
88
- # by awk-ing EPISODIC.jsonl. Both made a harness FACE read the being's memory
89
- # layout, and the second put a second home on the "is a dream owed" predicate —
90
- # one that measured only raw-record count, so an oversized prose store never
91
- # raised a signal at all.
92
- #
93
- # CONTRACT:
94
- # - ADVISORY ONLY. Prints to stdout and exits 0. It NEVER emits
95
- # {"decision":"block"} — a soft, recoverable duty must not wedge a turn.
96
- # - FAILS OPEN + SILENT. Any error (no runtime, no home, no jq) -> exit 0, no
97
- # output. A reminder that misfires on its own flakiness is worse than a
98
- # missed one.
99
- # - Stop ONLY (turn.end). Registered on subagent.end it would nudge transient
100
- # sub-turns; the dimension home is the top-level agent's.
101
- #
102
- # INPUT : Claude Code Stop hook JSON on stdin (session_id, cwd, ...).
103
- # OUTPUT : owed -> one advisory line + exit 0; else nothing.
104
-
105
- set -eu
106
-
107
- # A Stop hook must never break a session. Any unexpected error -> allow the stop.
108
- trap 'exit 0' EXIT
109
-
110
- # The runtime bin. \$MEMORY_BIN is the override and the test seam.
111
- MEM="\${MEMORY_BIN:-{{fact:runtime-bin}}}"
112
- command -v "\$MEM" >/dev/null 2>&1 || exit 0
113
-
114
- input="\$(cat 2>/dev/null || true)"
115
-
116
- # --- resolve the home: explicit override, else ask the registry ----------------
117
- home="\${CLAUDE_AGENT_HOME:-}"
118
- if [ -z "\$home" ]; then
119
- sid=""
120
- if command -v jq >/dev/null 2>&1 && [ -n "\$input" ]; then
121
- sid="\$(printf '%s' "\$input" | jq -r '.session_id // empty' 2>/dev/null || true)"
122
- fi
123
- [ -n "\$sid" ] || exit 0
124
- home="\$("\$MEM" memory home --session "\$sid" 2>/dev/null || true)"
125
- fi
126
- [ -n "\$home" ] || exit 0
127
-
128
- # --- ask whether a dream is owed ------------------------------------------------
129
- # The verdict and the FAILURE are separated deliberately. Every runtime call here is
130
- # \`2>/dev/null || true\` so a reminder can never fail a turn — correct, but it made an
131
- # unreachable runtime yield an EMPTY verdict, which is exactly what "clear" yields. So
132
- # a broken runtime read as a clean bill of health, silently and forever: the nudge
133
- # would stop existing and nothing would say so. \`if signal absent then pass\` is a
134
- # bypass by omission; this inverts it to \`if signal absent then SAY SO\`, while still
135
- # never blocking.
136
- if verdict="\$("\$MEM" memory audit --home "\$home" --owed 2>/dev/null)"; then
137
- if [ "\$verdict" = "owed" ]; then
138
- printf '{{speech:owed}}\\n'
139
- fi
140
- else
141
- printf '{{speech:blind}}\\n' "\$MEM"
142
- fi
143
- exit 0
144
- `,
145
- },
146
- ],
147
- };
148
- //# sourceMappingURL=memory-consolidation-nudge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory-consolidation-nudge.js","sourceRoot":"","sources":["../../src/hooks/memory-consolidation-nudge.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,iFAAiF;AACjF,yEAAyE;AACzE,kFAAkF;AAClF,EAAE;AACF,8DAA8D;AAC9D,kFAAkF;AAClF,wEAAwE;AACxE,8EAA8E;AAC9E,gFAAgF;AAChF,wEAAwE;AACxE,EAAE;AACF,wDAAwD;AACxD,8EAA8E;AAC9E,6EAA6E;AAC7E,iFAAiF;AACjF,mEAAmE;AACnE,EAAE;AACF,8DAA8D;AAC9D,6EAA6E;AAC7E,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,sFAAsF;AACtF,mFAAmF;AACnF,6EAA6E;AAC7E,gFAAgF;AAChF,sBAAsB;AACtB,EAAE;AACF,+EAA+E;AAC/E,uFAAuF;AACvF,oFAAoF;AACpF,yEAAyE;AACzE,EAAE;AACF,kFAAkF;AAClF,mFAAmF;AACnF,qFAAqF;AACrF,gFAAgF;AAChF,oFAAoF;AACpF,qFAAqF;AACrF,oFAAoF;AACpF,wDAAwD;AACxD,EAAE;AACF,sFAAsF;AACtF,mFAAmF;AACnF,oFAAoF;AAEpF,MAAM,CAAC,MAAM,wBAAwB,GAAa;IAChD,EAAE,EAAE,4BAA4B;IAChC,OAAO,EACL,gPAAgP;IAClP,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,CAAC,UAAU,CAAC;IACpB,KAAK,EAAE,+BAA+B;IACtC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,MAAM,EAAE;QACN;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,2KAA2K;SAClL;QACD;YACE,EAAE,EAAE,OAAO;YACX,6EAA6E;YAC7E,gFAAgF;YAChF,IAAI,EAAE,sKAAsK;SAC7K;KACF;IACD,OAAO,EAAE;QACP;YACE,QAAQ,EAAE,+BAA+B;YACzC,UAAU,EACR,gEAAgE;YAClE,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEd;SACI;KACF;CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { HookCell } from '../manifest.js';
2
- export declare const resumeAvailabilityNotice: HookCell;
@@ -1,50 +0,0 @@
1
- // resume-availability-notice — the SessionStart note. It tells the agent that
2
- // memory exists and that `/wake` reconstitutes it, and does nothing else.
3
- //
4
- // WHY A NOTE AND NOT AN ACTION: reconstitution is the operator's call, not the
5
- // harness's. The agent may already have been woken, may deliberately be wanted
6
- // cold, or may simply have been started without it. A hook cannot tell which,
7
- // so it must not decide — it makes the option visible and leaves the choice
8
- // where it belongs.
9
- //
10
- // THE VERB-FREE LAW IS LOAD-BEARING, not tidiness. Every memory verb that
11
- // touches the registry REGISTERS the session, and registration is exactly what
12
- // distinguishes a woken session from an encode-only one (`SessionEntry.origin`).
13
- // A note that called any such verb would register the session itself and make
14
- // every session look woken — destroying the very signal that lets the agent
15
- // notice it was NOT woken. So: no `session begin`, no `register`, no `read`, no
16
- // `encode`. It reads nothing, writes nothing, and needs no home.
17
- export const resumeAvailabilityNotice = {
18
- id: 'resume-availability-notice',
19
- residue: 'emit ↾ session.start · fixed-text · ¬verb ⟨any registry touch ⇒ every session reads woken ∴ origin destroyed⟩ · ¬read · ¬write · ¬home-derivation · reconstitution ↦ operator ⟨may have run it · may refuse it · may have forgotten⟩ · exit-0 ∀error',
20
- substrate: 'harness',
21
- events: ['session.start'],
22
- entry: 'resume-availability-notice.sh',
23
- timeout: 5,
24
- refs: [],
25
- workers: [
26
- {
27
- filename: 'resume-availability-notice.sh',
28
- targetPath: 'packages/canon/targets/guardrail/resume-availability-notice.sh',
29
- executable: true,
30
- content: `#!/usr/bin/env sh
31
- # resume-availability-notice — a SessionStart note. Emits ONE fixed line telling
32
- # the agent that memory skills exist and that /wake reconstitutes it.
33
- #
34
- # It calls NO memory verb. That is a hard requirement, not a style choice: every
35
- # registry-touching verb registers the session, and registration is what marks a
36
- # session as woken. A note that registered would make every session look woken
37
- # and destroy the signal it exists to support.
38
- #
39
- # Reads nothing, writes nothing, derives no home. Always exits 0.
40
-
41
- set -eu
42
- trap 'exit 0' EXIT
43
-
44
- printf 'MEMORY — this agent has persistent memory. /wake reconstitutes it (prior state, standing plan, continuity); /dream consolidates it. Neither runs automatically.\\n'
45
- exit 0
46
- `,
47
- },
48
- ],
49
- };
50
- //# sourceMappingURL=resume-availability-notice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resume-availability-notice.js","sourceRoot":"","sources":["../../src/hooks/resume-availability-notice.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,0EAA0E;AAC1E,+EAA+E;AAC/E,iFAAiF;AACjF,8EAA8E;AAC9E,4EAA4E;AAC5E,gFAAgF;AAChF,iEAAiE;AAEjE,MAAM,CAAC,MAAM,wBAAwB,GAAa;IAChD,EAAE,EAAE,4BAA4B;IAChC,OAAO,EACL,sPAAsP;IACxP,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,CAAC,eAAe,CAAC;IACzB,KAAK,EAAE,+BAA+B;IACtC,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,EAAE;IACR,OAAO,EAAE;QACP;YACE,QAAQ,EAAE,+BAA+B;YACzC,UAAU,EACR,gEAAgE;YAClE,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE;;;;;;;;;;;;;;;;CAgBd;SACI;KACF;CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Skill } from '../../manifest.js';
2
- export declare const dream: Skill;