Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/commands/check-uuid.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Detects objects that claim the same identity. The full description of the tool
2. **Run the check.**

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-uuid-check/scripts/uuid-check.ps1 -ConfigPath "<path>" [-IncludeIntra]
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-uuid-check/scripts/uuid-check.ps1 -ConfigPath "<path>" [-IncludeIntra]
```

(In the `1c-rules` source repository, prefix the script path with `content/` — `SKILL.md → Path conventions`.)
Expand All @@ -36,7 +36,7 @@ Detects objects that claim the same identity. The full description of the tool
Before repairing, state the risk in one line: `-Fix` keeps the *first* occurrence and regenerates the rest, which is positional rather than semantic. If the dump has already been loaded into an infobase, regenerating a `uuid` makes the platform treat the object as new on the next load and orphans its data — in that case have the user decide which occurrence keeps the identity.

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-uuid-check/scripts/uuid-check.ps1 -ConfigPath "<path>" [-IncludeIntra] -Fix
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-uuid-check/scripts/uuid-check.ps1 -ConfigPath "<path>" [-IncludeIntra] -Fix
```

5. **Confirm.** After a repair, re-run without `-Fix` and report the clean result. Then validate the affected objects (`meta-validate` / `cf-validate` — `content/skills/1c-metadata-manage/docs/meta-manage.md`, `content/skills/1c-metadata-manage/docs/cf-manage.md`) before the dump is loaded.
Expand Down
2 changes: 1 addition & 1 deletion content/commands/doctor.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Pass criterion: the root always-on files exist, and either the installed tool la
Frontmatter, `content/...` path references, Markdown links, `<file>.md → Section` anchors, routed-standards heading parity, and the `AGENTS.md` always-on byte budget are owned by the validator script — do **not** re-derive them by hand. In the `1c-rules` source repository run:

```powershell
powershell -NoProfile -File tools\validate-rules.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File tools\validate-rules.ps1
```

