@hiveku-apps/sync 0.5.1 → 0.5.2
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 +1 -1
- package/src/claude-md.mjs +24 -6
- package/src/codex-prompt-tools.json +9 -2
- package/src/codex.mjs +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiveku-apps/sync",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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
|
|
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.
|
|
41
|
-
'
|
|
42
|
-
'
|
|
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
|
|
96
|
-
|
|
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
|
|
2
|
+
"source": "locus2012/hiveku-codex-plugin main (f789afb, 0.3.5), 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",
|
|
@@ -260,6 +260,13 @@
|
|
|
260
260
|
"cms_delete_entry",
|
|
261
261
|
"cms_bulk_delete",
|
|
262
262
|
"cms_delete_collection",
|
|
263
|
-
"cms_remove_field"
|
|
263
|
+
"cms_remove_field",
|
|
264
|
+
"accounting_subscription_create",
|
|
265
|
+
"ppc_google_sitelink_update",
|
|
266
|
+
"ppc_meta_ad_text_update",
|
|
267
|
+
"seo_ga4_custom_definition_archive",
|
|
268
|
+
"ppc_bing_campaign_budget_move",
|
|
269
|
+
"ppc_bing_shared_budget_update",
|
|
270
|
+
"ppc_google_campaign_conversion_goals_set"
|
|
264
271
|
]
|
|
265
272
|
}
|
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\`.
|