44 Anatomy.Canonical Write - Varietyz/Disciplined-AI-Software-Development GitHub Wiki

Canonical Write — Anatomy — Bane's Lab

A member holding 11 files, 429 lines of code, 44 definitions and 10 call edges.

Canonical: https://banes-lab.com/anatomy/canonical-write

The Anatomy

Source trees, walks and definitions

Canonical Write

View on GitHub

Files

root

A member holding 11 files, 429 lines of code, 44 definitions and 10 call edges.

Stats

Files 11

Lines of code 429

Blank lines 82

Bytes 24861

Definitions 44

Exported 35

Callable 16

Call edges 10

isolated flow 33

entry flow 4

leaf flow 4

relay flow 3

Findings no anomalies

the folder's walk 629 steps

Folders

configuration

A container holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

core

A container holding 3 files, 138 lines of code, 33 definitions and 10 call edges.

types

A container holding 1 file, 8 lines of code, 2 definitions and 0 call edges.

Files

_manifest.json

  • outside the naming grammar
  • 100 lines of code
  • 0 definitions
  • 0 call edges

index.ts

  • outside the naming grammar
  • 10 lines of code
  • 0 definitions
  • 0 call edges

package.json

  • outside the naming grammar
  • 21 lines of code
  • 0 definitions
  • 0 call edges

README.md

  • outside the naming grammar
  • generated on build
  • boundary document
  • 96 lines of code
  • 0 definitions
  • 0 call edges

tsconfig.json

  • outside the naming grammar
  • 11 lines of code
  • 0 definitions
  • 0 call edges

tsconfig.base.json

  • outside the naming grammar
  • inherited from above the member
  • 36 lines of code
  • 0 definitions
  • 0 call edges

root

_manifest.json

  • outside the naming grammar

Stats

Files 1

Lines of code 100

Blank lines 0

Bytes 7997

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

index.ts

  • outside the naming grammar

Stats

Files 1

Lines of code 10

Blank lines 0

Bytes 467

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

the file's walk 22 steps

Syntax kinds

export_specifier 11

identifier 11

export_statement 5

export_clause 5

string 5

string_fragment 5

program 1

Once only

program 1

The source is served as text at the source

root

package.json

  • outside the naming grammar

Stats

Files 1

Lines of code 21

Blank lines 0

Bytes 614

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

README.md

  • outside the naming grammar
  • generated on build
  • boundary document

Stats

Files 1

Lines of code 96

Blank lines 57

Bytes 8340

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

Document

Headings 14

Mermaid blocks 0

Path references 1

Reference constructs 0

Frontmatter fields 0

spine:1 spine · document has no --- frontmatter header

bare-path:36 conventions · path in prose must be a code span — expected: _code.info.generated/mermaid-charts.generated.md

The source is served as text at the document

The source is served as text at the source

root

tsconfig.json

  • outside the naming grammar

Stats

Files 1

Lines of code 11

Blank lines 0

Bytes 259

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

tsconfig.base.json

  • outside the naming grammar
  • inherited from above the member

Stats

Files 1

Lines of code 36

Blank lines 0

Bytes 1218

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

configuration

A container holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

Stats

Files 1

Lines of code 9

Blank lines 8

Bytes 353

Definitions 9

Exported 9

Callable 0

Call edges 0

isolated flow 9

Findings no anomalies

Folders

constants

A concern on the infrastructure layer holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

root configuration

constants

A concern on the infrastructure layer holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

Stats

Files 1

Lines of code 9

Blank lines 8

Bytes 353

Definitions 9

Exported 9

Callable 0

Call edges 0

isolated flow 9

Findings no anomalies

Files

mark.constants.ts

  • Subject: mark
  • Concern: constants
  • Layer: infrastructure
  • generated on build
  • 9 lines of code
  • 9 definitions
  • 0 call edges

root configuration constants

mark.constants.ts

  • Subject: mark
  • Concern: constants
  • Layer: infrastructure
  • generated on build

Stats

Files 1

Lines of code 9

Blank lines 8

Bytes 353

Definitions 9

Exported 9

Callable 0

Call edges 0

isolated flow 9

Findings no anomalies

GENERATED_MARK_PREFIX:1 isolated · in 0 · out 0 calls: none called by: none

MARK_CLOSE:3 isolated · in 0 · out 0 calls: none called by: none

VERSION_PREFIX:5 isolated · in 0 · out 0 calls: none called by: none

