@hiveku-apps/sync 0.5.1 → 0.5.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiveku-apps/sync",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Sync a Hiveku account's memory/rules/skills + coder projects into a local folder, and ship projects (push/deploy/pull-env) from the terminal. Pairs with the Hiveku MCP at core.hiveku.com/mcp so Claude Code can drive Hiveku tools per-folder.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/claude-md.mjs CHANGED
@@ -30,16 +30,31 @@ export const CLAUDE_MD_BEGIN = '<!-- hiveku:memory:begin -->';
30
30
  /**
31
31
  * The source-of-truth rule, in the same words as the MCP server's own
32
32
  * instructions (hiveku-mcp-api-server src/services/mcp-instructions.service.ts,
33
- * MCP #100; Abe, 2026-10-03: "This memory needs to be the source of truth and
33
+ * MCP #100, with the two sentences MCP #174 adds on About your business and a
34
+ * local copy; Abe, 2026-10-03: "This memory needs to be the source of truth and
34
35
  * the agents know it and obey it"). CLAUDE.md's kept-current part and AGENTS.md
35
36
  * both carry it.
36
37
  */
37
38
  export const SOURCE_OF_TRUTH_LINE =
38
39
  'Hiveku Memory is the source of truth for this business: read it before you act, and follow it ' +
39
40
  'over your own assumptions, local files or earlier conversation. When something disagrees with ' +
40
- 'memory, trust memory and say so. When `memory_log_add` is listed, record your work: a Doing line ' +
41
- 'when you start a task for the person and a Done line when it ends. Save what you learned with the ' +
42
- 'memory_* tools.';
41
+ 'memory, trust memory and say so. About your business is read with `account_memory_get`; ' +
42
+ 'memory_list and memory_get leave it out. A local copy (ACCOUNT_MEMORY.md and the like) may be out ' +
43
+ 'of date: read it again from Hiveku before you act on it. When `memory_log_add` is listed, record ' +
44
+ 'your work: a Doing line when you start a task for the person and a Done line when it ends. Save ' +
45
+ 'what you learned with the memory_* tools.';
46
+
47
+ /**
48
+ * What Hiveku now writes in the memory log itself (MCP #174): a connected app's
49
+ * session gets its Doing at its first change and its Done when it goes quiet or
50
+ * ends, both counting the changes; the model's own Done says more and closes the
51
+ * session's run with its line. Both scaffolds put it right after the rule. The
52
+ * same words as the Claude Code plugin's shim and the VS Code extension.
53
+ */
54
+ export const WORK_LOG_LINE =
55
+ "Hiveku records this session's Doing at its first change and its Done when the session goes quiet " +
56
+ 'or ends. When the work ends, send a Done with `memory_log_add` and a one-line summary of what you ' +
57
+ 'did, if you want the log to say more than the count of changes; leave `thread` out.';
43
58
  export const CLAUDE_MD_END = '<!-- hiveku:memory:end -->';
44
59
 
45
60
  /** The kept-current part: the markers and the two sections between them. */
