@omnidev-ai/core 0.7.0 → 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.
package/dist/index.d.ts CHANGED
@@ -868,9 +868,15 @@ declare function generateClaudeTemplate(): string;
868
868
  */
869
869
  declare function generateInstructionsTemplate(): string;
870
870
  /**
871
+ * Template for OMNI.md - the user's project instructions file.
872
+ * This is the single source of truth that gets transformed into
873
+ * provider-specific files (CLAUDE.md, AGENTS.md, etc.) during sync.
874
+ */
875
+ declare function generateOmniMdTemplate(): string;
876
+ /**
871
877
  * Debug logger that writes to stdout when OMNIDEV_DEBUG=1
872
878
  */
873
879
  declare function debug(message: string, data?: unknown): void;
874
880
  declare const version = "0.1.0";
875
881
  declare function getVersion(): string;
876
- export { writeRules, writeProviderConfig, writeMcpJson, writeEnabledProviders, writeConfig, writeActiveProfileState, version, validateEnv, syncMcpJson, syncAgentConfiguration, sourceToGitUrl, setProfile, setActiveProfile, saveManifest, saveLockFile, resolveEnabledCapabilities, readMcpJson, readEnabledProviders, readActiveProfileState, parseSourceConfig, parseProviderFlag, parseOmniConfig, parseCapabilityConfig, loadSubagents, loadSkills, loadRules, loadProviderConfig, loadProfileConfig, loadManifest, loadLockFile, loadEnvironment, loadDocs, loadConfig, loadCommands, loadCapabilityConfig, loadCapability, loadBaseConfig, isSecretEnvVar, isProviderEnabled, installCapabilityDependencies, getVersion, getSourceCapabilityPath, getLockFilePath, getEnabledCapabilities, getActiveProviders, getActiveProfile, generateInstructionsTemplate, generateClaudeTemplate, generateAgentsTemplate, fetchCapabilitySource, fetchAllCapabilitySources, enableProvider, enableCapability, discoverCapabilities, disableProvider, disableCapability, debug, clearActiveProfileState, cleanupStaleResources, checkForUpdates, buildSyncBundle, buildRouteMap, buildManifestFromCapabilities, buildCommand, buildCapabilityRegistry, SyncResult, SyncOptions, SyncConfig, SyncBundle, SubagentPermissionMode, SubagentModel, SubagentHooks, SubagentHookConfig, SubagentExport, Subagent, SourceUpdateInfo, SkillExport, Skill, Rule, ResourceManifest, ProvidersState, ProviderSyncResult, ProviderManifest, ProviderInitResult, ProviderId, ProviderContext, ProviderConfig, ProviderAdapter, Provider, ProfileConfig, OmniConfig, McpTransport, McpToolSchema, McpServerStdioConfig, McpServerSseConfig, McpServerHttpConfig, McpServerConfig, McpJsonConfig, McpConfig, LoadedCapability, GitCapabilitySourceConfig, FileContent, FetchResult, EnvDeclaration, DocExport, Doc, DiscoveredContent, CommandExport, Command, CliConfig, CleanupResult, CapabilitySourceType, CapabilitySourceConfig, CapabilitySource, CapabilityResources, CapabilityRegistry, CapabilityMetadata, CapabilityLockEntry, CapabilityExports, CapabilityExport, CapabilityConfig, CapabilitiesLockFile, CapabilitiesConfig };
882
+ export { writeRules, writeProviderConfig, writeMcpJson, writeEnabledProviders, writeConfig, writeActiveProfileState, version, validateEnv, syncMcpJson, syncAgentConfiguration, sourceToGitUrl, setProfile, setActiveProfile, saveManifest, saveLockFile, resolveEnabledCapabilities, readMcpJson, readEnabledProviders, readActiveProfileState, parseSourceConfig, parseProviderFlag, parseOmniConfig, parseCapabilityConfig, loadSubagents, loadSkills, loadRules, loadProviderConfig, loadProfileConfig, loadManifest, loadLockFile, loadEnvironment, loadDocs, loadConfig, loadCommands, loadCapabilityConfig, loadCapability, loadBaseConfig, isSecretEnvVar, isProviderEnabled, installCapabilityDependencies, getVersion, getSourceCapabilityPath, getLockFilePath, getEnabledCapabilities, getActiveProviders, getActiveProfile, generateOmniMdTemplate, generateInstructionsTemplate, generateClaudeTemplate, generateAgentsTemplate, fetchCapabilitySource, fetchAllCapabilitySources, enableProvider, enableCapability, discoverCapabilities, disableProvider, disableCapability, debug, clearActiveProfileState, cleanupStaleResources, checkForUpdates, buildSyncBundle, buildRouteMap, buildManifestFromCapabilities, buildCommand, buildCapabilityRegistry, SyncResult, SyncOptions, SyncConfig, SyncBundle, SubagentPermissionMode, SubagentModel, SubagentHooks, SubagentHookConfig, SubagentExport, Subagent, SourceUpdateInfo, SkillExport, Skill, Rule, ResourceManifest, ProvidersState, ProviderSyncResult, ProviderManifest, ProviderInitResult, ProviderId, ProviderContext, ProviderConfig, ProviderAdapter, Provider, ProfileConfig, OmniConfig, McpTransport, McpToolSchema, McpServerStdioConfig, McpServerSseConfig, McpServerHttpConfig, McpServerConfig, McpJsonConfig, McpConfig, LoadedCapability, GitCapabilitySourceConfig, FileContent, FetchResult, EnvDeclaration, DocExport, Doc, DiscoveredContent, CommandExport, Command, CliConfig, CleanupResult, CapabilitySourceType, CapabilitySourceConfig, CapabilitySource, CapabilityResources, CapabilityRegistry, CapabilityMetadata, CapabilityLockEntry, CapabilityExports, CapabilityExport, CapabilityConfig, CapabilitiesLockFile, CapabilitiesConfig };
package/dist/index.js CHANGED
@@ -729,10 +729,6 @@ function generateConfigToml(config) {
729
729
  lines.push("# 3. Run: omnidev sync");
730
730
  lines.push("# 4. Switch profiles: omnidev profile use <name>");
731
731
  lines.push("");
732
- if (config.project) {
733
- lines.push(`project = "${config.project}"`);
734
- lines.push("");
735
- }
736
732
  if (config.providers?.enabled && config.providers.enabled.length > 0) {
737
733
  lines.push("# AI providers to enable (claude, codex, or both)");
738
734
  lines.push("[providers]");
@@ -2157,6 +2153,27 @@ No capabilities enabled yet. Run \`omnidev capability enable <name>\` to enable
2157
2153
  <!-- END OMNIDEV GENERATED CONTENT -->
2158
2154
  `;
2159
2155
  }
2156
+ // src/templates/omni.ts
2157
+ function generateOmniMdTemplate() {
2158
+ return `# Project Instructions
2159
+
2160
+ <!-- This file is your project's instruction manifest for AI agents. -->
2161
+ <!-- It will be combined with capability-generated content during sync. -->
2162
+
2163
+ ## Project Description
2164
+
2165
+ <!-- TODO: Add 2-3 sentences describing your project -->
2166
+ [Describe what this project does and its main purpose]
2167
+
2168
+ ## Conventions
2169
+
2170
+ <!-- Add your project conventions, coding standards, and guidelines here -->
2171
+
2172
+ ## Architecture
2173
+
2174
+ <!-- Describe your project's architecture and key components -->
2175
+ `;
2176
+ }
2160
2177
  // src/types/index.ts
2161
2178
  function getActiveProviders(config) {
2162
2179
  if (config.providers)
@@ -2232,6 +2249,7 @@ export {
2232
2249
  getEnabledCapabilities,
2233
2250
  getActiveProviders,
2234
2251
  getActiveProfile,
2252
+ generateOmniMdTemplate,
2235
2253
  generateInstructionsTemplate,
2236
2254
  generateClaudeTemplate,
2237
2255
  generateAgentsTemplate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnidev-ai/core",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -101,12 +101,6 @@ function generateConfigToml(config: OmniConfig): string {
101
101
  lines.push("# 4. Switch profiles: omnidev profile use <name>");
102
102
  lines.push("");
103
103
 
104
- // Project name
105
- if (config.project) {
106
- lines.push(`project = "${config.project}"`);
107
- lines.push("");
108
- }
109
-
110
104
  // Note: active_profile is stored in .omni/state/active-profile, not in config.toml
111
105
  // We still read it from config.toml for backwards compatibility, but don't write it here
112
106
 
package/src/index.ts CHANGED
@@ -30,6 +30,7 @@ export * from "./sync";
30
30
  // Export templates
31
31
  export * from "./templates/agents";
32
32
  export * from "./templates/claude";
33
+ export * from "./templates/omni";
33
34
  // Export core types
34
35
  export * from "./types";
35
36
 
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Template for OMNI.md - the user's project instructions file.
3
+ * This is the single source of truth that gets transformed into
4
+ * provider-specific files (CLAUDE.md, AGENTS.md, etc.) during sync.
5
+ */
6
+ export function generateOmniMdTemplate(): string {
7
+ return `# Project Instructions
8
+
9
+ <!-- This file is your project's instruction manifest for AI agents. -->
10
+ <!-- It will be combined with capability-generated content during sync. -->
11
+
12
+ ## Project Description
13
+
14
+ <!-- TODO: Add 2-3 sentences describing your project -->
15
+ [Describe what this project does and its main purpose]
16
+
17
+ ## Conventions
18
+
19
+ <!-- Add your project conventions, coding standards, and guidelines here -->
20
+
21
+ ## Architecture
22
+
23
+ <!-- Describe your project's architecture and key components -->
24
+ `;
25
+ }