FIELD_SEPARATOR:7 isolated · in 0 · out 0 calls: none called by: none

LINE_END:9 isolated · in 0 · out 0 calls: none called by: none

FRONTMATTER_OPEN:11 isolated · in 0 · out 0 calls: none called by: none

FRONTMATTER_CLOSE:13 isolated · in 0 · out 0 calls: none called by: none

MINUTE_LENGTH:15 isolated · in 0 · out 0 calls: none called by: none

UTC_SUFFIX:17 isolated · in 0 · out 0 calls: none called by: none

the file's walk 27 steps

Syntax kinds

export_statement 9

lexical_declaration 9

variable_declarator 9

identifier 9

string 8

string_fragment 7

escape_sequence 4

program 1

Once only

program 1

number 1

root

core

A container holding 3 files, 138 lines of code, 33 definitions and 10 call edges.

Stats

Files 3

Lines of code 138

Blank lines 16

Bytes 5436

Definitions 33

Exported 24

Callable 16

Call edges 10

isolated flow 22

entry flow 4

leaf flow 4

relay flow 3

Findings no anomalies

Folders

formatters

A concern on the processing layer holding 1 file, 49 lines of code, 12 definitions and 4 call edges.

persistence

A concern on the infrastructure layer holding 1 file, 44 lines of code, 10 definitions and 6 call edges.

selectors

A concern on the application layer holding 1 file, 45 lines of code, 11 definitions and 0 call edges.

root core

formatters

A concern on the processing layer holding 1 file, 49 lines of code, 12 definitions and 4 call edges.

Stats

Files 1

Lines of code 49

Blank lines 6

Bytes 1871

Definitions 12

Exported 8

Callable 6

Call edges 4

isolated flow 7

leaf flow 2

relay flow 2

entry flow 1

Findings no anomalies

Files

mark.formatter.ts

  • Subject: mark
  • Concern: formatter
  • Layer: processing
  • 49 lines of code
  • 12 definitions
  • 4 call edges

root core formatters

mark.formatter.ts

  • Subject: mark
  • Concern: formatter
  • Layer: processing

Stats

Files 1

Lines of code 49

Blank lines 6

Bytes 1871

Definitions 12

Exported 8

Callable 6

Call edges 4

isolated flow 7

leaf flow 2

relay flow 2

entry flow 1

Findings no anomalies

skipBlankLines:21 leaf · in 2 · out 0 calls: none called by: insertMark, stripMark

stampGenerated:40 relay · in 1 · out 2 calls: insertMark, markTimeOf called by: writeGeneratedMarkdown

insertMark:34 relay · in 1 · out 1 calls: skipBlankLines called by: stampGenerated

markTimeOf:13 leaf · in 1 · out 0 calls: none called by: stampGenerated

stripMark:29 entry · in 0 · out 1 calls: skipBlankLines called by: none

composeMark:17 isolated · in 0 · out 0 calls: none called by: none

at:30 isolated · in 0 · out 0 calls: none called by: none

line:35 isolated · in 0 · out 0 calls: none called by: none

after:36 isolated · in 0 · out 0 calls: none called by: none

held:46 isolated · in 0 · out 0 calls: none called by: none

unmarked:47 isolated · in 0 · out 0 calls: none called by: none

kept:49 isolated · in 0 · out 0 calls: none called by: none

the file's walk 211 steps

Syntax kinds

identifier 102

call_expression 20

arguments 20

type_annotation 18

binary_expression 16

property_identifier 15

predefined_type 14

lexical_declaration 13

Once only

program 1

while_statement 1

expression_statement 1

augmented_assignment_expression 1

ternary_expression 1

function_type 1

The source is served as text at the source

root core

persistence

A concern on the infrastructure layer holding 1 file, 44 lines of code, 10 definitions and 6 call edges.

Stats

Files 1

Lines of code 44

Blank lines 6

Bytes 1873

Definitions 10

Exported 6

Callable 6

Call edges 6

isolated flow 4

entry flow 3

leaf flow 2

relay flow 1

Findings no anomalies

Files

text.persistence.ts

  • Subject: text
  • Concern: persistence
  • Layer: infrastructure
  • 44 lines of code
  • 10 definitions
  • 6 call edges

root core persistence

text.persistence.ts

  • Subject: text
  • Concern: persistence
  • Layer: infrastructure

Stats

Files 1

Lines of code 44

Blank lines 6

Bytes 1873

Definitions 10