@@ -51,6 +66,7 @@ export function claudeMdMemoryRegion() {
51
66
  anything else in this file disagrees with them, follow these two sections.
52
67
 
53
68
  ${SOURCE_OF_TRUTH_LINE}
69
+ ${WORK_LOG_LINE}
54
70
 
55
71
  \`hiveku-sync pull\` files every entry under the agent that owns it, the way the
56
72
  Memory page does: \`<type>/<agent>/<name>.md\`, and \`<type>/shared/<name>.md\` for
@@ -92,8 +108,10 @@ The local files are a mirror of what memory said the last time
92
108
  \`hiveku-sync pull\` ran, and memory wins. They are quick context (never the
93
109
  \`moved/\` and \`not-followed/\` folders above), but before you act on one, or
94
110
  change an entry starting from one, re-read the entry live with
95
- \`memory_get({ memory_id })\` (the \`id\` in its front matter) and follow what
96
- that read says. To refresh the copies, run \`hiveku-sync pull\`.
111
+ \`memory_get({ memory_id })\` (the \`id\` in its front matter), and About your
112
+ business (\`hiveku-data/account/ACCOUNT_MEMORY.md\`) with \`account_memory_get\`,
113
+ which memory_list and memory_get leave out, and follow what that read says. To
114
+ refresh the copies, run \`hiveku-sync pull\`.
97
115
 
98
116
  ## Memory writes
99
117
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "source": "locus2012/hiveku-codex-plugin #28 (b7ff5fd, 2026-10-03), plugins/hiveku/.mcp.json: every hiveku.tools entry with approval_mode \"prompt\" (project_vcs_rollback included)",
2
+ "source": "locus2012/hiveku-codex-plugin main (af0fd36, 0.3.8), plugins/hiveku/.mcp.json: every hiveku.tools entry with approval_mode \"prompt\" (project_vcs_rollback included)",
3
3
  "why": "hiveku-sync writes its own [mcp_servers.hiveku] into a Codex folder. Codex then uses that entry, not the plugin's, for the server's connection and for every tool's approval mode, so these prompts must be written here too. Refresh this list whenever the Codex plugin's prompt list changes.",
4
4
  "tools": [
5
5
  "deploy_site",
@@ -8,6 +8,7 @@
8
8
  "project_vcs_commit",
9
9
  "project_vcs_merge",
10
10
  "project_vcs_pr_merge",
11
+ "github_pr_merge",
11
12
  "project_vcs_env_bind",
12
13
  "project_vcs_branch_delete",
13
14
  "project_vcs_stash",
@@ -15,6 +16,9 @@
15
16
  "project_vcs_branch_preview_teardown",
16
17
  "project_vcs_revert",
17
18
  "project_vcs_rollback",
19
+ "project_vcs_resolve",
20
+ "project_vcs_pr_update",
21
+ "project_vcs_queue_add",
18
22
  "hiveku_batch",
19
23
  "project_checkpoint_restore",
20
24
  "checkpoint_restore",
@@ -67,10 +71,15 @@
67
71
  "ppc_google_ad_text_update",
68
72
  "ppc_google_ads_text_replace",
69
73
  "ppc_bing_rsa_text_update",
74
+ "ppc_meta_ad_text_update",
70
75
  "ppc_negatives_remove",
71
76
  "ppc_bing_url_tracking_set",
72
77
  "ppc_bing_ad_extension_update",
73
78
  "ppc_bing_ad_extension_remove",
79
+ "ppc_google_sitelink_update",
80
+ "ppc_bing_campaign_budget_move",
81
+ "ppc_bing_shared_budget_update",
82
+ "ppc_google_campaign_conversion_goals_set",
74
83
  "ppc_bing_experiment_create",
75
84
  "ppc_bing_experiment_update",
76
85
  "ppc_experiment_promote",
@@ -90,6 +99,7 @@
90
99
  "seo_ga4_event_create_rule_update",
91
100
  "accounting_bill_record_payment",
92
101
  "accounting_invoice_record_payment",
102
+ "accounting_subscription_create",
93
103
  "crm_contact_email_send",
94
104
  "crm_enroll_sequence",
95
105
  "crm_sequence_enroll_bulk",
@@ -165,6 +175,7 @@
165
175
  "seo_gtm_publish",
166
176
  "seo_gtm_install",
167
177
  "seo_ga4_key_event_delete",
178
+ "seo_ga4_custom_definition_archive",
168
179
  "seo_ga4_event_create_rule_delete",
169
180
  "seo_tracking_project_delete",
170
181
  "seo_rankings_platforms_set",
package/src/codex.mjs CHANGED
@@ -45,7 +45,7 @@ import { formatKey, readTomlDeclarations } from './toml.mjs';
45
45
  import { loadDotenv, safeSlug } from './util.mjs';
46
46
  import { ownerFolder } from './knowledge-files.mjs';
47
47
  import { SHARED_OWNER, ownerLabel, ownerOrder } from './memory-owner.mjs';
48
- import { SOURCE_OF_TRUTH_LINE } from './claude-md.mjs';
48
+ import { SOURCE_OF_TRUTH_LINE, WORK_LOG_LINE } from './claude-md.mjs';
49
49
 
50
50
  /**
51
51
  * The FIXED list of high-risk Hiveku tools that Codex asks about before
@@ -147,8 +147,10 @@ named \`hiveku-<agent>-<name>\` for the agent that owns them, invoked by name) a
147
147
  Non-negotiables (also in CLAUDE.md, restated because they are load-bearing):
148
148
  - **Verify identity before ANY write:** \`get_account_info\` must return THIS account.
149
149
  - **Hiveku Memory is the source of truth.** ${SOURCE_OF_TRUTH_LINE}
150
+ ${WORK_LOG_LINE}
150
151
  The memory files in this folder are a mirror of the last \`hiveku-sync pull\`, and memory wins: before you act
151
- on one, or change an entry starting from one, re-read the entry live (\`memory_get({ memory_id })\`).
152
+ on one, or change an entry starting from one, re-read the entry live (\`memory_get({ memory_id })\`; About your
153
+ business, \`hiveku-data/account/ACCOUNT_MEMORY.md\`, with \`account_memory_get\`).
152
154
  - **Context and memory.** Call \`account_context_get({ domain })\` first, before any copy, plan or analysis.
153
155
  The account memory is read-only to you: owners edit it on the Hiveku dashboard, the local copy is
154
156
  \`hiveku-data/account/ACCOUNT_MEMORY.md\` (never edit or upload it); suggest one line with \`account_memory_append\`.