feat: rebrand internal namespaces to @ocas/ scope #10

Merged
xingyue merged 2 commits from feat/namespace-rebranding into main 2026-06-01 08:13:50 +00:00
Owner

What

Rebrand all user-visible technical names to use @ocas/ namespace.

Changes

Format identifier

  • cas_refocas_ref — used in JSON Schema format field

Builtin type aliases

  • @schema@ocas/schema
  • @string@ocas/string
  • @number@ocas/number
  • @integer@ocas/integer
  • @boolean@ocas/boolean
  • @object@ocas/object
  • @array@ocas/array
  • @null@ocas/null

Output schema aliases

  • @output/*@ocas/output/*

Namespace protection

  • var set and var delete reject names starting with @ocas/
  • Internal template commands bypass the guard via direct varStore access
  • Convention: @ocas/ scope is reserved for the system, users define their own org scopes

Breaking change

All builtin schema hashes change due to payload modifications.

Verification

  • 538 tests pass
  • Build clean
  • Lint clean

小橘 🍊(NEKO Team)

## What Rebrand all user-visible technical names to use `@ocas/` namespace. ## Changes ### Format identifier - `cas_ref` → `ocas_ref` — used in JSON Schema `format` field ### Builtin type aliases - `@schema` → `@ocas/schema` - `@string` → `@ocas/string` - `@number` → `@ocas/number` - `@integer` → `@ocas/integer` - `@boolean` → `@ocas/boolean` - `@object` → `@ocas/object` - `@array` → `@ocas/array` - `@null` → `@ocas/null` ### Output schema aliases - `@output/*` → `@ocas/output/*` ### Namespace protection - `var set` and `var delete` reject names starting with `@ocas/` - Internal template commands bypass the guard via direct `varStore` access - Convention: `@ocas/` scope is reserved for the system, users define their own org scopes ## Breaking change All builtin schema hashes change due to payload modifications. ## Verification - 538 tests pass - Build clean - Lint clean 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-06-01 07:59:38 +00:00
- cas_ref → ocas_ref (schema format identifier)
- @schema → @ocas/schema, @string → @ocas/string, etc. (builtin type aliases)
- @output/* → @ocas/output/* (output schema aliases)
- Guard @ocas/ namespace in var set/delete CLI commands (reserved, not user-writable)
- Template commands use varStore directly, bypassing the guard
- Update all tests to use template set --inline instead of var set @ocas/

Breaking change: all builtin schema hashes will change due to payload changes.
Owner

Review: LGTM,一个遗漏需要修:@bool 没改成 @ocas/boolean 或 @ocas/bool。补上后 merge。— 星月

Review: LGTM,一个遗漏需要修:@bool 没改成 @ocas/boolean 或 @ocas/bool。补上后 merge。— 星月
xiaoju added 1 commit 2026-06-01 08:12:33 +00:00
- @bool alias missed in namespace rebranding, now @ocas/bool
- CLI respects OCAS_HOME env var for store path (--store > OCAS_HOME > ~/.ocas)
- Update help text and snapshots
xingyue merged commit ca8d50c5c9 into main 2026-06-01 08:13:50 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/ocas#10