and report its output: every `ERRORS` line → **FAIL**, every `WARNINGS` line → **WARN**, with the file and line exactly as printed; `OK` → **OK**. In an installed project the script is not shipped — report **SKIP**; file presence there is covered by the manifest check in Check 1.
Expand Down
2 changes: 1 addition & 1 deletion content/skills/1c-metadata-manage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The same convention applies to `docs/*.md` references like `skills/1c-metadata-m

XML saving in `form-edit`, `form-add`, `remove-form`, `form-compile` registration, `meta-edit`, `cf-edit`, `cfe-borrow` registration/merge, `skd-edit`, `subsystem-edit`, `subsystem-compile` registration, `interface-edit`, `role-edit`, `add-template` and `add-help` retains the input CRLF/LF style and uses Configurator's compact empty tags (`<Tag/>`). Formatting-only changes should not be repaired by a global replacement that can alter literal XML in comments or CDATA.

On Windows use the shipped `.ps1` entry points. Before selecting a Linux/macOS runtime, using a Python port, or resolving a missing runtime, read [runtime-selection.md](docs/runtime-selection.md) for the exact supported commands and limitations. A missing runtime never permits hand-editing metadata XML.
On Windows use the shipped `.ps1` entry points, started as `powershell.exe -NoProfile -ExecutionPolicy Bypass -File <script>.ps1 …`: on a machine with the default Restricted policy Windows PowerShell 5.1 refuses a plain `-File` run ("running scripts is disabled on this system"), and `-ExecutionPolicy Bypass` is the per-process fix that changes no machine setting. Before selecting a Linux/macOS runtime, using a Python port, or resolving a missing runtime, read [runtime-selection.md](docs/runtime-selection.md) for the exact supported commands and limitations. A missing runtime never permits hand-editing metadata XML.

## Logical addressing and optional preview

Expand Down
28 changes: 28 additions & 0 deletions content/skills/1c-metadata-manage/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ No script files were brought into `tools/` — the operations are pure module-te

## cf-manage.md


### Local fix `2026-11-25` — nested validator runs pass `-ExecutionPolicy Bypass`

`cf-edit` v1.37 → **v1.38**: its sibling `cf-validate` was started with `-NoProfile -File` only. A child process does not carry the parent's `-ExecutionPolicy Bypass`, so on a machine whose policy refuses scripts the auto-validation failed with "running scripts is disabled on this system" although the edit itself ran. The nested launch now passes `-ExecutionPolicy Bypass`. Pinned by a static case in `tools/tests/metadata-tools-regression.ps1` (no nested `-NoProfile … -File` launch in `tools/**/*.ps1` without the flag).
### Upstream sync 2026-11-17 (4fc37e1)

`cf-edit` v1.33 → **v1.37**, `cf-info` v1.10 → **v1.12**, `cf-init` v1.17 → **v1.18**. `cf-validate` did not change. `cf-edit-reference.md` is retargeted to the same pin.
Expand Down Expand Up @@ -438,6 +442,10 @@ Script refreshed from [Nikolay-Shirokov/cc-1c-skills](https://github.com/Nikolay

## interface-manage.md


### Local fix `2026-11-25` — nested validator run passes `-ExecutionPolicy Bypass`

`interface-edit` v1.26 → **v1.27**: the sibling `interface-validate` launch now carries `-ExecutionPolicy Bypass`, as `cf-edit` (see cf-manage.md).
### Upstream sync `2026-11-01` (`2e75b0f`)

`interface-edit` v1.8 → **v1.26**, `interface-validate` v1.1 → **v1.7**.
Expand All @@ -460,6 +468,18 @@ The PowerShell scripts under `tools/1c-interface-manage/scripts/` were refreshed

## meta-manage.md


### Local fix `2026-11-25` — nested runs pass `-ExecutionPolicy Bypass`

`meta-edit` v1.77 → **v1.78** (both runtimes) and `meta-compile` v1.132 → **v1.133**: the nested `meta-validate` launch of `meta-edit.ps1` and the batch child of `meta-compile.ps1` now pass `-ExecutionPolicy Bypass`; the `form-add` / `add-template` hints that `meta-edit.ps1` and `meta-edit.py` print carry it too, so an agent copying a hint does not hit the policy error. `/doctor` (`content/commands/doctor.md`) got the flag in its `validate-rules.ps1` command.
### Local feature `2026-11-25` — ScheduledJob `schedule` writes `Ext/Schedule.xml`

`meta-compile` v1.131 → **v1.132**, local: only the object properties of a `ScheduledJob` were written, so no tool could set a schedule and agents copied `Ext/Schedule.xml` from a neighbouring job. The new key `schedule` (all sub-keys optional: `beginTime` / `endTime` / `completionTime`, `beginDate` / `endDate`, `daysRepeatPeriod`, `weeksPeriod`, `repeatPeriodInDay`, `repeatPause`, `completionInterval`, `dayInMonth`, `weekDayInMonth`, `weekDays`, `months`) writes `ScheduledJobs/<Name>/Ext/Schedule.xml` in the Designer shape (UTF-8 BOM, tabs, CRLF, `version` = detected format). No key, no file. An unknown sub-key or an out-of-range value is refused before anything is written; `schedule` on another object type is refused. `ent:DetailedDailySchedules` is out of scope. Pinned by `tools/tests/metadata-tools-regression.ps1`; verified by loading the result into a file infobase on 8.3.24 and dumping it back.

### Local feature `2026-11-25` — `modules: false`

`meta-compile` v1.130 → **v1.131**, local: it always wrote empty `Ext/ObjectModule.bsl`, `ManagerModule.bsl`, `ValueManagerModule.bsl` and `RecordSetModule.bsl` stubs for the types that have them, so a report on a DCS with no code needed the files deleted by hand. The top-level definition key `modules: false` (default `true`) skips them and creates no `Ext/` directory just for them. `Module.bsl` of CommonModule / HTTPService / WebService and `CommandModule.bsl` of CommonCommand are not affected, existing files are never deleted. A non-boolean value is refused before anything is written. Pinned by `tools/tests/metadata-tools-regression.ps1`.

### Upstream sync 2026-11-17 (4fc37e1)

`meta-compile` v1.126 → **v1.130**, `meta-edit` v1.73 → **v1.77** (both runtimes), `meta-validate` v1.45 → **v1.47** (both runtimes), `meta-info` v1.16 → **v1.17**. `meta-remove` did not change. `meta-decompile` is not vendored.
Expand Down Expand Up @@ -589,6 +609,10 @@ The compile/decompile/info scripts (`mxl-compile`, `mxl-decompile`, `mxl-info`)

## role-manage.md


### Local fix `2026-11-25` — nested validator run passes `-ExecutionPolicy Bypass`

`role-edit` v1.12 → **v1.13**: the sibling `role-validate` launch now carries `-ExecutionPolicy Bypass` (see cf-manage.md).
### Upstream sync 2026-11-17 (4fc37e1)

`role-compile` v1.49 → **v1.51**, `role-edit` v1.11 → **v1.12**. `role-info` and `role-validate` did not change. No Python port of these two is vendored.
Expand Down Expand Up @@ -717,6 +741,10 @@ The PowerShell scripts under `tools/1c-skd-{compile,edit,info,validate}/scripts/

## subsystem-manage.md


### Local fix `2026-11-25` — nested validator runs pass `-ExecutionPolicy Bypass`

`subsystem-compile` v1.39 → **v1.40** and `subsystem-edit` v1.30 → **v1.31**: the sibling `subsystem-validate` launch now carries `-ExecutionPolicy Bypass` (see cf-manage.md).
### Upstream sync 2026-11-17 (4fc37e1)

