haansi 0.1.110 → 0.1.112

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 (2) hide show
  1. package/dist/haansi.js +66 -3
  2. package/package.json +1 -1
package/dist/haansi.js CHANGED
@@ -95,7 +95,7 @@ var require_package = __commonJS({
95
95
  "package.json"(exports2, module2) {
96
96
  module2.exports = {
97
97
  name: "haansi",
98
- version: "0.1.110",
98
+ version: "0.1.112",
99
99
  description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
100
100
  bin: {
101
101
  haansi: "./dist/haansi.js"
@@ -19628,6 +19628,41 @@ var init_exclusions = __esm({
19628
19628
  'Normalized "job \u203A step" names from CI config, the same signatures problem families compare; no logs or output.'
19629
19629
  ]
19630
19630
  }),
19631
+ ...exchangeExclusions(INTEL, "repo_conventions", {
19632
+ repository: [
19633
+ "join-key",
19634
+ "owner/repo the convention belongs to, as in stored_replay_tasks; matched by equality."
19635
+ ],
19636
+ state: [
19637
+ "operational",
19638
+ "Closed CHECK vocabulary (proposed, approved, rejected, archived)."
19639
+ ],
19640
+ origin: [
19641
+ "operational",
19642
+ "Closed CHECK vocabulary (mined, instruction_file, human)."
19643
+ ],
19644
+ freshness: [
19645
+ "operational",
19646
+ "Closed CHECK vocabulary (current, may_be_outdated)."
19647
+ ],
19648
+ freshness_commits: [
19649
+ "not-personal",
19650
+ "Commit SHAs that touched the convention's paths since its last update."
19651
+ ]
19652
+ }),
19653
+ ...exchangeExclusions(INTEL, "repo_convention_settings", {
19654
+ repository: [
19655
+ "join-key",
19656
+ "owner/repo, as in repo_conventions; the primary key with the org."
19657
+ ],
19658
+ cadence: ["operational", "Closed CHECK vocabulary (weekly, monthly)."]
19659
+ }),
19660
+ ...exchangeExclusions(INTEL, "repo_convention_skills", {
19661
+ repository: [
19662
+ "join-key",
19663
+ "owner/repo, as in repo_conventions; unique with the org."
19664
+ ]
19665
+ }),
19631
19666
  ...exchangeExclusions(INTEL, "attempt_rule_configs", {
19632
19667
  config: [
19633
19668
  "operational",
@@ -26880,6 +26915,26 @@ var init_table_registry = __esm({
26880
26915
  entry("intelligence", INTELLIGENCE_DB, "replay_session_calls", "direct", {
26881
26916
  scopingColumn: "organization_id"
26882
26917
  }),
26918
+ // Repository conventions, their revisions and per-repository settings
26919
+ // (repo-conventions/001).
26920
+ entry("intelligence", INTELLIGENCE_DB, "repo_conventions", "direct", {
26921
+ scopingColumn: "organization_id"
26922
+ }),
26923
+ entry(
26924
+ "intelligence",
26925
+ INTELLIGENCE_DB,
26926
+ "repo_convention_revisions",
26927
+ "direct",
26928
+ { scopingColumn: "organization_id" }
26929
+ ),
26930
+ entry("intelligence", INTELLIGENCE_DB, "repo_convention_settings", "direct", {
26931
+ scopingColumn: "organization_id"
26932
+ }),
26933
+ // The skill each repository's conventions were built into
26934
+ // (repo-conventions/003).
26935
+ entry("intelligence", INTELLIGENCE_DB, "repo_convention_skills", "direct", {
26936
+ scopingColumn: "organization_id"
26937
+ }),
26883
26938
  // "Mine more tasks" requests the outcome ledger polls (outcome-ledger/058).
26884
26939
  entry("intelligence", INTELLIGENCE_DB, "replay_mining_requests", "direct", {
26885
26940
  scopingColumn: "organization_id"
@@ -85783,9 +85838,13 @@ __export(skills_exports, {
85783
85838
  sha256: () => sha256,
85784
85839
  skills: () => skills,
85785
85840
  syncInto: () => syncInto,
85841
+ syncableCards: () => syncableCards,
85786
85842
  targetDirs: () => targetDirs,
85787
85843
  unchangedLocally: () => unchangedLocally
85788
85844
  });
85845
+ function syncableCards(cards) {
85846
+ return cards.filter((c) => c.needsUpdate !== true);
85847
+ }
85789
85848
  function parseSkillsArgs(argv) {
85790
85849
  const options = { project: false };
85791
85850
  let sub;
@@ -85976,7 +86035,7 @@ async function skills(argv) {
85976
86035
  token2,
85977
86036
  apiUrl2
85978
86037
  );
85979
- const cards = list2.data ?? [];
86038
+ const cards = syncableCards(list2.data ?? []);
85980
86039
  const { agents } = resolveAgentSelection(options.agent);
85981
86040
  for (const dir of targetDirs(options, agents)) {
85982
86041
  const report = await syncInto(
@@ -86895,7 +86954,10 @@ async function searchHaansi(session, ask, fetchImpl = fetch) {
86895
86954
  ...first ? { query: first } : {},
86896
86955
  limit: PRIOR_ATTEMPTS_LIMIT
86897
86956
  }
86898
- }
86957
+ },
86958
+ // The task repository's conventions for those files (as of the
86959
+ // start; listed by the server only while the org has them).
86960
+ { name: "get_conventions", arguments: { paths: ask.paths } }
86899
86961
  ] : []
86900
86962
  ]);
86901
86963
  const others = [
@@ -89731,6 +89793,7 @@ function haansiSection(tools, hint = null) {
89731
89793
  "",
89732
89794
  "Start here, before you read or change any code, and search again when you get stuck:",
89733
89795
  "",
89796
+ "- Repository conventions: before you start coding, get_conventions with the files you expect to change: the repository's approved conventions (rules this codebase follows) that apply to them.",
89734
89797
  "- Past fixes: search_solutions with a sentence about the problem (its error line in error, failing tests in failing_tests, the files you expect to change in files, identifiers in names), then get_solution to read the matching results in full.",
89735
89798
  "- Team procedures: match_playbook with the task, and search_skills; get_skill loads one.",
89736
89799
  "- Earlier attempts at the same code: get_prior_attempts with the files you expect to change.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"