@ainova-systems/intelligence 0.11.0-rc.13 → 0.11.0-rc.14
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/cli/commands/init.sh
CHANGED
|
@@ -33,11 +33,12 @@ print_new_project_onboarding() {
|
|
|
33
33
|
echo " intelligence sync"
|
|
34
34
|
fi
|
|
35
35
|
if [ "$bare" -eq 0 ]; then
|
|
36
|
+
echo " Recommended starter package:"
|
|
37
|
+
echo " intelligence package add @ainova-systems/core"
|
|
38
|
+
echo " Install it before learning so package/project duplicates can be detected."
|
|
36
39
|
echo " Finalize repository onboarding:"
|
|
37
40
|
echo " Ask your agent to run /intelligence-learn-from-context"
|
|
38
41
|
echo " It recognizes the initial backup, recovers setup if needed, then proposes repository-specific migration after approval."
|
|
39
|
-
echo " Recommended starter package:"
|
|
40
|
-
echo " intelligence package add @ainova-systems/core"
|
|
41
42
|
fi
|
|
42
43
|
echo " Review adapters:"
|
|
43
44
|
echo " intelligence adapter list"
|
|
@@ -309,6 +310,9 @@ echo "initialized: intelligence.yaml (targets:$(printf ' %s' $targets))"
|
|
|
309
310
|
if [ "$no_sync" -eq 0 ]; then
|
|
310
311
|
cd "$root"
|
|
311
312
|
sync_rc=0
|
|
313
|
+
echo ""
|
|
314
|
+
echo "=== Sync started ==="
|
|
315
|
+
echo " Rendering enabled adapters in compact mode..."
|
|
312
316
|
bash "$CLI_DIR/commands/sync.sh" --compact || sync_rc=$?
|
|
313
317
|
if [ "$sync_rc" -ne 0 ]; then
|
|
314
318
|
echo "" >&2
|
|
@@ -323,6 +327,7 @@ if [ "$no_sync" -eq 0 ]; then
|
|
|
323
327
|
fi
|
|
324
328
|
exit "$sync_rc"
|
|
325
329
|
fi
|
|
330
|
+
echo "=== Sync completed ==="
|
|
326
331
|
fi
|
|
327
332
|
|
|
328
333
|
print_new_project_onboarding
|
package/cli/lib/manifest.sh
CHANGED
|
@@ -82,11 +82,16 @@ target_names() {
|
|
|
82
82
|
# and comment. A missing target is added in the compact form used by init.
|
|
83
83
|
target_set_enabled() {
|
|
84
84
|
local file="$1" target="$2" enabled="$3" output="$4"
|
|
85
|
+
local target_missing=1
|
|
85
86
|
[ -f "$file" ] || die "no such file: $file"
|
|
86
87
|
case "$enabled" in true|false) ;; *) die "internal: invalid target state '$enabled'" ;; esac
|
|
88
|
+
target_exists "$file" "$target" && target_missing=0
|
|
87
89
|
output="$(_yq_esc "$output")"
|
|
88
|
-
_qmap_stage "$file" -v target="$target" -v enabled="$enabled" -v output="$output" '
|
|
90
|
+
_qmap_stage "$file" -v target="$target" -v enabled="$enabled" -v output="$output" -v target_missing="$target_missing" '
|
|
89
91
|
function entry() { return " " target ": { enabled: " enabled ", output: \"" output "\" }" }
|
|
92
|
+
function insert_missing_target() {
|
|
93
|
+
if (in_targets && target_missing && !target_seen) { print entry(); target_seen = 1 }
|
|
94
|
+
}
|
|
90
95
|
function add_enabled_to_inline(line, p) {
|
|
91
96
|
p = index(line, "{")
|
|
92
97
|
if (p > 0) return substr(line, 1, p) " enabled: " enabled "," substr(line, p + 1)
|
|
@@ -103,8 +108,20 @@ target_set_enabled() {
|
|
|
103
108
|
}
|
|
104
109
|
{ sub(/\r$/, "") }
|
|
105
110
|
/^targets:[[:space:]]*$/ { targets_seen = 1; in_targets = 1; print; next }
|
|
111
|
+
in_targets && target_missing && target_entry_seen && /^#/ {
|
|
112
|
+
flush_target()
|
|
113
|
+
insert_missing_target()
|
|
114
|
+
print
|
|
115
|
+
next
|
|
116
|
+
}
|
|
117
|
+
in_targets && target_missing && target_entry_seen && !in_target && /^[[:space:]]*$/ {
|
|
118
|
+
insert_missing_target()
|
|
119
|
+
print
|
|
120
|
+
next
|
|
121
|
+
}
|
|
106
122
|
in_targets && /^[A-Za-z]/ { flush_targets() }
|
|
107
123
|
in_targets && /^ [A-Za-z]/ {
|
|
124
|
+
target_entry_seen = 1
|
|
108
125
|
flush_target()
|
|
109
126
|
if ($0 ~ "^ " target ":[[:space:]]*") {
|
|
110
127
|
target_seen = 1
|
package/engine/ENGINE_SHA
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
920c2d9bf4364337c4a6dcb6557e38ff4111b972
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainova-systems/intelligence",
|
|
3
|
-
"version": "0.11.0-rc.
|
|
3
|
+
"version": "0.11.0-rc.14",
|
|
4
4
|
"description": "Build, version and distribute AI agent intelligence across your organization — one CLI, versioned Intelligence Packages, and a sync engine for Claude Code, Cursor, Copilot, Codex, Pi and OpenCode.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"intelligence": "bin/intelligence.js"
|
|
@@ -33,9 +33,13 @@ mechanical setup; this skill adds only repository-specific judgement.
|
|
|
33
33
|
and skills. Detect submodules and treat them as separate repositories unless
|
|
34
34
|
the user explicitly includes them. Treat documentation as a claim and
|
|
35
35
|
verify important behavior in code or executable configuration.
|
|
36
|
-
4. Inventory what initialization preserved or installed.
|
|
36
|
+
4. Inventory what initialization preserved or installed. Compare project-owned
|
|
37
|
+
rules, agents, and skills with every configured package source. Do not
|
|
37
38
|
recreate package-owned content, duplicate existing instructions, or convert
|
|
38
|
-
current generated target output into source content.
|
|
39
|
+
current generated target output into source content. When an existing
|
|
40
|
+
project artifact is materially covered by installed package content, propose
|
|
41
|
+
`REMOVE` or a smaller `UPDATE`; require a content comparison, not merely a
|
|
42
|
+
matching name. Treat committed legacy root
|
|
39
43
|
instruction files such as `.cursorrules` and instruction-bearing `CLAUDE.md`
|
|
40
44
|
as migration sources, not permanent parallel entry points: propose moving
|
|
41
45
|
still-valid guidance into project-owned rules and removing the legacy file
|