`subsystem-compile` v1.37 → **v1.39**, `subsystem-edit` v1.29 → **v1.30**. `subsystem-info` and `subsystem-validate` did not change. The Python port of `subsystem-edit` is not vendored.
Expand Down
10 changes: 5 additions & 5 deletions content/skills/1c-metadata-manage/docs/cf-manage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Comprehensive configuration management: create scaffold, edit properties/composi
## 1. Init — Create Configuration Scaffold

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-init.ps1 -Name "<Name>" [-Synonym "<text>"] [-OutputDir "<path>"] [-Version "<x.y.z.w>"] [-Vendor "<name>"] [-CompatibilityMode Version8_3_27] [-FormatVersion 2.20]
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-init.ps1 -Name "<Name>" [-Synonym "<text>"] [-OutputDir "<path>"] [-Version "<x.y.z.w>"] [-Vendor "<name>"] [-CompatibilityMode Version8_3_27] [-FormatVersion 2.20]
```

Creates minimal configuration structure: `Configuration.xml`, `Languages/Русский.xml`, `Ext/ClientApplicationInterface.xml` and basic directory structure.
Expand All @@ -22,7 +22,7 @@ Creates minimal configuration structure: `Configuration.xml`, `Languages/Рус
## 2. Edit — Modify Configuration Properties

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-edit.ps1 -ConfigPath '<path>' -Operation <op> -Value '<value>'
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-edit.ps1 -ConfigPath '<path>' -Operation <op> -Value '<value>'
```

| Parameter | Description |
Expand Down Expand Up @@ -73,7 +73,7 @@ Full property reference: [cf-edit-reference.md](../tools/1c-cf-manage/cf-edit-re
## 3. Info — Analyze Configuration Structure

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-info.ps1 -ConfigPath "<path>"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-info.ps1 -ConfigPath "<path>"
```

Displays configuration properties, object counts by type, compatibility mode, version, and other key information.
Expand All @@ -83,7 +83,7 @@ Displays configuration properties, object counts by type, compatibility mode, ve
## 4. Validate — Check Configuration Correctness

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-validate.ps1 -ConfigPath "<path>"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/cf-validate.ps1 -ConfigPath "<path>"
```

| Parameter | Description |
Expand Down Expand Up @@ -115,7 +115,7 @@ For a **complete hierarchical Designer XML dump**, run the read-only composition
check after `cf-validate` (or `cfe-validate` for an extension):

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/dump-validate.ps1 -ConfigPath "<dump-directory>" -Format Json
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cf-manage/scripts/dump-validate.ps1 -ConfigPath "<dump-directory>" -Format Json
```

`ConfigPath` also accepts `Configuration.xml`. `Format` is `Text` by default or
Expand Down
10 changes: 5 additions & 5 deletions content/skills/1c-metadata-manage/docs/cfe-manage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Comprehensive extension (CFE) management: create scaffold, borrow objects from c
Use `init` only for an explicitly requested **new** extension. Existing-extension edits, folder moves, renames, updates and restores retain identifiers and borrowed links; they do not start from a new scaffold. Follow `content/rules/extension-workspace.md → Preserve extension identity`, including investigation of unexpected UUID changes before load/apply.

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-init.ps1 -Name "МоёРасширение"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-init.ps1 -Name "МоёРасширение"
```

| Parameter | Description | Default |
Expand Down Expand Up @@ -45,7 +45,7 @@ powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/sc
## 2. Borrow — Borrow Objects from Configuration

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-borrow.ps1 -ExtensionPath src -ConfigPath <config> -Object "Catalog.Контрагенты"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-borrow.ps1 -ExtensionPath src -ConfigPath <config> -Object "Catalog.Контрагенты"
```

| Parameter | Description |
Expand Down Expand Up @@ -133,7 +133,7 @@ For an already borrowed object, preserve its existing identifier and base-object
## 3. Diff — Analyze Extension Changes

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-diff.ps1 -ExtensionPath src -ConfigPath <config> -Mode A
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-diff.ps1 -ExtensionPath src -ConfigPath <config> -Mode A
```

| Parameter | Description | Default |
Expand All @@ -155,7 +155,7 @@ Both modes cover every borrowable kind, including `HTTPService`, `WebService`, `
Reads the original method **from the source configuration** and generates the `.bsl` interceptor of the borrowed object: correct context directive, full signature, framing preprocessor instructions and regions. For `ModificationAndControl` it copies the whole original body. Creates the module file, appends to an existing one, or re-syncs an already intercepted method.

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-patch-method.ps1 -ExtensionPath src\cfe\ИмяРасширения -ConfigPath src\cf -ModulePath "Catalog.Контрагенты.ObjectModule" -MethodName "ПриЗаписи" -InterceptorType Before
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-patch-method.ps1 -ExtensionPath src\cfe\ИмяРасширения -ConfigPath src\cf -ModulePath "Catalog.Контрагенты.ObjectModule" -MethodName "ПриЗаписи" -InterceptorType Before
```

| Parameter | Description | Default |
Expand Down Expand Up @@ -235,7 +235,7 @@ Narrow the scope with `-ModulePath` (one module) or `-ModulePath` + `-MethodName
## 5. Validate — Check Extension Correctness

```powershell
powershell.exe -NoProfile -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-validate.ps1 -ExtensionPath src\cfe\ИмяРасширения -ConfigPath src\cf
powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills/1c-metadata-manage/tools/1c-cfe-manage/scripts/cfe-validate.ps1 -ExtensionPath src\cfe\ИмяРасширения -ConfigPath src\cf
```

| Parameter | Description | Default |
Expand Down
Loading
Loading