Exported 6

Callable 6

Call edges 6

isolated flow 4

entry flow 3

leaf flow 2

relay flow 1

Findings no anomalies

writeChanged:6 leaf · in 3 · out 0 calls: none called by: writeCanonicalText, writeGeneratedMarkdown, writeVerbatim

writeCanonicalText:22 relay · in 1 · out 2 calls: canonicalText, writeChanged called by: writeCanonicalJson

canonicalText:14 leaf · in 1 · out 0 calls: none called by: writeCanonicalText

writeGeneratedMarkdown:38 entry · in 0 · out 2 calls: stampGenerated, writeChanged called by: none

writeCanonicalJson:30 entry · in 0 · out 1 calls: writeCanonicalText called by: none

writeVerbatim:48 entry · in 0 · out 1 calls: writeChanged called by: none

next:7 isolated · in 0 · out 0 calls: none called by: none

{ inferredParser }:15 isolated · in 0 · out 0 calls: none called by: none

body:43 isolated · in 0 · out 0 calls: none called by: none

previous:44 isolated · in 0 · out 0 calls: none called by: none

the file's walk 182 steps

Syntax kinds

identifier 88

type_annotation 22

arguments 19

predefined_type 18

call_expression 18

required_parameter 16

lexical_declaration 10

variable_declarator 10

Once only

program 1

unary_expression 1

object_pattern 1

shorthand_property_identifier_pattern 1

null 1

undefined 1

The source is served as text at the source

root core

selectors

A concern on the application layer holding 1 file, 45 lines of code, 11 definitions and 0 call edges.

Stats

Files 1

Lines of code 45

Blank lines 4

Bytes 1692

Definitions 11

Exported 10

Callable 4

Call edges 0

isolated flow 11

Findings no anomalies

Files

mark.selector.ts

  • Subject: mark
  • Concern: selector
  • Layer: application
  • 45 lines of code
  • 11 definitions
  • 0 call edges

root core selectors

mark.selector.ts

  • Subject: mark
  • Concern: selector
  • Layer: application

Stats

Files 1

Lines of code 45

Blank lines 4

Bytes 1692

Definitions 11

Exported 10

Callable 4

Call edges 0

isolated flow 11

Findings no anomalies

bodyStartOf:12 isolated · in 0 · out 0 calls: none called by: none

close:16 isolated · in 0 · out 0 calls: none called by: none

markLineAt:20 isolated · in 0 · out 0 calls: none called by: none

start:21 isolated · in 0 · out 0 calls: none called by: none

lineEnd:25 isolated · in 0 · out 0 calls: none called by: none

versionOf:29 isolated · in 0 · out 0 calls: none called by: none

parseMark:37 isolated · in 0 · out 0 calls: none called by: none

at:38 isolated · in 0 · out 0 calls: none called by: none

line:42 isolated · in 0 · out 0 calls: none called by: none

isolated · in 0 · out 0 calls: none called by: none

count:47 isolated · in 0 · out 0 calls: none called by: none

the file's walk 179 steps

Syntax kinds

identifier 76

property_identifier 23

member_expression 21

call_expression 15

arguments 15

lexical_declaration 12

variable_declarator 12

binary_expression 11

Once only

program 1

array_pattern 1

The source is served as text at the source

root

types

A container holding 1 file, 8 lines of code, 2 definitions and 0 call edges.

Stats

Files 1

Lines of code 8

Blank lines 1

Bytes 177

Definitions 2

Exported 2

Callable 0

Call edges 0

isolated flow 2

Findings no anomalies

Files

mark.types.ts

  • Subject: mark
  • Concern: types
  • Layer: infrastructure
  • 8 lines of code
  • 2 definitions
  • 0 call edges

root types

mark.types.ts

  • Subject: mark
  • Concern: types
  • Layer: infrastructure

Stats

Files 1

Lines of code 8

Blank lines 1

Bytes 177

Definitions 2

Exported 2

Callable 0

Call edges 0

isolated flow 2

Findings no anomalies

GeneratedMark:1 isolated · in 0 · out 0 calls: none called by: none

MarkSpan:6 isolated · in 0 · out 0 calls: none called by: none

the file's walk 8 steps

Syntax kinds

property_signature 4

property_identifier 4

type_annotation 4

predefined_type 4

export_statement 2

interface_declaration 2

type_identifier 2

interface_body 2

Once only

program 1

The source is served as text at the source


Argv Contract · Code Parse