hanoman 0.7.1 → 0.8.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.1",
3
- "sha": "faa0ab35",
4
- "builtAt": "2026-09-19T12:44:02.222Z"
2
+ "version": "0.8.0",
3
+ "sha": "e207f1bf",
4
+ "builtAt": "2026-09-20T02:51:11.990Z"
5
5
  }
package/dist/cli.js CHANGED
@@ -4768,7 +4768,7 @@ function cmpVersion(a, b) {
4768
4768
  }
4769
4769
  return 0;
4770
4770
  }
4771
- var zProject, zBriefPayload, zQaPayload, zGoalPayload, zSpecBlocker, zSourceChange, zManualDone, zSpec, NOTIFY_SOUNDS, zCodex, CODEX_DEFAULTS, zSourceCommon, zScheduler, SCHEDULER_DEFAULTS, zGoal, GOAL_DEFAULTS, zConflict, CONFLICT_DEFAULTS, CHANGELOG_ENGINE_DEFAULTS, zLeadEngine, zLead, LEAD_DEFAULTS, zPortalChat, PORTAL_CHAT_DEFAULTS, zPhaseCell, zPhaseOverride, zPhaseOverrides, zFlowOrchestration, zOrchestration, ORCHESTRATION_DEFAULTS, zSetting, zNotification, zDocFile, zDeviceTokenView;
4771
+ var zProject, zBriefPayload, zQaPayload, zGoalPayload, zSpecBlocker, zSourceChange, zManualDone, zSpec, zSpecListItem, zSpecSlim, NOTIFY_SOUNDS, zCodex, CODEX_DEFAULTS, zSourceCommon, zScheduler, SCHEDULER_DEFAULTS, zGoal, GOAL_DEFAULTS, zConflict, CONFLICT_DEFAULTS, CHANGELOG_ENGINE_DEFAULTS, zLeadEngine, zLead, LEAD_DEFAULTS, zPortalChat, PORTAL_CHAT_DEFAULTS, zPhaseCell, zPhaseOverride, zPhaseOverrides, zFlowOrchestration, zOrchestration, ORCHESTRATION_DEFAULTS, zSetting, zNotification, zDocFile, zDeviceTokenView;
4772
4772
  var init_entities = __esm({
4773
4773
  "../shared/src/entities.ts"() {
4774
4774
  "use strict";
@@ -4874,6 +4874,11 @@ var init_entities = __esm({
4874
4874
  // sesi atau belum selesai. `.nullable().default(null)` menjaga respons/klien versi lama parse.
4875
4875
  manualDone: zManualDone.nullable().default(null)
4876
4876
  });
4877
+ zSpecListItem = zSpec.omit({ payload: true, sourceHistory: true }).extend({
4878
+ version: external_exports.number().optional(),
4879
+ updatedAt: external_exports.string().optional()
4880
+ });
4881
+ zSpecSlim = zSpecListItem.omit({ objective: true });
4877
4882
  NOTIFY_SOUNDS = [
4878
4883
  "off",
4879
4884
  "short",
@@ -8470,17 +8475,12 @@ var init_backlog = __esm({
8470
8475
  inputSchema: obj({ properties: { spec: str(ID_HINT) }, required: ["spec"] }),
8471
8476
  mode: "read",
8472
8477
  capability: "backlog:read",
8473
- samplePath: "/specs",
8478
+ samplePath: "/specs/SPEC-1",
8474
8479
  sampleMethod: "GET",
8475
- build: (a) => ({ method: "GET", path: "/specs", query: { q: String(a.spec), limit: "100" } }),
8476
- // REST tak punya `GET /specs/:id`; `q` adalah SUBSTRING, jadi `SPEC-48` mengembalikan
8477
- // SPEC-480…489. Pencocokan persis dilakukan di sini, bukan dipercayakan ke server.
8478
- shape: (raw, a) => {
8479
- const want = String(a.spec).trim().toLowerCase();
8480
- const items = raw?.items ?? [];
8481
- const hit = items.find((i) => String(i.id).toLowerCase() === want);
8482
- return hit ? shapeSpecDetail(hit) : { error: `backlog "${String(a.spec)}" tidak ada. Cek ejaannya (bentuknya SPEC-nnn) atau cari dengan hanoman_backlog_search.` };
8483
- }
8480
+ // SPEC-1267 · `GET /specs` tak lagi membawa `payload`/`sourceHistory`, jadi isi penuh HANYA ada di
8481
+ // `GET /specs/:id`. Pencocokan id persis kini urusan server (404 bila tak ada).
8482
+ build: (a) => ({ method: "GET", path: `/specs/${enc(String(a.spec).trim())}` }),
8483
+ shape: (raw) => shapeSpecDetail(raw)
8484
8484
  },
8485
8485
  {
8486
8486
  name: "hanoman_backlog_docs_list",